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.


In stock
Dell PowerEdge C4130
Dell PowerEdge C4130
1U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 1024 GB (16 x DDR4)
from $564
Configure
1/1
In stock
Dell PowerEdge R730 8SFF
Dell PowerEdge R730 8SFF
2U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 1536 GB (24 x DDR4)
8SFF Bay 2.5" (Hot Swap)
from $321
Configure
In stock
Dell PowerEdge R730 16SFF
Dell PowerEdge R730 16SFF
2U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 1536 GB (24 x DDR4)
16SFF Bay 2.5" (Hot Swap)
from $341
Configure
In stock
Dell PowerEdge R730 8LFF
Dell PowerEdge R730 8LFF
2U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 1536 GB (24 x DDR4)
8LFF Bay 3.5" (Hot Swap)
from $431
Configure
1/3
In stock
Dell PowerEdge R730xd 12LFF + 4LFF + 2SFF
Dell PowerEdge R730xd 12LFF + 4LFF + 2SFF
2U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 3072 GB (24 x DDR4)
16LFF + 2SFF Bay 3.5" (Hot Swap)
from $451
Configure
In stock
Dell PowerEdge R730xd 26SFF (4x NVMe U.2)
Dell PowerEdge R730xd 26SFF (4x NVMe U.2)
2U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 3072 GB (24 x DDR4)
26SFF (4x NVME) Bay 2.5" (Hot Swap)
from $511
Configure
In stock
Dell PowerEdge R730xd 26SFF
Dell PowerEdge R730xd 26SFF
2U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 3072 GB (24 x DDR4)
26SFF Bay 2.5" (Hot Swap)
from $381
Configure
In stock
Dell PowerEdge R730xd 24SFF (4x NVMe U.2)
Dell PowerEdge R730xd 24SFF (4x NVMe U.2)
2U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 3072 GB (24 x DDR4)
24SFF (4x NVME) Bay 2.5" (Hot Swap)
from $461
Configure
In stock
Dell PowerEdge R730xd 12LFF + 2SFF
Dell PowerEdge R730xd 12LFF + 2SFF
2U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 3072 GB (24 x DDR4)
12LFF + 2SFF Bay 3.5" (Hot Swap)
from $441
Configure
In stock
Dell PowerEdge R730xd 12LFF
Dell PowerEdge R730xd 12LFF
2U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 3072 GB (24 x DDR4)
12LFF Bay 3.5" (Hot Swap)
from $401
Configure
In stock
Dell PowerEdge R730xd 24SFF
Dell PowerEdge R730xd 24SFF
2U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 3072 GB (24 x DDR4)
24SFF Bay 2.5" (Hot Swap)
from $351
Configure
1/7
In stock
Dell PowerEdge R740 8LFF
Dell PowerEdge R740 8LFF
2U (rackmount)
up to 2 Xeon Scalable
up to 3072 GB (24 x DDR4)
8LFF Bay 3.5" (Hot Swap)
from $1,020
Configure
Hot price
Dell PowerEdge R740 16SFF
Dell PowerEdge R740 16SFF
2U (rackmount)
up to 2 Xeon Scalable
up to 3072 GB (24 x DDR4)
16SFF Bay 2.5" (Hot Swap)
from $779 $819
Configure
In stock
Dell PowerEdge R740 8SFF
Dell PowerEdge R740 8SFF
2U (rackmount)
up to 2 Xeon Scalable
up to 3072 GB (24 x DDR4)
8SFF Bay 2.5" (Hot Swap)
from $729
Configure
1/3
In stock
Dell PowerEdge R740xd2 24LFF + 2LFF
Dell PowerEdge R740xd2 24LFF + 2LFF
2U (rackmount)
up to 2 Xeon Scalable
up to 1024 GB (16 x DDR4)
26LFF Bay 3.5" (Hot Swap)
from $1,870
Configure
Hot price
Dell PowerEdge R740xd 24SFF (12 NVMe)
Dell PowerEdge R740xd 24SFF (12 NVMe)
2U (rackmount)
up to 2 Xeon Scalable
up to 3072 GB (24 x DDR4)
24SFF (12x NVME) Bay 2.5" (Hot Swap)
from $1,229 $1,329
Configure
Hot price
Dell PowerEdge R740xd 24SFF (24 NVMe)
Dell PowerEdge R740xd 24SFF (24 NVMe)
2U (rackmount)
up to 2 Xeon Scalable
up to 3072 GB (24 x DDR4)
24SFF (24x NVME) Bay 2.5" (Hot Swap)
from $1,529 $1,829
Configure
In stock
Dell PowerEdge R740xd 24SFF
Dell PowerEdge R740xd 24SFF
2U (rackmount)
up to 2 Xeon Scalable
up to 3072 GB (24 x DDR4)
24SFF Bay 2.5" (Hot Swap)
from $920
Configure
Hot price
Dell PowerEdge R740xd 12LFF
Dell PowerEdge R740xd 12LFF
2U (rackmount)
up to 2 Xeon Scalable
up to 3072 GB (24 x DDR4)
12LFF Bay 3.5" (Hot Swap)
from $1,029 $1,109
Configure
In stock
Dell PowerEdge R740xd 12LFF + 4LFF + 2LFF
Dell PowerEdge R740xd 12LFF + 4LFF + 2LFF
2U (rackmount)
up to 2 Xeon Scalable
up to 3072 GB (24 x DDR4)
18LFF Bay 3.5" (Hot Swap)
from $1,209
Configure
In stock
Dell PowerEdge R740xd 12LFF + 4SFF
Dell PowerEdge R740xd 12LFF + 4SFF
2U (rackmount)
up to 2 Xeon Scalable
up to 3072 GB (24 x DDR4)
12LFF + 4SFF Bay 3.5" (Hot Swap)
from $1,050
Configure
In stock
Dell PowerEdge R740xd 24SFF (8 NVMe)
Dell PowerEdge R740xd 24SFF (8 NVMe)
2U (rackmount)
up to 2 Xeon Scalable
up to 3072 GB (24 x DDR4)
24SFF (8x NVME) Bay 2.5" (Hot Swap)
from $1,179
Configure
In stock
Dell PowerEdge R740xd 24SFF (4 NVMe)
Dell PowerEdge R740xd 24SFF (4 NVMe)
2U (rackmount)
up to 2 Xeon Scalable
up to 3072 GB (24 x DDR4)
24SFF (4x NVME) Bay 2.5" (Hot Swap)
from $1,029
Configure
1/9
In stock
Dell PowerEdge R930 24SFF
Dell PowerEdge R930 24SFF
4U (rackmount)
up to 4 Xeon E7-8800v3/v4
up to 6144 GB (96 x DDR4)
24SFF Bay 2.5" (Hot Swap)
from $1,239
Configure
In stock
Dell PowerEdge R930 4SFF
Dell PowerEdge R930 4SFF
4U (rackmount)
up to 4 Xeon E7-8800v3/v4
up to 6144 GB (96 x DDR4)
4SFF Bay 2.5" (Hot Swap)
from $1,039
Configure
1/2
In stock
DELL PowerEdge T630 Rack 32SFF
DELL PowerEdge T630 Rack 32SFF
5U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 1536 GB (24 x DDR4)
32SFF Bay 2.5" (Hot Swap)
from $1,528
Configure
In stock
DELL PowerEdge T630 Rack 8LFF
DELL PowerEdge T630 Rack 8LFF
5U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 1536 GB (24 x DDR4)
8LFF Bay 3.5" (Hot Swap)
from $1,228
Configure
In stock
DELL PowerEdge T630 Rack 16SFF
DELL PowerEdge T630 Rack 16SFF
5U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 1536 GB (24 x DDR4)
16SFF Bay 2.5" (Hot Swap)
from $1,228
Configure
In stock
DELL PowerEdge T630 Tower 8LFF
DELL PowerEdge T630 Tower 8LFF
Tower
up to 2 Xeon E5-2600v3/v4
up to 1536 GB (24 x DDR4)
8LFF Bay 3.5" (Hot Swap)
from $1,428
Configure
In stock
DELL PowerEdge T630 Tower 32SFF
DELL PowerEdge T630 Tower 32SFF
Tower
up to 2 Xeon E5-2600v3/v4
up to 1536 GB (24 x DDR4)
32SFF Bay 2.5" (Hot Swap)
from $1,628
Configure
In stock
DELL PowerEdge T630 Tower 16SFF
DELL PowerEdge T630 Tower 16SFF
Tower
up to 2 Xeon E5-2600v3/v4
up to 1536 GB (24 x DDR4)
16SFF Bay 2.5" (Hot Swap)
from $1,328
Configure
1/6
In stock
HPE ProLiant DL360 Gen10 8SFF
HPE ProLiant DL360 Gen10 8SFF
1U (rackmount)
up to 2 Xeon Scalable
up to 3072 GB (24 x DDR4)
8SFF Bay 2.5" (Hot Swap)
from $740
Configure
Hot price
HPE ProLiant DL360 Gen10 8SFF + 2NVMe
HPE ProLiant DL360 Gen10 8SFF + 2NVMe
1U (rackmount)
up to 2 Xeon Scalable
up to 3072 GB (24 x DDR4)
8SFF + 2NVMe Bay 2.5" (Hot Swap)
from $1,190 $1,290
Configure
In stock
HPE ProLiant DL360 Gen10 4LFF
HPE ProLiant DL360 Gen10 4LFF
1U (rackmount)
up to 2 Xeon Scalable
up to 3072 GB (24 x DDR4)
4LFF Bay 3.5" (Hot Swap)
from $765
Configure
In stock
HPE ProLiant DL360 Gen10 10NVMe Premium
HPE ProLiant DL360 Gen10 10NVMe Premium
1U (rackmount)
up to 2 Xeon Scalable
up to 3072 GB (24 x DDR4)
10NVMe Bay 2.5" (Hot Swap)
from $2,410
Configure
1/4
In stock
HPE ProLiant DL360 Gen9 8SFF
HPE ProLiant DL360 Gen9 8SFF
1U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 3072 GB (24 x DDR4)
8SFF Bay 2.5" (Hot Swap)
from $293
Configure
In stock
HPE ProLiant DL360 Gen9 10SFF
HPE ProLiant DL360 Gen9 10SFF
1U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 3072 GB (24 x DDR4)
10SFF Bay 2.5" (Hot Swap)
from $388
Configure
In stock
HPE ProLiant DL360 Gen9 4LFF
HPE ProLiant DL360 Gen9 4LFF
1U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 3072 GB (24 x DDR4)
4LFF Bay 3.5" (Hot Swap)
from $303
Configure
1/3
In stock
HPE ProLiant DL380 Gen10 16SFF
HPE ProLiant DL380 Gen10 16SFF
2U (rackmount)
up to 2 Xeon Scalable
up to 6144 GB (24 x DDR4)
16SFF Bay 2.5" (Hot Swap)
from $875
Configure
Hot price
HPE ProLiant DL380 Gen10 24SFF
HPE ProLiant DL380 Gen10 24SFF
2U (rackmount)
up to 2 Xeon Scalable
up to 6144 GB (24 x DDR4)
24SFF Bay 2.5" (Hot Swap)
from $935 $985
Configure
Hot price
HPE ProLiant DL380 Gen10 16SFF (8x NVMe)
HPE ProLiant DL380 Gen10 16SFF (8x NVMe)
2U (rackmount)
up to 2 Xeon Scalable
up to 6144 GB (24 x DDR4)
16SFF Bay 2.5" (Hot Swap)
from $1,085 $1,155
Configure
In stock
HPE ProLiant DL380 Gen10 24SFF (8x NVMe)
HPE ProLiant DL380 Gen10 24SFF (8x NVMe)
2U (rackmount)
up to 2 Xeon Scalable
up to 6144 GB (24 x DDR4)
24SFF Bay 2.5" (Hot Swap)
from $1,285
Configure
In stock
HPE ProLiant DL380 Gen10 16SFF + 2NVMe
HPE ProLiant DL380 Gen10 16SFF + 2NVMe
2U (rackmount)
up to 2 Xeon Scalable
up to 6144 GB (24 x DDR4)
16SFF + 2NVMe Bay 2.5" (Hot Swap)
from $1,005
Configure
In stock
HPE ProLiant DL380 Gen10 12LFF
HPE ProLiant DL380 Gen10 12LFF
2U (rackmount)
up to 2 Xeon Scalable
up to 6144 GB (24 x DDR4)
12LFF Bay 3.5" (Hot Swap)
from $960
Configure
In stock
HPE ProLiant DL380 Gen10 8LFF
HPE ProLiant DL380 Gen10 8LFF
2U (rackmount)
up to 2 Xeon Scalable
up to 6144 GB (24 x DDR4)
8LFF Bay 3.5" (Hot Swap)
from $895
Configure
In stock
HPE ProLiant DL380 Gen10 8SFF
HPE ProLiant DL380 Gen10 8SFF
2U (rackmount)
up to 2 Xeon Scalable
up to 6144 GB (24 x DDR4)
8SFF Bay 2.5" (Hot Swap)
from $705
Configure
1/8
In stock
HPE ProLiant DL380 Gen9 24SFF
HPE ProLiant DL380 Gen9 24SFF
2U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 3072 GB (24 x DDR4)
24SFF Bay 2.5" (Hot Swap)
from $408
Configure
In stock
HPE ProLiant DL380 Gen9 12LFF
HPE ProLiant DL380 Gen9 12LFF
2U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 3072 GB (24 x DDR4)
12LFF Bay 3.5" (Hot Swap)
from $423
Configure
In stock
HPE ProLiant DL380 Gen9 8SFF + 2SFF
HPE ProLiant DL380 Gen9 8SFF + 2SFF
2U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 3072 GB (24 x DDR4)
10SFF Bay 2.5" (Hot Swap)
from $388
Configure
Hot price
HPE ProLiant DL380 Gen9 12LFF + 3LFF
HPE ProLiant DL380 Gen9 12LFF + 3LFF
2U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 768 GB (24 x DDR4)
15LFF Bay 3.5" (Hot Swap)
from $458 $478
Configure
In stock
HPE ProLiant DL380 Gen9 8SFF
HPE ProLiant DL380 Gen9 8SFF
2U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 3072 GB (24 x DDR4)
8SFF Bay 2.5" (Hot Swap)
from $303
Configure
In stock
HPE ProLiant DL380 Gen9 12LFF + 2SFF
HPE ProLiant DL380 Gen9 12LFF + 2SFF
2U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 3072 GB (24 x DDR4)
12LFF + 2SFF Bay 3.5" (Hot Swap)
from $418
Configure
In stock
HPE ProLiant DL380 Gen9 16SFF
HPE ProLiant DL380 Gen9 16SFF
2U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 3072 GB (24 x DDR4)
16SFF Bay 2.5" (Hot Swap)
from $398
Configure
1/7
In stock
HPE ML350 Gen10 8SFF Tower
HPE ML350 Gen10 8SFF Tower
Tower (rackmount)
up to 2 Xeon Scalable
up to 6144 GB (24 x DDR4)
8SFF Bay 2.5" (Hot Swap)
from $1,645
Configure
1/1
In stock
HPE ML350 Gen9 8SFF Rack-mount
HPE ML350 Gen9 8SFF Rack-mount
4U (rackmount)
up to 2 Xeon E5-2600v3/v4
up to 3072 GB (24 x DDR4)
8SFF Bay 2.5" (Hot Swap)
from $1,033
Configure
In stock
HPE ML350 Gen9 8SFF Tower
HPE ML350 Gen9 8SFF Tower
Tower
up to 2 Xeon E5-2600v3/v4
up to 3072 GB (24 x DDR4)
from $953
Configure
1/2
In stock
HPE ProLiant Apollo 4200 Gen10 24LFF + 6 NVMe
HPE ProLiant Apollo 4200 Gen10 24LFF + 6 NVMe
2U (rackmount)
up to 2 Xeon Scalable
up to 2048 GB (16 x DDR4)
24LFF Bay 3.5" (Hot Swap)
from $1,751
Configure
In stock
HPE ProLiant Apollo 4200 Gen10 48SFF
HPE ProLiant Apollo 4200 Gen10 48SFF
2U (rackmount)
up to 2 Xeon Scalable
up to 2048 GB (16 x DDR4)
48SFF Bay 2.5" (Hot Swap)
from $1,651
Configure
In stock
HPE ProLiant Apollo 4200 Gen10 24LFF
HPE ProLiant Apollo 4200 Gen10 24LFF
2U (rackmount)
up to 2 Xeon Scalable
up to 2048 GB (16 x DDR4)
24LFF Bay 3.5" (Hot Swap)
from $1,401
Configure
1/3