Taken from:
Linux Orbit - Server or desktop, GNU/Linux
Debian kernel upgrade
- su and enter root password
- apt-get install kernel-package kernel-source-2.4.20 expectk
- cd /usr/src/
- tar xvfj kernel-source-2.4.20.tar.bz2
- ln -s /usr/src/kernel-source-2.4.20 /usr/src/linux
- cd linux
- make xconfig
- select kernel modules
- make-kpkg -rev Custom.1 kernel_image
- cd ..
- dpkg -i kernel-image-2.4.18_Custom.1_i386.deb
- reboot (remember you can select linuxOLD from the Lilo or Grub prompt if the kernel won't boot properly)
To start over and re-config:
- cd /usr/src/linux
- make-kpkg clean
- make xconfig
- (then continue from step 9 and be sure to use revision numbers each time you run through the process to keep track of your kernel builds ie: Custom.2, Custom.3, etc.)