LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-03-2011, 08:53 AM   #1
kususe
Member
 
Registered: Oct 2010
Posts: 54

Rep: Reputation: 0
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
 
Old 03-03-2011, 09:45 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Wait, what? What exactly do you mean?
 
Old 03-03-2011, 09:48 AM   #3
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,211

Rep: Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612
Quote:
Originally Posted by kususe View Post
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.
 
Old 03-03-2011, 09:52 AM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Or make menuconfig.
 
Old 03-03-2011, 12:41 PM   #5
Ignotum Per Ignotius
Member
 
Registered: Sep 2009
Location: Wales, UK
Distribution: Slackware, CrunchBang
Posts: 69
Blog Entries: 4

Rep: Reputation: 42
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.
 
Old 03-03-2011, 01:31 PM   #6
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.
 
Old 03-04-2011, 04:54 AM   #7
kususe
Member
 
Registered: Oct 2010
Posts: 54

Original Poster
Rep: Reputation: 0
Thanks.
Solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Config 2.6.36.1 kernel (from kernel.org) using CentOS 5.4 x86_64 kernel .config whitewolf573 Linux - Kernel 2 12-11-2010 08:33 AM
Linux Kernel config file mazzus Linux - General 2 05-13-2007 11:22 PM
where is Linux Kernel Config after install? mudelf Linux - General 5 01-29-2004 04:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration