Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Sep 2007
    Posts
    164

    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

  2. #2
    Linux User ptkobe's Avatar
    Join Date
    Feb 2008
    Location
    Torres Vedras, PT
    Posts
    276
    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

  3. #3
    Linux Newbie
    Join Date
    Sep 2007
    Posts
    164
    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:
    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>
    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.

    Any ideas?
    kai

  4. #4
    Linux User ptkobe's Avatar
    Join Date
    Feb 2008
    Location
    Torres Vedras, PT
    Posts
    276
    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

  5. #5
    Linux Newbie
    Join Date
    Sep 2007
    Posts
    164
    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

  6. #6
    Just Joined!
    Join Date
    Jul 2011
    Posts
    1
    Hi Kai

    If you're currently running ubuntu, you ought to be able to run
    Code:
    zcat /proc/config.gz
    to display the current kernel .config. To copy that to a file run
    Code:
    zcat /proc/config.gz > ~/Desktop/kernel.config
    .

    HTH

    reid

    edit: to correct spelling mistake in first code box
    Last edited by ottembomb; 07-26-2011 at 12:06 AM. Reason: mispell

  7. #7
    Linux Newbie
    Join Date
    Sep 2007
    Posts
    164
    Hm, I'm running ubuntu 10.04 and there is no config.gz in /proc.
    But thanks for the reply!

    kai

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •