Install nvidia graphics driver on ubuntu linux
If you have strong nvidia graphics card and you want to run your machine learning experiments with tensorflow using your GPU and you are running linux, you’ll need to have nvidia drivers installed.
There are many ways to install latest drivers for nvidia but after many trials here’s my fastest way:
- Add ppa repository and run apt update. This will allow us to find latest nvidia drivers
$ sudo add-apt-repository ppa:graphics-drivers/ppa $ sudo apt update
-
Open “Software & Updates” and go to “Additional Drivers” tab: If you ran previous commands, you should be able to see a list of nvidia drivers.
-
Click on the latest driver (in my case nvidia-driver-415 (open source))
- Wait untill driver has been installed. Done.