Compiling A Kernel For Debian Etch

Compiling A Kernel For Debian Etch

This is a quick and dirty overview of how to compile a Linux kernel for Debian Etch. I’m posting this because I’m tired of looking it up. Laziness 4tw. cd to /usr/src and wget desired kernel from

$ apt-get update $ apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 build-essential $ rm -rf linux $ tar xjf linux-x.x.xx.tar.bz2 $ ln -s linux-x.x.xx linux $ cd /usr/src/linux $ make clean && make mrproper $ cp /boot/config-uname -r ./.config $ make menuconfig

Got to Load an Alternative Configuration File and load .config. After configuring the kernel, save the .config.

$ make-kpkg clean $ fakeroot make-kpkg –initrd –append-to-version=-custom kernel_image kernel_headers $ cd .. $ ls -lt

You’ll see your two .deb files at the top. dpkg -i each package and reboot.

Source: HowToForge