Skip to content

Instantly share code, notes, and snippets.

@philipsoutham
Last active August 29, 2015 14:11
Show Gist options
  • Save philipsoutham/483058dd133d3617bb9b to your computer and use it in GitHub Desktop.
Save philipsoutham/483058dd133d3617bb9b to your computer and use it in GitHub Desktop.
NVidia on Fedora 21
#!/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