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
make install
To make the module visible to your running kernel, you may like to run
depmod -a
modprobe modulename

Original from: Alien Glow

http://www.cyberciti.biz/tips/build-linux-kernel-module-against-installed-kernel-source-tree.html

compile smartd / smartmontools from svn source on debian linux

Saturday, March 13th, 2010

 

cd /usr/src
svn co https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk/smartmontools smartmontools
cd smartmontools
./autogen.sh
./configure --prefix='/usr' --sysconfdir='/etc'
make install