system_administration:faq

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
system_administration:faq [2023/02/01 15:50] azizsystem_administration:faq [2023/08/11 20:01] (current) aziz
Line 1: Line 1:
 +===== FAQ =====
 ~~FAQ~~ ~~FAQ~~
 ??? Rendre persistant le journal system ??? Rendre persistant le journal system
Line 44: Line 45:
 ??? Réduire la taille d'un PDF ??? Réduire la taille d'un PDF
 !!! !!!
-<code -+<cli
-ps2pdf -dPDFSETTINGS=/ebook input.pdf output.pdf +ps2pdf -dPDFSETTINGS=/ebook input.pdf output.pdf 
-</code>+</cli>
  
 Les autres  alternatives de l'option ''-dPDFSETTINGS''  sont ''/prepress'' et ''/printer''. Les autres  alternatives de l'option ''-dPDFSETTINGS''  sont ''/prepress'' et ''/printer''.
Line 56: Line 57:
 !!! !!!
  
-<code bash+<cli
-convert logo_elosys.png -resize  128x128 logo.png +convert logo_elosys.png -resize  128x128 logo.png 
-</code>+</cli>
  
  
Line 64: Line 65:
 !!! !!!
  
-<code bash+<cli
-convert -resize x48 -gravity center logo.png -flatten -colors 256 -background transparent favicon.ico +convert -resize x48 -gravity center logo.png -flatten -colors 256 -background transparent favicon.ico 
-</code>+</cli>
  
 ??? Pusher avec GIT en utilisant une clé ssh alternative ??? Pusher avec GIT en utilisant une clé ssh alternative
 !!! !!!
 <cli> <cli>
-GIT_SSH_COMMAND='ssh -i id_rsa' git push origin master+GIT_SSH_COMMAND='ssh -i id_rsa' git push origin master
 </cli> </cli>
  
Line 105: Line 106:
 slave si les commande suivantes ne sont pas exécutées: slave si les commande suivantes ne sont pas exécutées:
  
-<code bash+<cli
-sudo rndc freeze +sudo rndc freeze 
-sudo rndc thaw +sudo rndc thaw 
-</code>+</cli>
  
 ??? Obtenir le log de bind9 nameserver ??? Obtenir le log de bind9 nameserver
Line 123: Line 124:
 **Step 1 - Enable NBD on the Host** **Step 1 - Enable NBD on the Host**
  
-<code bash>modprobe nbd max_part=8</code>+<cli>modprobe nbd max_part=8</cli>
  
 **Step 2 - Connect the QCOW2 as network block device** **Step 2 - Connect the QCOW2 as network block device**
  
-<code bash> qemu-nbd --connect=/dev/nbd0 /var/lib/vz/images/100/vm-100-disk-1.qcow2</code>+<cli>qemu-nbd --connect=/dev/nbd0 /var/lib/vz/images/100/vm-100-disk-1.qcow2</cli>
  
 **Step 3 - Find The Virtual Machine Partitions** **Step 3 - Find The Virtual Machine Partitions**
  
-<code bash>fdisk /dev/nbd0 -l</code>+<cli>fdisk /dev/nbd0 -l</cli>
  
 **Step 4 - Mount the partition from the VM** **Step 4 - Mount the partition from the VM**
  
-<code bash>mount /dev/nbd0p1 /mnt/somepoint/</code>+<cli>mount /dev/nbd0p1 /mnt/somepoint/</cli>
  
 **Step 5 - After you're done, unmount and disconnect** **Step 5 - After you're done, unmount and disconnect**
  
-<code bash+<cli
-umount /mnt/somepoint/ +umount /mnt/somepoint/ 
-qemu-nbd --disconnect /dev/nbd0 +qemu-nbd --disconnect /dev/nbd0 
-rmmod nbd +rmmod nbd 
-</code>+</cli>
  
  
  • system_administration/faq.1675266613.txt.gz
  • Last modified: 2023/02/01 15:50
  • by aziz