Archive for March, 2010

Compile and install a 3rd party kernel module in debian

Monday, March 15th, 2010

KVER=$(uname -r | sed 's,-.*,,g')
aptitude install linux-headers-$(uname -r) linux-source-$KVER build-essential
cd /usr/src
tar jxf linux-source-$KVER.tar.bz2
ln -s /usr/src/linux-source-$KVER /lib/modules/$(uname -r)/source

Download the required module source and unpack it
Enter module source directory

make install
To make the module visible to your running kernel, you may like to run
depmod -a
modprobe modulename

Original from: Alien Glow

compile smartd / smartmontools from svn source on debian linux

Saturday, March 13th, 2010


cd /usr/src
svn co smartmontools
cd smartmontools
./configure --prefix='/usr' --sysconfdir='/etc'
make install