Basic guidelines to compiling the kernel Fri, 10/7/2011 0. Install all the packages to compile the kernel 1. Download the Linux kernel source code. 2. Copy it to /usr/src mv linux-3.0.4.tar.bz2 /usr/src 3. Go to /usr/src and untar the source code cd /usr/src tar xvjf linux-3.0.4.tar.bz2 4. Go to the root of the source tree cd linux-3.0.4 5. Find your current Linux version uname -r 6. Copy the current configure file to the root of the source tree cp /boot/config-2.6.38-11-generic .config (skip this step if you want to configure the kernel yourself) 7. Configure Knerel make menuconfig (If you did step 6, you can load the configure file using load) 8. Compile the kernel and install (will take some time, go get a cup of coffee) make make install make modules_intall 9. Go to /boot and create initrd for your new kernel cd /boot Fedora: mkinitrd initrd-3.0.4.img 3.0.4 Debian: mkinitramfs -o initid.img-3.0.4 3.0.4 10. Update the grub menu If you have GRUB2 installed on your system, just execute this command: update-grub2 Otherwise, you have to modify the grub config file manually. Edit /boot/grub/menu.lst. Copy one of the old entries and modify it, so that it will point to the new kernel image and initrd.