- Install a bunch of dependencies:
apt install libxml2 libstdc++6 linux-headers-$(uname -r) build-essential libglu1-mesa-dev libx11-dev libxi-dev libxmu-dev freeglut3 freeglut3-dev
- Reboot
- Download the cuda installer
https://us.download.nvidia.com/XFree86/Linux-x86_64/570.133.07/NVIDIA-Linux-x86_64-570.133.07.run
- Make the installer executable:
chmod +x {the-file}
- Run the file as the root user:
su -
(the-
is important so you can have access to $PATH!) - Accept the license. It will fail. It did some changes before it died though such as disable noveau. Just reboot and try again.
That's it!