Backup to avoid the worst

Since I bought my external Lacie HD, I must have backed up my data only once, just before shrinking a partition (quite a delicate operation) on my main computer. Then I realised some days ago that if something really bad happens on this computer (which is going on its 3 years old), I would lost all my photos, music, websites development files, documents, etc. To avoid that catastrophic situation and force me to backup data, I wrote a shell script automatically executed everyday by cron.

Of course, running the script everyday without the Lacie HD switched on wouldn’t be very useful. That’s why I used the “xmessage” command to warn me that I shall switch the drive on and retry the script or quit. Everything is performed by the script and adding the following line to “/etc/crontab” will make the script to be run everyday at 20:00 sharp:

00 20 * * * harck export DISPLAY=:0 && /home/harck/scripts/backAll.sh

The “export DISPLAY=:0 &&” stuff is necessary for xmessage to work. A copy of the script is available here (simply rename it into *.sh and chmod it to 755).

Bamboo & Ubuntoo Ubuntu

Christmas has always meant meeting with the family, laughing, telling stories, eating and drinking. But Christmas without a succession of gifts exchanges wouldn’t really be Christmas. One of the gifts I was offered this year was the new Wacom Bamboo graphic tablet, a piece of equipment that was still missing around my computer. Of course, before buying it on behalf of my grandma, I googled a bit to verify whether it was decently supported under Linux or not. Of course it was, and here is what you have to do to use it under Ubuntu:

First of all, download the latest linuxwacom package from their website. The Bamboo is only supported from release 0.7.8-3 (the latest one at the time of writing this). The next step is to build the kernel module:

tar xvjf linuxwacom*.tar.bz2
cd linuxwacom*
./configure –enable-wacom
make

With some luck, this will work from the first attempt, but you’ll most probably be missing some dependencies (mostly libraries).

In my case, I had to install the following development packages:

sudo apt-get install tcl8.4-dev tk8.4-dev libxi-dev

You’ll maybe need more than this, but simply check the output of the configure command (here above) to see what’s missing on your system. Once it’s installed, retry to compile the module.

After some time, you should find a “wacom.ko” file in the “src/2.6.19/” subdirectory. Actually, this is the kernel module we just built. To make sure everything is ok, you may want to try loading the module into the kernel. To do this, perform:

cd src/2.6.19
sudo /sbin/insmod ./wacom.ko

and check the /var/log/messages logfile for any errors. If everything went smooth, you can replace the default wacom.ko module (not supporting the bamboo) by the freshly compiled one:

sudo mv /lib/modules/2.6.22-14-generic/kernel/drivers/input/tablet/wacom.ko ~/wacom.ko_BACKUP
sudo cp wacom.ko /lib/modules/2.6.22-14-generic/kernel/drivers/input/tablet/

Finally, you’ll have to modify your Xorg configuration file so that it recognizes the tablet:

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_BACKUP
sudo gedit /etc/X11/xorg.conf

add or uncomment the following:

Section "InputDevice"
	Driver		"wacom"
	Identifier	"stylus"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"	"stylus"
	Option        	"USB"           "on"                  # USB ONLY
	Option		"ForceDevice"	"ISDV4"        # Tablet PC ONLY
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"eraser"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"	"eraser"
	Option        	"USB"           "on"                  # USB ONLY
	Option		"ForceDevice"	"ISDV4"        # Tablet PC ONLY
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"cursor"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"	"cursor"
	Option        "USB"           "on"                  # USB ONLY
	Option		"ForceDevice"	"ISDV4"      # Tablet PC ONLY
EndSection

Section "InputDevice"
  	Driver        "wacom"
  	Identifier    "pad"
	Option		"Device"	"/dev/input/wacom"
  	Option        "Type"          "pad"
  	Option        "USB"           "on"                  # USB ONLY
EndSection

Save and exit, and reboot. Your shiny new tablet should be recognized and working perfectly. You can test the pressure sensitivity with Gimp and start drawing! Don’t forget to check the Linux Wacom Project Howto if you need more help!

nintendo – game & watch

I dived in my parent’s cellar last week end, and I found a real treasure… an old collection of Nintendo’s Game&Watch handled devices!!!

Nintendo Game&Watch - Boxes Nintendo Game&Watch

Of course, I remember the hours spent on Donkey Kong and Zelda, but I had completely forgotten this awesome Dual Controller “Micro Vs System”. How many Vs battles have we had my brother and I!!!

Of course, things have changed since that time… the DS Lite has about the same size… but a very different gameplay 🙂

Nintendo Game&Watch Nintendo Game&Watch

Added to the TODO List: buy some batteries for some “hardcore” gaming!!!