Thursday, October 09, 2008

compiling 2.6.26 vanilla on hardy - ubuntu way

This article is about compiling a kernel on Ubuntu systems. It describes how to build a custom kernel using the latest unmodified kernel sources from www.kernel.org (vanilla kernel) so that you are independent from the kernels supplied by your distribution.

cd /usr/src
wget --continue http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.26.6.tar.bz2
tar jxvf linux-2.6.26.6.tar.bz2
ln -s linux-2.6.26.6 linux
cd linux
cp /boot/config-`uname -r` ./.config
make menuconfig
make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
cd ..
dpkg -i linux-image-2.6.26.6-*
shutdown -r now

you can install the headers too from /usr/src/linux-headers-2.6.26.6-*
in my case i can show you how the packages are named
ls *.deb
linux-headers-2.6.26.6-custom_2.6.26.6-custom-10.00.Custom_amd64.deb
linux-image-2.6.26.6-custom_2.6.26.6-custom-10.00.Custom_amd64.deb

4 comments:

Unknown said...

hmmm. nice one.

Now i'm compiling 2.26.6, but i really don't now why... I'm waiting for the Intrepid Ibex...so when it comes out i change my os. But i like compiling:D

Popa Adrian Marius said...

Well you can test the 2.6.27 kernel too on hardy

I only had some issues with nvidia binary post install script
but kerenel booted and is in good shape :)

http://mapopa.blogspot.com/2008/10/compiling-2_09.html

Unknown said...

ehh:D I had some hard things about nvidia.
First of all, sorry for my bad english, i am hungarian, so...
About 2 years ago i started to use linux, but just for my pleasure. I sometimes i used win too. After half a year, my win broken. The video card freeze everytime, when i wanted to start something like video, or game. But only under win. I reinstalled the driver, nothing changed. reinstalled the OS... nothing:D
But under linux, i can do everything. So my computer got to like the linux, and conceived a dislike for win:D
Since then I unable to run win on my computer:D But i dont mind:D I like linux. the only problem is the glx support. I think somehow this part of my card got damaged... don't know how...
This was my story:D

Unknown said...

And one more thing. I cannot use the nvidia driver, just the nv in xorg... but i can live without it:D