NVIDIA - XsMagical/Linux-Tools GitHub Wiki
NVIDIA Driver Installation
📌 Overview
The Universal NVIDIA (Signed) Installer is a cross-distro automation script designed to install and configure NVIDIA drivers with maximum compatibility and safety.
It supports vendor-signed packages (e.g., Ubuntu, Pop!_OS) and DKMS + Secure Boot (MOK) signing where needed (Fedora, Arch, Debian).
✨ Key Features
- Works on Fedora/RHEL, Ubuntu/Debian, and Arch/Manjaro.
- Automatically detects the best driver install method for your distro.
- Prefers vendor-signed drivers to avoid manual Secure Boot steps.
- Falls back to DKMS build with automatic MOK signing if Secure Boot is enabled.
- Blacklists
nouveau
(optional via flags). - Adds
nvidia_drm.modeset=1
for better Wayland/KMS support (optional via flags). - Enables persistence and power management services if available.
🔧 Secure Boot Support
If Secure Boot is enabled:
- Checks if installed modules are signed.
- Automatically generates a MOK key and imports it if unsigned modules are found.
- Signs all
nvidia*.ko
kernel modules. - Prompts user to enroll MOK at next boot.
📂 Location
- GitHub: https://github.com/XsMagical/Linux-Tools
- Local Path:
~/scripts/tn_universal_nvidia_signed.sh
🚀 Usage
Basic install:
sudo ~/scripts/tn_universal_nvidia_signed.sh -y