Title: build debian kernle package Subject: how to build custom kernel on debian (5.0 Lenny) REF: http://www.debianadmin.com/step-by-step-tutorial-howto-compile-kernel-in-debian-5-0-lenny.html # Install needed tools aptitude install \ kernel-package \ ncurses-dev \ bzip2 \ module-init-tools \ initramfs-tools \ procps \ fakeroot # Download source aptitude install install linux-source-2.6.26 # Make build dir pushd /usr/src/ # Extract tar xjf /usr/src/linux-source-2.6.26.tar.bz2 pushd linux-source-2.6.26 # copy running .config here cp /proc/config.gz gunzip config.gz mv config .config # Configure make oldconfig make menuconfig make-kpkg clean export CONCURRENCY_LEVEL=2 make-kpkg --rootcmd fakeroot --initrd --revision=custom.001 kernel_image kernel_headers # go one directory up to see the deb package popd # Install the new kernel. dpkg -i *.deb # Check that grub was updated vi /boot/grub/menu.lst # Reboot reboot