• Stars
    star
    405
  • Rank 104,425 (Top 3 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created about 4 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A CLI tool which lets you install proprietary NVIDIA drivers and much more easily on Fedora Linux (32 or above and Rawhide)

NVIDIA Auto Installer for Fedora Linux

A CLI tool which lets you install proprietary NVIDIA drivers and much more easily on Fedora Linux (32 or above and Rawhide)

Requirements

  • Active internet connection
  • Fedora Linux (32 or above and Rawhide)
  • Device with a discrete NVIDIA GPU

Installation

If you use Fedora Linux (32 or above and Rawhide) - you can install NVIDIA Auto Installer for Fedora by enabling my COPR repository. Simply execute the following commands in succession to install the tool.

# dnf install dnf-plugins-core -y
# dnf copr enable t0xic0der/nvidia-auto-installer-for-fedora -y
# dnf install nvautoinstall -y

Usage

  1. Make sure you have a working internet connection
  2. Install the tool from COPR with the above instructions
  3. Execute nvautoinstall to check installation modes
  4. Run the installation modes according to your needs
  5. Give stars to the repository if you found this helpful

Modes of installation

Active internet connection and superuser privilege is required to execute the following installation modes.

  • sudo nvautoinstall rpmadd This mode enables the RPM Fusion NVIDIA drivers repository.
  • sudo nvautoinstall driver This mode simply installs the NVIDIA drivers. Enabling the RPM Fusion NVIDIA drivers repository is mandatory before doing this.
  • sudo nvautoinstall nvrepo This mode enables the official NVIDIA repository for CUDA software.
  • sudo nvautoinstall plcuda This mode installs only the CUDA support softwares. Enabling the RPM Fusion NVIDIA drivers and NVIDIA official repository, and installing the basic drivers are mandatory before doing this.
  • sudo nvautoinstall ffmpeg This mode installs only the FFMPEG acceleration. Enabling the RPM Fusion NVIDIA drivers repository and installing the basic drivers are mandatory before doing this.
  • sudo nvautoinstall vulkan This mode installs only the Vulkan renderer. Enabling the RPM Fusion NVIDIA drivers repository and installing the basic drivers are mandatory before doing this.
  • sudo nvautoinstall vidacc This mode installs only the VDPAU/VAAPI acceleration. Enabling the RPM Fusion NVIDIA drivers repository and installing the basic drivers are mandatory before doing this.
  • sudo nvautoinstall getall This mode installs all the above packages. (Not been implemented yet)
  • sudo nvautoinstall cheksu This mode allows you to check the current user privilege level. You can use this tool effectively only when you have logged in as a root or sudo user.
  • sudo nvautoinstall compat This mode allows you to check your hardware and host compatibility. The tool would check your hardware and host and tell if your device is supported by the tool or not.
  • sudo nvautoinstall primec This mode allows you to toggle the PRIME offloading to render all display elements using the discrete card. This has only been tested on Workstation variant of Fedora Linux.
  • sudo nvautoinstall --version This mode shows the tool version and exits out.
  • sudo nvautoinstall --help This mode shows the help message and exits out.

Note

  • Active internet connection is required to download drivers.
  • Requires secure boot to be turned off in UEFI systems.
  • Requires superuser access for repo addition and driver setup.
  • The drivers are fetched from the RPM Fusion repository.
  • Use discretion while using this on other spins.
  • Only tested on 9XX/10XX/20XX/30XX series discrete NVIDIA cards.
  • Use discretion while installing with older discrete NVIDIA cards.
  • No additional configuration is required for Optimus setups.
  • Native support for PRIME configuration on Optimus.

Coming soon

  • CLI "Launch using Dedicated Graphics Card" option.
  • Intuitive mode switching for hybrid graphics.
  • Distinct mode for using integrated or discrete GPU.
  • Experimental support for RHEL 8 and CentOS 8.
  • Support for older cards by active querying at NVIDIA.

Disclaimer

This tool has been tried and tested multiple times and is expected to work flawlessly in Fedora Linux (32 or above, and Rawhide). It has not been tested on any of the spins yet so you are requested to proceed with caution. While the chances of things going wrong is pretty slim, you would still want to make backups, should things do not go as expected. As always, you are choosing to use this tool at your will and you cannot hold me responsible for any mishap that may occur due to the misuse of this tool.

Previews

Starting without any command

$ nvautoinstall
Usage: nvautoinstall [OPTIONS] COMMAND [ARGS]...

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  cheksu  Check the user privilege level.
  compat  Check your system compatibility.
  driver  Install the NVIDIA driver.
  ffmpeg  Install only the FFMPEG support software.
  getall  Install all the above packages.
  nvrepo  Enable the official NVIDIA repository for CUDA.
  plcuda  Install only the CUDA support software.
  primec  Setup PRIME support.
  rpmadd  Enable the RPM Fusion NVIDIA drivers repository.
  vidacc  Install only the VDPAU/VAAPI acceleration.
  vulkan  Install only the Vulkan support software.

Checking superuser permissions

$ sudo nvautoinstall cheksu
[ # ] NVIDIA AUTOINSTALLER FOR FEDORA LINUX
[ β˜… ] CHECKING SUPERUSER PERMISSIONS...
[ βœ“ ] Superuser permission is available
      This tool is expected to work correctly here
[ βœ— ] Leaving installer

Checking the system compatibility

$ sudo nvautoinstall compat
[ # ] NVIDIA AUTOINSTALLER FOR FEDORA LINUX
[ β˜… ] CHECKING FOR GPU COMPATIBILITY...
[ ! ] Compatibility infomation was obtained
[ βœ“ ] One or more active NVIDIA GPUs were detected
      01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] (rev a1)
      04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso/Raven 2 [Radeon Vega Series / Radeon Vega Mobile Series] (rev c2)
[ βœ“ ] An Optimus Dual GPU setup was detected
[ β˜… ] GATHERING CURRENT HOST INFORMATION...
[ ! ] Host information was gathered
      System: Linux v5.15.6-100.fc34.x86_64
      Hostname: 038e97fb8ac6
      Version: #1 SMP Wed Dec 1 13:41:51 UTC 2021
      Distribution: Fedora Linux x86_64
[ β˜… ] CHECKING FOR HOST COMPATIBILITY...
[ βœ“ ] Supported OS detected
      This tool is expected to work correctly here
[ βœ— ] Leaving installer

Handling drivers installation

$ sudo nvautoinstall driver
[ # ] NVIDIA AUTOINSTALLER FOR FEDORA LINUX
[ β˜… ] CHECKING SUPERUSER PERMISSIONS...
[ βœ“ ] Superuser privilege acquired
[ β˜… ] CHECKING AVAILABILITY OF RPM FUSION NVIDIA REPOSITORY...
[ ! ] RPM Fusion repository for Proprietary NVIDIA Driver was detected
[ β˜… ] ATTEMPTING CONNECTION TO RPM FUSION SERVERS...
[ βœ“ ] Connection to RPM Fusion servers was established
[ β˜… ] LOOKING FOR EXISTING DRIVER PACKAGES...
[ ! ] No existing NVIDIA driver packages were detected
[ β˜… ] INSTALLING PROPRIETARY DRIVERS...
.....
.....
.....
[ βœ“ ] Driver package installation completed
[ βœ— ] Leaving installer

Installing FFMPEG support software

$ sudo nvautoinstall ffmpeg
[ # ] NVIDIA AUTOINSTALLER FOR FEDORA LINUX
[ β˜… ] CHECKING SUPERUSER PERMISSIONS...
[ βœ“ ] Superuser privilege acquired
[ β˜… ] CHECKING AVAILABILITY OF RPM FUSION NVIDIA REPOSITORY...
[ ! ] RPM Fusion repository for Proprietary NVIDIA Driver was detected
[ β˜… ] ATTEMPTING CONNECTION TO RPM FUSION SERVERS...
[ βœ“ ] Connection to RPM Fusion servers was established
[ β˜… ] LOOKING FOR EXISTING DRIVER PACKAGES...
      xorg-x11-drv-nvidia-kmodsrc-495.44-4.fc35.x86_64
      xorg-x11-drv-nvidia-libs-495.44-4.fc35.x86_64
      akmod-nvidia-495.44-1.fc35.x86_64
      xorg-x11-drv-nvidia-495.44-4.fc35.x86_64
      nvidia-settings-495.44-1.fc35.x86_64
[ ! ] A total of 5 driver packages were detected
[ β˜… ] INSTALLING NVENC/NVDEC FOR FFMPEG ACCELERATION...
.....
.....
.....
[ βœ“ ] NVENC/NVDEC for FFMPEG acceleration were successfully installed
[ βœ— ] Leaving installer

Installing all the above packages

$ sudo nvautoinstall getall
[ # ] NVIDIA AUTOINSTALLER FOR FEDORA LINUX
[ β˜… ] CHECKING SUPERUSER PERMISSIONS...
[ βœ“ ] Superuser privilege acquired
[ β˜… ] FULL FLEDGED INSTALLATION BEGINNING...
      This mode is yet to be implemented
[ βœ— ] Leaving installer

Enabling the official NVIDIA repository for CUDA

$ sudo nvautoinstall nvrepo
[ # ] NVIDIA AUTOINSTALLER FOR FEDORA LINUX
[ β˜… ] CHECKING SUPERUSER PERMISSIONS...
[ βœ“ ] Superuser privilege acquired
[ β˜… ] CHECKING AVAILABILITY OF OFFICIAL CUDA REPOSITORY...
[ ! ] Official CUDA repository was not detected
[ ! ] Repository enabling is required
[ β˜… ] ATTEMPTING CONNECTION TO NVIDIA SERVERS...
[ βœ“ ] Connection to NVIDIA servers was established
[ β˜… ] INSTALLING OFFICIAL CUDA REPOSITORY...
[ βœ“ ] Official CUDA repository was enabled
[ β˜… ] REFRESHING REPOSITORY LIST...
.....
[ βœ“ ] Repositories have been refreshed
[ β˜… ] DISABLING NVIDIA DRIVER MODULE...
.....
.....
.....
[ βœ“ ] NVIDIA DRIVER module has been disabled
[ βœ— ] Leaving installer

Installing CUDA support software

$ sudo nvautoinstall plcuda
[ # ] NVIDIA AUTOINSTALLER FOR FEDORA LINUX
[ β˜… ] CHECKING SUPERUSER PERMISSIONS...
[ βœ“ ] Superuser privilege acquired
[ β˜… ] CHECKING AVAILABILITY OF RPM FUSION NVIDIA REPOSITORY...
[ ! ] RPM Fusion repository for Proprietary NVIDIA Driver was detected
[ β˜… ] ATTEMPTING CONNECTION TO RPM FUSION SERVERS...
[ βœ“ ] Connection to RPM Fusion servers was established
[ β˜… ] LOOKING FOR EXISTING DRIVER PACKAGES...
      xorg-x11-drv-nvidia-kmodsrc-495.44-4.fc35.x86_64
      xorg-x11-drv-nvidia-libs-495.44-4.fc35.x86_64
      akmod-nvidia-495.44-1.fc35.x86_64
      xorg-x11-drv-nvidia-495.44-4.fc35.x86_64
      nvidia-settings-495.44-1.fc35.x86_64
      xorg-x11-drv-nvidia-cuda-libs-495.44-4.fc35.x86_64
[ ! ] A total of 6 driver packages were detected
[ β˜… ] CHECKING AVAILABILITY OF OFFICIAL CUDA REPOSITORY...
[ ! ] Official CUDA repository was detected
[ β˜… ] ATTEMPTING CONNECTION TO NVIDIA SERVERS...
[ βœ“ ] Connection to NVIDIA servers was established
[ β˜… ] INSTALLING RPM FUSION METAPACKAGE FOR CUDA...
.....
.....
.....
[ βœ“ ] RPM Fusion CUDA metapackage was successfully installed
[ β˜… ] INSTALLING NVIDIA CUDA CORE PACKAGES...
.....
.....
.....
[ βœ“ ] NVIDIA CUDA core packages were successfully installed
[ βœ— ] Leaving installer

Setting up PRIME support

$ sudo nvautoinstall primec
[ # ] NVIDIA AUTOINSTALLER FOR FEDORA LINUX
[ β˜… ] CHECKING SUPERUSER PERMISSIONS...
[ βœ“ ] Superuser privilege acquired
[ β˜… ] CHECKING AVAILABILITY OF RPM FUSION NVIDIA REPOSITORY...
[ ! ] RPM Fusion repository for Proprietary NVIDIA Driver was detected
[ β˜… ] ATTEMPTING CONNECTION TO RPM FUSION SERVERS...
[ βœ“ ] Connection to RPM Fusion servers was established
[ β˜… ] LOOKING FOR EXISTING DRIVER PACKAGES...
      xorg-x11-drv-nvidia-kmodsrc-495.44-4.fc35.x86_64
      xorg-x11-drv-nvidia-libs-495.44-4.fc35.x86_64
      akmod-nvidia-495.44-1.fc35.x86_64
      xorg-x11-drv-nvidia-495.44-4.fc35.x86_64
      nvidia-settings-495.44-1.fc35.x86_64
      xorg-x11-drv-nvidia-cuda-libs-495.44-4.fc35.x86_64
[ ! ] A total of 6 driver packages were detected
[ β˜… ] SETTING UP PRIME SUPPORT...
[ ! ] Intervention required
      < Y > to enable PRIME support
      < N > to disable PRIME support
      < * > anything else to leave
[Y/N] Y
[ β˜… ] ENABLING PRIME SUPPORT...
[ βœ“ ] PRIME Support was successfully enabled
[ βœ— ] Leaving installer

Enabling the RPM Fusion NVIDIA drivers repositories

$ sudo nvautoinstall rpmadd
[ # ] NVIDIA AUTOINSTALLER FOR FEDORA LINUX
[ β˜… ] CHECKING SUPERUSER PERMISSIONS...
[ βœ“ ] Superuser privilege acquired
[ β˜… ] CHECKING AVAILABILITY OF RPM FUSION NVIDIA REPOSITORY...
[ ! ] RPM Fusion repository for Proprietary NVIDIA Driver was not detected
[ ! ] Repository enabling is required
[ β˜… ] ATTEMPTING CONNECTION TO RPM FUSION SERVERS...
[ βœ“ ] Connection to RPM Fusion servers was established
[ β˜… ] INSTALLING RPM FUSION NVIDIA REPOSITORY...
.....
.....
.....
[ βœ“ ] RPM Fusion NVIDIA repository was enabled
[ βœ— ] Leaving installer

Installing the VDPAU/VAAPI support software

$ sudo nvautoinstall vidacc
[ # ] NVIDIA AUTOINSTALLER FOR FEDORA LINUX
[ β˜… ] CHECKING SUPERUSER PERMISSIONS...
[ βœ“ ] Superuser privilege acquired
[ β˜… ] CHECKING AVAILABILITY OF RPM FUSION NVIDIA REPOSITORY...
[ ! ] RPM Fusion repository for Proprietary NVIDIA Driver was detected
[ β˜… ] ATTEMPTING CONNECTION TO RPM FUSION SERVERS...
[ βœ“ ] Connection to RPM Fusion servers was established
[ β˜… ] LOOKING FOR EXISTING DRIVER PACKAGES...
      xorg-x11-drv-nvidia-kmodsrc-495.44-4.fc35.x86_64
      xorg-x11-drv-nvidia-libs-495.44-4.fc35.x86_64
      akmod-nvidia-495.44-1.fc35.x86_64
      xorg-x11-drv-nvidia-495.44-4.fc35.x86_64
      nvidia-settings-495.44-1.fc35.x86_64
      xorg-x11-drv-nvidia-cuda-libs-495.44-4.fc35.x86_64
      nvidia-persistenced-495.44-1.fc35.x86_64
      xorg-x11-drv-nvidia-cuda-495.44-4.fc35.x86_64
[ ! ] A total of 8 driver packages were detected
[ β˜… ] INSTALLING VIDEO ACCELERATION SUPPORT...
.....
.....
.....
[ βœ“ ] Video acceleration were successfully installed
[ βœ— ] Leaving installer

Installing Vulkan support software

$ sudo nvautoinstall vulkan
[ # ] NVIDIA AUTOINSTALLER FOR FEDORA LINUX
[ β˜… ] CHECKING SUPERUSER PERMISSIONS...
[ βœ“ ] Superuser privilege acquired
[ β˜… ] CHECKING AVAILABILITY OF RPM FUSION NVIDIA REPOSITORY...
[ ! ] RPM Fusion repository for Proprietary NVIDIA Driver was detected
[ β˜… ] ATTEMPTING CONNECTION TO RPM FUSION SERVERS...
[ βœ“ ] Connection to RPM Fusion servers was established
[ β˜… ] LOOKING FOR EXISTING DRIVER PACKAGES...
      xorg-x11-drv-nvidia-kmodsrc-495.44-4.fc35.x86_64
      xorg-x11-drv-nvidia-libs-495.44-4.fc35.x86_64
      akmod-nvidia-495.44-1.fc35.x86_64
      xorg-x11-drv-nvidia-495.44-4.fc35.x86_64
      nvidia-settings-495.44-1.fc35.x86_64
      xorg-x11-drv-nvidia-cuda-libs-495.44-4.fc35.x86_64
      nvidia-persistenced-495.44-1.fc35.x86_64
      xorg-x11-drv-nvidia-cuda-495.44-4.fc35.x86_64
[ ! ] A total of 8 driver packages were detected
[ β˜… ] INSTALLING VULKAN RENDERER SUPPORT...
.....
.....
.....
[ βœ“ ] Vulkan renderer support were successfully installed
[ βœ— ] Leaving installer

More Repositories

1

sysmon

An intuitive remotely-accessible system performance monitoring and task management tool for servers and headless Raspberry Pi setups.
CSS
187
star
2

sanctuary-zero

A command-line bound implementation of secure synchronous lightweight chatroom with zero logging and total transience built using WebSockets, Fernet Cryptography, Asyncio and Prompt Toolkit
Python
56
star
3

supervisor-frontend-service

Reference frontend service for SuperVisor written in Python
CSS
16
star
4

syngrafias

A free and open-source synchronized authorship web-application for seamlessly collaborating on documents using intuitive cells
JavaScript
14
star
5

fedora-easyfix

A collection of self-contained and well-documented issues for newcomers to start contributing with
Python
9
star
6

fcos-workshop-fosdemcd-2023

Assets related to the "Fedora CoreOS - Your Next Multiplayer Homelab Distro" talk on FOSDEM 2023 Containers Devroom
8
star
7

supervisor-driver-service

Reference driver endpoint service written in Falcon, Werkzeug, Psutil and Docker
Python
6
star
8

impression

A wide view of what Fedora Websites and Apps team is all about
JavaScript
6
star
9

pignus-framework-vulnerability-detector

A Python GUI application for scanning websites for their frameworks and detecting vulnerabilities off them.
Python
6
star
10

fragment

Python Flask project used to aggregate and distribute IRC meeting minutes and logs for the Fedora Project. The repository has been archived and the code has been moved away to https://github.com/fedora-infra/mote/tree/fragment
HTML
6
star
11

switcheroo

An easy-to-use CPU governor switcher - Run things fast or save some juice!
Go
4
star
12

pignus-agent-for-internet-protection

A Python GUI application for scanning URLs and domains for safety
Python
3
star
13

pharmadb-store

An user friendly GUI for pharmaceutical purchases for PharmaDB.
Python
2
star
14

prudence

An easy application to help me know when night falls at PoE so I can hunt eidolons
Go
2
star
15

re2fa-converter

A Qt 5 Python GUI application for converting regular expressions to a finite automaton
Python
2
star
16

gridhead

My GitHub profile information
2
star
17

mdapi

A simple and fast API for serving the metadata from the RPM repositories. This repository has now been archived by the owner and moved to https://github.com/fedora-infra/mdapi/tree/develop.
Python
2
star
18

PharmaDBClient

A user-friendly GUI assistant with administrator privileges for PharmaDB
Python
1
star
19

wisdom

A beautiful and user-friendly GUI Wikipedia application
Python
1
star
20

dispatch

A HTTP-based archive transfer conduit with support for IPv6 addresses only
Python
1
star
21

toxicims-infarc

ToxicIMS - Inventory Management System for Information Archives
Python
1
star
22

fuas

AutoMAGICally gather and update the statistics of active users in Fedora Project over the course of last given period of time
Dockerfile
1
star
23

fedora-badges-server

The mirror repository of the backend service for the entire project and has direct interactions with its neighbouring internal entities (i.e. Collection, Database, Liberation, Messages Consumer, Accolades CLI)
Python
1
star