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