Debian Linux 6: Install Nvidia Proprietary Unix Driver

The NVIDIA Linux proprietary unified drivers supports various features such as 3d rendering, opengl and much more. This post covers installing and configuring NVIDIA’s proprietary graphic card driver in Debian Linux version 6.x amd64.

ADVERTISEMENTS

Why use proprietary Unix driver?

You will get full 3D acceleration support. This allows you to use the following applications with 3D and OpenGL under Linux:

  1. Games such as PlanetPenguin Racer, Extreme Tux Racer, Neverball, and many more.
  2. Linux video editing application such as cinelerra and others.
  3. Use 3d desktop effect provided by compiz – a compositing window manager for the X Window System. It use 3D graphics hardware to create fast compositing desktop effects for window management.

Let us see, how to install NVIDIA Drivers in Debian Linux.

Step # 1: Install compilers and required tools on Debian for Nvidia

First, install build-essential and kernel headers package:
# apt-get install build-essential linux-headers-$(uname -r)

Step # 2: Disable nouveau driver on Debian

Open source drivers for NVIDIA hardware are included in the standard Linux distributions. You need to disable nouveau driver. Create a file as follows disable-nouveau.conf:
# vi /etc/modprobe.d/disable-nouveau.conf
Append the following code:

# Disable nouveau 
blacklist nouveau
options nouveau modeset=0

Save and close the file.

Step # 3: Download nvidia driver for Debian Linux

Visit this page to grab the latest version of nvidia driver (save it in your $HOME:
$ wget -O NVIDIA-Linux-x86_64-295.59.run http://in.download.nvidia.com/XFree86/Linux-x86_64/295.59/NVIDIA-Linux-x86_64-295.59.run
Sample outputs:

--2012-07-17 18:49:52--  http://in.download.nvidia.com/XFree86/Linux-x86_64/295.59/NVIDIA-Linux-x86_64-295.59.run
Resolving in.download.nvidia.com... 122.178.225.56, 122.178.225.32
Connecting to in.download.nvidia.com|122.178.225.56|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 58529480 (56M) [application/octet-stream]
Saving to: `/home/vivek/NVIDIA-Linux-x86_64-295.59.run'

 0% [                                                                                     ] 5,03,684     459K/s

Step # 4: Reboot the system

You need to reboot the system and login using a single user mode or select Recovery mode at grub prompt:
# reboot
Once logged into the single user mode, remove the following package (if installed):
# apt-get --purge remove xserver-xorg-video-nouveau nvidia-kernel-common nvidia-kernel-dkms nvidia-glx nvidia-smi
Search for all installed nvidia packages and delete them (do not skip this step):
# dpkg --list | grep -i --color nvidia

Step # 4: Install the NVIDIA Drivers on Debian Linux

Make sure you are not using Xorg and/or any other graphical environment such as Gnome or KDE. If you are running Gnome stop it as follows:
# /etc/init.d/gdm3 stop
Also backup your existing /etc/X11/xorg.conf file, using the cp command:
# cp -v /etc/X11/xorg.{conf,factory}
Type the following command to install the Unix driver:
# sh /home/vivek/NVIDIA-Linux-x86_64-295.59.run
Just follow on screen instructions. Make sure you upgrade xorg.conf when promoted. Finally, reboot the system:
# reboot

How do I configure Xorg with NVIDIA driver?

Login into Gnome or KDE destktop and type the following command:
$ nvidia-settings
OR visit Gnome menus as follows:
System > Preferences > NVIDIA X Server Settings
Sample outputs:

A note about the Debian package based driver installation

NVIDIA drivers can be installed using NVIDIA’s official installer or the Debian driver packages. This post covered NVIDIA’s official installer. However, you can the Debian driver packages method as described here.

My modified xorg.conf

Following is my /etc/X11/xorg.conf:

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection
 
Section "Files"
EndSection
 
Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection
 
Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection
 
Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Seiko/Epson"
    HorizSync       49.8 - 74.7
    VertRefresh     40.0 - 60.0
    Option         "DPMS"
EndSection
 
Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro FX 3800M"
 
    # Power settings by VG - start
    # Laptop Battery life setting by VG    
    Option     "RegistryDwords" "PowerMizerLevel=0x3"
    # When on AC settings by VG
    Option "RegistryDwords" "PowerMizerLevelAC=0x3"
    # Power settings by VG - end
 
    #Compiz settings by VG - start
    Option "XAANoOffscreenPixmaps" "true"
    Option "AllowGLXWithComposite" "true"
    #Compiz settings by VG - end
EndSection
 
Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "DFP: nvidia-auto-select +0+0, CRT: nvidia-auto-select +1920+0"
    #Compiz settings by VG - start - we need to set this to 24bit
    SubSection     "Display"
        Depth       24
    EndSubSection
    #Compiz settings by VG - end
    #Compiz settings by VG - start
    Option "AddARGBGLXVisuals" "true"
    #Compiz settings by VG - end
EndSection
 
# Dedicated "Extensions" section
Section "Extensions"
        #Compiz settings by VG - start
        Option "Composite" "enable"
        #Compiz settings by VG - end
EndSection
References
🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source & DevOps topics via:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
10 comments… add one
  • Marco Jul 30, 2012 @ 7:43

    Is it possible to install nVidia binary driver in a VirtualBox virtual Debian? I.e. no nVidia card really available.
    I need this because I create a debian live from VM image and run it on nVidia-enabled PCs…

  • hadrons123 Dec 22, 2012 @ 7:13

    Your last word in the link redirects back to the current page.

    A note about the Debian package based driver installation

    NVIDIA

    drivers can be installed using NVIDIA’s official installer or the

    Debian driver packages. This post covered NVIDIA’s official installer.

    However, you can the Debian driver packages method as described here.

  • hadrons123 Dec 22, 2012 @ 7:14

    Can you post an article about how to install the proprietary nvidia driver from the debian repos?

  • Alex Jan 9, 2013 @ 13:37

    Thanks a lot. Amazing tutorial, very well written

  • Chris Patterson Feb 8, 2013 @ 17:27

    Thanks very much! Worked perfectly for me.

  • BigDaddyEllison Apr 10, 2013 @ 20:00

    I had given up on getting my Nvidia card to work with any Ubuntu based dist. Thank you for this tutorial, it helped me figure out the issue and now I finally use my NVidia card in my T530. I was resigned to using the 2D version of UIs or using theintegrated card. My sticking point was that I needed to remove all “nouvea” based packages as well. Killed KDE, but I use Cinnamon anyway. Thanks again for your great tutorials.

  • CO Jun 30, 2013 @ 11:16

    Many thanks, finally installed the official nvidia drivers.
    I don’t understand why distros force the “open” drivers and packages ie nouveau, openjdk etc.
    There was a time where distro makers begged the software/hardware makers for drivers and packages and now that they got them and linux has become much better they stab them in the back by blacklisting them and crying “ooooh but its not opensource”
    At least give the user a choice to choose what he want. That’s what really open is. Not by forcing them stuff in their throats.

  • Rombus Aug 1, 2013 @ 1:37

    Worked like a charm, thanks B-)

  • Armenio Pereira Jan 14, 2014 @ 16:32

    Thanks a lot for this precious article. I’ve been installing a few Debian versions with no success due to kdm logon failures, what pushed me to another distro… and now that I followed the tips in this page, BINGO… it’s up and running. Excellent tips!

Leave a Reply

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

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.