LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-19-2006, 08:23 PM   #1
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK - South Coast.
Distribution: Ubuntu (usually the latest....)
Posts: 2,672
Blog Entries: 9

Rep: Reputation: 45
nvidia driver and mega stress!


Originally kanotix install, but done the various available updates (well as far as I can get anyway).

So, I've got the newest kernel that synaptic is showing me (for unstable/testing) i.e. 2.6.17-2-686

I've also installed the kernel-headers for it (and the kernel-source-2.6.17 package which has been untarred).

I've downloaded the nvidia driver (8762) from www.nvidia.com - If I try to install this in the traditional way (with the nvidia installer), I get errored out with
Quote:
'/lib/modules/2.6.17-2-686/build/include/linux/kernel.h
being missing. I've just checked in konqueror and it now says that thats missing/no longer available (even though the folder is still there).

The nvidia driver installer also continues to tell me that the
Quote:
kernel source path to '/lib/modules/2.6.17-2-686/build
is incorrect.

So obviously I have to do something about this, but what?

I've been reading stuff for hours, and tried various possible solutions - though none of them seem to address the missing lib/modules/2.6.17-2-686 etc etc.

Is it possible that someone can advise me how to do this please?

regards

John

p.s. Oh and yes, the kernel version is a pre-compiled one downloaded/installed via synaptic (got the German sources for unstable/testing in sources.list as it was originally a kanotix install)
 
Old 08-19-2006, 11:36 PM   #2
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,190

Rep: Reputation: 159Reputation: 159
In Etch/Sid, install it like this:
sh NVIDIA-Linux-x86-1.0-8756-pkg1.run --x-module-path=/usr/lib/xorg/modules
...worked for me.

Last edited by jens; 08-19-2006 at 11:39 PM.
 
Old 08-20-2006, 12:01 AM   #3
beagle2
Member
 
Registered: Aug 2004
Location: Aberdeen Scotland
Distribution: elive,sidux,xp,pclinuxos super gamer, mandriva 2007
Posts: 417

Rep: Reputation: 30
This may help - http://www.kanotix.de/FAQ-id_cat-15.html#q109 , howto update kernel and install nvidia using kano's excellent scripts.
 
Old 08-20-2006, 12:04 AM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Try using the module-assistant package to install the driver with something like.

Code:
m-a prepare
m-a a-i -t -i  -f nvidia
Making sure that you have non-free in your sources.list.
 
Old 08-20-2006, 12:11 AM   #5
JackieBrown
Member
 
Registered: Dec 2004
Location: San Antonio, TX
Distribution: Debian-AMD64 Sid
Posts: 481

Rep: Reputation: 31
don't even have to do all that.

just run module-assistant

you will get a list of modules to make. Nvidia is one of the choices.

I just ran it about 10 minutes ago.
 
Old 08-20-2006, 09:49 AM   #6
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK - South Coast.
Distribution: Ubuntu (usually the latest....)
Posts: 2,672
Blog Entries: 9

Original Poster
Rep: Reputation: 45
Thankyou all for you replies.

The problem still exists. Whatever I do, it keeps returning to the missing kernel.h file I mentioned in my first post.

A quick visit to konqueror showed me this

file:///usr/include/linux/kernel.h
file:///usr/src/linux-headers-2.6.14-kanotix-9/include/config/debug/kernel.h
file:///usr/src/linux-headers-2.6.14-kanotix-9/include/config/lock/kernel.h
file:///usr/src/linux-headers-2.6.14-kanotix-9/include/linux/kernel.h
file:///usr/src/linux-headers-2.6.17-2-686/include/config/debug/kernel.h
file:///usr/src/linux-headers-2.6.17-2-686/include/config/lock/kernel.h
file:///usr/src/linux-headers-2.6.17-2-686/include/linux/kernel.h (this one is
an empty link)
file:///usr/src/linux-source-2.6.17/include/linux/kernel.h

I'm guessing that the top 3 can be discounted as they refer to the old kernel
version, the next 3 can also be discounted as they are the debug, lock and
the empty link, which leaves me with the last one.

Now that is the linux-source, so I don't know what to do with it from there
(apart from going to the synaptic listing again to see if theres a
linux-headers package that I may have missed).

Or is it that I need to link the
original /lib/modules/2.6.17-2-686............../kernel.h that the nvidia
driver can't find to
the /usr/src/linux-source-2.6.17/include/linux/kernel.h ?

I don't really understand if they (the missing lib/modules.........kernel.h and the one that showed up in konqueror as /usr/src............kernel.h) are actually the same file that sometimes gets copied to different locations for various possible reasons? or whether it would normally be the case that the file is in one place and gets linked to everywhere else?

regards

John

p.s. and yes, I'll go back and read that link posted by beagle2 again - I have been trying to sort this with the install_nvidia_debian.sh script but currently to no avail (actually I now can't even re install the bloody driver under the original kanotix kernel version either).
 
Old 08-20-2006, 10:40 AM   #7
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK - South Coast.
Distribution: Ubuntu (usually the latest....)
Posts: 2,672
Blog Entries: 9

Original Poster
Rep: Reputation: 45
cracked it!

beagle2's directions to the kanotix instructions did the trick.

Actually, it meant that I've installed the latest Kanotix kernel as well, rather than just making the debian one that I was trying, work.

Bugger! That means that I'll have to go and read the kanotix website as well.

Damn! this last two and a half days of stress has been one hell of a learning curve (again). I wonder how much of it will sink in!

Thankyou very much, all who posted ideas, suggestions, links and possible solutions. They are very much appreciated. If you're in my "neck of the woods" I'll find time to "stick some beers down your neck"

regards

John
 
Old 08-20-2006, 01:56 PM   #8
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 455Reputation: 455Reputation: 455Reputation: 455Reputation: 455
"Kanotix Manual"
http://linux.kopporama.de/en/km_kanotix.html There is a pdf file you can download as well.

Covers updating kernel, video drivers install, etc.

I would also suggest installing the Kanotix-update-gui, makes doing dist-upgrade and kernel upgrades very simple.
 
Old 08-21-2006, 10:57 AM   #9
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK - South Coast.
Distribution: Ubuntu (usually the latest....)
Posts: 2,672
Blog Entries: 9

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by craigevil
"Kanotix Manual"
http://linux.kopporama.de/en/km_kanotix.html There is a pdf file you can download as well.

Covers updating kernel, video drivers install, etc.

I would also suggest installing the Kanotix-update-gui, makes doing dist-upgrade and kernel upgrades very simple.
Oakey Doakey, that does seem like a damned good idea.

TVM

regards

John
 
Old 09-10-2006, 05:32 PM   #10
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
I found this thread searching for a way to get the 8774 nvidia drivers to compile, so, in an effort to post something that might actually help someone who searches, I'm just going to post what worked for me since it's not here.

this is on a basically fresh install of etch b3 from the netinst cd, installing the base system and desktop system.

When I tried to install the nvidia driver with #sh NVIDIA... , I kept getting the errors about the missing header files. I tried searching synaptic for "kernel-headers" and kept finding nothing.

(at long last!) I found the Notes on installing NVIDIA Linux graphics drivers on recent distributions thread in the nvnews forum. I should have been searching for "linux-headers" !

note that according to Xorg.0.log I have xorg 6.9
Code:
Debian GNU/Linux or Ubuntu with Xorg 7.x

If you wish to install the NVIDIA Linux graphics driver on a Debian GNU/Linux or Ubuntu system
that ships with Xorg 7.x, please ensure that your system meets the following requirements:

    * development tools like make and gcc are installed
    * the linux-headers package matching the installed Linux kernel is installed
    * the pkg-config and xserver-xorg-dev packages are installed
    * the nvidia-glx package has been uninstalled with the --purge option
      and the file /etc/init.d/nvidia-glx does not exist.

If you use Ubuntu, please also ensure that the linux-restricted-modules packages have
been uninstalled.
I don't think any of that stuff was there with just the base and desktop systems. I had found a few threads in my googling that suggested some of these packages, but never the whole deal. nvidia-glx is not installed on etch b3.

after I grabbed those packages it almost let me compile a module, but complained about missing the libc development package. installing libc6-dev did the trick finally and I got my modules compiled.

this ends the part about how I got the damn thing to compile... I'm putting the explanation of how I actually got it working in this thread, because at this point, after modifying my xorg.conf to remove the unwanted modules and enable the nvidia driver instead of vesa, the x server would not start and instead gave me a fancy ncurses menu asking if I wanted to see the log. I did. it said:
Code:
EE) Failed to load module "glx" (module does not exist, 0)
(EE) Failed to load module "nvidia" (module does not exist, 0)
(EE) No devices detected.
if you're getting this error, check out this thread.
 
  


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
help editing xf86config for nvidia geforce mx440 after installing nvidia driver linguist Linux - Newbie 11 06-13-2006 06:31 AM
nvidia legacy driver and nvidia-glx questions darkleaf Linux - Software 6 06-27-2005 02:42 PM
Trouble with new nVidia driver installation...no nvidia logo and KDE no start up mdb Linux - Software 8 08-18-2004 09:45 AM
nvidia fx5600 loads vesa driver instead of nvidia driver saburo62 Linux - Hardware 3 05-04-2004 03:59 PM
kernel 2.6.3--bk8 and NVIDIA-Linux-x86-1.0-5336 video driver from Nvidia zdenkod Linux - Hardware 2 03-09-2004 05:38 AM


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