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 [2022/11/10 13:35] – aziz | system_administration:faq [2023/08/11 20:01] (current) – aziz | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== FAQ ===== | ||
| ~~FAQ~~ | ~~FAQ~~ | ||
| + | ??? Rendre persistant le journal system | ||
| + | !!! | ||
| + | <cli> | ||
| + | $ sudo mkdir -p / | ||
| + | $ grep -v ' | ||
| + | [Journal] | ||
| + | Storage=persistent | ||
| + | SystemMaxUse=300M | ||
| + | $ sudo systemctl restart systemd-journald.service | ||
| + | </ | ||
| + | |||
| + | |||
| + | ??? journalctl --list-boots Failed No data available | ||
| + | !!! | ||
| + | <cli> | ||
| + | $ LANG=C sudo journalctl --list-boots | ||
| + | Failed to determine boots: No data available | ||
| + | $ sudo journalctl --verify | ||
| + | File corruption detected at / | ||
| + | 8 bytes, 29%). | ||
| + | FAIL: / | ||
| + | $ # remove corrupted files | ||
| + | $ sudo rm / | ||
| + | </ | ||
| + | |||
| + | ??? Convertir un CD en fichier ISO | ||
| + | !!! | ||
| + | |||
| + | <cli> | ||
| + | [root@testserver ~]# isoinfo -d -i /dev/cdrom | grep -i -E 'block size|volume size' | ||
| + | Logical block size is: 2048 | ||
| + | Volume size is: 327867 | ||
| + | [root@testserver ~]# dd if=/ | ||
| + | |||
| + | </ | ||
| + | |||
| + | - Sources : | ||
| + | |||
| + | - [[https:// | ||
| + | - [[https:// | ||
| + | |||
| + | |||
| + | ??? Réduire la taille d'un PDF | ||
| + | !!! | ||
| + | <cli> | ||
| + | $ ps2pdf -dPDFSETTINGS=/ | ||
| + | </ | ||
| + | |||
| + | Les autres | ||
| + | |||
| + | Ces options donnent | ||
| + | |||
| + | |||
| + | ??? Réduire la dimension d'une image | ||
| + | !!! | ||
| + | |||
| + | <cli> | ||
| + | $ convert logo_elosys.png -resize | ||
| + | </ | ||
| + | |||
| + | |||
| + | ??? Créer un favicon.ico à partir d'un png | ||
| + | !!! | ||
| + | |||
| + | <cli> | ||
| + | $ convert -resize x48 -gravity center logo.png -flatten -colors 256 -background transparent favicon.ico | ||
| + | </ | ||
| + | |||
| + | ??? Pusher avec GIT en utilisant une clé ssh alternative | ||
| + | !!! | ||
| + | <cli> | ||
| + | $ GIT_SSH_COMMAND=' | ||
| + | </ | ||
| + | |||
| ??? Installer ansible-playbook | ??? Installer ansible-playbook | ||
| !!! | !!! | ||
| Line 15: | Line 90: | ||
| ??? SSH-RSA key rejected with message "no mutual signature algorithm" | ??? SSH-RSA key rejected with message "no mutual signature algorithm" | ||
| - | !!! ''' | + | !!! |
| - | Or ''' | + | Ajouter |
| + | |||
| + | Ou '' | ||
| Ref: [[https:// | Ref: [[https:// | ||
| - | ??? How to trigger a DNS zone transfer on a master | + | ??? Provoquer un transfert de zone depuis un serveur maître |
| !!! Configuré | !!! Configuré | ||
| transfert dynamique des zones. | transfert dynamique des zones. | ||
| - | La modification des zones sur le maître n'est pas | + | La modification des zones sur le maître n'est pas |
| 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 | ||
| + | !!! | ||
| + | < | ||
| - | ??? How to mount a qcow2 disk image | + | |
| + | |||
| + | ??? Mounter une image disque format qcow2 (en) | ||
| !!! This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.((https:// | !!! This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.((https:// | ||
| Line 42: | 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> |
| - | ??? How to create a docker | + | ??? Créer un réseau |
| !!! | !!! | ||