LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-29-2004, 12:12 PM   #1
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Rep: Reputation: 30
best way to update nvidia drivers in debian


Hello all. I have instlaled debian on my main pc. Previously it was xandros which was based off of debain so I figured I would move to the real thing. I need to install the nvidia drivers. I have downloaded the latest and greatest. Now I need to install them.

I was planning on installing them the old way just sh NV etc but I was wondering if there was a better way to do it with debian. SuSe can update the drivers so I figured debain may have something like that.

If I need to do it the old way how can i get to boot with out going to x. When I run the driver in failsafe mode it says i need the source kernel. Where can I get this? I have done the internet sarge install.

Is the source kernel problem exsisting because i am trying in fail safe mode?

thanx
 
Old 07-29-2004, 01:39 PM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Add a line like this to your /etc/apt/sources.list;
deb-src http://ftp.uk.debian.org/debian/ testing main non-free contrib
Then apt-get update and then find the relevant source for your kernel and apt-get install it. To go into command line - at the kde login select menu and do consol login.
 
Old 07-29-2004, 05:29 PM   #3
rickenbacherus
Member
 
Registered: Mar 2003
Location: colorado springs. colorado
Distribution: Debian-Sid 2.6.24-rt1
Posts: 290

Rep: Reputation: 30
The easiest way I know of to install nvidia drivers is with a script from Kano found here:

http://kanotix.com/files/

wget http://kanotix.com/files/install-nvidia-6106-debian.sh
chmod +x install-nvidia-6106-debian.sh
CTRL+ALT+F1
su
/home/username/install-nvidia-6106-debian.sh

It will stop X, download the driver and build the it against your kernel source. Of course your kernel source needs to be in /usr/src/

Be sure to keep that script so that the next time you build a new kernel simply boot the new kernel and rerun the script.

BTW these scripts work with any Debian installation as well as Kanotix.
 
Old 07-29-2004, 07:40 PM   #4
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Original Poster
Rep: Reputation: 30
So i did apt-get update and i see the one i think i need

Hit ftp://debian.crosslink.net testing/main Sources

now how would i install this?

Please remember i am completely new to apt-get. (debian in genreal actually.)


gonus
 
Old 07-29-2004, 07:58 PM   #5
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Original Poster
Rep: Reputation: 30
oh I got the script I just need to know hwo to get that source thing. thanx all.
 
Old 07-29-2004, 08:04 PM   #6
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Quote:
gonus
Member

Registered: Apr 2002
Location: near australia
Distribution: Suse 8.1
Posts: 344
HCL Entries: 0
Reviews: 0

Today 10:12
Quote:
gonus
Member

Registered: Apr 2002
Location: near australia
Distribution: Suse 8.1
Posts: 344
HCL Entries: 0
Reviews: 0

Today 17:40
If you were using Slackware, it would only take 15 min or less to update that driver...........NOT 7 hours..........LOL
 
Old 07-30-2004, 02:21 AM   #7
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Quote:
Originally posted by gonus
So i did apt-get update and i see the one i think i need

Hit ftp://debian.crosslink.net testing/main Sources

now how would i install this?

Please remember i am completely new to apt-get. (debian in genreal actually.)


gonus
apt-get install src_file_name.deb

Make sure it has been placed in /usr/src and then soft link the .../linux file to /usr/include/linux e.g. if the file is /usr/src/kernel_version_src/linux do ln -s /usr/src/kernel_version_src/linux /usr/include/linux. I personally create the header file from the source and then use the header file.
 
Old 07-30-2004, 10:25 AM   #8
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Original Poster
Rep: Reputation: 30
Ok here is were i am now. I do apt-get update and get this

Get:1 http://ftp.debian.org testing/main Packages [3023kB]
Hit http://security.debian.org stable/updates/main Packages
Hit http://security.debian.org stable/updates/main Release
Get:2 http://ftp.debian.org testing/main Release [81B]
Get:3 http://ftp.debian.org testing/main Sources [1187kB]
Get:4 http://ftp.debian.org testing/main Release [83B]

from here I am lost. What do i do to get my kernal source?
 
Old 07-30-2004, 11:20 AM   #9
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
It sounds like you are not really comfortable with the command line yet so I suggest installing synaptic which is a gui for apt. do apt-get install synaptic. Login as root and open a consol (little black screen on the your menu bar) then issue the command synaptic. Explore the options. It quite self explanatory. If you want to use the command line do apt-cache search kernel-source and from the list pick the one you want and do apt-get install your_choice_.deb
 
Old 07-30-2004, 11:32 AM   #10
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Original Poster
Rep: Reputation: 30
Thats what i needed was how to search. i prefer learning the command line. I did kernelversion and I get 2.4
When i do apt-cache search kernel-source i do not see a 2.4 there are 2.4.19 thand 2.4.17 etc.

Which would I use? I am thinking that the .17 or .18 are gonna make a differance. apprecaite the help.
 
Old 07-30-2004, 11:37 AM   #11
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
The source must match your kernel else you'll pick up problems. Do uname -r to find out which kernel version you are using then install the source for that.
 
Old 07-30-2004, 11:46 AM   #12
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Original Poster
Rep: Reputation: 30
that worked. Now i see I have 2.4.25-1-386 on this (this is a work pc that i am working on now with same problem I will use info posted here to fix the home pc 2night.) I can't get to ftp sites from work. So i am off to google and see if i can find some http sites containing this.

edit

well i can now and i am install the kernel source. Thanx for the help on gettign that. i will be attempting to install the video drivers in a a few. We shall see how that goes.

Last edited by gonus; 07-30-2004 at 11:52 AM.
 
Old 07-30-2004, 12:18 PM   #13
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Original Poster
Rep: Reputation: 30
I tried to install the drivers with out the script as the script is unable to downlaod the drivers. When i run the drivers though, they tell me that there are no precompiled kernels on my pc. i have kernel-source-2.4.25.tar.bz2 in my /usr/src folder. Any help here is apprecaited. Debian is seeming pretty kewl so far
 
Old 07-30-2004, 01:58 PM   #14
jsmarshall85
Member
 
Registered: Aug 2003
Posts: 386

Rep: Reputation: 30
do this as root or su

apt-get install kernel-source-2.4.25

i have never had to edit my sources.list file or run any kind of scripts
if the nvidia installer says something is missing, just install it with apt-get install
for instance on a new install i usually need the kernel source and binutils. once those are installed the nvidia installer works like a champ
you might get an error about the rivab stuff but it is safe to ignore
 
Old 07-30-2004, 03:22 PM   #15
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Quote:
Originally posted by gonus
I tried to install the drivers with out the script as the script is unable to downlaod the drivers. When i run the drivers though, they tell me that there are no precompiled kernels on my pc. i have kernel-source-2.4.25.tar.bz2 in my /usr/src folder. Any help here is apprecaited. Debian is seeming pretty kewl so far
As I said above I use the header files. I suggest linking the /usr/src/kernel-source-2.4.25-386/linux to /usr/include/linux. Alternatively you must point the script at the source file. Have a look at the readme for directions on how to do this. Else just download and install the header files for your kernel.
 
  


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
Problems with NVIDIA drivers after kernel update with yast online update Sheytan Linux - Software 4 05-06-2007 11:27 AM
Problems with NVIDIA drivers after kernel update with yast online update Sheytan Linux - Distributions 0 10-13-2004 12:01 PM
How to update nvidia drivers on mandrake? sweet*amber Mandriva 14 05-16-2004 02:45 PM
how to update to 4349 nvidia drivers (slackware) neenee Slackware 4 04-02-2003 03:21 AM
kernek update and nvidia drivers kernel() Linux - General 2 02-05-2003 06:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:05 AM.

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