A quick and easy tutorial about how to install NVIDIA drivers as simply as possible.
Prerequisites: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 stopThen install the drivers :
$ sudo sh NVIDIA-Linux-x86-1.0-9755-pkg1.runand 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
#EndSectionHere is an example xorg.conf file with the proper changes made.
X:Once done, load the NVIDIA module :
$ sudo modprobe nvidiaAnd restart the graphical login manager, which will bring back X :
$ sudo /etc/init.d/gdm startTips: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