How to install NVIDIA Drivers on Linux (Ubuntu, Debian, Linux Mint…)

Posted: 22 December, 2012 in Computers, Linux
Tags: , , , , , , , , ,

There are 2 ways to install or update NVIDIA drives, automatically, that not always work, and manually.

Automatic Method

The automatic way is based on repositories and apt-get:

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nvidia-currrent nvidia-settings
Manual Method

First of all you need to check which graphic card you have installed if you don’t know already:

lspci | grep -i vga

Then go to the NVIDIA drivers download page and download yours.

Give execution permissions to the file:

sudo chmod 777 -R

Uninstall the installed drivers, NVIDIA, privative and nouveau:

sudo sh --uninstall
sudo apt-get remove --purge nvidia*
sudo apt-get remove --purge xserver-xorg-video-nouveau

Then add nouveau to the modprobe Blacklist so it doesn’t mount in the start of the system. Do that appending these lines at the end of the blacklist file:

blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv

sudo gedit /etc/modprobe.d/blacklist.conf

EDIT: You may need to restart at this point.

After that, we need to close the graphic environment, you can do this by changing terminal to another tty open by doing “ctrl+alt +f1”, log in there and use this command depending on your desktop manager:
For lightdm:

sudo service lightdm stop

For cinnamon mate:

sudo service mdm stop

For gdm:

sudo service gdm stop

In the end, you are with no desktop manager running, so you will be able to install normally the NVIDIA drivers just running:

sudo sh

When the installation is done, if everything went good, just restart your computer and it will be running.

Enjoy your graphics 🙂


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s