Guide to installing NVIDIA GPU Drivers on CentOS 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 Almalinux using one of our templates on your GPU VDS, you may notice that the GPU doesn't show up on your applications. To get Almalinux & 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. Detecting the GPU
In your terminal, run the following command:
$ lshw -C display
The output should have a line with Nvidia on it with the generation of your GPU.
3. Enabling NVIDIA Repository
Run the following command to enable the NVIDIA repository.
4. Install the driver
First, install the nvidia-detect package to see and run it.
5. Reboot your VPS
Now, Reboot your VPS with the following command.
6. Verify the Installation
To verify that the drivers are properly installed, run the following command:
You should see an output like this:
And done! You've successfully installed NVIDIA Drivers on your Almalinux VPS.