- Install tools to build:
sudo apt-get update
sudo apt-get install kernel-package fakeroot wget bzip2
- Linux-2.6.39.1-linode34 is same as regular 2.6.39 source: http://forum.linode.com/viewtopic.phpt=6949&sid=cd983a6b71bb77bff08160fb55f67d12
cd ~/src
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.39.3.tar.bz2
- Build
tar xjf linux-2.6.39.3.tar.bz2
cd linux-2.6.39.3
# Restore config
zcat /proc/config.gz > .config
make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-linode34 kernel_headers
- After it finishes compiling:
cd ..
sudo dpkg -i linux-headers-2.6.39.3-linode34_2.6.39.3-linode34-10.00.Custom_i386.deb
cd /usr/src
sudo ln -s linux-headers-2.6.39.3-linode34 linux-headers-2.6.39.1-linode34
cd /lib/modules/2.6.39.1-linode34
sudo ln -s /usr/src/linux-headers02.6.39.1-linode34 build
The same thing happened to me, but after rebooting with the newly built kernel I was able to run sudo dpkg -i to install the custom headers.