Installing NVIDIA drivers on Ubuntu

Guide to installing NVIDIA GPU Drivers on Ubuntu Based OS.

What are Drivers?

A driver is a piece of software that acts as a translation layer between the applications & OS running on your computer and the physical hardware present in the system. By default when you install Ubuntu using one of our templates on your GPU VDS, you may notice that the GPU doesn't show up on your applications. To get Ubuntu & your applications to detect your GPU, you'll need to install the relevant drivers for it.

Installing Drivers

1. Log in to your VPS as root via SSH

2. Update & Install the Drivers Package

In your terminal, run the following commands

$ apt update
$ apt install ubuntu-drivers-common -y

3. Detecting the GPU

In your terminal, run the following command:

$ ubuntu-drivers devices

The output should have a line with Nvidia on it with the generation of your GPU.

4. Install the driver

Install the recommended driver using the autoinstaller

5. Reboot your VPS

Now, Reboot your VPS with the following command.

6. Verify the installation

Run the nvidia-smi command to verify that your GPU is present and showing with valid drivers.

You should see an output like this:

And done! You've successfully installed NVIDIA Drivers on your Ubuntu VPS.

Last updated