LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 08-23-2004, 04:26 AM   #1
doctorwebbox
Member
 
Registered: Jun 2003
Location: Rotherham, South Yorkshire, England
Distribution: Debian
Posts: 117

Rep: Reputation: 15
NVIDIA Drivers on Debian


I have installed many distros on my home machine and set up my Nvidia card from scratch many times.

I have had Debian running now for a month and still haven't managed to get the nvidia installer to run. It keeps returning errors telling me I don't have the correct header files. I have tried everything I can think of. I am running the 2.6.7-1-386 kernel and have the corresponding headers package installed but no good.

I have tried adding --kernel-source-path /usr/src/kernel-headers-2.6.7-1-386 but it tells me that /usr/src/kernel-headers-2.6.7-1-386/include/linux/kernel.h does not exist but it definately does.

This is driving me mad - can anyone help?
 
Old 08-23-2004, 05:14 AM   #2
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
download the drivers from the nvidia site stick them in your root directory and run the install from there. you do have to change the /etc/X11/XF98Config-4 file though so read the readme.
 
Old 08-23-2004, 06:54 AM   #3
doctorwebbox
Member
 
Registered: Jun 2003
Location: Rotherham, South Yorkshire, England
Distribution: Debian
Posts: 117

Original Poster
Rep: Reputation: 15
Done that

I have the installer and have been running it in roots home folder. The problem is that it tells me I don't have the header files and I do and have told it exaclty where they are.
 
Old 08-23-2004, 07:12 AM   #4
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
you shouldnt have to tell it where anything is. did you read the readme?

whats the name of the file you downloaded from the nvidia site?
 
Old 08-23-2004, 08:16 AM   #5
vrln
Member
 
Registered: Mar 2004
Location: Finland
Distribution: Gentoo
Posts: 235

Rep: Reputation: 30
try installing these packages:

kernel-headers-yourkernelversion
kernel-source-yourkernelversion
linux-kernel-headers

I'm not sure if linux-kernel-headers/source is even needed, it should work with just the kernel-headers-yourkernelversion package.
 
Old 08-23-2004, 10:22 AM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Re: NVIDIA Drivers on Debian

Quote:
Originally posted by doctorwebbox
I have installed many distros on my home machine and set up my Nvidia card from scratch many times.

I have had Debian running now for a month and still haven't managed to get the nvidia installer to run. It keeps returning errors telling me I don't have the correct header files. I have tried everything I can think of. I am running the 2.6.7-1-386 kernel and have the corresponding headers package installed but no good.

I have tried adding --kernel-source-path /usr/src/kernel-headers-2.6.7-1-386 but it tells me that /usr/src/kernel-headers-2.6.7-1-386/include/linux/kernel.h does not exist but it definately does.

This is driving me mad - can anyone help?
A couple of ideas.

ln -s /usr/src/kernel-headers-2.6.7-1-386 /usr/src/linux

To link the headers to the directory the Nvidia installer is looking for if this does not work then.

ln -sf /usr/src/kernel-headers-2.6.7-1-386 /lib/modules/2.6.7-1-386/build

If this one does not work then have you ever built a kernel before? With your fully configured source tree installed and the link for /usr/src/linux pointing to it, this will work without problems. A guide to doing it if you want to go this route.

http://newbiedoc.sourceforge.net/system/kernel-pkg.html
 
Old 08-23-2004, 02:03 PM   #7
BaptismOfFire
Member
 
Registered: Aug 2004
Posts: 107

Rep: Reputation: 15
often a good thing to do when downloading kernel headers (and other stuff (in my LIMITED experience)) is to replace the version number with the command

`uname -r`

Note that those are backticks that have been used, not apostrophees (sp).

an example would be

apt-get install kernel-headers-`uname -r`

that last command automatically queries the kernel and downloads the the correct files (in this case headers) for your version.

I believe (from memory) that `uname -r` can also be replaced with

$(uname -r)

From memory, either encasing the command with backticks, or $() automatically runs the envclosed file.

That should make sure you have the correct headers.

Now as to the driver, this can be difficult, as apperently Debian and nVidia cannot agree on file locations. Try following the instructions here...

http://tinyplanet.ca/~lsorense/debia...-dri-howto.txt

Now these didn't help me too much (note I was trying to follow these instructions BEFORE I had installed x-window-system). Even after X was installed, this set of instructions didn't seem to work, however the nvidia installer (6111) did work where as (6106 i think) didn't. Please note that at least one person on these forums has followed these instructions (see here)and they have managed to install their graphics card by doing so, where the nvidia installer failed. Hope this helps.
 
  


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
XF86Config-4, Debian, nVidia Drivers WiteOut Linux - Newbie 6 11-02-2005 11:04 PM
nVidia Drivers + Debian Sarge... Tsumeone Debian 5 08-28-2004 11:33 AM
best way to update nvidia drivers in debian gonus Debian 34 08-13-2004 09:19 PM
NVidia drivers in Debian 3.0 r2 morrolan Linux - Newbie 5 12-28-2003 01:27 PM
Nvidia drivers on debian - GeForce4 jymden Linux - Hardware 4 03-23-2003 11:16 AM


All times are GMT -5. The time now is 11:03 PM.

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