Last active
August 29, 2015 14:11
-
-
Save philipsoutham/483058dd133d3617bb9b to your computer and use it in GitHub Desktop.
NVidia on Fedora 21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## Inspired by http://negativo17.org/nvidia-driver/ | |
# | |
yum clean all | |
yum -y localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm | |
yum-config-manager --add-repo=http://negativo17.org/repos/fedora-nvidia.repo | |
yum -y install nvidia-driver akmod-nvidia kernel-devel kernel-modules kernel-modules-extra | |
cat << EOF > /etc/sysconfig/modules/nvidia.modules | |
#!/bin/sh | |
exec /sbin/modprobe nvidia >/dev/null 2>&1 | |
EOF | |
chmod +x /etc/sysconfig/modules/nvidia.modules |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment