Nvidia CUDA-toolkit linux installer script
-
Title: Nvidia CUDA-toolkit installer
Author: cyclone
URL: https://github.com/cyclone-github/scripts/blob/main/install_cuda.py
Description:
Python3 script to automate installing the official Nvidia CUDA-toolkit on all Nvidia supported linux distros. Uses python3.x stdlib, so only python3 is required.- Download python script
install_cuda.py - Run
install_cuda.pyas root / sudo - Done
root@cyclone:~# python3 install_cuda.py ------------------------------------------- | Cyclone's Linux CUDA Installer | | v2025-03-08 | | https://github.com/cyclone-github/scripts | ------------------------------------------- Detected Architecture: x86_64 Detected Linux distro: Debian 12 Checking for existing CUDA installation... Current CUDA Version Installed: 12.8 Download and install CUDA 12.8.1? (y/n): y Downloading: https://developer.download.nvidia.com/compute/cuda/12.8.1/local_installers/cuda_12.8.1_570.124.06_linux.run -> cuda_12.8.1_570.124.06_linux.run Downloading: 100.00% (5382238770/5382238770 bytes) Download complete! Verifying MD5 checksum of cuda_12.8.1_570.124.06_linux.run... Checksum matches. Proceeding with installation. Running CUDA installer (this may take several minutes)... =========== = Summary = =========== Driver: Installed Toolkit: Installed in /usr/local/cuda-12.8/ Please make sure that - PATH includes /usr/local/cuda-12.8/bin - LD_LIBRARY_PATH includes /usr/local/cuda-12.8/lib64, or, add /usr/local/cuda-12.8/lib64 to /etc/ld.so.conf and run ldconfig as root To uninstall the CUDA Toolkit, run cuda-uninstaller in /usr/local/cuda-12.8/bin To uninstall the NVIDIA Driver, run nvidia-uninstall Logfile is /var/log/cuda-installer.log root@cyclone:~# nvidia-smi Sat Mar 8 13:58:18 2025 +-----------------------------------------------------------------------------------------+ | NVIDIA-SMI 570.124.06 Driver Version: 570.124.06 CUDA Version: 12.8 | |-----------------------------------------+------------------------+----------------------+ | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |=========================================+========================+======================| | 0 NVIDIA GeForce RTX 4090 Off | 00000000:02:00.0 Off | Off | | 78% 31C P0 65W / 450W | 1MiB / 24564MiB | 0% Default | | | | N/A | +-----------------------------------------+------------------------+----------------------+ | 1 NVIDIA GeForce RTX 4090 Off | 00000000:03:00.0 Off | Off | | 78% 31C P0 58W / 450W | 1MiB / 24564MiB | 0% Default | | | | N/A | +-----------------------------------------+------------------------+----------------------+ +-----------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=========================================================================================| | No running processes found | +-----------------------------------------------------------------------------------------+ - Download python script
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login