LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-26-2006, 11:03 PM   #1
odiseo77
Senior Member
 
Registered: Dec 2004
Location: Caracas, Venezuela
Distribution: Debian Sid, OpenSUSE 13.1
Posts: 1,016

Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
Question Problem installing the nvidia driver


Hi all, I'm following this howto on installing the nvidia driver on Debian Etch. I installed the linux-source-2.6.15, the linux-headers-2.6.15-1 and the linux-headers-2.6.15-1-686 packages while on rescue mode. Then I ran the nvidia driver installer but I got the following error:

"The kernel header file '/usr/src/linux/include/linux/version.h' does not exist. The most likely reason for this is that the kernel source files in '/usr/src/linux' have not been configured."

Any idea about what might be wrong and how to solve it?
Thanks in advance.
 
Old 03-26-2006, 11:26 PM   #2
Kirmonkey
Member
 
Registered: Jan 2004
Location: UK
Distribution: Debian
Posts: 194

Rep: Reputation: 30
Hey, I did the EXACT same thing this morning with no problems. Here is what I did, it may help...

Download Nvidia binary NVIDIA-Linux-x86-1.0-8178-pkg1.run from the nvidia site (or the most recent version)

open synaptic (if you can) and uninstall anything that mentions nvidia, including kernels

Install the following via synaptic:

linux-headers-2.6.15-1
linux-headers-2.6.15-1-686 (for my machine anyway)
linux-image-2.6.15-686

Press Ctrl+Alt+backspace to kill X (may need to do it more than once)

Code:
$su
*password*
# cp /home/downloads/NVIDIA-Linux-x86-1.0-8178-pkg1.run /usr/local             (or wherever you downloaded to)
# cd /usr/local
# sh NVIDIA-Linux-x86-1.0-8178-pkg1.run
Follow the instructions, don't download the headers, it should compile against the headers you have already installed.

Code:
# reboot
Should work, you can tell if the nvidia logo appears
Also try:

Code:
$ glxgears
I have 1,700fps

Be aware that you current issue may be related to your grub configuration

Code:
su
$ *password*
# gedit /boot/grub/menu.lst
And have a root around there

Post back if you have continuing problems, I found it a little tricky at first
 
Old 03-26-2006, 11:54 PM   #3
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
If you have a custom kernel, did you also build and install the kernel headers for your kernel?
If not, you may need to update your kernel to match the linux-headers you just installed.
You can run
cd /usr/src/<linux src dir> && cp /boot/config-`uname -r` ./.config && make oldconfig
to configure you kernel source tree

If you are just running a kernel from the repository, nvidia-kernel-2.6.15-1-686 and nvidia-glx is all you need.


The Debian Way:
apt-get install nvidia-kernel-source module-assistant build-essential nvidia-glx nvidia-kernel-common
m-a a-i nvidia
dpkg-reconfigure xserver-xorg

Last edited by dracae; 03-26-2006 at 11:58 PM.
 
Old 03-27-2006, 01:32 AM   #4
Kirmonkey
Member
 
Registered: Jan 2004
Location: UK
Distribution: Debian
Posts: 194

Rep: Reputation: 30
dracae seems to be in the know, follow their suggestion before mine, makes kernel updates simpler?
 
Old 03-27-2006, 07:59 AM   #5
odiseo77
Senior Member
 
Registered: Dec 2004
Location: Caracas, Venezuela
Distribution: Debian Sid, OpenSUSE 13.1
Posts: 1,016

Original Poster
Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
ok, this is weird, I ran 'cd /usr/src/linux-source-2.6.15 && cp /boot/config-2.6.15-1-486 ./.config && make oldconfig' as root, but I got the following error: "bash:Permission denied", so I did it step by step with no problems. Then I changed directory to '/usr/src/linux/include/linux' but still there's no the 'version.h' file there.

I tried the debian way but i got: 'Cannot find the package nvidia-kernel-source'(I also looked the nvidia-glx package in synaptic but I didn't find it). Which repository should I add to my sources.list to download these packages??
Thanks for your help.
 
Old 03-27-2006, 09:25 AM   #6
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
It is in non-free
 
Old 03-27-2006, 10:16 AM   #7
knobby67
Member
 
Registered: Mar 2006
Posts: 545

Rep: Reputation: 42
I had the same problem. I had to download the kernel source. Then compile it, in /usr/src (if I told it to compile to a diffrent directory it caused problems something to do with not being on the correct path I think). Then install x-windows don't run, then install the nvidia driver.

So

1. download and unzip kernel to /usr/src
2. do all the make,menuconfig,installmodules
3. apt-get x-windows-system (? think thats the file name)
4. install the driver.
5 then startx
 
Old 03-27-2006, 12:09 PM   #8
odiseo77
Senior Member
 
Registered: Dec 2004
Location: Caracas, Venezuela
Distribution: Debian Sid, OpenSUSE 13.1
Posts: 1,016

Original Poster
Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
Thumbs up

Done! I added the non-free and contrib repositories to my sources.list and installed the driver "the debian way". It's working fine now.
Thank you all for your help.
 
  


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
Problem installing nvidia driver on FC5 waggy401 Fedora 14 03-23-2006 10:58 PM
Problem installing nvidia driver! stofferthebest Linux - General 10 03-19-2006 12:54 AM
Shutdown problem after installing nVidia driver Gaspar Suse/Novell 2 02-03-2006 05:47 PM
Problem installing NVidia driver 6629 on linux 2.6.11 punx120 Debian 2 03-03-2005 06:52 AM
Problem after installing nvidia driver RobertoBech Mandriva 3 12-17-2003 12:50 PM


All times are GMT -5. The time now is 03:06 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