Sunday, October 7, 2012

how to rebuild and optimize linux kernel

The Linux Kernel (Part 1) 

The Linux Kernel (Part 2)

The Linux Kernel (Part 3) 

 

How to rebuild and optimize linux kernel specifically for your machine:

(1)prepare the tools you will need

>sudo apt-get install build-essential kernel-package libncurses5-dev bzip2 fakeroot

>sudo apt-get install ia32-libs

add this line to your repos (ubuntu synaptic->repos->other software):
ppa:brian-rogers/ppa

(2)optimize the kernel specifically for your machine:
>make menuconfig

(3)generate a debian package:
>fakeroot make-kpkg --initrd --append-to-version=-wzy-cheeta-2012 kernel_image kernel_headers

these two debian packages will be placed in /homezhengyuan directory.

(4)install the kernel as a debian package
dpkg --install linux-image-xxx.deb

dpkg --install linux-headers-xxx.deb 

(5)Optional:

install gdeb from software center, so you can graphically manage the kernel that is to be used at start up

reboot your system and enjoy!

No comments:

Post a Comment