Disclaimer: This HOW-TO will assume that the person reading it has a fair amount of knowledge with unix/linux which means being able to maneuver about with little trouble. I'll also assume that you have taken the necessary measures to ensure that your data is backed up before proceeding in the event that things don't go as planned. I will not be held liable for any problems that may arise as a result of this instructional guide. You've been warned.
As previously mentioned, it's a good idea to backup whatever data you want to keep in the event that something gets messed up. Also, this HOW-TO is not meant for kernel 2.6 and up. That said, ONWARD!
All operations need to be performed as root. If you're unsure whether you're root, type "whoami" without the quotes and hit Enter. whoami echos the current user.
- # cd /usr/src/linux
- # make menuconfig Configure what things you need/don't need for your new kernel
- # make dep
- # make clean
- # make bzImage
- # make modules
- # make modules_install
- # cp /usr/src/linux/arch/i386/boot/bzImage /boot/new_kernel_name
- open /etc/lilo.conf with your favorite editor and add the kernel - leave old one as backup in case the new one freaks out
- # lilo <-adds the information to lilo.conf file so you can use the new kernel on next reboot
VOILA! - enjoy your new kernel!