Debian 8 NVIDIA Proprietary Driver

Today, I will show you how to install Nvidia proprietary drivers on your Debian 8 Jessie.

Theses drivers can be used for GPUs from GeForce 6xxx through 7xx series.

1. Identification

First you need to identify your video card.

To do that, open Terminal and type:

lspci -nn | grep VGA

You will see if there are graphic drivers installed on your system.

Other method to do that is to type:

nvidia-detect

This can be used only if you installed non-free nvidia-detect package.

2. Drivers

There are two versions of Nvidia drivers available:

3a. Installation (340.65)

Note: Only for drivers version 340.65

You need to add contrib and non-free components to /etc/apt/sources.list:

Open Terminal and type:

sudo nano /etc/apt/sources.list

This will open sources file where you need to add components from above.

Make sure you have line like this in the file:

deb http://http.debian.net/debian/ jessie main contrib non-free

Note: Your Debian server could be different from this one.

Next, update the list of available packages.

Install the appropriate linux-headers and kernel module packages:

aptitude update

This will update packages.

aptitude -r install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-dkms

This will also install the recommended nvidia-driver package. DKMS will build the nvidia module for your system.

3b. Installation (304.125)

Note: Only for drivers version 304.125

You need to add contrib and non-free components to /etc/apt/sources.list:

Open Terminal and type:

sudo nano /etc/apt/sources.list

This will open sources file where you need to add components from above.

Make sure you have line like this in the file:

deb http://http.debian.net/debian/ jessie main contrib non-free

Note: Your Debian server could be different from this one.

Next, update the list of available packages.

Install the appropriate linux-headers and kernel module packages:

aptitude update

This will update packages.

aptitude -r install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-legacy-304xx-kernel-dkms

This will also install the recommended nvidia-driver package. DKMS will build the nvidia module for your system.

4. Configuration

After installation is finished, you can proceed to drivers configuration.

You need to create Xorg server configuration file.

This can be done in two ways.

4.1. Automatically

Install nvidia-xconfig package:

sudo apt-get install nvidia-xconfig

Then run it as sudo:

sudo nvidia-xconfig

This will generate a Xorg configuration file at /etc/X11/xorg.conf

4.2. Manually

Open Terminal and type:

sudo mkdir /etc/X11/xorg.conf.d

Insert following line to generate file content:

echo -e 'Section "Device"\n\tIdentifier "My GPU"\n\tDriver "nvidia"\nEndSection' > /etc/X11/xorg.conf.d/20-nvidia.conf

5. Restart

Restart your system to apply changes.

Leave a Reply

Your email address will not be published. Required fields are marked *