How to install the NVIDIA drivers on Ubuntu 19.04

Cpanel/Whm License $3/mo Plesk License $10/mo Cloudlinux License $5/mo

The objective is to install the NVIDIA drivers on Ubuntu 19.04 Disco Dingo Linux.
In this tutorial you will learn:

  • How to perform an automatic Nvidia driver installation using standard Ubuntu Repository
  • How to perform a Nvidia driver installtion using PPA repository
  • How to install the official Nvidia.com driver
Installed NVIDIA drivers onUbuntu 19.04 Disco Dingo Linux. After installation, optionally run Nvidia graphic card test by following our Benchmark Your Graphics Card On Linux guide.

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Ubuntu 19.04 Disco Dingo Linux
Software N/A
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user

How to install Nvidia Drivers using a standard Ubuntu Repository step by step instructions

The first method is the easiest to perform and in most cases it is the recommended approach.

  1.  First, detect the model of your nvidia graphic card and the recommended driver. To do so execute the following command. Please note that your output and recommended driver will most likely be different:
    $ ubuntu-drivers devices
    == /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
    modalias : pci:v000010DEd00001C03sv00001043sd000085ABbc03sc00i00
    vendor   : NVIDIA Corporation
    model    : GP106 [GeForce GTX 1060 6GB]
    manual_install: True
    driver   : nvidia-driver-418 - distro non-free recommended
    driver   : nvidia-driver-390 - distro non-free
    driver   : xserver-xorg-video-nouveau - distro free builtin
    


    From the above output we can conclude that the current system has NVIDIA GeForce GTX 1060 6GB graphic card installed and the recommend driver to install is nvidia-driver-418.

  2.  Install driver.

    If you agree with the recommendation feel free to use the ubuntu-drivers command again to install all recommended drivers:

    $ sudo ubuntu-drivers autoinstall
    

    Alternatively, install desired driver selectively using the apt command. For example:

    $ sudo apt install nvidia-driver-418
    
  3.  Once the installation is concluded, reboot your system and you are done.
    $ sudo reboot
    

Automatic Install using PPA repository to install Nvidia Beta drivers

  1. Using graphics-drivers PPA repository allows us to install bleeding edge Nvidia beta drivers at the risk of unstable system. To proceed first add the ppa:graphics-drivers/ppa repository into your system:
    $ sudo add-apt-repository ppa:graphics-drivers/ppa
    
  2. Next, identify your graphic card model and recommended driver:
    $ ubuntu-drivers devices
    == /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
    modalias : pci:v000010DEd00001C03sv00001043sd000085ABbc03sc00i00
    vendor   : NVIDIA Corporation
    model    : GP106 [GeForce GTX 1060 6GB]
    manual_install: True
    driver   : nvidia-driver-390 - distro non-free
    driver   : nvidia-driver-418 - distro non-free recommended
    driver   : nvidia-driver-396 - third-party free
    driver   : nvidia-driver-415 - third-party free
    driver   : xserver-xorg-video-nouveau - distro free builtin
    

    In this case the hird-party free drivers are behind.

  3. Install Nvidia Driver

    Same as with the above standard Ubuntu repository example, either install all recommended drivers automatically:

    $ sudo ubuntu-drivers autoinstall
    

    or selectively using the apt command. Example:

    $ sudo apt install nvidia-driver-418
    
  4. All done.

    Reboot your computer:

    $ sudo reboot
    


Manual Install using the Official Nvidia.com driver step by step

    1. identify your NVIDIA VGA card.

      The below commands will allow you to identify your Nvidia card model:

      $  lshw -numeric -C display
      or
      $ lspci -vnn | grep VGA
      or
      $ ubuntu-drivers devices
      
    2. Download the Official Nvidia Driver.

      Using your web browser navigate to the official Nvidia website and download an appropriate driver for your Nvidia graphic card.

      Alternatively, if you know what you are doing you can download the driver directly from the Nvidia Linux driver list. Once ready you should end up with a file similar to the one shown below:

      $ ls
      NVIDIA-Linux-x86_64-418.56.run
      
    3. Install Prerequisites

      The following prerequisites are required to compile and install Nvidia driver:

      $ sudo dpkg --add-architecture i386
      $ sudo apt update
      $ sudo apt install build-essential libc6:i386
      


  1. Disable Nouveau Nvidia driver.

    Next step is to disable the default nouveau Nvidia driver. Follow this guide on how to disable the default Nouveau Nvidia driver. Make sure you reboot your system before you proceed to the next step.

  2. Stop Desktop Manager.

    In order to install new Nvidia driver we need to stop the current display server. The easiest way to do this is to change into runlevel 3 using the telinit command. After executing the following linux command the display server will stop, therefore make sure you save all your current work ( if any ) before you proceed:

    $ sudo telinit 3
    

    Hit CTRL+ALT+F1 and login with your username and password to open a new TTY1 session or login via SSH.

  3. Install Nvidia Driver.

    To start installation of Nvidia driver execute the following linux command and follow the wizard:

    $ sudo bash NVIDIA-Linux-x86_64-418.56.run
    
  4. The Nvidia driver is now installed.

    Reboot your system:

    $ sudo reboot
    
  5. Configure NVIDIA X Server Settings.

    After reboot your should be able to start NVIDIA X Server Settings app from the Activities menu.

    Official Nvidia.com drivers installed on Ubuntu 19.04

Appendix

Error message:

WARNING: Unable to find suitable destination to install 32-bit compatibility libraries

Depending on your needs, this can be safely ignored. However, if you wish to install steam game platform this issue cannot be ignored. To resolve execute:

$ sudo dpkg --add-architecture i386
$ sudo apt update
$ sudo apt install libc6:i386

and re-run the nvidia driver installation.

Related posts

Kraken Is Seeking ‘War Chest’ Investment at a $4 Billion Valuation

SXI ADMIN

Mining Malware Infects Mobile Market via Google Play Apps

SXI ADMIN

Cryptsy Founder Paul Vernon on Worthy Altcoins, Pre-Mining and Compliance

SXI ADMIN

Change in China (And What It Means For Bitcoin)

SXI ADMIN

Coinbase Prepares to Fight IRS Summons With New Court Filing

SXI ADMIN

Jonas Schnelli Wants You to Run a Bitcoin Full Node

SXI ADMIN

Qiwi’s CEO Will Head Up Russia’s Distributed Ledger Efforts

SXI ADMIN

Blockchains.com Founder Buys Community Bank to Finance Crypto Dreams

SXI ADMIN

Gatecoin Crypto Exchange to Shut Down on Court’s Orders

SXI ADMIN

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More