Compile Kernel for Ubuntu
This is sort of for my own future reference. But if you need to compile a new kernel on Ubuntu (i'm using 6.10 currently), do this (as root):
cd /usr/src/linux
cp /boot/config-`uname -r` ./.config
make menuconfig
then chose "Load an Alternative Configuration File"
Save it as: .config
make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
You'll now have to new debian packages in /usr/src
You can install these now with
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
Now you can check /boot/grub/menu.lst and you should see 2 new boot entries.