Last active
August 2, 2020 13:13
-
-
Save dmitriysafronov/8547056 to your computer and use it in GitHub Desktop.
Fedora NVidia proprietary driver setup
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 | |
## Remember to update kernel* and selinux-policy* before proprietary driver installation!!! | |
echo "Updating kernel & selinux policy..." | |
yum update kernel* selinux-policy* | |
echo "Erasing nouveau Xorg driver..." | |
yum erase xorg-x11-drv-nouveau | |
echo "Installing NVidia drivers" | |
yum install kmod-nvidia | |
echo "Rebuilding initramfs..." | |
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img | |
dracut /boot/initramfs-$(uname -r).img $(uname -r) | |
echo "Generating new grub2 config..." | |
grub2-mkconfig -o /boot/grub2/grub.cfg | |
sync |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment