Install Nvidia Drivers Ubuntu

 admin

Apr 30, 2018  NvidiaManual - Guide to installing the official NVIDIA driver from the NVIDIA website on Ubuntu. Explains the drawbacks and benefits of manual installation and how to safely avoid conflicts with the Ubuntu provided NVIDIA binary drivers. And alternatively, from terminal, install nvidia-331 (for v331), nvidia-337 (for v337) or nvidia-current (for very recent version). After installing, don't forget to logout or reboot, and log back in.

Do you have an Nvidia graphics card on your desktop? That’s great until you are in need of the latest drivers especially when you are a gamer. Unlike Windows, Nvidia drivers for Linux desktops are quite hard to come by, and installing the latest drivers on your Linux desktop can be quite an arduous process. Fortunately for Linux users, there are the third party graphics drivers PPA which keeps an updated Nvidia driver for installation.

The PPA is currently in testing but you can nonetheless get working Nvidia drivers from here.

Installing Nvidia drivers in Ubuntu

In this tutorial, I am going to show you how to install the latest Nvidia drivers for your Linux desktop in a few steps. I’ll also see how to remove it should things not work out as expected.

​1. Determine the latest version of Nvidia driver available for your graphics card

• Locate all the items listed and retrieve 4 metal covers. • (1).Touch the locker. Night of revenge game download. • Touch the stoup for more information. • (2).Explore the marked Area. • Enter the Hidden Object area to look for items.

Nvidia PPA

a. Visit the graphics drivers PPA homepage here and determine the latest versions of Nvidia drivers available which is ‘nvidia-370’ as of January 1, 2017. b. Verify that your graphics card is capable of running the latest drivers. You can search on this link to determine if your graphics card is supported by a driver version. Don’t be so particular about the version part after the dot (after nvidia-370.xxx), just make sure you’re supported on the main version 370.2. Remove older Nvidia driver​If your graphic is supported, you can go ahead and remove all previously installed Nvidia drivers on your system. Enter the following command in terminal.

3. Add the graphics drivers PPA​

Let us go ahead and add the graphics-driver PPA –

4. Install (and activate) the latest Nvidia graphics drivers. Enter the following command to install the version of Nvidia graphics supported by your graphics card –

5. Reboot your computer for the new driver to kick-in. You can check your installation status with the following command

If there is no output, then your installation has probably failed. It is also possible that the driver is not available in your system’s driver database. You can run the following command to check if your system is running on the open source driver nouveau. If the output is negative for nouveau, then all is well with your installation.

6. Prevent automatic updates that might break the drivers. You can do this in 2 ways –

a. By removing the graphics-drivers PPA from your software sourcesThis will depend on your distro. On Ubuntu, go to your software sources, and then other sources and remove all instances of the graphics-driver PPAs.

b. Or by blocking minor version updates. Enter the following command

7. Uninstall nvidia drivers from Ubuntu​

Are you running into issues with the new drivers, you can easily remove it.

a. Remove the graphics-drivers PPA as indicated in the step above.

b. Enter the following command to completely remove the driver

c. Reboot your PC for the open-source nouveau drivers to kick-in.

Upgrading nvidia drivers in Ubuntu

Once you add ppa to your system and install drivers, you’ll automatically receive updates once they’re made available in the PPA. So keep updating system to get the latest updates.

Install Nvidia drivers In Fedora

If you are using Fedora 29, Fedora 28 or Fedora 27 then follow this tutorial. If you are using any other version, try it out and let me know if it worked or not. I have not tested it on older versions of Fedora. For Ubuntu or derivatives, it was very easy to install through PPA. But in Fedora, we will download binary files and install Nvidia drivers. So you must download the correct drivers for your graphics card otherwise, it will not work.

Check your Nvidia graphics card –

This command will show your machine’s graphics card information.

Download Nvidia drivers

Make the setup file executable

Update system and reboot

Install dependencies

​Disable open-source Nouveau drivers

Edit /etc/modprobe.d/blacklist.conf & at last, past the following line to disable nouveau drivers –

Edit grub file /etc/sysconfig/grub

​Type ‘rd.driver.blacklist=nouveau’ at the end of ‘GRUB_CMDLINE_LINUX=”…”‘.

Uninstall open-source Nouveau drivers

Create initramfs

Reboot system

Install Nvidia drivers in Fedora

Now follow the simple setup to install and configure Nvidia drivers in fedora system.​Thanks for reading, hope you find this tutorial useful. Share your thought with us in the comments.

Updated: May 10, 2013

This is a very important tutorial. The last several releases of Ubuntu are less than stellar when it comes to installing Nvidia drivers on your machines. You are likely to end up with an unbootable system, just by using the same methods that used to work flawlessly in the past. To wit, this very detailed guide, which should save you a lot of trouble.

I will present you with no less than four methods, starting with the easiest and slowly escalating toward the more difficult and less obvious ones. We will also examine a few other techniques, tips and tricks, learn about recovery, backup, and more. This article should be your one stop shop for all current and future Nvidia drivers installations.

How to recover, no matter what

Before we even begin, you need to know a few things, which should help you avoid any catastrophic loss of important, personal data, in case your system ends up not being bootable, usable or both.

Backups - Always keep backups of your personal files.

Imaging - If you can afford it, image your system, so you can restore it.

Keep a separate root and home partitions, so reinstalls become easy.

You can always boot from CD/USB and do repairs or data backups from there.

If you installed the drivers, and things are not really working, you can try to login via the first virtual console, Ctrl + Alt + F1, then perform maintenance tasks there. For example, if you installed the Nvidia drivers and they are not working, uninstall them. You might regain a bootable system.

Consider before any update

If you wish to install Nvidia drivers, you might want to do the following. Fully update your system, as well as install the so-called build essential tools, which include various compilers, kernel sources and kernel headers, to allow the proper installation.

sudo apt-get update
sudo apt-get dist-upgrade

Reboot if necessary. Then:

sudo apt-get install build-essential
sudo apt-get install linux-kernel-headers *

P.S. The name of the kernel headers meta package often changes. The names may include any one of the following: linux-kernel-headers, linux-headers-generic or linux-libc-dev, so you should be able to find your way around.

Method 1: Additional Drivers

The most trivial way of installing your Nvidia drivers. Open the Ubuntu Software Center, go to Edit > Software Sources, click on the Additional Drivers tab, select the desired version and click Apply Changes. I would recommend using the latest updates. Demonstrated on Xubuntu 13.04 Raring Ringtail.

Method 2: Manual install from repository

This is pretty much like we did in Quantal Quetzal. Go to one of the virtual consoles and perform all the commands there. P.S. If you're still logged into your machine and not facing any problems yet, i.e. working normally on your desktop, then you can do the first two steps from any terminal window.

sudo apt-get install build-essential linux-source linux-headers

If the transitional package linux-headers is not available, instead, please try running the command by specifying the exact version of the headers with:

sudo apt-get install linux-headers-`uname -r`

The name may also change to linux-kernel-headers, linux-headers-generic or linux-libc-dev. They all point to the same package, so you should be fine. Next, install the current version of the Nvidia driver:

sudo apt-get install nvidia-current

You may also want to consider the nvidia-current-updates package. Once the installation completes successfully, check if the Nvidia driver is loaded:

sudo /sbin/lsmod grep nvidia

If it's not, you will need to manually insert the driver into memory. First, make sure all kernel module dependencies are satisfied and resolved:

sudo depmod -a

Then, load the driver:

sudo modprobe nvidia_current

This should succeed and the lsmod command should show it's loaded, but the usage count will probably be 0, because nothing will be using it yet. You will need to restart the graphics environment to actually benefit from the driver:

sudo /etc/init.d/lightdm restart

One more thing that you may want to consider, before loading the driver, is to run the Nvidia graphics configuration tool, which will create an Xorg.conf file containing the correct settings for the use of the driver on the startup of the graphical session.

sudo nvidia-xconfig

Method 3: X-SWAP unofficial PPA

You might want to consider using an unofficial repository for your graphics card installations and updates. This is not the best option, but sometimes, unofficial sources can actually offer better results than the official ones, which is kind of sad and funny.

sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current

Method 4: Manual install from the official site

This is very old school, much like we often used to do in openSUSE and CentOS in the past. Indeed, I will recommend you take a look at my CentOS guide for detailed instructions how to achieve this.

Basically, it comes down to this: Grab the official driver from the Nvidia website. Install all upgrades and build tools. Switch to a virtual console. Shut down the graphics environment with sudo /etc/init.d/lightdm stop command. Then, navigate to the the directory where you downloaded the official driver and run:

chmod +x <Nvidia file>.run
sudo ./<Nvidia file>.run

Once finished, start lightdm and that's it. The downside of this method is that you will have to reinstall the driver every time there's a kernel update, and you will not be getting any automatic updates for it. But it's preferable to having a machine with a graphics card worth hundreds of dollars and not being used properly. Or you could switch to another distro.

Other tips and tricks

The following information might come handy in case none of the options mentioned above works, and now you're in that stage called despair tinkering level 9, so you might as well considering trying some of them. Most of these tricks should be done in a virtual console, which you can reach with Ctrl + Alt + F1-6. You should consider stopping the desktop environment with:

sudo /etc/init.d/lightdm stop

Nouveau & Nvidia conflicts

Do note that this is a somewhat bruteforce blacklisting of modules, and might not work. It can be useful if you keep having conflicts between Nouveau and Nvidia drivers, and you want to install the latest version of the driver, provided by the nvidia-current-updates package. As sudo or root, edit the following file:

/etc/modprobe.d/nvidia-graphics-drivers.conf

Populate the following file with following information:

# This file was installed by nvidia-current-updates
# Do not edit this file manually
blacklist nouveau
blacklist lbm-nouveau
blacklist nvidia-173
blacklist nvidia-96
blacklist nvidia-current
blacklist nvidia-173-updates
blacklist nvidia-96-updates
alias nvidia nvidia_current_updates
alias nouveau off
alias lbm-nouveau off

Recreate the initrd file:

sudo update-initramfs -u

Add/edit the following to your GRUB2 default config under /etc/default/grub:

GRUB_CMDLINE_LINUX_DEFAULT='nomodeset'

Test and enjoy!

If you're successful, then you can begin enjoying your machine.

Install Nvidia Drivers Ubuntu 12.04

More reading

You might want these guides, too:

Highly useful Linux commands & configurations

Ubuntu 12.10 Quantal Quetzal review on a machine with Nvidia card

A lengthy Xubuntu 13.04 Raring Ringtail review

Conclusion

I believe this is a highly useful tutorial, which teaches you a lot of things, in addition to its core mission of installing the graphics drivers for your Nvidia card on Ubuntu. The tutorial is also applicable to Kubuntu and Linux Mint, with the one exception being the names of the graphics environment, kdm and mdm, respectively. Anyhow, you have four methods, plus a manual hack to achieve the desired task, plus tips and tricks on compilation, working with sources and unofficial repositories, recovery, backup, virtual consoles, and more.

Overall, you should be fine, and the normal install ought to work, but if you get in a tight spot, you will know how to extricate yourself elegantly and painlessly. I guess that would be all. If you feel there are things missing from this tutorial, additional tips and tricks that can be added, and yet other, more inventive and innovative methods, feel free to ping me. I will keep sacrificing myself so you don't have to. Stay pretty.

Clean Reinstall Nvidia Drivers

P.S. If you find this article useful, please support Dedoimedo.

Install Nvidia Drivers Ubuntu 17

Cheers.