lspci | grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation TU104 [GeForce RTX 2070 SUPER] (rev a1) 01:00.1 Audio device: NVIDIA Corporation TU104 HD Audio Controller (rev a1) 01:00.2 USB controller: NVIDIA Corporation TU104 USB 3.1 Host Controller (rev a1) 01:00.3 Serial bus controller [0c80]: NVIDIA Corporation TU104 USB Type-C UCSI Controller (rev a1)
uname -m && cat /etc/*release
x86_64 DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal
gcc --version
apt-get install linux-headers-$(uname -r)
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb sudo dpkg -i cuda-keyring_1.0-1_all.deb sudo apt-get update sudo apt-get -y install cuda
apt-get install nvidia-gds apt install nvidia-cuda-toolkit apt-get install -y cuda-drivers apt-get install -y nvidia-driver-550-open apt-get install -y cuda-drivers-550
apt-get install -y nvidia-docker2 systemctl restart docker
sudo apt-get remove -y --purge '^nvidia-.*' sudo apt-get remove -y --purge '^libnvidia-.*' sudo apt-get remove -y --purge '^cuda-.*' apt-get autoremove apt-get autoclean cd /usr/local/cuda-12.4/bin ./cuda-uninstaller /usr/bin/nvidia-uninstall rm -rf /usr/local/cuda