Installing Nvidia driver

There are many ways to install Nvidia drivers in Ubuntu. In this section, we will show you the easiest approach by using Proprietary GPU Drivers PPA, which offers stable proprietary Nvidia graphics driver updates.

First, open your terminal and run the following commands to add the PPA to Ubuntu:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update  

Now, we need to choose a version of Nvidia driver to install. Run the following command to see the latest version of your machine:

sudo apt-cache search nvidia

The result of the preceding command may look like this:

As you can see, the latest driver is 375.66 on my machine, which is on the line with the text NVIDIA binary driver. Now, we can install Nvidia driver version 375.66 with the following command:

sudo apt-get install nvidia-375

The result of the preceding command may look like this:

When the installation is finished, you should see the following screen:

Now, we will install the CUDA toolkit from Nvidia.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.202.177