Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Nvidia driver in Fedora Linux

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to install the Nvidia driver in Fedora Linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Like most Linux distributions, Fedora does not install proprietary Nvidia drivers by default.

The default open source Nouveau driver can be used in most cases, but you may encounter problems such as screen tearing.

If you encounter such graphics / video problems, you may need to install an official proprietary Nvidia driver in Fedora. Let me show you how to install it.

Install the Nvidia driver in Fedora I use Fedora 32 in this tutorial, but it should work with other Fedora versions.

Step 1 make sure your system is up-to-date before doing anything else. You can use the Software Center, or you can use the following command in the terminal:

Sudo dnf update step 2 since Fedora does not provide a Nvidia driver, you need to add a RPMFusion repository to the system. You can use the following command in the terminal:

Sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm-E% fedora) .noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm-E% fedora) .noarch.rpm don't like terminals? Then use the GUI method to add the RPMFusion repository.

If you use Firefox, you can also add RPMFusion repositories from browsers. Go to the configuration page and scroll down to "Graphical Setup via Firefox web browser". Click the links for free and non-free repositories. This will download the .rpm file and install the repository.

You can double-click the downloaded RPM file to install.

Step 3 now, you need to determine which graphics cards (or chips) are in the Linux system. Open the terminal and enter the following command:

Lspci-vnn | grep VGA

Next, you need to find the driver that corresponds to the chip. You can find a list of Nvidia chips here. You can also use this tool to search for devices.

Note: keep in mind that even if the Nvidia list shows more drivers, only three drivers can be installed. The Nvidia driver supports the latest graphics cards. Nvidia-390 and nvidia-340 drivers support older devices.

Step 4 to install the required driver, enter one of the following commands in the terminal. The following command is for my graphics card. Adjust accordingly according to your system.

Sudo dnf install akmod-nvidia sudo dnf install xorg-x11-drv-nvidia-390xx akmod-nvidia-390xx sudo dnf install xorg-x11-drv-nvidia-340xx akmod-nvidia-340xx

Step 5 for the changes to take effect, restart the system. It may take a long time for your system to restart because it injects Nvidia drivers into the Linux kernel.

After rebooting and logging in to the system, you will see better visual effects and there will be no screen tearing.

Additional hints this is an optional step, but it is recommended. When adding RPMFusion repositories, you can access multimedia packages that are not available in regular repositories.

This command installs the software package for applications that use gstreamer:

Sudo dnf groupupdate multimedia-- setop= "install_weak_deps=False"-- exclude=PackageKit-gstreamer-plugin this command installs the packages required for the audio and video packages:

Sudo dnf groupupdate sound-and-video, thank you for your reading! This is the end of the article on "how to install the Nvidia driver in Fedora Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report