Skip to content

Instantly share code, notes, and snippets.

@arxdsilva
Last active March 1, 2017 03:01
Show Gist options
  • Save arxdsilva/8b251a26c58f4744c6b4ff1c2299cb66 to your computer and use it in GitHub Desktop.
Save arxdsilva/8b251a26c58f4744c6b4ff1c2299cb66 to your computer and use it in GitHub Desktop.
Installing nvidia drivers on Fedora25

1.Update software & reboot

$ dnf update -y
$ reboot

2.Installing dependencies

$ dnf install kernel-devel-$(uname -r) gcc dkms

3.Add 'nouveau' to the blacklist, install vim to edit 'Grub'

$ echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
$ dnf install vim -y
$ vim /etc/sysconfig/grub

3.1Replace your GRUB_CMDLINE_LINUX for:

$ GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/swap rd.lvm.lv=fedora/root rhgb quiet rd.driver.blacklist=nouveau"

4.Reconfigure Grub

$ grub2-mkconfig -o /boot/grub2/grub
$ grub2-mkconfig -o /boot/efi/EFI/fedora/grub

5.Backup and creating new image of initramfs

$ mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
$ dracut --omit-drivers nouveau /boot/initramfs-$(uname -r).img $(uname -r) --force

6.Download latest version of nvidia drivers

$ wget -c http://us.download.nvidia.com/XFree86/Linux-x86_64/375.26/NVIDIA-Linux-x86_64-375.26.run

Warning: don't forget to copy the next steps in a piece of paper If you're using the computer that you'll install this.

7.Reboot the PC

$ reboot 

8.Enter on text mode (using < CTRL+ALT+F2 > - tty2) 9.Go to the directory where you downloaded the driver 10.Install driver

$ init 3
$ bash NVIDIA-Linux-x86_64-375.26.run

11.Reset your PC

$ init 5 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment