View Full Version : [ubuntu] confused about linux source,image,headers ?

April 25th, 2009, 01:30 AM
In my /usr/src directory, i have 3 folders


I've been trying to apply a patch, and i need to download the linux source as i've read.
Could someone explain what that means ?

And by using the command

sudo apt-get source linux-image-$(uname -r)

I would download the source as it says in the tutorial ? or i already have it and it's the linux-2.6.24 folder ??

I would appreciate if someone clarifies what source,image and headers are :S thanks alot

April 25th, 2009, 01:53 AM
anyone :S ?

April 25th, 2009, 06:59 PM
uname -r places into the command line argument your currently running kernel version, therefore fetches the correct kernel source. The Linux headers is partial kernel source code required to build additional modules/drivers for your running kernel, without requiring the full linux kernel source code.

linux-2.6.24 looks like a good candidate for your kernel source tree, you should be able to cd into it and "make menuconfig" providing you have the correct dependencies installed, usually libncurses5-dev kernel-package and build-essential.