💡 Every command in this guide must be run in a terminal. Open a terminal by pressing CTRL + ALT + T or accessing the command line in a TTY (CTRL + ALT + F3).
By default, Debian 12 doesn’t grant sudo to the first user. Let’s fix that.
su -Enter the root password.
Replace vali with your actual username:
Run:
usermod -aG sudo valiConfirm it's added:
groups valiExpected output:
vali : vali sudo
If sudo is not installed:
apt install sudo -yApply changes without reboot:
exec su -l valiTest sudo:
sudo whoamiExpected output:
root
sudo dpkg --add-architecture i386
sudo apt update && sudo apt full-upgrade -ysudo apt install -y build-essential dkms linux-headers-$(uname -r) linux-image-$(uname -r) libglvnd-dev libglvnd-dev:i386 xserver-xorg-core xserver-xorg-video-all mesa-utils nvidia-vaapi-driver libva-drm2 libva-glx2Run:
sudo nano /etc/modprobe.d/blacklist-nvidia-nouveau.confThen add:
blacklist nouveau
options nouveau modeset=0Save and exit (CTRL+X, then Y, then Enter).
Update Initramfs:
sudo update-initramfs -usudo nano /etc/default/grubFind the line starting with GRUB_CMDLINE_LINUX_DEFAULT and add: 'nouveau.modeset=0 nouveau.blacklist=1 nvidia-drm.modeset=1' to it:
GRUB_CMDLINE_LINUX_DEFAULT="quiet nouveau.modeset=0 nouveau.blacklist=1 nvidia-drm.modeset=1"Save and exit (CTRL+X, then Y, then Enter).
Then run:
sudo update-grubwget https://us.download.nvidia.com/XFree86/Linux-x86_64/550.144.03/NVIDIA-Linux-x86_64-550.144.03.run
chmod +x NVIDIA-Linux-x86_64-550.144.03.runSwitch to multi-user mode:
sudo systemctl set-default multi-user.target
sudo rebootAfter reboot, log in and run the installer::
sudo ./NVIDIA-Linux-x86_64-550.144.03.run --no-x-check --no-nouveau-checkDuring installation, accept all prompts, including those for i386 libraries, initramfs regeneration, etc., EXCEPT for X11 configuration.
Restore GUI mode:
sudo systemctl set-default graphical.target
sudo rebootnvidia-smiExpected output:
+----------------------------------------------------------------------------------+
| NVIDIA-SMI 550.67 Driver Version: 550.67 CUDA Version: xx.x |
|-------------------------------+----------------------+---------------------------+
| GPU Name | Bus-Id | Temp | Memory Usage |
|-------------------------------+----------------------+---------------------------+
| NVIDIA RTX XXXX | 00000000:01:00.0 | 45C | 100MiB / 8192MiB |
+----------------------------------------------------------------------------------+
sudo apt install -y vulkan-utils nvidia-cuda-toolkitVerify CUDA:
nvcc --versionFinal verification:
nvidia-smi
lsmod | grep nvidia
glxinfo | grep "OpenGL renderer"If all these return expected results, your NVIDIA 550 driver is successfully installed on Debian 12! 🚀🔥