NewServerLife
Rackmount servers
NVMe servers
AMD Based
Tower servers
Blade servers
Have any questions?
Get in touch.
Live Chat

How to Install NVIDIA Drivers on Ubuntu

31 October 2023

In this article, we'll walk you through the step-by-step process of installing NVIDIA drivers on Ubuntu. We'll use a practical example involving two MSI GeForce RTX 3090 AERO 24G graphics cards with active cooling installed in a Supermicro GPU SuperWorkstation 7049GP-TRT server.

How to Install NVIDIA Drivers on Ubuntu

To begin, let's verify whether the graphics cards are functioning correctly by running a test, assuming you have Ubuntu Desktop 20.04.2 LTS as your operating system. We will install NVIDIA drivers for our graphics cards.

First, check if the operating system detects the devices:

lspci | grep VGA

How to Install NVIDIA Drivers on Ubuntu

If you have only one graphics card, and your monitor displays something, it means the graphics card is working. In our case, the server has two NVIDIA cards, as seen in the screenshot. I am currently accessing the system remotely through the built-in graphics card in the ASPEED chip.

You can also search for more information by using:

lspci -vnn | grep -E "NVIDIA.*VGA|VGA.*NVIDIA" -A 24

How to Install NVIDIA Drivers on Ubuntu

Installing the Driver from the Ubuntu Repository

Ubuntu provides a utility called ubuntu-drivers for managing drivers. It can display a list of recommended drivers for your devices. Run:

ubuntu-drivers devices

How to Install NVIDIA Drivers on Ubuntu

The utility may suggest installing the nvidia-driver-460 driver. If the version is suitable, you can use the automatic installer:

ubuntu-drivers autoinstall

Alternatively, you can install it manually:

apt-get install nvidia-driver-460

After the installation, reboot your computer or server.

To monitor the status of the graphics cards, use the nvidia-smi utility, which is installed along with the drivers:

nvidia-smi

How to Install NVIDIA Drivers on Ubuntu

For GUI-based information about the graphics cards, you can use NVIDIA X Server Settings.

How to Install NVIDIA Drivers on Ubuntu

Installing a Newer Driver Version from a PPA

There is an unofficial repository where newer driver versions, compiled from Nvidia's source, are available.

Switch to the root user. If you previously installed an Nvidia driver, remove it:

apt-get purge nvidia*

Add the PPA repository:

add-apt-repository ppa:graphics-drivers/ppa

Check the list of Nvidia driver versions available in the repository:

apt-get update && clear && apt-cache search nvidia-[0-9] | grep 'binary driver'

Install the desired driver version (replace nvidia-370 with your chosen version) and the program for configuring it:

apt-get install nvidia-370 nvidia-settings

Create an xorg.conf file:

nvidia-xconfig

Reboot your computer:

reboot

Installing the Driver from the Official Nvidia Website

Download the Nvidia driver installer NVIDIA-Linux-XXX-XXX.XXX.run from the official Nvidia website and make it executable in its properties.

Switch to the root user. Install the necessary packages for building the video driver:

apt-get install build-essential dkms mc linux-headers-`uname -r`

If you had a previous Nvidia driver installed, remove it:

apt-get purge nvidia* && clear && nvidia-uninstall || clear

Switch to the console with Ctrl-Alt-F2, log in, and stop the X server:

service lightdm stop

Install the driver using mc:

mc

Select NVIDIA-Linux-XXX-XXX.XXX.run and press "Enter". Accept the license agreement and proceed with the installation by agreeing to all prompts with "Yes". Finally, reboot your computer:

reboot

If video playback is not working after the driver installation, VDPAU may be the issue. You can replace it with the VDPAU package from the repository:

apt-get install --reinstall libvdpau1

Removing the NVIDIA Driver

To uninstall the NVIDIA driver, use the following command in the terminal, console, or recovery mode:

nvidia-uninstall

This will remove the NVIDIA driver from your system.

That's it! You've successfully installed and managed NVIDIA drivers on your Ubuntu system, ensuring optimal performance for your graphics cards. If you have any further questions or need assistance, please don't hesitate to reach out to Newserverlife, the experts in refurbished servers.


Specialists of our company are ready to help you purchase the server and select the necessary server configuration for any required task.


Hot price
Dell PowerEdge C4130
Dell PowerEdge C4130
from $624 $0
Configure
1/1
Hot price
Dell PowerEdge R730 8SFF
Dell PowerEdge R730 8SFF
from $368 $0
Configure
Hot price
Dell PowerEdge R730 16SFF
Dell PowerEdge R730 16SFF
from $388 $0
Configure
Hot price
Dell PowerEdge R730 8LFF
Dell PowerEdge R730 8LFF
from $478 $0
Configure
1/3
Hot price
Dell PowerEdge R730xd 12LFF + 4LFF + 2SFF
Dell PowerEdge R730xd 12LFF + 4LFF + 2SFF
from $528 $0
Configure
Hot price
Dell PowerEdge R730xd 26SFF (4x NVMe U.2)
Dell PowerEdge R730xd 26SFF (4x NVMe U.2)
from $558 $0
Configure
Hot price
Dell PowerEdge R730xd 26SFF
Dell PowerEdge R730xd 26SFF
from $428 $0
Configure
Hot price
Dell PowerEdge R730xd 24SFF (4x NVMe U.2)
Dell PowerEdge R730xd 24SFF (4x NVMe U.2)
from $508 $0
Configure
Hot price
Dell PowerEdge R730xd 12LFF + 2SFF
Dell PowerEdge R730xd 12LFF + 2SFF
from $488 $0
Configure
Hot price
Dell PowerEdge R730xd 12LFF
Dell PowerEdge R730xd 12LFF
from $448 $0
Configure
Hot price
Dell PowerEdge R730xd 24SFF
Dell PowerEdge R730xd 24SFF
from $398 $0
Configure
1/7
Hot price
Dell PowerEdge R740 8LFF
Dell PowerEdge R740 8LFF
from $1,100 $0
Configure
Hot price
Dell PowerEdge R740 16SFF
Dell PowerEdge R740 16SFF
from $859 $0
Configure
Hot price
Dell PowerEdge R740 8SFF
Dell PowerEdge R740 8SFF
from $809 $0
Configure
1/3
Hot price
Dell PowerEdge R740xd2 24LFF + 2LFF
Dell PowerEdge R740xd2 24LFF + 2LFF
from $3,250 $0
Configure
Hot price
Dell PowerEdge R740xd 24SFF (12 NVMe)
Dell PowerEdge R740xd 24SFF (12 NVMe)
from $1,309 $0
Configure
Hot price
Dell PowerEdge R740xd 24SFF (24 NVMe)
Dell PowerEdge R740xd 24SFF (24 NVMe)
from $1,509 $0
Configure
Hot price
Dell PowerEdge R740xd 24SFF
Dell PowerEdge R740xd 24SFF
from $1,000 $0
Configure
Hot price
Dell PowerEdge R740xd 12LFF
Dell PowerEdge R740xd 12LFF
from $1,109 $0
Configure
Hot price
Dell PowerEdge R740xd 12LFF + 4LFF + 2LFF
Dell PowerEdge R740xd 12LFF + 4LFF + 2LFF
from $1,289 $0
Configure
Hot price
Dell PowerEdge R740xd 12LFF + 4SFF NVMe
Dell PowerEdge R740xd 12LFF + 4SFF NVMe
from $1,509 $0
Configure
Hot price
Dell PowerEdge R740xd 12LFF + 4SFF
Dell PowerEdge R740xd 12LFF + 4SFF
from $1,130 $0
Configure
Hot price
Dell PowerEdge R740xd 24SFF (8 NVMe)
Dell PowerEdge R740xd 24SFF (8 NVMe)
from $1,259 $0
Configure
Hot price
Dell PowerEdge R740xd 24SFF (4 NVMe)
Dell PowerEdge R740xd 24SFF (4 NVMe)
from $1,109 $0
Configure
1/10
Hot price
Dell PowerEdge R930 24SFF
Dell PowerEdge R930 24SFF
from $1,383 $0
Configure
Hot price
Dell PowerEdge R930 4SFF
Dell PowerEdge R930 4SFF
from $1,183 $0
Configure
1/2
Hot price
DELL PowerEdge T630 Rack 32SFF
DELL PowerEdge T630 Rack 32SFF
from $1,612 $0
Configure
Hot price
DELL PowerEdge T630 Rack 8LFF
DELL PowerEdge T630 Rack 8LFF
from $1,312 $0
Configure
Hot price
DELL PowerEdge T630 Rack 16SFF
DELL PowerEdge T630 Rack 16SFF
from $1,312 $0
Configure
Hot price
DELL PowerEdge T630 Tower 8LFF
DELL PowerEdge T630 Tower 8LFF
from $1,512 $0
Configure
Hot price
DELL PowerEdge T630 Tower 32SFF
DELL PowerEdge T630 Tower 32SFF
from $1,712 $0
Configure
Hot price
DELL PowerEdge T630 Tower 16SFF
DELL PowerEdge T630 Tower 16SFF
from $1,412 $0
Configure
1/6
Hot price
HPE ProLiant DL360 Gen10 8SFF
HPE ProLiant DL360 Gen10 8SFF
from $820 $0
Configure
Hot price
HPE ProLiant DL360 Gen10 8SFF + 2NVMe
HPE ProLiant DL360 Gen10 8SFF + 2NVMe
from $1,270 $0
Configure
Hot price
HPE ProLiant DL360 Gen10 4LFF
HPE ProLiant DL360 Gen10 4LFF
from $845 $0
Configure
Hot price
HPE ProLiant DL360 Gen10 10NVMe Premium
HPE ProLiant DL360 Gen10 10NVMe Premium
from $2,490 $0
Configure
1/4
Hot price
HPE ProLiant DL360 Gen9 8SFF
HPE ProLiant DL360 Gen9 8SFF
from $353 $0
Configure
Hot price
HPE ProLiant DL360 Gen9 10SFF
HPE ProLiant DL360 Gen9 10SFF
from $448 $0
Configure
Hot price
HPE ProLiant DL360 Gen9 4LFF
HPE ProLiant DL360 Gen9 4LFF
from $363 $0
Configure
1/3
Hot price
HPE ProLiant DL380 Gen10 16SFF
HPE ProLiant DL380 Gen10 16SFF
from $955 $0
Configure
Hot price
HPE ProLiant DL380 Gen10 24SFF
HPE ProLiant DL380 Gen10 24SFF
from $1,015 $0
Configure
Hot price
HPE ProLiant DL380 Gen10 16SFF (8x NVMe)
HPE ProLiant DL380 Gen10 16SFF (8x NVMe)
from $1,165 $0
Configure
Hot price
HPE ProLiant DL380 Gen10 24SFF (8x NVMe)
HPE ProLiant DL380 Gen10 24SFF (8x NVMe)
from $1,365 $0
Configure
Hot price
HPE ProLiant DL380 Gen10 16SFF + 2NVMe
HPE ProLiant DL380 Gen10 16SFF + 2NVMe
from $1,085 $0
Configure
Hot price
HPE ProLiant DL380 Gen10 12LFF
HPE ProLiant DL380 Gen10 12LFF
from $1,040 $0
Configure
Hot price
HPE ProLiant DL380 Gen10 8LFF
HPE ProLiant DL380 Gen10 8LFF
from $975 $0
Configure
Hot price
HPE ProLiant DL380 Gen10 8SFF
HPE ProLiant DL380 Gen10 8SFF
from $785 $0
Configure
1/8
Hot price
HPE ProLiant DL380 Gen9 24SFF
HPE ProLiant DL380 Gen9 24SFF
from $468 $0
Configure
Hot price
HPE ProLiant DL380 Gen9 12LFF
HPE ProLiant DL380 Gen9 12LFF
from $483 $0
Configure
Hot price
HPE ProLiant DL380 Gen9 8SFF + 2SFF
HPE ProLiant DL380 Gen9 8SFF + 2SFF
from $448 $0
Configure
Hot price
HPE ProLiant DL380 Gen9 12LFF + 3LFF
HPE ProLiant DL380 Gen9 12LFF + 3LFF
from $518 $0
Configure
Hot price
HPE ProLiant DL380 Gen9 8SFF
HPE ProLiant DL380 Gen9 8SFF
from $363 $0
Configure
Hot price
HPE ProLiant DL380 Gen9 12LFF + 2SFF
HPE ProLiant DL380 Gen9 12LFF + 2SFF
from $478 $0
Configure
Hot price
HPE ProLiant DL380 Gen9 16SFF
HPE ProLiant DL380 Gen9 16SFF
from $458 $0
Configure
1/7
Hot price
HPE ML350 Gen10 8SFF Tower
HPE ML350 Gen10 8SFF Tower
from $1,725 $0
Configure
1/1
Hot price
HPE ML350 Gen9 8SFF Rack-mount
HPE ML350 Gen9 8SFF Rack-mount
from $1,093 $0
Configure
Hot price
HPE ML350 Gen9 8SFF Tower
HPE ML350 Gen9 8SFF Tower
from $1,013 $0
Configure
1/2
Hot price
HPE ProLiant Apollo 4200 Gen10 24LFF + 6 NVMe
HPE ProLiant Apollo 4200 Gen10 24LFF + 6 NVMe
from $1,831 $0
Configure
Hot price
HPE ProLiant Apollo 4200 Gen10 48SFF
HPE ProLiant Apollo 4200 Gen10 48SFF
from $1,731 $0
Configure
Hot price
HPE ProLiant Apollo 4200 Gen10 24LFF
HPE ProLiant Apollo 4200 Gen10 24LFF
from $1,481 $0
Configure
1/3