- Joined
- Feb 23, 2023
- Messages
- 313
This script set, created by XsMagical, allows you to easily **install or remove** NVIDIA drivers on Fedora.
It is designed for both **Secure Boot** and **non-Secure Boot** systems.
- Detect Secure Boot status
- Automatically install the latest official NVIDIA driver from RPM Fusion
- Blacklist Nouveau
- Configure kernel parameters
- Build and sign the driver if Secure Boot is enabled
- Enable NVIDIA persistence services
🗑 What the Uninstall Script Does
- Detect Secure Boot status
- Stop NVIDIA services
- Remove all NVIDIA packages
- Remove Nouveau blacklist
- Restore original kernel parameters
- Regenerate initramfs
⚠ Notes:
- If Secure Boot is enabled, the install script will generate and enroll a Machine Owner Key (MOK) for signed module loading.
- If Secure Boot is disabled, the driver will install unsigned for faster setup.
- Tested on Fedora 42 KDE, but should work on most Fedora-based spins.
Copy and paste into terminal:
Code:
mkdir -p ~/scripts
cd ~/scripts
curl -fsSL -O https://raw.githubusercontent.com/XsMagical/Fedora-Tools/main/install-nvidia-signed.sh
chmod +x install-nvidia-signed.sh
sudo ./install-nvidia-signed.sh
🗑 Remove NVIDIA Drivers & Restore Nouveau
Copy and paste into terminal:
Code:
mkdir -p ~/scripts
cd ~/scripts
curl -fsSL -O https://raw.githubusercontent.com/XsMagical/Fedora-Tools/main/uninstall-nvidia.sh
chmod +x uninstall-nvidia.sh
sudo ./uninstall-nvidia.sh
- After running either script, **reboot your system** for changes to take effect.
- If you installed with Secure Boot enabled, you’ll be prompted at boot to enroll the MOK key.
- To check driver status after install, run:
Code:nvidia-smi
Created by: XsMagical
GitHub: https://github.com/XsMagical/
Attachments