Categories
r00t

Move a running process to a screen session

Suspend the process

CTRL+Z

Categories
r00t

Execute cron on a specific day of the month

# Run on every second Tuesday of the month

Categories
r00t

Destroy data on a filesystem by wiping first and last sectors

Wipe the first 1GB

# dd if=/dev/zero of=/dev/sdX bs=1M count=1024

Categories
r00t

Backup & versioning with RSYNC

You may already know rsync – the powerful tool which you use to synchronize files from one location to another. I am using it on every Linux server that needs scheduled backups, but this time I had to not only backup some files, but also to keep track of previous versions, due to users being sloppy with their work and sometimes it happened they have permanently deleted the files, without moving to Trash. (sigh!)

The following line of code may be saved in a file, as backupversion.sh to a folder of your choice (let’s say /root/backupversion.sh).

Categories
r00t

Matrox G550 dual monitor

Sometimes Google is just not enough. Especially when you’ve clicked hundreds of results, hoping you will find the right answer to your problem. My problem was the Matrox G550 video card and its missing drivers for the modern, nowadays versions of Linux. In my case, the distro is Ubuntu.