Service management on the PI – chkconfig equivalent for Debian

Using the Debian based Rasbian (on my Raspberry PI), I recently need to turn some services off and then others on for startup. I knew how to do this on Redhat based distributions, but Debian does things differently.

Instead of chkconfig, Debian provides the update-rc.d utility to turn services on/off at specific runlevels…

Using rsync to syncronize files between two systems

Rsync is a very handy tool at synchronizing the contents of two folders/directories.

And while being great for local folders, it also works remotely, via SSH, thanks to the -e ssh parameter: # rsync -ave ssh sourceserver:/home/user/ /home/user will sync /home/user from the sourceserver with /home/user on the local machine.

Modding TUGm to use custom MAC on a VPS

Tugs Uptime Project is a great service for monitoring and recording the uptime of your various hosts.

They have various clients for (almost) all operating systems. Unfortunately all of their clients base the machine id by MD5-ing the machine MAC address. This works perfectly unless you are using a VPS… which will have no MAC address for its network interfaces, generating the same machine ID on every host.

So in an attempt to make their latest Linux client – TUPm – usable on my VPSs, I made some changes to the client and conf file to add support for defining my own custom MAC (when a MAC is not found).

Raspberry PI as NAS

A friend of mine was wondering about using a Raspberry PI as a NAS, the question being: how fast is the PI at file transfers from/to an external hard disk connected via a USB rack.

So I booted up my PI, mounted some random 3.5 inch Samsung 160GB SATA hard drive inside another random Spire USB-SATA external (powered) rack and gave it a go at some testing.