LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux kernel config (https://www.linuxquestions.org/questions/linux-newbie-8/linux-kernel-config-866223/)

kususe 03-03-2011 08:53 AM

Linux kernel config
 
I want to try to modify my kernel config starting to another kernel config file.
Where can I find it??
I tried using grep command in sources dir, but nothing.
Thanks in advance

corp769 03-03-2011 09:45 AM

Wait, what? What exactly do you mean?

szboardstretcher 03-03-2011 09:48 AM

Quote:

Originally Posted by kususe (Post 4277709)
I want to try to modify my kernel config starting to another kernel config file.
Where can I find it??
I tried using grep command in sources dir, but nothing.
Thanks in advance

/usr/src/linux/.config

You should be careful editing this file directly. You can always do a 'make config' for an interactive question/answer session.

corp769 03-03-2011 09:52 AM

Or make menuconfig.

Ignotum Per Ignotius 03-03-2011 12:41 PM

Or indeed
Code:

make xconfig
if you're in X and want to use the mouse.

As Mr Boardstretcher pointed out, editing a kernel configuration file directly is rather a dicey business: indeed the first line of .config says:

Code:

# Automatically generated make config: don't edit
...Wise advice. :)

theNbomr 03-03-2011 01:31 PM

Usually, the configs for installed kernels are kept in the /boot directory, along with the kernel images. You can use one of those as the basis for a new configuration. The LQ thread What is the difference between 'make oldconfig' and 'make xconfig' seems to explain the details.

--- rod.

kususe 03-04-2011 04:54 AM

Thanks.
Solved.


All times are GMT -5. The time now is 06:57 PM.