Updating NVIDIA Drivers on Ubuntu
This tutorial helps users on the TensorDock Marketplace install the latest NVIDIA drivers within their virtual machines.
First, search for your GPU through the link below and copy the link to the NVIDIA driver.
For instance, for a GeForce 4090:
- Product Type: GeForce
- Product Series: GeForce RTX 40 Series
- Product: NVIDIA GeForce RTX 4090
- Operating System: Linux 64-bit
- Download Type: Production Branch
- Language: English (US)
Download the latest official NVIDIA drivers
NVIDIA
Click on this link to search for the NVIDIA driver for your graphics card
Once you get redirected to the driver, click on the "Download" button. Don't worry; it won't actually initiate a download. It will simply redirect you to a page where you'll confirm NVIDIA's EULA.

Now, you can copy the link to the actual driver.

Use port forwarded into port 22 as your SSH port. You should see something like the following:

Whoops, nvidia-smi doesn't work! Downloading new drivers will fix that...
Use
wget
and then append the driver's URL. This will save the driver in whatever directory you're in. 
Run
chmod +x
and then append the file name
Run
sudo ./[DRIVER_FILENAME]

Complete the questionarie, and then run
sudo reboot
to reboot your virtual machine!Now,
nvidia-smi
should work! 
If you're still facing issues, come email us at [email protected]. For reference, these were the commands we ran while making this tutorial:
wget https://us.download.nvidia.com/XFree86/Linux-x86_64/525.60.11/NVIDIA-Linux-x86_64-525.60.11.run
chmod +x NVIDIA-Linux-x86_64-525.60.11.run
sudo ./NVIDIA-Linux-x86_64-525.60.11.run
sudo reboot
Last modified 3mo ago