Fedora 25/24/23 nVidia Drivers Install Guide

https://www.if-not-true-then-false.com/2015/fedora-nvidia-guide/

search

Most Popular Featured Linux Programming Servers SQL Advertise

If Not True Then False Most Popular Featured Linux Programming Servers SQL Advertise

Fedora 25/24/23 nVidia Drivers Install Guide

person JR date_range 2 years ago Published 2015-08-30 10:51:14 update 2 weeks ago Updated 2017-06-15 08:40:05 insert_comment 1250

This is guide, howto install nVidia proprietary drivers on Fedora 25/24/23/22/21 and disable Nouveau driver. This guide works with GeForce 6/7/8/9/200/300/400/500/600/700/800/900/10 series cards.

  • GeForce 400/500/600/700/800/900/10 series cards works with 375.xx and 381.xx nVidia drivers
  • GeForce 8/9/200/300 series cards works with 340.xx nVidia drivers
  • GeForce 6/7 series cards works with 304.xx nVidia drivers

This is totally different guide than my earlier guides, like Fedora 20 nVidia driver install. This guide uses nVidia drivers directly from nVidia site and dkms to help on kernel updates. Have to say that I have had and heard strange problems with different repos (like RPMFusion) nVidia drivers. So that’s why I decided go back to old school (and bit ugly) method and install nVidia drivers “manually”. I have tested this guide with 304.xx (patched), 340.xx (patched), 375.xx and 381.xx drivers/cards.

With DKMS, you could just update your kernel and your nVidia drivers are compiled automatically. If you want upgrade nVidia drivers, then you have to download new package from nVidia site or use nvidia-installer --update option (this works only with latest drivers). If you try –update method with 304.xx or 340.xx versions, then you get latest drivers.

Table of Contents

1. Before nVidia drivers installation (Fedora 25/24/23/22/21)

2. Install nVidia proprietary drivers on Fedora 25/24/23/22/21 and disable the nouveau driver

3. Some Screenshots Using Different nVidia Cards and Drivers

4. Restore/Change/Update Plymouth After nVidia Drivers Installation (BIOS/UEFI Users)

5. Fedora 25/24/23/22/21 Uninstall nVidia drivers and Enable Nouveau

6. Fedora 25/24/23/22/21 nVidia FAQ

Let me know, if you have some problems?

Or if you succeed, you could post output of following commands:

Bash


nvidia-installer -v |grep version

uname -a

lspci |grep -i VGA

Backup first important files before you start installation. And this is of course at your own risk, because graphic cards, components and monitors are different and some combinations might cause totally unexpected results.

1. Before nVidia drivers installation

1.1 Check is your nVidia card supported

Bash


lspci |grep -E "VGA|3D"

## Example outputs ##
01:00.0 VGA compatible controller: NVIDIA Corporation GF119 [GeForce GT 610] (rev a1)

List of Supported NVIDIA GPU Products, if your card found before 340.xx section, then use 375.xx drivers and if between 340.xx and 304.xx sections, then use 340.xx drivers and if after 304.xx section, then use 304.xx drivers.

If you see multiple VGA controllers, then check next step and sometimes you might see example Intel VGA controller which have nothing to do with Optimus, normally you can go to BIOS and simply disable it.

1.2 NVIDIA Optimus Technology

If your lspci |grep -E “VGA|3D” output looks like following:

Bash


00:02.0 VGA compatible controller: Intel Corporation 2n Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: nVidia Corporation GF106 [GeForce GT 555M SDDR3] (rev a1)

Or

Bash


00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 750M] (rev a1)

Or you know that your computer have NVIDIA Optimus Technology, and it is impossible to turn Intel Graphics / NVIDIA Optimus off in the BIOS then this guide might not work for you and it’s not tested. You should check Bumblebee Project.

2. Install nVidia proprietary drivers on Fedora 25/24/23/22/21 and disable the nouveau driver

2.1 Download nVidia Installer Package

Go to http://www.nvidia.com/Download/Find.aspx?lang=en-us and find latest version of installer package. When you use browser this is normally downloaded /home/<username>/Downloads/NVIDIA-Linux-xxxx.run location.

Tested versions:

Fedora 25 Fedora 24 Fedora 23 Fedora 22/21
381.22 (May 9, 2017) 381.22 (May 9, 2017) 381.22 (May 9, 2017) 381.22 (May 9, 2017)
375.66 (May 4, 2017) 375.66 (May 4, 2017) 375.66 (May 4, 2017) 375.66 (May 4, 2017)
340.102 (February 14, 2017) 340.102 (February 14, 2017) 340.102 (February 14, 2017) 340.102 (February 14, 2017)
304.135 (February 14, 2017) 304.135 (February 14, 2017) 304.135 (February 14, 2017) 304.135 (February 14, 2017)

Note 340.102 users: 340.102 on Fedora 25 Kernel 4.11/4.10/4.9 needs a patched version (Download NVIDIA-Linux-x86_64-340.102 + Kernel 4.11/4.10/4.9 patch)

Note 304.135 users: 304.135 on Fedora 25/24/23 – installs and boot, but doesn’t work with Gnome 3.22/3.20/3.18. Other DEs/WMs should work normally. Kernel 4.11/4.10/4.9/4.8/4.7/4.6/4.5/4.4/4.3 needs a patched version (Download NVIDIA-Linux-x86_64-304.135 + Kernel 4.11/4.10/4.9/4.8/4.7/4.6/4.5/4.4/4.3 patch)

2.2 Make nVidia installer executable

Bash


chmod +x /path/to/NVIDIA-Linux-*.run

2.3 Change root user

Bash


su -
## OR ##
sudo -i

2.4 Make sure that you system is up-to-date and you are running latest kernel

If you have exclude=xorg-x11* row in your /etc/dnf/dnf.conf, then you can remove it now and update xorg too.

Bash


## Fedora 25/24/23/22 ##
dnf update

## Fedora 21 ##
yum update

After update reboot your system and boot using latest kernel:

Bash


reboot

2.5 Install needed dependencies

Bash


## Fedora 25/24/23/22 ##
dnf install kernel-devel kernel-headers gcc dkms acpid

## Fedora 21 ##
yum install kernel-devel kernel-headers gcc dkms acpid

2.6 Disable nouveau

2.6.1 Create or edit /etc/modprobe.d/blacklist.conf

Append ‘blacklist nouveau’

Bash


echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf

2.6.2 Edit /etc/sysconfig/grub

Append ‘rd.driver.blacklist=nouveau’ to end of ‘GRUB_CMDLINE_LINUX=”…”‘

Bash


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

2.6.3 Update grub2 conf

Bash


## BIOS ##
grub2-mkconfig -o /boot/grub2/grub.cfg

## UEFI ##
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

2.6.4 Remove xorg-x11-drv-nouveua

Bash


## Fedora 25/24/23/22 ##
dnf remove xorg-x11-drv-nouveau

## Fedora 21 ##
yum remove xorg-x11-drv-nouveau

If you have following row on /etc/dnf/dnf.conf file, then you can remove it:

Bash


exclude=xorg-x11*

2.6.5 Generate initramfs

Bash


## 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)

2.7 Reboot to runlevel 3

Note: You don’t have Desktop/GUI on runlevel 3. Make sure that you have some access to end of guide. (Print it, use lynx/links/w3m, save it to text file).

Bash


systemctl set-default multi-user.target

reboot

2.8 Install nVidia proprietary drivers for GeForce 6/7 & GeForce 8/9/200/300 & GeForce 400/500/600/700/800/900/10 series cards

2.8.1 Log in as root user

Or alternatively change root user (you shouldn’t have nouveua and xorg loaded)

Bash


su -
## OR ##
sudo -i

2.8.2 Run NVIDIA Binary

Following command executes driver install routine. Use full file name command if you have multiple binaries on same directory.

Bash


./NVIDIA-Linux-*.run

## OR full path / full file name ##

./NVIDIA-Linux-x86_64-375.66.run

/path/to/NVIDIA-Linux-x86_64-381.22.run

/path/to/NVIDIA-Linux-x86_64-340.102-patched.run

/home/<username>/Downdloads/NVIDIA-Linux-x86_64-304.135-patched.run

2.8.3 nVidia Installer Accept License

2.8.4 nVidia Installer Register the Kernel Source Modules with DKMS

2.8.5 nVidia Installer 32-bit Compatibility Libraries

2.8.6 nVidia Installer Installing Drivers

Note: Just ignore following errors:

Bash


Cannot create symlink /usr/lib/libGL.so.1 (File exists)
Cannot create symlink /usr/libGL.so (File exists)
Cannot create symlink /usr/libGLX-nvidia.so.0 (File exists)

This is bug and maybe fixed on next release. For more information check this.

2.8.7 nVidia Installer Xorg Backup

2.8.8 nVidia Drivers Installation Complete

2.9 All Is Done and Then Reboot Back to Runlevel 5

Bash


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).

Bash


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

## Fedora 21 ##
yum install vdpauinfo libva-vdpau-driver libva-utils

3. Some Screenshots Using Different Cards and Drivers

3.1 nVidia 381.22 drivers on Fedora 25 Gnome 3.22.2 with Kernel 4.11

3.2 nVidia 375.66 drivers on Fedora 25 Gnome 3.22.2 Kernel 4.11

3.3 nVidia 340.102 drivers on Fedora 25 Gnome 3.22.2 with Kernel 4.9.11

3.4 nVidia 304.135 drivers on Fedora 25 LXDE with Kernel 4.9.11

Let me know, if you have problems?

Or if you succeed, you could post output of following commands:

Bash


nvidia-installer -v |grep version

uname -a

lspci |grep -i VGA

Table of Contents

Table of Contents

1. Before nVidia drivers installation (Fedora 25/24/23/22/21)

2. Install nVidia proprietary drivers on Fedora 25/24/23/22/21 and disable the nouveau driver

3. Some Screenshots Using Different nVidia Cards and Drivers

4. Restore/Change/Update Plymouth After nVidia Drivers Installation (BIOS/UEFI Users)

5. Fedora 25/24/23/22/21 Uninstall nVidia drivers and Enable Nouveau

6. Fedora 25/24/23/22/21 nVidia FAQ

Pages: 1 2 3 4

Categories:

Tagged with:

Related Posts

1250 Comments

arrow_back Read comments (1250)

Leave a Comment

Your email address will not be published. Required fields are marked *

Comment *

help

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Name *

Email *

Website

Most Popular Posts

Last Updated Posts

Recent Posts

Recent Comments

Copyright 2017 If Not True Then False

时间: 2024-10-10 21:20:16

Fedora 25/24/23 nVidia Drivers Install Guide的相关文章

Install MySQL 5.7 on Fedora 25/24, CentOS/RHEL 7.3/6.8/5.11

1. Change root user Bash su - ## OR ## sudo -i 2. Install MySQL YUM repository Fedora Bash ## Fedora 25 ## dnf install https://dev.mysql.com/get/mysql57-community-release-fc25-9.noarch.rpm ## Fedora 24 ## dnf install https://dev.mysql.com/get/mysql57

Fedora 25 (linux平台)开源的PDF文件编辑工具——PDF mod

Fedora 25 (linux平台)开源的PDF文件编辑工具--PDF mod PDF文件具有非常好的跨平台属性,无论你在哪个平台用哪个PDF阅读器打开,其格式是永远不变的.但是缺点也很明显,文本文件或者图文混排文件,要想再次编辑就有很大难度了. Document viewer作为fedora 25默认PDF阅读器,用来阅读PDF文件没什么大问题,但是如果要修改一下PDF就显得不够强大了. PDF Mod是一款编辑 PDF 文件很方便的工具.包名:pdfmod PDF Mod 让用户可以移除页

让Fedora 25像centos7默认那样,在目录里随处右键菜单有个“打开终端”选项

1.如何让Fedora 25像centos7默认那样,在文件夹里随处右键菜单有个"打开终端",这样每次打开终端之后不必再cd到繁复的路径,万一打错还要查看图形界面的路径.其实只需安装一个工具:nautilus-terminal 打开终端,取得root权限,执行一下命令:dnf install -y nautilus-terminal等待安装完成之后,注销重进入就可以看到了. 需要注意一下,如果你的Fedora并不是25,可能会找不到nautilus-terminal 这个包 这时候你可

Fedora 25 Alpha版本今天发布啦

时隔Fedora 24发布后的3个月,Fedora项目团队非常开心的宣布任何感兴趣的用户都能下载和测试即将到来的Fedora 25操作系统的Alpha预发布版本,在Fedora 25 Alpha里程碑版本中的最值得关注的新功能就是迁移到下一代Wayland显示服务器和X11(或者X.Org服务器)上,不过仅面向使用GNOME桌面环境的工作站版本. 谈到GNOME,Fedora 25 Alpha版本搭载了GNOME 3.21.4开发版本,在未来将会升级至GNOME 3.22桌面环境(9月21日发布

VirtualBOX中的Fedora 25 客户机如何全屏化显示?如何安装增强工具?

首先保证你已经能打开在vbox中安装的Fedora 25. 显示全屏化的时候,却是一个分辨率比较低的窗口.这时候,我们需要安装虚拟机的增强工具. 打开虚拟机的工具栏-->安装增强功能 进入fedora 25虚拟机会有一个挂载好的文件,/run/media/wu/VBOXADDITIONS_5.1.22_115126(后面的版本号会有所差别,wu是我用户名) 打开终端,切换到root用户,执行以下命令,安装需要的包: dnf install -y gcc kernel  kernel-devel

Fedora 25文件对比、目录对比工具——Meld——Linux平台的对比工具

处理文件的时候,经常遇到两个非常相似的文件,需要对比.修改.Meld就是专门做这个工作的一款工具.Meld是一个可视的diff和合并工具.Meld是Linux软件,用户使用它可以比较2至3个文件并进行编辑,也可以比较2至3个文件夹并同时进行文件对比. 在Fedora 25上安装Meld: #dnf install -y meld 安装完成后即可启动使用.打开后可以看到,既可以对比文件,也可以对比目录. 可视化做的很好,意思很明确,即使不懂英文同样很容易理解.可以找几个文件测试一下: 还可以直接在

k8s-1.7.3 Install Guide

############################################### ######## k8s-1.7.3 Install Guide ######### ############################################### ############################################### ######## k8s-1.7.3 Install Guide ######### ####################

Fedora 25 Gnome快捷键、快捷操作——时用时查,不用记住快捷键也能大大提高办公效率

每个操作系统都会有很多快捷键可用,Fedora系统作为非常流行的linux发行版,也有非常多快捷键,大部分能和Windows系统兼容的,但是由于使用习惯并不一样,linux系统很多操作使用快捷键更加方便.但是如何记忆很多快捷键呢?其实不需要记忆. 只需要将这个页面收藏在电脑浏览器的收藏夹,需要用时在此界面按下Ctrl+F,查找相关关键字(比如:切换),就可以快速定位带有关键字的行. 这里收集一些fedora 25 gnome版常用快操作,足够普通用户大大提高效率. Ctrl+Alt+F1:进入虚

How to install the latest NVIDIA drivers on Debian 9 Stretch Linux

https://linuxconfig.org/how-to-install-the-latest-nvidia-drivers-on-debian-9-stretch-linux 原文地址:https://www.cnblogs.com/ihibin/p/9124083.html