Tuesday, November 14, 2006

Debian HOW-TO : NVIDIA drivers

Last revision : April 24th, 2007

A quick and easy tutorial about how to install NVIDIA drivers as simply as possible.


  • Prerequisites

In this tutorial, I use sudo to get root privileges. Check out this tutorial if you need help in configuring sudo.

As a starting point, download the latest stable drivers.

Then you'll need to install a few packages :

sudo apt-get install build-essential linux-headers-$(uname -r)

Debian Sarge users have to replace linux-headers with kernel-headers.


  • Installation

First you'll need to kill the X server. You can do that by switching to console #1 : press CTRL-ALT-F1 simultaneously.

Once there, log in with your username and password.

Stop the graphical login manager :

sudo /etc/init.d/gdm stop


Then install the drivers :

sudo sh NVIDIA-Linux-x86-1.0-9755-pkg1.run

and follow the installation process.

Make sure you tell the installer to automatically modify your /etc/X11/xorg.conf file so you'll end up using the NVIDIA drivers.


  • xorg.conf

If you haven't, then you simply have to make a few changes to your /etc/X11/xorg.conf file. Here they are. Debian Sarge users have to modify /etc/X11/XF86Config-4 instead.

In Section "Modules" comment the dri and GLcore modules :

#Load "dri"
#Load "GLcore"


In Section "Device" make sure you use the NVIDIA driver :

Driver "nvidia"


And finally comment the whole Section "DRI" :

#Section "DRI"
# Mode 0666
#EndSection


Here is an example xorg.conf file with the proper changes made.


  • X

Once done, load the NVIDIA module :

sudo modprobe nvidia


And restart the graphical login manager, which will bring back X :

sudo /etc/init.d/gdm start



  • Tips

If you happen to update your kernel, then you don't need to reinstall the whole NVIDIA driver, but only the kernel module. So running this command will do the trick :

sudo sh NVIDIA-Linux-x86-1.0-9755-pkg1.run -K

5 comments:

Anonymous said...

English
--------

Hello,
PIII 1000 256
Geforce GDR 256 FX 5700
1.5 Go SDRAM 133
debian 3.1 sarge (3.1 R4-i386 binary Iso) kernel-image-2.6.8-3-686 NVIDIA-Linux-x86-1.0-9631-pkg1.run News basic installation.
After does the installation, as specified above, the machine become completely unstable to see completely blocked? More no connection!
Error in the log of xfree86: (EE) Failed to load module “GLcore” (module does not exist, 0) (EE) NVIDIA (0): Error recovery failed. (EE) NVIDIA (0): *** Aborting ***

Why? What to make?
Thank you.

French
-------
Bonjour,

PIII 1000 256
Geforce DDR 256 FX 5700 LE
1.5 Go SDRAM 133
debian 3.1 sarge (3.1 R4-i386 binary iso)
kernel-image-2.6.8-3-686
NVIDIA-Linux-x86-1.0-9631-pkg1.run
Nouvelle installation de base.

Après l'installation, comme précisé ci-dessus, la machine devient complètement instable voir totalement bloquée? Plus aucune connexion!
Erreur dans le log de xfree86:
(EE) Failed to load module "GLcore" (module does not exist, 0)
(EE) NVIDIA(0): Error recovery failed.
(EE) NVIDIA(0): *** Aborting ***

Pourquoi? Que faire?

Merci.

Hugues said...

Hi,

Make sure your /etc/X11/XF86Config-4 file is rightly configured. Load "GLcore" should not be in there. I should specify it in the how-to.

Here is an example :
http://antidrugue.dyndns.org/config.linux/config.hugues/xorg.conf.nvidia

which is mentionned in the section xorg.conf of the how-to.

Other then that, did you follow all the steps ?

Sois sans inquiétude, ce n'est qu'un petit contretemps.

Hugues

Anonymous said...

French
=======

Re-bonjour,

Merci pour ta réponse.

je m'exprime mieux en français que en Englais puisque je suis français. Je vois que tu parles notre langue, félicitation car ce n'est vraiment pas façile. J'ai bien suivi le howto ci-dessus et retiré "GLcore", ""dri" et Section "DRI" Mode 0666.
J'ai aussi regardé ton exemple : http://antidrugue.dyndns.org/config.linux/config.hugue
, mais la machine reste bloquée! Je ne comprends pas!


English
=======

Hello

Thank you for your answer.
I express myself better in French that in Englais since I am French. I see that you speak our language, congratulation because it is really not façile.
I followed well the howto above and withdrawn “GLcore”, "" dri” and Section “DRI” Mode 0666.
I also looked at your example: http://antidrugue.dyndns.org/config.linux/config.hugue, but the machine remains blocked! I do not include/understand!

Anonymous said...

Great How To!Works perfectly!Thanks a lot!

Remyy said...

Salut !
Merci de ton boulot, marche pour ma Quadro nvs 140 sur Dell latitude D830.
Merci encore.

Rémy.