Skip to content

Instantly share code, notes, and snippets.

@UniIsland
Forked from bobisme/gist:1078482
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save UniIsland/f43f73ee09c821740c36 to your computer and use it in GitHub Desktop.
Save UniIsland/f43f73ee09c821740c36 to your computer and use it in GitHub Desktop.
Build/install custom linux kernel headers with Debian.

Linux Headers

  • Install tools to build:
sudo apt-get update
sudo apt-get install kernel-package fakeroot wget bzip2
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment