RPM Distribution Installation
How to install Zen on rpm based distributions such as suse, fedora, or centos.
Background
Forewarning
Patching or Fetching the kernel source
+ Switch between any tagged release allowing switch to an older version
1. The first step is to make sure that you have all of the required packages installed to compile a kernel, names and package management varies by distribution.
sudo yast -i ncurses-dev gcc (yum install ncurses gcc) # variable depending on your distribution # Assure you have all the required packages installed to compile a kernel (gcc, git, etc) # Requires rpmbuildtools (distribution package containing rpmbuild command)
I want to clone GIT
Absolutely! Please read up on the GIT Based installation/management guideand skip the next part about patching the kernel.
-----
Forget that! I want to patch my kernel!
Sure, we absolutely support this method.
cd linux-2.6.31 bzcat 2.6.31-zen4.patch.bz2 | patch -p1 # For bz2 format, alternatively if the patch is in gzip or lzma use zcat or lzcat
Configuring, Compiling, and Installing the kernel source
Now in your kernel source directory
1. Configure the kernel. If you are not sure about how to configure the kernel, see google and/or use a kernel seedto create a configuration (easier than starting from scratch, but achieves the same effect)
2. Make the kernel image (source rpm and installable rpm)3. The rpm that has been created is now located in /usr/src/rpm, so go there by:sudo make rpm
4. Install the rpm package, for example:cd ../rpm
5. The kernel may not boot without an initrd, but one can be generated with the following command (for all installed kernels, see help for making it for just 1 kernel)sudo rpm -ivh RPMS/x86_64/kernel*.rpm
6. That's all for that, now the kernel image is installed, however - it is not ready to boot yet! (the new kernel entry still needs to be added to menu.lst for grubsudo mkinitrd
Configuring the boot loader
This is a relatively generic step, for opensuse/suse users you can edit the boot loader by invoking "yast", or for the rest by editing it manually like so
sudo nano /boot/grub/menu.lst
When you get here basically just copy the entry you have for your default kernel, rename the title and edit the vmlinuz and initrd path, possibly something like this
title kernel 2.6.30-zen8 root (hd0,2) kernel /vmlinux-2.6.30-zen8 root=/dev/sda2 ro vga=791 initrd /boot/initrd.img-2.6.30-zen8
Of course I expect yours to be different, but that's all there's to it (Some rpm distributions may have commands that automatically update the menu.lst with installed kernels - if so you can just use that, but I'm not totally sure)
Now you should be able to boot without problem








