Compile Kernel in Ubuntu By: Onno W. Purbo $ sudo passwd root Password: Password: $ su - # # apt-get update $ sudo apt-get update # rm -f /bin/sh # ln -s /bin/bash /bin/sh # apt-get update # apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 # cd /usr/src # wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.1.tar.bz2 # tar xjf linux-2.6.18.1.tar.bz2 # ln -s linux-2.6.18.1 linux # cd /usr/src/linux # cp /boot/config-`uname -r` ./.config # make menuconfig # make-kpkg clean # fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers # cd /usr/src # dpkg -i linux-image-2.6.18.1-custom_2.6.18.1-custom-10.00.Custom_i386.deb # dpkg -i linux-headers-2.6.18.1-custom_2.6.18.1-custom-10.00.Custom_i386.deb # vi /boot/grub/menu.lst # shutdown -r now # uname -r