Michael Svanström

developer, photographer

Linux

Roll your own unblock-us

So you’ve got your VPS located in the US up and running but just don’t know how to put it to use? A nifty little tool named sniproxy will do great things for you.

Moving old files in Linux

Archiving might become a necessity when storing a lot of files on a server. This is a snippet which moves files older than a year to another directory. Note the -print0 and -0 (zero) which add null characters for escaping spaces and backslashes. find myfiles/ -mtime +365 -print0 |xargs -0 -I {} mv {} myfiles_old/

dvbloopback in Linux 2.6.38

Compiling and using sasc-ng and dvbloopback with Linux 2.6.38 is a hassle. Here’s how to get it working. Prequisites: Ubuntu Lucid Kernel 2.6.38-11-generic We need to patch both the kernel dvb module as well as the dvbloopback source. Download linux-2.6.38-dvb-mutex.patch to your home folder. $ sudo apt-get install linux-headers-uname -r Now let’s get the kernel source, patch it, and recompile the dvb-core module. $ cd /usr/src $ sudo apt-get source kernel-image-uname -r $ cd linux-2.

Extending an LVM volume

The following commands adds a new partition to an existing lvm volume. Tested on Ubuntu 10.04. First, find out your volume name using: sudo vgdisplay

Afatech 9015 in Linux

I recently got a noname USB DVB-T receiver which I’ve been trying to get to work on my Debian GNU/Linux laptop. While inserting the device, here’s syslog output: