- Get the kernel tarball (e.g. linux-2.4.7.tar.bz2) from ftp.kernel.org or a mirror
cd /usr/src
- if linux is a link type
rm -f linux
- otherwise type mv linux linux-kernel.version.number
tar xvjf /path/to/bzipped/tarball/linux-2.4.7.tar.bz2
mv linux linux-2.4.7
ln -s linux-2.4.7 linux
cd linux
make mrproper
make menuconfig
or make xconfig
- go through the menus and configure your kernel in the way you like (or have to)
- save the configuration and exit
make dep
make bzImage
make modules
make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.7
ln -sf /boot/vmlinuz-2.4.7 /boot/vmlinuz