GithubHelp home page GithubHelp logo

gridhead / nvidia-auto-installer-for-fedora-linux Goto Github PK

View Code? Open in Web Editor NEW
422.0 9.0 24.0 1.66 MB

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

Home Page: https://ask.fedoraproject.org/t/nvidia-auto-installer-for-fedora-linux-now-works-with-fedora-linux-36/22310/

License: GNU General Public License v3.0

Python 99.51% Shell 0.49%
fedora cuda nvidia optimus rpmfusion hacktoberfest

nvidia-auto-installer-for-fedora-linux's People

Contributors

alexandredey avatar codeperfectplus avatar dependabot[bot] avatar feliperuizgarcia avatar gridhead avatar kernelwernel avatar lcts avatar onuralpszr avatar renovate[bot] avatar xfgusta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nvidia-auto-installer-for-fedora-linux's Issues

Add automatic detection of EOL'd GPUs and exit out

The following GPUs are no longer supported with proprietary drivers from RPM Fusion and the installer should exit out without installation when these are detected.

  • Legacy Geforce 6/7
  • Legacy Geforce 5 (FX series)
  • Legacy Geforce 2 through Geforce 4

v0.25 RPM fusion NVIDIA chould not be enable

hi,
i have a issue when installing. Here is my prompt message:

[ # ] NVIDIA AUTOINSTALLER FOR FEDORA 32 AND ABOVE
[ ✘ ] Installer cannot proceed without root privileges
[ ✘ ] Leaving installer
[fenrir@localhost Downloads]$ sudo ./NVAutoInstFedora32 
[sudo] password for fenrir: 
[ # ] NVIDIA AUTOINSTALLER FOR FEDORA 32 AND ABOVE
[ # ] GATHERING ACTIVE INFORMATION...
[ ✔ ] Host information was gathered
      System: Linux v5.6.14-300.fc32.x86_64
      Hostname: localhost.localdomain
      Version: #1 SMP Wed May 20 20:47:32 UTC 2020
      Distribution: Fedora 32 x86_64
[ ✔ ] Supported OS detected - Fedora 32 x86_64
[ # ] CHECKING FOR GPU COMPATIBILITY...
[ ✔ ] Compatibility infomation was obtained
      00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04)
      01:00.0 VGA compatible controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)
[ ✔ ] An active NVIDIA GPU was detected!
[ ✔ ] An Optimus Dual GPU setup was detected!
[ # ] LOOKING FOR EXISTING DRIVER PACKAGES...
[ ! ] No existing NVIDIA drivers were detected!
[ ! ] Do you wish to install the drivers? (Y/N) y
[ # ] ATTEMPTING CONNECTION TO RPM FUSION...
[ ✔ ] Connection to RPM Fusion server was estabilished
[ ! ] RPM Fusion repository for Proprietary NVIDIA Driver not detected
[ ! ] Do you wish to fetch packages from this repository? (Y/N) y
[ # ] FETCHING REPOSITORY DATA...
[ ✘ ] RPM Fusion NVIDIA repository could not be enabled
[ ✘ ] Leaving installer

How do I fixed it?
Thank you.`

Provide support for installation of NVENC/NVDEC for FFMPEG

RPM Fusion support ffmpeg compiled with NVENC/NVDEC with Fedora 25 and later. You need to have a recent NVIDIA card (see the support matrix) and install the cuda sub-package.

This cannot be installed if CUDA is not detected and if the GPU is not recent.

Nvidia driver not loading

I ran

sudo nvautoinstall --rpmadd
sudo nvautoinstall --nvrepo
sudo nvautoinstall --driver

And it said that the driver installed successfully. I restarted my system and found out that the nvidia drivers aren't loaded, instead the nouveau driver was loaded.

How can i fix this?
Im running Fedora 34.
My graphics card is a GTX970.

Non-zero exit code encountered during exit function

When packaged using PyInstaller, exit() is not recognized

Traceback (most recent call last):
  File "MainFunction.py", line 50, in <module>
  File "MainFunction.py", line 47, in main
NameError: name 'exit' is not defined
[5385] Failed to execute script MainFunction

CUDA installation for a specific version

There are certain situations where people using Tensorflow and other such libraries require a specific version of CUDA. Albeit the installer provides the most recent one, CUDA installation of multiple versions can coexist (with minor replacements with the dependencies used by either) so the users should be given a choice to do that.

Documentation needs critical correction

There are certain information not provided correctly on the README.md.

  • The binary is not executable from the get-go so requires a chmod +x NVAutoInstFedora32 first
  • The documentation does not state about root permission and how to obtain it

Remove colorama dependency

Text coloring is supported by click. We can safely remove colorama after writing codes which allow for colors using click.

CUDA software could not be installed as server can't be pinged

The server at developer.download.nvidia.com could not be pinged to and returns a 404 response code. Due to the failure of the ping operation, the installer cannot continue. Pinging for the availability of the repo link is suggested as it is much more effective.

Also, the repository link has changed from http://developer.download.nvidia.com/compute/cuda/repos/fedora29/x86_64/cuda-fedora29.repo to http://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo - So the change must be reflected to avoid fetching obsolete versions of CUDA.

Inability to package untill PyInstaller provides support for Python 3.8

This might need your attention @lcts. There is stuff changed in one of the branches which do not run on Fedora 32 Workstation when they are packaged into an executable binary by PyInstaller. On searching deep, I figured that it is the Python version to blame as PyInstaller does not provide support for Python 3.8 (or above).

Any solution for this?

Proper detection of Optimus setups

As @ferdnyc remarked, checking for newlines on an lspci output is truly a shabby way to detect an Optimus setup. This must be reworked upon to facilitate better detection with corner cases.

dnf update failed : conflict vidia-kmod-common-3:440.95.01-1.fc29.x86_64

Hello,

First, thank you very much for this super tool.

This is what I did :

  • Fresh installation of fedora 32.
  • SELinux off (same problem than issue : "Generalize and test the tool in KDE Plasma spin #5")
  • dnf update
  • installed nvidia driver (all steps)
  • reboot
  • installed some tools like VSC.
  • reboot
  • installed KDE and Xfce
  • reboot
  • dnf update (error)

I received that message :

Erreur : Erreur de la transaction de test :
le fichier /usr/lib/udev/rules.d/60-nvidia.rules de l'installation de nvidia-kmod-common-3:440.95.01-1.fc29.x86_64 entre en conflit avec le fichier du paquet xorg-x11-drv-nvidia-3:440.82-1.fc32.x86_64

I don't understand that my update try to update from fc32 to nvidia driver fc29?

I'm stuck and unable to update my environment.

Thank's to help me

Sylvain

0.3.5

You new release is an archive... not the usual script... So what do you want us to do with it?
Thanks

Crash during compatibility check in Arch Linux

Not that, it should be compatible with Arch Linux anyway but still, the compatibility check should run fine in all major distributions. Arch Linux does not seem to have a distribution version which causes the error.

image

laptop display still not working with kernel above 5.12

I don't know if this is the right place but on Fedora 34 with kernel above 5.12, laptop display are still not working after installing the drivers. Funny thing is that an external monitor connected over hdmi is working.
HP ProBook 450 G7, I7-10510U CPU, Nvidia GeForce MX250 OS: Fedora release 34 (Thirty Four)

symbolic link vdpau

Not sure it concerns your script because I don't recall if your script does take into account the vdpau plugin.
But What I can see on my install after a few upgrades through dnf, is that the symbolic link of /usr/bin/libvdpau_nvidia.so doesn't point to the correct lib
here : lrwxrwxrwx. 1 root root 31 Jul 21 21:01 libvdpau_nvidia.so -> vdpau/libvdpau_nvidia.so.440.36

and should be:
lrwxrwxrwx. 1 root root 31 Jul 21 21:01 libvdpau_nvidia.so -> vdpau/llibvdpau_nvidia.so.450.66
or
the generic symbolic link already in place :
lrwxrwxrwx. 1 root root 31 Jul 21 21:01 libvdpau_nvidia.so -> vdpau/llibvdpau_nvidia.so.1

Installation succeeded but updates broken on fedora 33

Ok so i folllowed the steps outlined by @sylvoie in this thread and I had driver failing and falling back to noveau.

then i cd-d to '/usr/sbin' and used 'akmods --kernels $(uname -r)' to rebuild kernel which prompted me to install akmods which apparently weren't installed

After that i rebooted and it went straight to login screen without errors, finally nvidia-smi outputed that the driver is installed.

So once again the exact steps:

sudo ./NVAutoInstFedora32 --rpmadd
sudo ./NVAutoInstFedora32 --driver
sudo ./NVAutoInstFedora32 --x86lib
sudo ./NVAutoInstFedora32 --nvrepo
sudo ./NVAutoInstFedora32 --ffmpeg
sudo ./NVAutoInstFedora32 --vidacc
reboot
sudo ./NVAutoInstFedora32 --plcuda
sudo ./NVAutoInstFedora32 --vulkan
reboot

--

cd /usr/sbin

sudo akmods --kernels $(uname -r)

Install package 'akmods' to provide command 'akmods'? [N/y] y

sudo akmods --kernels $(uname -r)

Checking kmods exist for 5.9.10-200.fc33.x86_64 [ OK ]
Building and installing nvidia-kmod [ OK ]

reboot.


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.