Articles

Qemu: How-To Share Network Access with the Ghest OS

Create a file /etc/qemu-ifup that contain: #!/bin/sh sudo modprobe tun sudo /sbin/ifconfig $1 up 10.0.2.2 netmask 255.255.255.0 broadcast 10.0.2.255 # IP masquerade sudo echo "1" >/proc/sys/net/ipv4/ip_forward sudo /sbin/iptables -N nat sudo /sbin/iptables -t …
➟ Read more

How-To Mount a File System Binary Image

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 information about the file system of the image …
➟ Read more

Remote Backup with rsync

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 daemon running on the server that …
➟ Read more


How-to empty CUPS spool

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 …
➟ Read more

Script de reconnection automatique PPP

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 …
➟ Read more

Mise en place d’une paserelle ADSL sous Mandrake 10

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 …
➟ Read more