How to install cuda nvidia drivers for Ubuntu on WEkEO
The following manual is dedicated to flavor with gpu only.
When we want to install Nvidia drivers for our system Ubuntu we should visit Nvidia page - click here.
At the bottom of that page will be the default configuration for the chosen system (Ubuntu, 18.04 in this case). To change, click and select another option.
After deciding upon the configuration, enter and execute the commands from field “Base Installer” from the image above, into the terminal:
wget https://developer.download.nvidia.com/compute/cuda/12.1.1/local_installers/cuda_12.1.1_530.30.02_linux.run
sudo sh cuda_12.1.1_530.30.02_linux.run
Next, run the following commands:
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install nvidia-cuda-toolkit
Now you can check the version of the installed drivers:
nvcc --version
The result will be similar to this: