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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-29-2005, 03:10 PM
|
#1
|
|
LQ Newbie
Registered: Aug 2005
Distribution: Fedora Core 4
Posts: 7
Rep:
|
Q: install kernel source code
Hello all,
This is my first post to Linux Questions so I hope this is going in the correct forum...
I just installed FC4 on my Dell 5150 laptop. It seems to work fine, expect for the standard problem of the nvidia graphics card not wanting to play ball with the kernel.
To fix the prob, I downloaded the nvidia-installer program. This requires a copy of the kernel source files in order to build the kernel-interface which (as I understand it) interacts with the kernel and allows me full resolution graphics.
So, the simple problem is: How do I install the kernel source files? I have the four FC4 discs and feel sure they're on one of them, but I simply don't know how to deal with RPMS in any clever fashion... I'm assuming one can extract the source files from the RPM, I just don't know how. Any help please?
Gracias,
Richard
|
|
|
|
08-29-2005, 03:25 PM
|
#2
|
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,479
Rep: 
|
First run (from terminal):
uname -a
You get something like
Quote:
|
Linux mara 2.6.13 #1 Mon Aug 29 12:18:43 EST 2004 i686 GNU/Linux
|
The bolded number is kernel version. Now look into your cds and you should have a package kernel-version.rpm. Install it. That's all you need to do.
Last edited by Mara; 08-29-2005 at 03:27 PM.
|
|
|
|
08-29-2005, 03:33 PM
|
#3
|
|
LQ Newbie
Registered: Aug 2005
Distribution: Fedora Core 4
Posts: 7
Original Poster
Rep:
|
Thanks a lot for the response.
I install the kernel-version.rpm with a command like:
Code:
rpm -Ivh kernel-version.rpm
correct? I'll read the man page...
That'll place the source files on disc. Why don't they get put on as standard?
Thanks again.
|
|
|
|
08-29-2005, 03:38 PM
|
#4
|
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,479
Rep: 
|
In fact you need to replace 'version' with the corect version from uname, but I understand you know it.
The file is not installed because it's very big and not many people need it in fact. I can agree, however, that if you're installing on a 20GB disk or so it may be installed by default 
|
|
|
|
08-29-2005, 04:33 PM
|
#5
|
|
LQ Newbie
Registered: Aug 2005
Distribution: Fedora Core 4
Posts: 7
Original Poster
Rep:
|
Yes I used the kernel-`uname -r` rpm... the problem now is that it says the package is already installed (this must be true of course since I'm actually using that kernel!).
The situation is:
The directory /lib/modules/`uname -r`/build/
is a broken link to someother directory, while the directory
/lib/modules/`uname -r`/source/
is a link to the build/ directory (i.e. also a broken link).
Therefore the nvidia installer can't access the source code when it looks in these locations since it doesn't exist!
Can you please tell me a way to get the source files of the kernel then, and not just install the kernel "package", which IS already installed.
Thanks a lot,
Tux136
|
|
|
|
08-29-2005, 07:02 PM
|
#6
|
|
Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
To install nvidia drivers on FC4, you need to install the kernel devel package and disable selinux. e.g.
Code:
#yum install kernel-devel
#setenforce 0
#./NVIDIA-Linux-x86-1.0-7676-pkg1.run
|
|
|
|
08-30-2005, 07:31 AM
|
#7
|
|
LQ Newbie
Registered: Aug 2005
Distribution: Fedora Core 4
Posts: 7
Original Poster
Rep:
|
Is the kernel-devel the same as the kernel-source rpm then? I should've thought not...
I've downloaded the following file:
kernel-2.6.11-1.1369_FC4.src.rpm
but when I do a
Code:
rpm -Vp kernel-2.6.11-1.1369_FC4.src.rpm
I end up with this result:
Code:
error: kernel-2.6.11-1.1369_FC4.src.rpm: V3 DSA signature: BAD, key ID 4f2a6fd2
don't know what that means. Can someone please explain?
Tux136
|
|
|
|
08-30-2005, 09:32 AM
|
#8
|
|
Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Did you bother reading my post. If you had you would have solved your problem already.
|
|
|
|
08-30-2005, 09:38 AM
|
#9
|
|
LQ Newbie
Registered: Aug 2005
Distribution: Fedora Core 4
Posts: 7
Original Poster
Rep:
|
Yes I read it. Thank you, you have been very helpful.
Concerning last post: Don't get your knickers in a twist. I was just experimenting and wanted to know what that error was. Anyway, why the heck call a file "kernel-2.6.11-1.1369_FC4.src.rpm" if you're going to put the source files for the kernel in one called kernel-devel!? I don't understand the thinking behind that.
cheers again.
|
|
|
|
08-30-2005, 09:59 AM
|
#10
|
|
Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
That file is a source rpm that contains the kernel source code for those that want to rebuild it into a binary rpm. Its not the file that you require to build stuff that requires the kernel source package.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:35 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|