Softpedia
 

NEWS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
TRENDING TODAY
Home > News > Linux > Ubuntu Tips and Tricks

September 29th, 2012, 07:01 GMT · By

How to Install the Latest Nvidia Driver on Ubuntu 12.04

SHARE:

Adjust text size:

Nvidia logo
Enlarge picture
Nvidia is starting to get serious about Linux and they are releasing more and more powerful drivers, but newcomers to this operating system will find it hard to install the newest version available.

We have prepared a short tutorial on how to quickly install the latest version of Nvidia drivers, 304.51. Moreover, this guide will help users install any subsequent versions Nvidia will release.

Most likely, online repositories won’t host the latest version of a video driver because it could prove to be unstable and users could end up ruining their systems.

This situation happened recently, with Ubuntu’s repositories. They were hosting an Nvidia driver that caused major problems with video cards from the 7000 and 8000 series.

There are two ways to install the latest drivers, one which is easier, but requires users to have an internet connection active, and the second is a little more cumbersome, but which does not need an internet connection.

The first method will require the addition of a PPA, followed by a system update, and finally by an installation.

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get dist-upgrade


The above commands are useful if you already have the Nvidia driver installed and just want to upgrade it. If you want to install the driver, on a clean system for example, then replace the third step presented above with the following one:

sudo apt-get install nvidia-current

It’s that simple. From now on, whenever Nvidia releases a new driver, just hit the update command and a new version will be installed.

The second method is a little problematic for two reasons. One, because you will need to install the drivers from a terminal after stopping the login manager, Light DM, and secondly, because you will need to repeat this process every time the Linux kernel is updated by the OS developers.

First, download the latest Nvidia drivers to a familiar location, such as Downloads. Log out of the account and press CTRL-ALT-F1 in order to bring up the terminal. Enter the following commands:

sudo service lightdm stop
cd ~/Downloads
sudo chmod a+x NVIDIA-Linux-x86-304.51.run
./ NVIDIA-Linux-x86-304.51.run


The name of the file will vary from one release to another. Follow the instructions and the new Nvidia driver will be installed. The problem is that with this method, the driver is compiled specifically for the Linux kernel you’re running, so if Canonical decides to update the kernel, this procedure must be done all over again.


22,335 hits · 8 comments
Link to this article · Print article · Send to friend

MUST-READ RELATED ARTICLES:


GNOME Games 3.6.0.2 Fixes Gapplication

Pinta 1.4 Has New Magic Wand Tools

Download FFmpeg 1.0 Final

Tears of Steel – Amazing Movie Produced with Blender

Ubuntu Studio 12.10 Beta 2 Screenshot Tour

READER COMMENTS:


Comment #1 by: Neo on 29 Sep 2012, 09:49 UTC reply to this comment

Any update on optimus support for linux ??


Comment #2 by: Frust on 01 Oct 2012, 03:45 UTC reply to this comment

pretty buggy, your PPA solution, isnt't it?
W: Failed to fetch http://download.virtualbox.org/virtualbox/debian/dists/precise/InRelease Unable to find expected entry 'contrib/source/Sources' in Release file (Wrong sources.list entry or malformed file)
E: Unable to locate package nvidia-graphics-drivers
etc
etc
etc

Comment #2.1 by: Silviu Stahie on 01 Oct 2012, 06:33 GMT

The download command should be:

sudo apt-get install nvidia-current

We have corrected the article.

On the other hand, I fail to see what virtualbox has to do with the instructions I gave for Nvidia drivers.


Comment #3 by: WTBroughton on 07 Oct 2012, 11:18 UTC reply to this comment

I converted my PC from Windows to Ubuntu 12.04 some time ago but being a Linux newbie I wasn't clear on how to download and install the nvidia drivers so my GTX460 was stored away. On reading this article I decided to give it a go!! It worked like a charm and I can now crunch my favorite BOINC projects again.

Many many thanks.


Comment #4 by: Bib on 07 Feb 2013, 09:54 UTC reply to this comment

I install on my ubuntu 12.04 and the results is not working, I try first method, and driver did'nt works,
anyone can help?


Comment #5 by: abhay on 12 Feb 2013, 10:03 UTC reply to this comment

hi, how is this possible in ubuntu studio version 12.10? i tried the bunary driver. all went fine but eh nvida-settings ui tells me that i am not using the nvidia drier and i need to edit xconfig. but with nvidia-xconfig also its not working. any pointers?

Comment #5.1 by: LightD7 on 16 Feb 2013, 14:58 GMT

I have the same problem but on my fresh Wubi Installation Ubuntu 12.04.


Comment #6 by: Vanessa on 22 Apr 2013, 09:36 UTC reply to this comment

This no longer works on Ubuntu 12.04 Precise due to XFree86 changing, see work around downloading directly from NVidia: http://www.nvnews.net/vbulletin/showthread.php?s=99063d5c17a3c049afd8c69d2b2a9a3b&t=179489&page=8

Copyright © 2001-2013 Softpedia. Contact/Tip us at

WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM