Prerequisites:
- make a backup with Timeshift (safety first)
- check graphics card compatibility
(if your graphics card does not appear in the list, it is not necessary to install the latest driver, the one installed by default will suffice)
- command line to check which GPU is installed:
Code: Select all
sudo lshw -numeric -C display
If the prerequisites are satisfied, you can continue with the tutorial below.
First step add non-free-firmware sources befor install Linux Headers and compilation dependencies:
Code: Select all
sudo nano /etc/apt/sources.list.d/official-package-repositories.list
Add the line below behind each debian source, be careful not to add it to the mint source:
Code: Select all
non-free-firmware
Perform the same operation for the source repository:
Code: Select all
sudo nano /etc/apt/sources.list.d/official-source-repositories.list
Then update and install Linux Headers and compilation dependencies:
Code: Select all
sudo apt update && sudo apt install linux-headers-$(uname -r) build-essential libglvnd-dev pkg-config dkms -y
Second step blacklist the nouveau driver, create a blacklist file:
Code: Select all
sudo nano /etc/modprobe.d/blacklist-nouveau.conf
In the file add the following and save the file:
Code: Select all
blacklist nouveau
options nouveau modeset=0
Then regenerate the kernel initramfs:
Code: Select all
sudo update-initramfs -u
Third step install the latests NvidiaGraphicsDrivers:
Code: Select all
sudo apt install firmware-misc-nonfree nvidia-kernel-dkms nvidia-driver nvidia-cuda-toolkit nvidia-cuda-dev nvidia-settings nvidia-smi nvidia-xconfig nvidia-opencl-icd nvidia-opencl-common nvidia-detect -y
Reboot.
To view how version you have installed, just open an terminal and enter follow:
Code: Select all
nvidia-smi
Enjoy!
Source