LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-20-2007, 07:50 AM   #1
gejr
Member
 
Registered: Apr 2006
Posts: 53

Rep: Reputation: 15
Newbie needs help installing nvidia drivers


I'm a below average Linux newb, so please bare with me.
I have just installed Sabayon linux and I'm struggling with getting my XFX GeForce 8800GTS to work. I have tried following this guide:
-http://www.sabayonlinux.org/wiki/index.php?title=HOWTO:_Get_Ati_or_Nvidia_Video_Cards_working_in_Sabayon

However when I type "emerge =gentoo-sources-2.6.18" I get "failed: Name or service not known" a lot of times and it stops with "!!! Couldn't download 'genpatches-2.6.18-1.base.tar.bz2'. Aborting."

I've also tried following this one: http://gentoo-wiki.com/HOWTO_nVidia_Drivers

But I get to the part where I'm supposed to configure the kernel. (eselect kernel list)

There's no files in my /usr/src/linux...heck I don't even have that directory, only /usr/src/

So..what do you reckon I'd do next?
 
Old 03-20-2007, 08:48 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
I'm not yet familiar with Sabayon, but I plan to try it very soon, it looks very cool Also, I don't really understand the 'emerge' method of software upgrades/installations.
I do however have an nVidia card, and have tried (and currently am still helping someone) helping folks get them working.
Here's just a tip or 2 to help get you started. Hopefully it helps a little bit.

The file /usr/src/linux is usually a symlink, not an actual folder. When it exists, it points to the location where the source-code for your running kernel resides.
Perhaps you have a folder called /usr/src/linux-2.6.xx or something similar? I'm not sure what kernel Sabayon comes with, but the folder would be in /usr/src/ and would be named the same as the kernel.
The idea with the emerge and other nVidia driver installers is usually that the installer 'builds' the driver and installs it as a module into the folder /lib/modules/<your-kernel-name>/drivers/video/
If you can determine that your kernel-source is actually there somewhere in /usr/src, then you should try creating the symlink in /usr/src/ and point it at the kernel-source folder. If you do NOT have the source-code for your kernel, you will have to use whatever updater thing Sabayon has, or some other means, of downloading/installing the kernel source, before running the nVidia installer.
 
Old 03-20-2007, 09:03 AM   #3
gejr
Member
 
Registered: Apr 2006
Posts: 53

Original Poster
Rep: Reputation: 15
Thank you for an informative reply. I haven't got anything in my /usr/src/ directory except for 3 files called ".config", ".keep" and "nvidia-bug-report.log."

So I guess I would have to go and download the kernel sources somewhere. uname -r says: "2.6.18-gentoo-r5" so that's probably the one I need sources for.

God knows where..:/
 
Old 03-20-2007, 09:08 AM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Hmm, yes well, that would indeed be the right file. As to where to get it, I'm sorry, but I don't know what the story is on the Gentoo repositories or package managers, or how it works..
I'll bet someone around here does though, perhaps you should try another forum here that is similar to Gentoo/Sabayon? Also, keep the .config file, as that is very likely the kernel-config of your installed kernel.
I'm certain you can get the kernel-source you need from wherever it is that updates your distro though.
Have you looked on the install disk by chance?
Another idea would be to use your file-browser (Konqueror or whatever it is) and search the installation, and see if you can locate that source-file. Search for something like *2.6.18-gentoo*

Last edited by GrapefruiTgirl; 03-20-2007 at 09:10 AM.
 
Old 03-20-2007, 09:19 AM   #5
gejr
Member
 
Registered: Apr 2006
Posts: 53

Original Poster
Rep: Reputation: 15
in ubuntu I'd use locate/updatedb to find files but here locate gives me an error:
"locate: fatal error: Cold not find user database `/var/lib/slocate/slocate.db`: No such file or directory

So I have to get into the GUI again to be able to search.
 
Old 03-20-2007, 09:27 AM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
not really. type 'man find' and read up on using the find command

It's pretty quick.

Probably something like 'find / *kernel-filename*

or something like that.
 
Old 03-20-2007, 09:32 AM   #7
gejr
Member
 
Registered: Apr 2006
Posts: 53

Original Poster
Rep: Reputation: 15
localhost ~ # man find
Cannot open the message catalog "man" for locale "nb_NO.UTF-8"
(NLSPATH="<none>")

No manual entry for find

I don't care if the manual isn't in Norwegian!

hah..I'm in deep sh*t.
 
Old 03-20-2007, 09:37 AM   #8
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
lol.. hmm <thinking..>

have you tried using MC?
type mc in a console. I think Midnight Commander has a search function.
 
Old 03-20-2007, 09:51 AM   #9
gejr
Member
 
Registered: Apr 2006
Posts: 53

Original Poster
Rep: Reputation: 15
aight..installed mc now. It's searching..thanks for helping me through this.
 
Old 03-20-2007, 09:57 AM   #10
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
No problem I hope it all comes together in the end. Then you'll be able to help someone do the same thing next time
 
Old 03-20-2007, 09:59 AM   #11
gejr
Member
 
Registered: Apr 2006
Posts: 53

Original Poster
Rep: Reputation: 15
i found a link called /lib/modules/2.6.18-gentoo-r5/source which points to /usr/src/linux-2.6.18-gentoo-r5

Funky considering that directory doesn't even exist, far less has a source placed in it.

I suppose I somehow need to put the kernel sources there.
 
Old 03-20-2007, 10:33 AM   #12
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Hmm.. That's weird.. The link you found usually points to /lib/modules/<kernel-name>..
Oh well, anyhow, Yes I agree, /usr/src/linux-2.6.18-gentoo-r5 should hold the kernel source.

Have you figured out how to auto-get it? Or like, download it somehow using the package manager?
And, check that the source isn't already on teh install disk, maybe in /extra or something like that.
If it isn't you can download it manually from any kernel repository, just check XX.kernel.org, where XX= your country code, like us.kernel.org for united states.
Or use Google to locate a source for kernel downloads. It will be a .tgz or bz2 or RMP package.

Last edited by GrapefruiTgirl; 03-20-2007 at 10:36 AM.
 
Old 03-20-2007, 10:52 AM   #13
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
http://www.no.kernel.org/pub/linux/kernel/v2.6/

Not sure if 2.6.18.5 would be the same as 2.6.18-gentoo-r5, but if it is, you can get it from this link.

You may want to have a look on the Sabayon site or forum, and see if there's any info there about this.
 
Old 03-20-2007, 12:23 PM   #14
gejr
Member
 
Registered: Apr 2006
Posts: 53

Original Poster
Rep: Reputation: 15
Sorry for not having given feedback for a while. I've managed to get the sources now. They're in /usr/src/linux/linux-2.6.18-gentoo

/usr/src/linux has become a symlink to that directory.

I've run the steps in this howto: http://www.sabayonlinux.org/wiki/ind...ing_in_Sabayon

I get an error when running emerge nvidia-drivers though:

make[3]: scripts/mod/modpost: Command not found
make[3]: *** [__modpost] Error 127
NVIDIA: left KBUILD.
nvidia.ko failer to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2

!!! Unable to make

blah blah blah..something like this.
 
Old 03-20-2007, 12:50 PM   #15
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Hm, seems weird, like there's a bunch of very basic stuff, not included with that OS.

Great that you got the source that's step one!
(oh, I went to have a nap, lol, didn't even notice you were missing!)
OK, explain this 'emerge' to me.. Basically, is that how you build stuff with gentoo/Sabayon?
And were you doing the emerging as root user?

Last edited by GrapefruiTgirl; 03-20-2007 at 12:54 PM.
 
  


Reply



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
UNinstalling proprietry mandriva nVidia drivers and installing new nVidia drivers deathman Linux - Hardware 3 11-18-2006 05:10 AM
Installing nvidia drivers from nvidia website on mepis 3.3 xbennyboy Linux - Hardware 4 04-23-2005 09:19 AM
newbie> nvidia drivers: failed to.. and x won't start mandrakemikael Linux - Software 10 08-31-2004 04:25 AM
MDK10, installing NVIDIA drivers (newbie) Arbitor Linux - Hardware 8 04-12-2004 11:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:04 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
Open Source Consulting | Domain Registration