Not at all. Compiling a kernel is easy if you know your hardware
http://www.kernel.org/pub/linux/kern...2.6.10.tar.bz2 -- click here to download the kernel.
Save it to /tmp. Open an xterm and type in the following:
Code:
su (to login as root)
cd /tmp
bunzip2 linux-2.6.10.tar.bz2 -c > /usr/src/
cd /usr/src/linux-2.6.10
cp ../linux/.config .config (copies old config)
make xconfig (or make gconfig if that doesn't work)
Now you will be in a nice gui to configure the kernel (its come a long way!). If you want you can go through and chose all the options but instead we copied your old config over so no problem, right?
Now we just need to make sure your stuff is all on there. Anything checked is compiled into the kernel and anything that's a boxed in is going to be compiled outside the kernel as a module.
If you want you can peruse all this and if you find anything that you are
ABSOLUTELY sure is incorrect then you can change it otherwise you can exit that configure program(I just wanted you to be aware of how to do it).
Next you are back at the xterm. Type:
Code:
make all (compiles the kernel)
make modules_install (will put the modules in their places)
The next thing depends on your cpu. If you don't run an amd64 then type:
Code:
cp arch/i386/boot/bzImage /boot/CustImage
If you run an amd64 then type:
Code:
cp arch/x86_64/boot/bzImage /boot/CustImage
If you happened to change anything about the config then I suggest you also type this:
Code:
cp System.map /boot/System.map
cp System.map /boot/map
Now everything is done except for one thing! If you use lilo then you need to edit your /etc/lilo.conf as root and add this at the end:
image=/boot/CustImage
label=TestKernel
read-only
root=/dev/hdc5 (change this to your default drive).
then just save that and run lilo
^^ lol
If you use grub edit your /boot/grub/grub.conf (or menu.lst . . . whichever exists) as root to have this at the end:
title TestKernel
root (hd1,0) (make this the value of your root. this is the second harddrive first partition)
kernel /boot/CustImage root=/dev/hdb1 (make this your root system).
#initrd /initrd.img
Thats all there is to it. Restart and choose TestKernel. If you have any problems then post it here. Grub doesn't need you to run any commands so yay for that