PDA

View Full Version : [all variants] [SOLVED] a question on linux kernel



fourthofjuly
September 24th, 2008, 03:41 PM
hi...

am just curious... is there any difference in the kernels of different distros...?

like say is the kernel of ubuntu exactly identical to that of fedora, opensuse, mint or redhat?

also, how can i access the kernel source files in ubuntu? i would like to see the actual lines of codes that are in the heart of my system, again only out of curiosity...

thanks...

GregMB
September 24th, 2008, 03:52 PM
Unfortunately, I don't have an answer for you. But, it's a great question. I've been wondering that myself.

billgoldberg
September 24th, 2008, 03:52 PM
I'm pretty sure the kernel is optimized for Ubuntu.

For the source:

https://help.ubuntu.com/community/Kernel/Compile#Get the kernel source

NullHead
September 24th, 2008, 03:55 PM
Well each distro downloads the latest kernel source files from http://kernel.org and makes a custom build of the kernel to better suit their needs for the specific version of distro they're building.

perlluver
September 24th, 2008, 03:55 PM
I'm pretty sure the kernel is optimized for Ubuntu.

Indeed it is, Ubuntu adds over 100 lines to the Kernel, the other distros, do the same, even Slackware adds some things to the Kernel. So in closing they are all based off of the Linux Kernel, but optimized for the particular system.

SunnyRabbiera
September 24th, 2008, 03:56 PM
Well typically most distros carry the same kernel, but do different things with it.
Most modify the kernel to their needs, like Mandriva, Redhat Ubuntu.
But distros like mint dont modify the kernel much if at all as they are spin off distros.
The kernel in mint is the same as the one in Ubuntum its what is pre packaged that makes it different.
But from what I see most modern distros use the same base kernel, its how they modify it that matters.

fourthofjuly
September 24th, 2008, 04:06 PM
thanks, think i get it,

how about the second part of my question?

where are the kernel lines of codes located on my system?

PmDematagoda
September 24th, 2008, 04:20 PM
thanks, think i get it,

how about the second part of my question?

where are the kernel lines of codes located on my system?

If you mean the source, it isn't included by default. However you can download the vanilla linux source from here (http://www.kernel.org/pub/linux/kernel/v2.6/) and extract it to where ever you wish and then start hacking, or you can install the source of Ubuntu's kernel with:-

sudo apt-get install linux-source-2.6.24
The source can then be found in /usr/src/linux-2.6.24/.