From 39fbe07b76ea2d498afeb07db6c8b27241aa2cd0 Mon Sep 17 00:00:00 2001 From: shockrah Date: Thu, 30 Dec 2021 21:00:23 -0800 Subject: [PATCH] + Nvidia drivers post --- content/posts/nvidia.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 content/posts/nvidia.md diff --git a/content/posts/nvidia.md b/content/posts/nvidia.md new file mode 100644 index 0000000..72432fe --- /dev/null +++ b/content/posts/nvidia.md @@ -0,0 +1,33 @@ +--- +title: Drivers on Debian Sid +date: 2021-12-27 +draft: false +description: Finally a working config +category: article +--- + +# Packages you need + +To detect the right type of driver to install `apt` repositories have a package +called `nvidia-detect` which I recommend running first. In my case running a +_GTX 2060_ I had to install the generic `nvidia-driver` package + +**Before you install the driver package!** + +Grab the apt package `nvidia-xconfig`. If you're like me and never bothered to +an `/etc/X11/xorg.conf` this will write out a config for you that should, +_just werk_. + +# Installing + +Commands are listed in order, just be sure to run with correct permissions. + +``` +apt install nvidia-detect +package=$(nvidia-detect | grep '^ *nvidia') +apt install "$package" +nvidia-xconfig +``` + +Note: Pretty much all of the above commands, except for line 2 require elevated +permissions.