Ubuntu Linux Install Nvidia Driver (Latest Proprietary Driver)

I am a new Ubuntu Linux user. My laptop has Nvidia GPU. How do I install Nvidia drivers on Ubuntu Linux 16.04, 18.04, 18.10?

Introduction: Nvidia graphics processing units (GPUs) used for gaming and professional use in offices. Nvidia GPUs used in data centers, visualization, automobile industry, and artificial intelligence. By default X server use nouveau free/libre software drivers for nVidia cards. The nouveau driver generally provides the inferior performance to Nvidia’s proprietary graphics device drivers for gaming and other professional use. This page shows how to install Nvidia GPU drivers on an Ubuntu Linux desktop.

Ubuntu Linux Install Nvidia Driver

The procedure to install proprietary Nvidia GPU Drivers on Ubuntu 16.04 / 17.10, 18.04 / 18.10 is as follows:

  1. Update your system running apt-get command
  2. You can install Nvidia drivers either using GUI or CLI method
  3. Open “Software and Updates” app to install install Nvidia driver using GUI
  4. OR type “sudo apt install nvidia-driver-390” at the CLI
  5. Reboot the computer/laptop to load the drivers
  6. Verify drivers are working

Let us see all commands in details.

Find out information about your GPU

Naturally, you can only install Nvidia driver if you have Nvidia GPU in your system. Type the hwinfo command/lshw command to find out info about your GPU:
$ hwinfo --gfxcard --short
$ sudo lshw -C display

See “Linux Find Out Graphics Card Installed In My System” for more info.

Install Nvidia driver using GUI method on Ubuntu Linux

Press the Super key (Windows key) and type the following in search box:
update manager

Click on the Settings button:

Click on the Additional drivers tab:

Choose nvidia-driver-390 (proprietary, tested) and click on the Apple Changes button. You must authenticate yourself to install Nvidia driver on Ubuntu Linux. You must wait for some time as Nvidia driver downloaded and installed from the internet:

Click on the Close button when done. You must reboot Ubuntu Linux computer to use the driver by typing the following shutdown command:
$ sudo shutdown -r now
$ sudo reboot
Now skip to the driver verification step.

Ubuntu Install Nvidia driver using the CLI method

Open the termial application and search for nvidia drivers using the apt command or apt-get command:
$ apt search nvidia-driver
OR use the apt-cache command to search package:
$ apt-cache search nvidia-driver

Let us install the nvidia-driver-390 package:
$ sudo apt install nvidia-driver-390
Reboot the Linux with help of either reboot or shutdown command:
$ sudo reboot
Now go to the driver verification step.


Open the terminal application and type nvidia-smi to see GPU info and process that are using Nvidia GPU:
$ nvidia-smi

The nvidia-smi command line utility provides monitoring and management capabilities for each of NVIDIA’s Tesla, Quadro, GRID and GeForce devices from Fermi and higher architecture families. You can see running apps on your GPU and GPU temperature.

How do I configure the NVIDIA graphics driver?

The nvidia-settings command start a GUI tool for configuring the NVIDIA graphics driver. This is useful to see all GPU info or configure multiple external screen/monitors connected to your system. Open the terminal and type the following commands:
$ nvidia-settings
If you wish to save settings start it as follows:
$ sudo nvidia-settings


You learned two different ways to install Nvidia Driver on Ubuntu 18.04 Linux. Obviously, the GUI method is simple and easy to use. The CLI method is useful for server installation. For more info see official Nvidia Unix/Linux driver page here.

This entry is 1 of 2 in the Nvidia Linux and Unix Tutorial series. Keep reading the rest of the series:
  1. Ubuntu Linux Install Nvidia Driver (Latest Proprietary Driver)
  2. How to install Nvidia driver on CentOS 7 Linux

(adsbygoogle = window.adsbygoogle || []).push({});

Posted by: SXI ADMIN

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.


How to KVM, QEMU start or stop virtual machine from command line (CLI)

KVM or Kernel Based Virtual Machine is a popular virtualization technology. It allows you to run virtual guest machines over a host machine. To start...

How to Docker backup Saving and restoring your volumes

Running a Docker volume backup First, we spin up a temporary container, and we mount the backup folder and the target Docker volume to this container....

How to Start and Enable Firewalld on CentOS 7

In this article, we discuss how to start and enable firewalld. It is highly recommended that you have a firewall protecting your server.Pre-Flight CheckThese...