How to Install a Nvidia driver in Linux

Step 1:

  • Check the Required Driver Version.

  • Choose the required Nvidia driver version for your GPU and operating system by visiting the Nvidia website: https://www.nvidia.com/download/index.aspx

  • Firstly, we should select the product type to Data Center / Tesla.

../../_images/15.png

Step 2:

  • Download the Driver.

  • Press the “Download” button to download the specified driver version.

../../_images/24.png

Step 3:

  • Install the Driver.

  • After downloading the driver, open a terminal.

  • Navigate to the directory where the downloaded driver file is located.

  • Run the following command to install the driver, replacing “x” NVIDIA-Linux-x86_64-xxx-xxx.run –silent –dkms with the actual filename:

../../_images/31.png

The installation process will begin. Wait for it to complete.

Step 4:

  • Verify the Driver Installation.

  • After the installation is complete, you can check the currently installed driver version by running the following command in the terminal: “Nvidia-smi”

  • The output will confirm the installation of the new driver version.

../../_images/43.png