Results 1 to 7 of 7
Hi all,
how can I get the kernel config file for the standard kernel included in ubuntu 10.04?
There are instructions on compiling your own kernel here , but it ...
- 07-18-2011 #1Linux Newbie
- Join Date
- Sep 2007
- Posts
- 162
Howto get the kernel config file for a standard ubuntu kernel
Hi all,
how can I get the kernel config file for the standard kernel included in ubuntu 10.04?
There are instructions on compiling your own kernel here, but it is not clear to me what config file I will be getting if I go through the misc. steps. Plus it seems like a lot of work to simply get the config file.
Is it included in one of the source packages, maybe?
Thanks! kai
- 07-18-2011 #2
I think what you need is explained at https://help.ubuntu.com/community/Kernel/Compile, mainly at "Modify the source for your needs".
Hope it helps
- 07-20-2011 #3Linux Newbie
- Join Date
- Sep 2007
- Posts
- 162
Thanks for the hint.
I install the linux-source package, which gave me a linux-source-...tar.bz2 archive in /usr/src/.
There doesn't seem to be a config file included though:The only config found is a shell script -- my understanding is that this is not what I am looking for in order to diff two kernel configurations.Code::src> bzcat linux-source-2.6.32.tar.bz2 | tar t | grep '\<config\>$' tar: Record size = 8 blocks linux-source-2.6.32/scripts/config :src>
Any ideas?
kai
- 07-20-2011 #4
I think the config files you want are in the directory /usr/src/linux-source-2.6.32/debian.master/config/... (don't know if they are also in the bz2)
The "Modify the source for your needs" talks about it, but I never tried it. Hope you may get a modified config file for your arch from it.
You may also find your actual config in your /boot directory (for instance, /boot/config-2.6.22-14-generic).
Sorry can't help more
Regards
Luis
- 07-20-2011 #5Linux Newbie
- Join Date
- Sep 2007
- Posts
- 162
Thanks, Luis!
There is no debian.master directory, only an ubuntu directory, which however does not contain config files.
Your suggestion to look in the /boot/ directory will help though! So thanks very much.
cheers, kai
- 07-26-2011 #6Just Joined!
- Join Date
- Jul 2011
- Posts
- 1
Hi Kai
If you're currently running ubuntu, you ought to be able to runto display the current kernel .config. To copy that to a file runCode:zcat /proc/config.gz
.Code:zcat /proc/config.gz > ~/Desktop/kernel.config
HTH
reid
edit: to correct spelling mistake in first code boxLast edited by ottembomb; 07-26-2011 at 12:06 AM. Reason: mispell
- 07-26-2011 #7Linux Newbie
- Join Date
- Sep 2007
- Posts
- 162
Hm, I'm running ubuntu 10.04 and there is no config.gz in /proc.
But thanks for the reply!
kai


Reply With Quote