NVIDIA how to do it right

OK, so you just need to install base-devel and the headers for your installed kernels (e.g. linux-headers for the linux kernel) then trigger a rebuild of the DKMS module with dkms autoinstall.

If you pay attention to the output of commands you should be able to spot problems before rebooting.

2 Likes