Short Kernel Howto by scan@goodlife.at distribution of this memo is unlimited. Tue Mar 15 22:18:28 CET 2005 # = comment $ = command [xxx] = variable - you have to substitute # first update installed packages! # to know current kernel version: $ uname -a # gives something like: # Linux [servername] 2.4.26 #4 Sat Jul 3 21:41:36 CEST 2004 i686 unknown # download kernel from http://www.kernel.org/ # copy link location from "F" with a browser $ cd /usr/src $ wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.11.3.tar.bz2 # use tar with tvf first to test - your choice ... - eg. for version 2.6.11.3 $ bzip2 -d -c linux-2.6.11.3.tar.bz2 | tar xvf - $ cd linux-2.6.11.3 $ chmod -R root.root . $ vi README # !! - do it for the first time! $ vi Documentation/Changes # !! and check your versions - ( ksymoops! ) $ make mrproper $ cp /boot/config-2.4.20 ./config # or find your current config file $ make oldconfig # only 2.6 do: $ make prepare # /only 2.6 do: $ make menuconfig # and good luck ... 2.4 === $ ( make dep && make && make modules && make modules_install && make install ) 2>&1 | tee -a ~/kc.txt 2.6 === $ ( make && make modules_install install ) 2>&1 | tee -a ~/kc.txt # edit lilo.conf $ vi /etc/lilo.conf prompt timeout=30 default=linux2426 boot=/dev/hda1 map=/boot/map install=/boot/boot.b message=/boot/message linear image=/boot/vmlinuz-2.4.29 label=linux2429 read-only root=/dev/hda2 append="hdc=ide-scsi" image=/boot/vmlinuz-2.4.26 label=linux2424 read-only root=/dev/hda2 append="hdc=ide-scsi" image=/boot/vmlinuz-2.4.18-3 label=linux initrd=/boot/initrd-2.4.18-3.img read-only root=/dev/hda2 append="hdc=ide-scsi" # eof lilo.conf # and rewrite boot sector: $ lilo -v -v -v # or edit grub conf $ vi /etc/grub.conf default=0 timeout=3 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title Fedora Core (2.6.11.3) root (hd0,0) kernel /vmlinuz-2.6.11.3 ro root=LABEL=/ rhgb quiet initrd /initrd-2.6.11.3.img title Fedora Core (2.6.10-1.770_FC3) root (hd0,0) kernel /vmlinuz-2.6.10-1.770_FC3 ro root=LABEL=/ rhgb quiet initrd /initrd-2.6.10-1.770_FC3.img # ... # eof ## and reboot your mashine $ shutdown -r now # note: all on your own risk ... :)