Improve performance in Ubuntu - Part I
How To Compile the Kernel in Ubuntu
1. Install needed utilities to configure the kernel
sudo apt-get install build-essential bin86 kernel-package
2. Now we are going to move the kernel and unpack it.
sudo cp linux-2.6.16.tar.bz2 /usr/src
3. Now we are going to move to /usr/src: cd /usr/src
4. Now unpack it: sudo tar -xvjf linux-2.6.16.tar.bz2
5. Rename the folder: ONLY needed for 2.6.16 kernel ! You don't need to do this.
sudo mv linux-2.6.16/ linux-2.6.16ck12
6. Now we are going to remove the link to the linux directory:
sudo rm -rf linux
7. Make a new link to the new kernel:
sudo ln -s /usr/src/linux-2.6.16ck12 linux
8. Move to the Linux directory:
cd /usr/src/linux
9. Make yourself root:
sudo -s -H
10. Apply the performance patch: Don't use if you are not patching the 2.6.16 kernel !
bzcat /home/$USER/patch-2.6.16-ck12.bz2| patch -p1
11. Now we are going to import your current kernel configuration:
uname -r
12. Now import it: Make sure to replace the kernel version in this following command from the one from uname -r.
sudo cp /boot/config-2.6.14-ck1 .config
13.Configure the kernel:
make menuconfig
et's build the kernel: Make sure that you are in /usr/src/linux with full root access. Make sure that you are. This will build a debian file that you can install.
Now, in terminal do the following:
Quote:
make-kpkg clean
make-kpkg -initrd --revision=ck12 kernel_image kernel_headers modules_image
Note: You can replace "ck12" with anything you want. Like "k7" or "686."
15. Install the .deb fine in /usr/src. In terminal do
Quote:
sudo dpkg -i
Now reboot and you will have a much faster system !
