Skip to content
  • Categories
  • Recent
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Slate)
  • No Skin
Collapse
Brand Logo

hashpwn

Home | Donate | GitHub | Matrix Chat | PrivateBin | Rules

  1. Home
  2. Tools
  3. Scripts
  4. Nvidia CUDA-toolkit linux installer script

Nvidia CUDA-toolkit linux installer script

Scheduled Pinned Locked Moved Scripts
1 Posts 1 Posters 188 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • cycloneC Offline
    cycloneC Offline
    cyclone
    Admin Trusted
    wrote on last edited by
    #1

    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.

    1. Download python script install_cuda.py
    2. Run install_cuda.py as root / sudo
    3. 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                                                             |
    +-----------------------------------------------------------------------------------------+
    

    Sysadmin by day | Hacker by night | Go Developer | hashpwn site owner
    3x RTX 4090

    1 Reply Last reply
    👍
    2
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    Who's Online [Full List]

    5 users active right now (2 members and 3 guests).
    hashpwn-bot, v1cvap0r

    Board Statistics

    Our members have made a total of 4.7k posts in 152 topics.
    We currently have 270 members registered.
    Please welcome our newest member, immolatje.
    The most users online at one time was 49 on Thursday, December 26, 2024.

    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent