LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-05-2002, 08:15 PM   #1
David Reid
LQ Newbie
 
Registered: Aug 2002
Posts: 2

Rep: Reputation: 0
Question How can I find/generate a kernel .config file?


Hey,

I am trying to find the .config file for my redhat 7.2 kernel. I have read the documentation and some threads here about where it should be and still can't seem to find it. The redhat customization guide said it should be in /usr/src/linux. I have no such dir I have /usr/src/redhat with subdirs BUILD RPMS SOURCES SPECS SRPMS and tarballs which ls -a shows all to be empty. This may be because I did an ftp install.

As far as generating a .config file I found this:

>After you install the kernel source from the installation cd, you run the >command make oldconfig. If you are using RedHat 7.2, this places the >RedHat default .config file in /usr/src/linux-<kernel version>

Which means I need an appropriate make file in the appropriate dir for the command to work. If someone would help me out here I would greatly appreciate it. I am new to Linux and kernel specifics but I have used unix for a few years.

Thanks in advance,
 
Old 08-05-2002, 09:00 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
if you've installed kernel-source and kernel-headers packages it should be in /usr/src/linux-2.4/configs/ directory just pick the one which corresponds to the output of uname -a
 
Old 08-05-2002, 09:01 PM   #3
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
And I can see that you didn't install kernel-source package (there is no /usr/src/linux-2.4), so go ahead and install it off installation CD's
 
Old 08-06-2002, 06:26 PM   #4
David Reid
LQ Newbie
 
Registered: Aug 2002
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the effort, but I did an ftp installation, so I don't have any CD's. I think what I need is a makefile for 7.2 so that I can run
"make oldconfig" to generate a .config file for my system.
 
Old 08-06-2002, 06:36 PM   #5
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
YUou can always get source directly from http://www.kernel.org
there are also kernel packages available in the rpm format at http://rpmfind.net
but my suggestion is to refrain from installing kernel from rpm.
 
Old 08-08-2002, 06:30 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
David Reid, you can go into your mirrors ftp directory and still install the kernel-source file. As long as you have a decent working network connection you can just d/l it and go that route.
 
  


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
WINE - CONFIG File, can't find it to do first config Hero Doug Linux - Software 1 09-06-2005 12:03 PM
Makefile:66: *** Cannot find a kernel config file. Stop NHBlacklabs Linux - Newbie 7 03-25-2004 05:03 AM
can I find a .config file for mandrake's precompiled kernels? schantz Linux - General 2 12-17-2003 04:47 PM
How do i find the proper linux config file? justinfl General 2 10-09-2003 12:01 AM
RTCW can not find mesalib nor config file Rodcl Linux - Newbie 16 04-24-2002 04:30 PM

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

All times are GMT -5. The time now is 07:54 PM.

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