Obtain a binary image¶ We have a USB key with a file system on it, and we want to save its content. We do a binary image using: $ dd if=/dev/sda1 of=/home/kevin/usb_key.img Mount the image file¶ Get informations about the file system of the image …
This little article describe how to setup an automatic backup procedure to a remote machine via the rsync tool. Prerequisites¶ A distant server, where backup will be stored (homeserver.com in this case), A user account on this server (mine was kevin), A ssh deamon running on the server that …
Cet article explique comment créer un espace de stockage redondant et fiable en utilisant du matériel grand public et bon marché. Cela est possible par la combinaison de Linux, des mécanismes RAID logiciel et du gestionnaire de volumes logiques LVM. Mise à jour: Le but initial était d’utiliser des …
Here is a tiny helper script I call regularly by a cron job to flush the spool of my CUPS server as after several weeks of usage my server end up full of unprinted documents junk: #/bin/sh! service cups stop rm -f /var/spool/cups/* rm -f /var/spool …
Voici un petit script trivial en bash qui, couplé à cron, me permet de maintenir ma connexion internet 56kbps fournie par Free.fr (en attendant l’arrivée du modem ADSL): #!/bin/bash # Script de reconnection automatique testconnect() { CONNECT=`ping -c 3 google.com | grep packets | cut -d' ' -f4` } doconnect() { logger …
Voici un long article regroupant toutes mes notes sur mon projet de mise en place d’une passerelle internet tournant sous Linux. Tout commence avec une épave de PC récupéré, composé de: un écran une carte graphique Matrox PCI G200 un bloc d’alimentation un disque dur IDE de 6 …