Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| system_administration:faq [2023/02/01 15:50] – aziz | system_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=/ | + | $ ps2pdf -dPDFSETTINGS=/ |
| - | </code> | + | </cli> |
| Les autres | Les autres | ||
| Line 56: | Line 57: | ||
| !!! | !!! | ||
| - | <code bash> | + | <cli> |
| - | convert logo_elosys.png -resize | + | $ convert logo_elosys.png -resize |
| - | </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=' | + | $ GIT_SSH_COMMAND=' |
| </ | </ | ||
| 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> | + | <cli>$ modprobe nbd max_part=8</ |
| **Step 2 - Connect the QCOW2 as network block device** | **Step 2 - Connect the QCOW2 as network block device** | ||
| - | <code bash> qemu-nbd --connect=/ | + | <cli>$ qemu-nbd --connect=/ |
| **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 / | + | <cli>$ mount /dev/nbd0p1 / |
| **Step 5 - After you're done, unmount and disconnect** | **Step 5 - After you're done, unmount and disconnect** | ||
| - | <code bash> | + | <cli> |
| - | umount / | + | $ umount / |
| - | qemu-nbd --disconnect /dev/nbd0 | + | $ qemu-nbd --disconnect /dev/nbd0 |
| - | rmmod nbd | + | $ rmmod nbd |
| - | </code> | + | </cli> |