How to install Nvidia drivers Debian 9 | Detect GPU for correct driver

install nvidia drivers debian

This is a tutorial “How to install Nvidia drivers Debian 9”. You will learn how to install correct drivers for your Nvidia GPU on Debian 9/GNU Linux. Also I will be showing you how you can detect the the current GPU with nvidia-detect.



How to install Nvidia drivers Debian 9

First, make sure your system is up to date. Run the following commands on your terminal. You need to use sudo or be root to do these commands.
sudo apt-get update && sudo apt-get upgrade

After your system and packages are completely up to date, then install the nvidia-detect.
sudo apt-get install nvidia-detect

You should see something similar to this:
install nvidia drivers debian

Your wanted package name is in the same spot where “nvidia-legacy-340xx-driver” is in my screen. So you should copy the driver name from there. First, unless you don’t have your kernel header installed yet you should do it. You can run this command if you don’t know.

sudo apt-get install linux-headers-$(uname -r)

After that, you can install the driver.

sudo apt-get install nvidia-legacy-340xx-driver



You can also quickly install them at the same time. Just remember to change the driver package name to yours.

sudo apt-get install linux-headers-$(uname -r) nvidia-legacy-340xx-driver

After doing all these simple steps, just reboot your PC and the driver should be working.

Do you want to read more? 🙂
Software alternatives for Linux & Windows – Open Source

Related posts

Leave a Comment