Debian This forum is for the discussion of Debian Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
07-29-2004, 12:12 PM
|
#1
|
Member
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445
Rep:
|
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
|
|
|
07-29-2004, 01:39 PM
|
#2
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
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.
|
|
|
07-29-2004, 05:29 PM
|
#3
|
Member
Registered: Mar 2003
Location: colorado springs. colorado
Distribution: Debian-Sid 2.6.24-rt1
Posts: 290
Rep:
|
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.
|
|
|
07-29-2004, 07:40 PM
|
#4
|
Member
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445
Original Poster
Rep:
|
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
|
|
|
07-29-2004, 07:58 PM
|
#5
|
Member
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445
Original Poster
Rep:
|
oh I got the script I just need to know hwo to get that source thing. thanx all.
|
|
|
07-29-2004, 08:04 PM
|
#6
|
Senior Member
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577
Rep:
|
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
|
|
|
07-30-2004, 02:21 AM
|
#7
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
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.
|
|
|
07-30-2004, 11:20 AM
|
#9
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
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
|
|
|
07-30-2004, 11:32 AM
|
#10
|
Member
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445
Original Poster
Rep:
|
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.
|
|
|
07-30-2004, 11:37 AM
|
#11
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
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.
|
|
|
07-30-2004, 11:46 AM
|
#12
|
Member
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445
Original Poster
Rep:
|
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.
|
|
|
07-30-2004, 12:18 PM
|
#13
|
Member
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445
Original Poster
Rep:
|
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
|
|
|
07-30-2004, 01:58 PM
|
#14
|
Member
Registered: Aug 2003
Posts: 386
Rep:
|
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
|
|
|
07-30-2004, 03:22 PM
|
#15
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 06:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|