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 04-14-2006, 12:23 PM   #1
deadseasquirrel
LQ Newbie
 
Registered: Apr 2003
Distribution: Fedora Core 4
Posts: 21

Rep: Reputation: 15
What is installing the kernel source?


I'm trying to install a new Nvidia driver in my Fedora Core 5 box. And it is tellling me that I need to re-compile my kernel source, I have no idea what that means, but I think it means I have to copy the source file somewhere and put it in usr/src directory with some sort of symbolic link. And somebody just explain to me what the details are and what it's all about and how I would go about "installing" the kernel source so that I can proceed with this installation. Thank you.
 
Old 04-14-2006, 12:27 PM   #2
SlackerDex
Member
 
Registered: Mar 2006
Location: localdomain.localhost
Distribution: Arch-0.7.2, Slack-11.0
Posts: 56

Rep: Reputation: 15
It means just that, you have to recompile your kernel(I think). Head to the kernel directory and configure your kernel to include the Nvidia Driver (make xconfig ; make gconfig) then do a make bzImage ; make modules ; make modules_install, copy the bzImage(vmlinuz-2.x) and the System.map(System.map-2.x) and Config(Config-2.x) to boot and do symbolic links to System.map and config. All that is left is to update your bootloader.

Last edited by SlackerDex; 04-14-2006 at 01:01 PM.
 
Old 04-14-2006, 12:56 PM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You don't need to recompile the kernel. Installing the kernel source means exactly that, installing the package that contains the source code for the kernel you're running. Not sure how to do this specifically in Fedora, but I imagine you can get the package (which is probably called kernel-source-<version>, or similar) via YUM or perhaps it's included on your CDs. Edit: you'll possibly need the kernel headers package installed as well.

Last edited by Nylex; 04-14-2006 at 01:00 PM.
 
Old 04-14-2006, 04:39 PM   #4
Dragineez
Member
 
Registered: Oct 2005
Location: Annapolis
Distribution: Ubuntu
Posts: 275

Rep: Reputation: 32
What He Said

Nylex is right, you don't need to recompile the kernel - just get the kernel source. The nVidia installer will quite merrily compile the kernel module you need, but you need the compiler and the kernel source to do it. You probably have the compiler, or the installer would have complained about that first.

yum install kernel-source-`uname -r`
yum install kernel-dev-`uname -r`

I think will work.
 
Old 04-14-2006, 08:57 PM   #5
deadseasquirrel
LQ Newbie
 
Registered: Apr 2003
Distribution: Fedora Core 4
Posts: 21

Original Poster
Rep: Reputation: 15
Ok I'm a real newbie...so I was under the impression that I would have to copy over some .rpm and .h file over to a specific directory from one of my installation disc. But where do I do that? I am trying to find where all the .rpms are and I can't. This may seem simple but I'm still trying to understand the fundamentals of linux. can somebody give me a little more hand holding? I just tried the commands above and it seems like it is looking for the header file.

"Please ask your sysadmin to update the headers on this system"
 
Old 04-15-2006, 01:00 AM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Did you try running them as root?
 
Old 04-15-2006, 01:27 AM   #7
Jzarecta
Member
 
Registered: Dec 2005
Location: Villahermosa, Bucharest, Birminham, Brooklyn, Beverly
Distribution: Mandriva
Posts: 118

Rep: Reputation: 15
Quote:
Originally Posted by deadseasquirrel
Ok I'm a real newbie...so I was under the impression that I would have to copy over some .rpm and .h file over to a specific directory from one of my installation disc. But where do I do that? I am trying to find where all the .rpms are and I can't. This may seem simple but I'm still trying to understand the fundamentals of linux. can somebody give me a little more hand holding? I just tried the commands above and it seems like it is looking for the header file.

"Please ask your sysadmin to update the headers on this system"
As a regular user you cant install software, that means no rpm nor tar.gz. You need to be root to do this.

downloading the kernel-sources-....rpm

Becoming root you will need the command 'su', open a terminal and type su, then put the password from root. And finally use the command to install the rpm.

rpm -ivh kernel-sources....rpm

This will install the package
 
Old 04-16-2006, 03:57 AM   #8
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Even after getting that far, it seems that Nvidia drivers might not work with your FC5 distro.
 
Old 04-29-2006, 06:43 AM   #9
deadseasquirrel
LQ Newbie
 
Registered: Apr 2003
Distribution: Fedora Core 4
Posts: 21

Original Poster
Rep: Reputation: 15
I typed exactly that "yum install kernel-source-`uname -r`" and it looked like it did install something but still when I try to install the nvidia drivers it complains. I'm not sure where to look to see if the kernel source installed and I've searched quite a bit for this task and I still can't figure it out.

Last edited by deadseasquirrel; 04-29-2006 at 06:49 AM.
 
Old 04-29-2006, 06:52 AM   #10
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Add the livna repo to your yum sources. Instructions for adding the repo are available here. After thats done, use yum or yumex to install the driver.
 
  


Reply

Tags
installation, kernel, root, rpm


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
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
Installing kernel source on 9.2 linux_noob_21 Mandriva 1 04-22-2005 04:50 PM
installing kernel-source Neomorpheus Debian 4 02-10-2005 12:34 PM
Installing Kernel Source with 10.1 dolphans1 Mandriva 30 10-25-2004 10:19 AM
Installing Kernel Source GeoffC Mandriva 3 08-27-2003 07:01 PM


All times are GMT -5. The time now is 03:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration