Firebird News

Tuesday, January 22, 2008

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 (vanilla kernel) so that you are independent from the kernels supplied by your distribution.

cd /usr/src
wget --continue
tar jxvf linux-
ln -s linux- 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-
shutdown -r now

you can install the headers too from /usr/src/linux-headers-*
How To Compile A Kernel - The Ubuntu Way | HowtoForge - Linux Howtos and Tutorials

Blogged with Flock


demogun said...

hi. I think you missed a 'cd' command between these lines:

ln -s linux- linux
cp /boot/config-`uname -r` ./.config

Or not? cause i tried this way, and the .config copied to the /usr/src directory.

anyway, thx this post! useful



mariuz said...

thanks is fixed now :)

mariuz said...

I have updated the guide and now i have posted another one for 2.6.26.x

See the front page