View more guides at Linux Wiki Guides
This guide will help you configure the proprietary nvidia module under Debian 4.0. I will not be covering the open source nv module included with Xorg because its configuration is normally handled automatically by most Linux distributions.
NVIDIA provide their own license for their driver. You will need to read and accept this license before proceeding. You can read this license here.
We will be using 'nano' as our text editor of choice but you can use whatever you wish.
While this guide is mainly focused to laptop users there isn't any difference for desktop users.
You should run a full update for your installation of Debian to ensure you have all the latest packages installed.
Here are the steps required to install and configure the NVIDIA driver in Debian.
1. Load up a terminal window if you are in the graphic interface.
2. Switch to the root user by entering the command “su -” (without the quotes) and typing in your root password
3. Debian include parts of the nvidia driver in both the 'contrib' and 'non-free' repositories. You will need to enable both of these to install this driver. If you have already done this skip to step 7, otherwise continue on.
4. Edit your /etc/apt/sources.list file. With nano you would use:
nano -w /etc/apt/sources.list
5. Append “contrib non-free” to the end every line starting with deb. It should look something like this (except with a different mirror):
deb http://ftp.iinet.net.au/debian/debian/ etch main contrib non-free deb-src http://ftp.iinet.net.au/debian/debian/ etch main contrib non-free deb http://security.debian.org/ etch/updates main contrib non-free deb-src http://security.debian.org/ etch/updates main contrib non-free
6. Save the file. In nano you press Ctrl-X, answer yes to the “Save modified buffer” question and then press enter on the file name to write.
7. Run the following command:
8. Execute the following commands:
apt-get install build-essential nvidia-glx module-assistant nvidia-kernel-common nvidia-settings nvidia-xconfig m-a update m-a prepare m-a a-i nvidia nvidia-xconfig
Some of these command may take a few minutes to complete.
9. Reboot and you will be using the NVIDIA driver.
Normally after installing the nvidia driver with the steps above your xorg.conf file should have automatically been updates to use the newer driver. If this did not happen or for some reason it has reverted then, as root, enter the following command:
This will switch you back to the nvidia driver.