Logo
  • Ubuntu
  • CentOS
  • Debian
  • Fedora
  • RedHat

How to Install Nvidia Drivers on Ubuntu 20.04 - DesignLinux

Nov 12 2020
designlinux 0 Comments

This article describes how to install the NVIDIA drivers on Ubuntu 20.04.

If your Ubuntu machine has an NVIDIA GPU, you can choose between the open-source driver Nouveau and NVIDIA’s proprietary drivers. By default, Ubuntu uses Nouveau drivers that are generally much slower than the proprietary drivers and lacks support for the latest hardware and software technology.

Installing NVIDIA drivers on Ubuntu is an easy task that can be done in less than a minute. Ubuntu includes a tool that can detect the graphics card model and install the appropriate NVIDIA drivers. Alternatively, you can download and install the drivers from the NVIDIA site.

Installing the NVIDIA Drivers Using a GUI #

This is the easiest and the recommended way to install NVIDIA drivers on Ubuntu Desktop systems.

  1. In the Activities screen, search for “driver” and click on the “Additional Drivers” icon.

  2. The “Software & Updates” window will open where you can see all available drivers for your graphic card.

    Depending on the installed card, you will be presented with a list of one or more NVIDIA drivers.

  3. Select the NVIDIA diver you want to install and click on the “Apply Changes” button.

    The installation process may take a few minutes.

  4. Once the drivers and installed, reboot your machine .

The new NVIDIA driver will be active after the system boot up. If you want to view or change the driver setting, launch the nvidia-settings utility:

sudo nvidia-settings

Later, if you want to update or change the driver, just repeat the same steps.

Installing the NVIDIA Drivers Using the Command-Line #

If you prefer the command-line interface, you can use the ubuntu-drivers tool.

Open your terminal (Ctrl+Alt+T), and run the following command to get information about your graphic card and available drivers:

ubuntu-drivers devices

The output below shows that this system has “GeForce GTX 1650” and the recommended driver is “nvidia-driver-440”. You may see a different output depending on your system.

== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001F95sv00001028sd0000097Dbc03sc02i00
vendor   : NVIDIA Corporation
model    : TU117M [GeForce GTX 1650 Ti Mobile]
driver   : nvidia-driver-440 - distro non-free recommended
driver   : xserver-xorg-video-nouveau - distro free builtin

Usually, it is best to install the recommended driver. To do so, use the apt package manager:

sudo apt install nvidia-driver-440

Once the installation is completed, reboot your system:

sudo reboot

When the system is back, you can view the status of the graphic card using the nvidia-smi monitoring tool:

nvidia-smi

The command will display the version of the used driver and other information about the NVIDIA card:

Wed Nov 11 22:45:21 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.100      Driver Version: 440.100      CUDA Version: 11.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  GeForce GTX 165...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   41C    P3    14W /  N/A |      4MiB /  3914MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      2323      G   /usr/lib/xorg/Xorg                  4MiB |
+-----------------------------------------------------------------------------+

Installing the Latest NVIDIA Drivers #

Most users should stick with the stable NVIDIA drivers that are available in the default Ubuntu repositories. If you want to live on the edge you can install the latest drivers either from the NVIDIA site or from the “Graphics Drivers” PPA.

We’ll use the PPA method as it is easier to install and update the drivers.

Add the PPA repository using the following command:

sudo add-apt-repository ppa:micahflee/ppa

Use the ubuntu-drivers tool to view the available drivers:

ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001F95sv00001028sd0000097Dbc03sc02i00
vendor   : NVIDIA Corporation
model    : TU117M [GeForce GTX 1650 Ti Mobile]
driver   : nvidia-driver-440-server - distro non-free
driver   : nvidia-driver-450-server - third-party non-free
driver   : nvidia-driver-455 - third-party non-free recommended
driver   : xserver-xorg-video-nouveau - distro free builtin

Install the desired driver:

sudo apt install nvidia-driver-455

Reboot the system to activate the new driver.

Conclusion #

We’ve shown you how to install NVIDIA Driver on Ubuntu 20.04. If you hit any problem, check the Ubuntu Nvidia page .

If you have two graphic cards, and you want to switch between NVIDIA and integrated card, check the System76 Power extension.

nvidia ubuntu

Related

Tags: nvidia, ubuntu

How to Install and Configure Cloudera Manager on CentOS/RHEL 7 – Part 3

Prev Post

How to Create Simple Shell Scripts in Linux

Next Post
Archives
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • July 2022
  • June 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
Categories
  • AlmaLinux
  • Android
  • Ansible
  • Apache
  • Arch Linux
  • AWS
  • Backups
  • Bash Shell
  • Bodhi Linux
  • CentOS
  • CentOS Stream
  • Chef
  • Cloud Software
  • CMS
  • Commandline Tools
  • Control Panels
  • CouchDB
  • Data Recovery Tools
  • Databases
  • Debian
  • Deepin Linux
  • Desktops
  • Development Tools
  • Docker
  • Download Managers
  • Drupal
  • Editors
  • Elementary OS
  • Encryption Tools
  • Fedora
  • Firewalls
  • FreeBSD
  • FTP
  • GIMP
  • Git
  • Hadoop
  • HAProxy
  • Java
  • Jenkins
  • Joomla
  • Kali Linux
  • KDE
  • Kubernetes
  • KVM
  • Laravel
  • Let's Encrypt
  • LFCA
  • Linux Certifications
  • Linux Commands
  • Linux Desktop
  • Linux Distros
  • Linux IDE
  • Linux Mint
  • Linux Talks
  • Lubuntu
  • LXC
  • Mail Server
  • Manjaro
  • MariaDB
  • MongoDB
  • Monitoring Tools
  • MySQL
  • Network
  • Networking Commands
  • NFS
  • Nginx
  • Nodejs
  • NTP
  • Open Source
  • OpenSUSE
  • Oracle Linux
  • Package Managers
  • Pentoo
  • PHP
  • Podman
  • Postfix Mail Server
  • PostgreSQL
  • Python
  • Questions
  • RedHat
  • Redis Server
  • Rocky Linux
  • Security
  • Shell Scripting
  • SQLite
  • SSH
  • Storage
  • Suse
  • Terminals
  • Text Editors
  • Top Tools
  • Torrent Clients
  • Tutorial
  • Ubuntu
  • Udemy Courses
  • Uncategorized
  • VirtualBox
  • Virtualization
  • VMware
  • VPN
  • VSCode Editor
  • Web Browsers
  • Web Design
  • Web Hosting
  • Web Servers
  • Webmin
  • Windows
  • Windows Subsystem
  • WordPress
  • Zabbix
  • Zentyal
  • Zorin OS
Visits
  • 0
  • 487
  • 612,666

DesignLinux.com © All rights reserved

Go to mobile version