Skip to content

This script simplifies NVIDIA driver and CUDA Toolkit installation on Ubuntu/Debian. It features a colorful, user-friendly interface, auto-updates, and verification steps, with an optional reboot for a smooth setup.

Notifications You must be signed in to change notification settings

fat-beo/script-nvidia-smi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

NVIDIA Driver & CUDA Toolkit Installation Script

Script Cài đặt NVIDIA Driver & CUDA Toolkit

Description / Mô tả

This script automates the installation process of NVIDIA drivers and CUDA toolkit on Ubuntu/Debian systems. It provides a user-friendly interface with colored output, automatic system updates, and verification steps to ensure successful installation. The script includes features like auto-update, installation verification, and optional system reboot.

Script này tự động hóa quá trình cài đặt driver NVIDIA và CUDA toolkit trên các hệ thống Ubuntu/Debian. Cung cấp giao diện thân thiện với người dùng thông qua các thông báo màu sắc, tự động cập nhật hệ thống và các bước xác minh để đảm bảo cài đặt thành công. Script bao gồm các tính năng như tự động cập nhật, kiểm tra cài đặt và tùy chọn khởi động lại hệ thống.

GitHub GitHub stars GitHub issues

Table of Contents / Mục lục

English

Features

  • Automatic system updates before installation
  • Installation verification
  • Colored output for better progress tracking
  • Automatic CUDA environment variables configuration
  • Optional reboot after installation
  • Auto-update functionality for the script itself

Installation

# Download script from GitHub
wget https://raw.githubusercontent.com/fat-beo/script-nvidia-smi/main/script-nvidia-smi.sh

# Make script executable
chmod +x script-nvidia-smi.sh

Usage

  1. Run the script with sudo:
sudo ./script-nvidia-smi.sh
  1. Choose one of the following options:
    • 1: Auto Driver Installation (Recommended)
    • 2: Manual Driver Installation (You need to know the driver name, e.g., nvidia-driver-535)
    • 3: Install CUDA Toolkit

Notes

  • Root privileges are required to run the script
  • After driver installation, you can choose whether to reboot immediately
  • For CUDA Toolkit, the script will automatically add environment variables to ~/.bashrc

Tiếng Việt

Tính năng

  • Tự động cập nhật hệ thống trước khi cài đặt
  • Kiểm tra và xác minh cài đặt
  • Hiển thị thông báo màu sắc để dễ theo dõi tiến trình
  • Tự động cấu hình biến môi trường CUDA
  • Tùy chọn khởi động lại sau khi cài đặt
  • Tự động cập nhật script khi có phiên bản mới

Cài đặt

# Tải script từ GitHub
wget https://raw.githubusercontent.com/fat-beo/script-nvidia-smi/main/script-nvidia-smi.sh

# Cấp quyền thực thi cho script
chmod +x script-nvidia-smi.sh

Sử dụng

  1. Chạy script với quyền sudo:
sudo ./script-nvidia-smi.sh
  1. Chọn một trong các tùy chọn sau:
    • 1: Cài đặt driver tự động (Khuyến nghị)
    • 2: Cài đặt driver thủ công (Bạn cần biết tên driver, ví dụ: nvidia-driver-535)
    • 3: Cài đặt CUDA Toolkit

Lưu ý

  • Script yêu cầu quyền root để chạy
  • Sau khi cài đặt driver, bạn có thể chọn có khởi động lại ngay hay không
  • Đối với CUDA Toolkit, script sẽ tự động thêm các biến môi trường vào ~/.bashrc

About

This script simplifies NVIDIA driver and CUDA Toolkit installation on Ubuntu/Debian. It features a colorful, user-friendly interface, auto-updates, and verification steps, with an optional reboot for a smooth setup.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages