NOTE: THIS DOES NOT WORK FOR ME CURRENTLY
selinux had issues and I disabled that at first, but X11 will not start with current/latest NVidia driver







Fedora 25 Workstation and NVidia Linux Driver install (GTX 980 card in my case)(Allows full resolution and quiets down the NVidia fans in Linux)
================================================================================================================================================
Info:
Fedora 25 version installed:		Fedora-Workstation-Live-x86_64-25-1.3.iso

NVidia Linux x86_64 driver installed:	Current (2016-1229) driver used: NVIDIA-Linux-x86_64-375.26.run
Download the Latest Long  Lived Branch NVidia "Linux x86_64/AMD64/EM64T" driver listed above here:	http://www.nvidia.com/object/unix.html


See here: https://ask.fedoraproject.org/en/question/97700/screen-turns-off-during-fedora-25-boot/
=================================================================================================
Make sure you have this first:
------------------------------
Running 1024x768
Install all current Fedora updates
Reboot

Then do this after the above is done:
-------------------------------------
start terminal

sudo -i
dracut --omit-drivers nouveau /boot/initramfs-$(uname -r).img $(uname -r) --force
systemctl set-default multi-user.target (boots into a text only mode)

dnf install kernel-devel-$(uname -r) gcc dkms acpid
dnf install vdpauinfo libva-vdpau-driver libva-utils

bash /dirofsavedfile/NVIDIA-Linux-x86_64-...run (driver version number in place of ..)
Accept license, say yes to DKMS and 32 bit library installation.

If running in secure boot EFI, you will be possibly need to make a digital key.  I do not fully understand that procedure, so I disabled secure boot in my bios and did not have to do that step.

systemctl set-default graphical.target
reboot


Old document for Fedora 22: http://www.forums.fedoraforum.org/showthread.php?t=304646

"Fedora 25/24/23 nVidia Drivers Install Guide": https://www.if-not-true-then-false.com/2015/fedora-nvidia-guide/







OLD:
----------------------------------------------------------



Install the pre-requisites:
---------------------------
dnf install dkms gcc kernel-devel kernel-headers acpid




Blacklist and remove the default nouveau graphics driver:
---------------------------------------------------------
echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
add "rd.driver.blacklist=nouveau" to middle of "GRUB_CMDLINE_LINUX=" line in /etc/sysconfig/grub
Example:
GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/swap rd.lvm.lv=fedora/root rd.driver.blacklist=nouveau rhgb quiet"

Activate blacklist change:
--------------------------
## BIOS ##
grub2-mkconfig -o /boot/grub2/grub.cfg
 
## UEFI ##
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg






Remove default nouveau driver:
------------------------------
dnf remove xorg-x11-drv-nouveau




## Backup old initramfs nouveau image ##
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
 
## Create new initramfs image ##
dracut /boot/initramfs-$(uname -r).img $(uname -r)






Set computer to boot to run level 3 (non-graphical boot) and reboot:
--------------------------------------------------------------------
systemctl set-default multi-user.target
reboot

Install the NVidia driver:
--------------------------
Example:
chmod +x NVIDIA-Linux-x86_64-352.21.run
sh ./NVIDIA-Linux-x86_64-352.21.run
accept license
allow dkms module updates with new kernel updates
install 32bit compatibility
allow it to update your xorg.cfg file

If successful, then:
--------------------
Set computer to boot to run level 5 (graphical boot) and reboot:
----------------------------------------------------------------
systemctl set-default graphical.target
reboot









2.10 VDPAU/VAAPI support

To enable video acceleration support for your player (Note: you need Geforce 8 or later).
Shell

## Fedora 23/22 ##
dnf install vdpauinfo libva-vdpau-driver libva-utils



nvidia-installer –update


nvidia-installer -v |grep version
 
uname -a
 
lspci |grep -i VGA


lspci |grep -E "VGA|3D"

The information at the below web link by "Duke Nukem" was helpful in getting the above to work for Fedora 21 and 22:
====================================================================================================================
"Step by step instructions: Fedora 20, NVIDIA GPU"
http://setiathome.berkeley.edu/forum_thread.php?id=74094


KERNEL UPDATES:
===============
NOTE: When updating kernels, the dkms package should technically re-enable the NVidia driver automatically.
If not, you can update the driver manually as listed below.

KERNEL UPDATES & manual NVidia driver update:
---------------------------------------------
If you update your kernel, then the new kernel will not by default have the NVIDIA driver enabled (Note: only if you do not have dkms installed).
You can reinstall the NVIDIA driver after updating your kernel and rebooting by doing the following:
Ctrl + Alt + F2 (this will get you a login)
Login as root
sh ./NVIDIA-Linux-x86_64-352.21.run
Accept license
Continue Installation
Yes to Install NVIDIA's 32-bit compatibility
Yes to update your x configuration file (may not be needed if upgrading)
reboot

Note: If a recent kernel update removes the blacklist file, you may have to do this again and then reboot and then do the above update section after a kernel update:
Blacklist and remove the default nouveau graphics driver:
---------------------------------------------------------
echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
add "rd.driver.blacklist=nouveau" to middle of "GRUB_CMDLINE_LINUX=" line in /etc/sysconfig/grub
Example:
GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/swap rd.lvm.lv=fedora/root rd.driver.blacklist=nouveau rhgb quiet"

Activate blacklist change:
--------------------------
grub2-mkconfig -o /boot/grub2/grub.cfg

Remove default nouveau driver:
------------------------------
dnf remove xorg-x11-drv-nouveau




2015-0619 Update:
-----------------
Current kernel and old NVidia driver would fail to get into X-window session.  Upgrading the NVidia driver fixed this for me.  This is how I fixed this:

At failed window, press Ctrl + Alt + F2 and login as root

Transfer the latest driver to your PC from another PC (I used NVIDIA-Linux-x86_64-352.21.run)

Note, if you need to enable SSH so you can transfer the new driver over (via scp or sftp) to your PC, run this to enable SSH and scp/sftp transfers:
systemctl enable sshd.service 
systemctl start sshd.service

Then use some scp or sftp transfer program to copy the NVidia driver over to your non-working Fedora server.  (I use FileZilla client with sftp transfer).

Set computer to boot to run level 3 (non-graphical boot) and reboot:
--------------------------------------------------------------------
systemctl set-default multi-user.target
reboot

Install the NVidia driver:
--------------------------
chmod +x NVIDIA-Linux-x86_64-352.21.run
sh ./NVIDIA-Linux-x86_64-352.21.run
accept license
allow dkms module updates with new kernel updates
install 32bit compatibility
allow it to update your xorg.cfg file

If successful, then:
--------------------
Set computer to boot to run level 5 (graphical boot) and reboot:
----------------------------------------------------------------
systemctl set-default graphical.target
reboot

Things should work again.