Lubos Rendek

The only solution is determination.

NVIDIA GeForce Driver Installation on Debian Wheezy Linux 64bit

| Comments

If you happened to have a GeForce card you probably want to get the most out of it. Debian comes with a NVIDIA open source driver called nouveau. If this is not what you are up to you have a choice to install proprietary nvidia driver from the debian’s non-free repository. Another choice you available to you is to use NVIDIA’s proprietary up to date driver from nvidia.com. The choice is yours, but I would recommend to use debian’s repository to start with. First make sure to add contrib and non-free repositories to your sources.list. Example:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$ cat /etc/apt/sources.list
# 

# deb cdrom:[Debian GNU/Linux 7.3.0 _Wheezy_ - Official amd64 kde-CD Binary-1 20131215-04:55]/ wheezy main

#deb cdrom:[Debian GNU/Linux 7.3.0 _Wheezy_ - Official amd64 kde-CD Binary-1 20131215-04:55]/ wheezy main

deb http://ftp.au.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.au.debian.org/debian/ wheezy main contrib non-free

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

# wheezy-updates, previously known as 'volatile'
deb http://ftp.au.debian.org/debian/ wheezy-updates main contrib non-free
deb-src http://ftp.au.debian.org/debian/ wheezy-updates main contrib non-free

run update:

1
# apt-get update

First you may want to attempt to detect your NVIDIA card with nvidia-detect command. Install and run nvidia-detect:

1
2
3
4
5
6
7
8
# apt-get install nvidia-detect
$ nvidia-detect 
Detected NVIDIA GPUs:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK104 [GeForce GTX 680] [10de:1180] (rev a1)
Your card is supported by the default drivers.
It is recommended to install the
    nvidia-glx
package.

At this stage we are ready to install driver or better “NVIDIA Dynamic Kernel Module Support”:

1
# apt-get install nvidia-kernel-dkms

Once finished you will need to enable your new “nvidia” module with XORG xserver by creating a new xorg.conf configuration file within /etc/X11/ directory. You can do this either manually or use nvidia script to do this job:

1
2
3
4
5
6
# apt-get install nvidia-xconfig
# nvidia-xconfig 

Using X configuration file: "/etc/X11/xorg.conf".
Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup'
New X configuration file written to '/etc/X11/xorg.conf'

All what needs to be done at this point is to reboot your PC as this will blacklist your previous NVIDIA open source driver “nouveau” and initiate your X with new “nvidia” module. All done.

Comments