Code:
mkdir mykernel
cd mykernel
tar zjxvf linux-2.6.x.tar.bz2
cd /usr/src
su
ln -s <path_to_mykernel>/linux-2.6.x linux
exit
cd linux
make clean -| not needed for first time, but no harm typing it :)
make mrproper -|
make xconfig OR make menuconfig
-- save config here before exiting
make -- for <2.6 kernel, do: make dep THEN make bzImage
make modules
su
make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-2.whatever-you-want
cp System.map /boot/System.map-whatever-you-want
cd /boot
ln -s System.map-whatever-you-want System.map
now edit lilo.conf:
image=/boot/vmlinuz-2.whatever-you-named-above
copy the rest.
just go through what they are supposed to do from some readme before you actually follow it. find out if there are some distro-specific steps. but thats the general procedure.
hope that helps.
some tip(s): dont unzip and have ur source dir under /usr/src. just have a symbolic link 'linux' under /usr/src to wherever u unzipped it.
do everything as ur regular user, not as root. only creating that symbolic link under /usr/src, and make modules_install (and what follows) require root privilege.
make sure u copy vmlinux to the right place. i dont think all distro's require it under /boot (does any require it under '/'?) - just check that.
make sure lilo.conf has "root=/dev/hdaxx" pointing to the right one. to make sure which is root on ur machine, check using "cat /etc/fstab" and see where "/" is.
i think thats it.