sudo nano /etc/apt/sources.list
Change to:
Code: Select all
deb http://deb.debian.org/debian/ buster main contrib non-free
deb-src http://deb.debian.org/debian/ buster main contrib non-free
deb http://security.debian.org/debian-security buster/updates main contrib non-free
deb-src http://security.debian.org/debian-security buster/updates main contrib non-free
deb http://deb.debian.org/debian/ buster-updates main contrib non-free
deb-src http://deb.debian.org/debian/ buster-updates main contrib non-free
sudo apt update
sudo apt install nvidia-detect
nvidia-detect
This will detect the NVIDIA GPU and tell you what drivers work with it. In most cases, the latest versions will work. For older GPUs, sometimes they have a cut off. Note what it says. It will either give a driver major version such as 495 or tell you all drivers work with it. If all drivers work with it, then you can install the nvidia drivers from the command line, but I recommend installing the latest drivers anyway because the command line is old and probably wouldn't work anyway. So go to NVIDIA and download the latest drivers. (Or the latest major version nvidia-detect told you)
https://www.nvidia.com/en-us/drivers/unix/
Once downloaded, you'll need to uninstall the default drivers if they exist. If you have any sort of GUI desktop, this is necessary. If you only have the CLI installed and no GUI desktop then you can skip this.
Create a file:
nano /etc/modprobe.d/blacklist-nouveau.conf
Put in the file:
Code: Select all
blacklist nouveau
options nouveau modeset=0
sudo update-initramfs -u
systemctl set-default multi-user.target
systemctl reboot (or sudo reboot)
Once the system comes back online, navigate to where you stored that nvidia driver. It'll be NVIDIA*.run and type this
sudo bash [DRIVER NAME].run
Follow the on-screen prompts. It might complain about some stuff, if it does, skip it if it lets you. If it asks about the NVIDIA 32-bit libraries, install them. If it asks you about configuring X for you, tell it yes.
(if it complains about some gcc package not being installed run this)
apt -y install linux-headers-$(uname -r) build-essential libglvnd-dev pkg-config
Then reboot the system when it is done
systemctl reboot (or sudo reboot)
Nvidia drivers should be installed. You can check by looking at the BOINC log if BOINC is already installed or typing
nvidia-smi