Login (generic cert)
Logout
Guests 26
If you can walk and chew gum at the same time, you can run GNU/Linux
Blog Pushes

debian tutorials
debiantutorials.org is built on and runs on Debian.

 

Creative Commons License
nVIDIA Drivers on Lenny
nVIDIA 3D drivers for Debian 5.0 Lenny Print E-mail
Written by machiner   
Tuesday, 17 February 2009 08:14

Just a few short weeks ago we all got the ability to install nVIDIA the "Debian way" again as it hasn't worked for a while during testing. Way to go team, hooo-RAH! From a fresh installation of Debian GNU/Linux 5.0 - Lenny, it's easy to get the nVIDIA drivers installed if you've got that kind of card on your box. My laptop has an 8400 something, something and playing games like Nexuiz is a joy on it. GoogleEarth and Celestia are pretty cool, too.

Preparing and installing

Installing drivers for your hardware is a chore that you must do with any operating system. Debian makes it easy and you'll never worry about that missing driver disc again. The overview of what we'll do follows:

  • stop X
  • enable repositories
  • install the appropriate software
  • set the system
  • load the module
  • start X
  • Schwiiiiiiiing!

Legacy Drivers

Before we install the driver make sure you install the appropriate one. Check here to determine if you need legacy support. If so then make sure to use the appropriate install command below

We're doing everything in a nice easy terminal and we'll be finished before you know it. Let's get started...

In your Terminal

Fire-up your favorite terminal, if you don't know, hit the alt+F2 keys and type in xterm, then hit enter.

You'll need to become root in order to accomplish installing the drivers. Linux clearly seperates operational duties and liberties and that's a good thing. Becoming root is simple, in your terminal, 1issue: su , hit enter, input the password, enter again.

The first thing we do is to stop our graphical shell which is what the graphics drivers we are about to install would affect. This is easily accomplished by issuing the following command:

#/etc/init.d/gdm stop

Check your repositories, adjust as necessary making sure to include contrib non-free, issue:

#nano /etc/apt/sources.list

deb http://ftp.us.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.us.debian.org/debian/ lenny main contrib non-free

deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free

If you're in the USA you can copy my entries, but if no, use mirrors closer to you. Save and close the file: ctrl+x, y, enter.

Issue the following commands: One at a time, in the order listed

#aptitude update

#aptitude install module-assistant

#m-a prepare

#m-a update

#m-a a-i nvidia  --OR--  #m-a a-i nvidia-legacy

#aptitude install nvidia-xconfig

#nvidia-xconfig

#modprobe nvidia

Installation of the nVIDIA drivers is now complete. To get back to your desktop simply restart X by starting GDM.

# /etc/init.d/gdm start

Now you can log in as you and enjoy your 3d acceleration. Don't forget, you're still logged in as root in tty1 and you should log out of there. Simple, do the following:

Hit the ctrl+alt+F1 keys at the same time, you know, like ctrl+alt+del in Windows. This will put you back into tty1 and you can type exit to log root out. If tty1 is not where root is logged in, hold the alt key down and cycle through the F2-F6 keys to find where root is still logged in. After logging root out, to get back to your login hit the alt+F7 keys.

--machiner 17feb09

EDIT: 27feb09 to reflect the fact that there are still a butt-load of older cards out there. All apologies for my insensitivity ;)

 

 

1 Issue: I mean to issue a command, to type the commands into your terminal. You always hit enter after issuing a command in your terminal ;)
Comments
Add New
+/-
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly:
:dry::lol::kiss::D:pinch::(:shock:
:X:side::):P:unsure::woohoo::huh:
:whistle:;):s:!::?::idea::arrow:
 
Ron Gemmell  - retired industrial electronic tech.   |76.97.18.xxx |2009-02-26 05:25:23
Everything went great until "modprobe nvidia" then:
Error...(/lib/modules/2.6.26-1-686/nvidia/nvidia.k o)
No such device.

Oh yes, it's there:
-rw-r--r-- 1 root
root 7860572 2009-02-26 088 nvidia.ko

According to my Google searches, this has been a continuing problem
with nvidia drivers.

I have a Dell 8100, P111, GeForce2 Go

I can always reinstall Lenny final, but I'll wait
a few days.

:-)

Aye,
Ron
machiner  - No Worries   |Publisher |2009-04-11 03:55:55
avatar That's a pretty old card, you need to use the 1.0-96xx driver.

Remove all nvidia cruft and redo
the task, this time using:

# m-a a-i nvidia-legacy

Please post results to the forum:
Talkitup
bdatl   |65.13.123.xxx |2009-02-27 06:38:49
I've installed the AMD64 release version of Lenny. The video card installed is an GeForce 8400GS. Everything
worked until the point, #nvidia-xconfig, yes. the response was: Command not found.

Any help installing the
Nvidia driver and get X to work would be Greatly Appreciated.

Thanks
alister fiend  - Because you didn't install it   |64.30.69.xxx |2009-02-27 09:06:43
You missed the line right above the command. The one that was the command to install it first.
thinkweird   |59.57.205.xxx |2009-02-27 07:28:18
This guide is the best and the most comprehensive one on this topic, IMHO.
http://desiato.tinyplanet.ca/~lsorense/debian/d...
alister fiend   |64.30.69.xxx |2009-02-27 09:08:50
Yabbut mine shoots farther.
Anonymous   |198.36.32.xxx |2009-04-10 20:09:25
Hi machiner! You dont know how much your tutorial helped me solved my nvidia driver problem. After following
your tutorial last night i successfully installed the driver and now my resolution is vista-like (i'm on dual
boot but thats another story) Neither Linux Mint nor Ibex solved this for me. It only proves the mother is
so much better than the offsprings .

I have few more things to tackle mainly:

1. Frontend for 3G usb
modem. Network manager in Mint/Ibex handled this with ease. What can you recommend in Squeeze?

2. The above
is for my private connection. In my day job i have network connection via LAN so no problem. Sadly company
policy(proxy) disallows IM/IRC/bittorrent usage so i need to solve number 1 above. Just like the rest
IM/videochat is vital to me. I love to have this work in Linux so i can brag how good debian is

3. I
need to get printing to work when im in office. Again this is automatic in Debian's variants. Our network
printer is canon IR5570. I have my network credentials in place just in case. So i need to get this working so
please point me in the right direction.

bibs
bibimidi   |198.36.32.xxx |2009-04-10 20:27:44
I thought i posted twice above but good thing not. Thanks again.
machiner  - Ya - wicked easy, but wait, there's more   |Publisher |2009-04-11 03:10:13
avatar Hey Bibs - glad for your victory!

Listen -- we've got a wicked handy forum
(debiantutorials.org/talkitup/index.php) where you can get nutritious and delicious recipes, hear some
terrific music, argue with some pretty intolerable folks, teach, learn -- hell, it's just a
rockin'-good-time!

Sign-up, say Hi, and we get busy making your system(s) rock like only Debian can make
them rock.

Wurd.
eXi  - I dont get it   |81.210.139.xxx |2009-04-23 07:19:52
while trying to install the new driver package version: 180.51 Im getting errors that concern my kernel
version. Xorg telling me i got the wrong kernel sources and the wrong driver version? WTH?
Cant start xserver
with nvidia module loaded in xorg.conf.
I tried the steps as mentioned above but cant get it to work.

got
lenny on kernel 2.6.26-2-686 and the GeForce 8800GTS.

Can somebody help?
machiner  - Sure we can help   |64.30.71.xxx |2009-04-23 07:35:10
Sign up and post your issue at the forum

debiantutorials.org/talkitup/index.php
Crass  - Out of range after install.   |71.58.95.xxx |2009-05-27 12:07:37
Wanted to share a situation that happened the other day when I did an install. Im sure im not the only person
that this has happened to and would like to help others that may come across this situation and dont know how
to solve it.

After the install of Lenny finished, upon reboot everything looked good and I hit enter at the
grub screen. Then i got the message out of range floating around on my monitor. AutoAdjust didnt work so that
left me with no way to log in.

Restarted the computer and at grub I selected single-user mode.
then I just
logged in as root, and followed the above guide for installing nvidia drivers.
while root, i also installed
nvidia-settings

apt-get install nvidia-settings

Problem solved. I could now get to a login screen and to my
desktop. Sorry if this is posted in the wrong spot, just thought it fit here ok. Im guessing that this method
would work with ati and other graphics cards as well, but i have no way of knowing for sure, only that it
worked for my nvidia card.
Sergey  - sorry my little english   |195.46.32.xxx |2009-07-22 06:23:46
I did it successive. Now i have a black screen, but a computer response at my hits ctrl+alt+F1: invoke a
console and i can write any commands. I writen:
#atitude install kde
KDE has been installed, but my screen
remain black.
P.S. I've got Debian Lenny for AMD64 and GeForce6100 inboard my matherboard.
P.S.S. sorry my
little english. I'm an apprentice in Debian and english language.
Sergey   |195.46.32.xxx |2009-07-23 04:43:59
Now i hav'nt any problems. I did:
$ su
# dpkg-reconfigure xserver-xorg

My screen was normal. Next i was downloaded a driver for my video display card from a
site nvidia.com. Next i did:
$ su
# /etc/init.d/kdm stop
# sh NVIDIA-Linux-x86_64-185.18.14-pkg2.run
# nano /etc/X11/xorg.conf

add the line 'Driver "nvidia"' in this file:
Section "Device"
Identifier  "Configured Video Device"
Driver  
"nvidia"
EndSection

and save changes - hit the keys:ctrl+O
Next i'm restarted my computer:
# reboot
That's all.
Gabriel  - no direct rendering   |62.2.75.xxx |2009-07-26 23:07:54
I followed your steps and when getting back into X, everything seemded fine. Even my two monitors were
correctly detected. I checked the xorg.conf file and saw the "nvidia" driver. Unfortunately a
"glrxinfo" still gives me "direct rendering: no". So I checked the xorg.conf again and saw
that "dri" is not loaded. I added Load "dri", but still the same. Then I followed the steps on
this thread:
http://wiki.debian.org/NvidiaGraphicsDrivers#Hard
wareacceleration.2Cakadirectrendering.2Cdoesn.27tw ork
but still no improvement.
Any ideas what I am doing
wrong?
Oh, my graphic card is a geforce 8400 gs:
VGA compatible controller: nVidia Corporation GeForce 8400 GS
(rev a1)
Brian   |216.231.158.xxx |2011-05-03 13:29:15
I have a nVidia 6800. I have found that I prefer the oem install binary, as well. I use the default config
app, as well. It lets you save a regular xorg.conf. I run it as a standard user, save it out to /tmp/ and of
course MAKE A BACKUP of the old. "cp /etc/xorg.conf ~/xorg.conf.bak" Pretty simple, and lets you futz
about with the configs a bit.

http://www.nvidia.com/Download/index.aspx?lang =en-us

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated on Thursday, 05 March 2009 21:12