How to install the Nvidia graphics card driver

Source: Internet
Author: User

How to install the Nvidia graphics card driver

We will not repeat the Nvidia driver too much. This article teaches you how to install the Nvidia graphics card driver on Fedora 24.

First, we need to install kernel-devel and kernel-headers, the following command:

[root@localhost ~]# dnf install kernel-devel kernel-headersLast metadata expiration check: 0:53:22 ago on Tue Jun 28 09:45:14 2016.Dependencies resolved.=========================================================================Package              Arch       Version            Repository     Size=========================================================================Installing:kernel-devel         x86_64     4.5.7-300.fc24     updates         10 Mkernel-headers       x86_64     4.5.7-300.fc24     updates        1.0 MTransaction Summary=========================================================================Install  2 PackagesTotal download size: 11 MInstalled size: 42 MIs this ok [y/N]: yDownloading Packages:(1/2): kernel-headers-4.5.7-300.fc24.x86_64.rpm  84 kB/s | 1.0 MB   00:12(2/2): kernel-devel-4.5.7-300.fc24.x86_64.rpm   191 kB/s |  10 MB   00:55-------------------------------------------------------------------------Total                                           202 kB/s |  11 MB   00:57Running transaction checkTransaction check succeeded.Running transaction testTransaction test succeeded.Running transactionInstalling  : kernel-headers-4.5.7-300.fc24.x86_64                 1/2Installing  : kernel-devel-4.5.7-300.fc24.x86_64                   2/2Verifying   : kernel-devel-4.5.7-300.fc24.x86_64                   1/2Verifying   : kernel-headers-4.5.7-300.fc24.x86_64                 2/2Installed:kernel-devel.x86_64 4.5.7-300.fc24    kernel-headers.x86_64 4.5.7-300.fc24Complete!

Run the following command to install gcc, dkms, and acpid:

[root@localhost ~]#dnf install gcc dkms acpid

Download driver package to the official website, NVIDIA-Linux-x86_64-367.27.run:

[root@localhost ~]# wget http://in.download.nvidia.com/XFree86/Linux-x86_64/367.27/NVIDIA-Linux-x86_64-367.27.run--2016-06-28 10:19:16--  http://in.download.nvidia.com/XFree86/Linux-x86_64/367.27/NVIDIA-Linux-x86_64-367.27.runResolving in.download.nvidia.com (in.download.nvidia.com)... 117.239.240.42, 117.239.240.32Connecting to in.download.nvidia.com (in.download.nvidia.com)|117.239.240.42|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 76945324 (73M) [application/octet-stream]Saving to: ‘NVIDIA-Linux-x86_64-367.27.run’NVIDIA-Linux-x86_64 100%[===================>]  73.38M  1.16MB/s    in 91s2016-06-28 10:20:49 (825 KB/s) - ‘NVIDIA-Linux-x86_64-367.27.run’ saved [76945324/76945324]

Modify the NVIDIA-Linux-x86_64-367.27.run permissions and install:

[root@localhost ~]#chmod +x NVIDIA-Linux-x86_64-367.27.run 

Disable the X-server graphics card driver and modify the driver link:

[root@localhost ~]#rm /etc/systemd/system/default.targetrm: remove symbolic link '/etc/systemd/system/default.target'? y[root@localhost ~]#ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target

In the preceding command, we use the first command to delete the default running level, and in the next command, we changed the running level to multi-user (this is equivalent to running level 3 (multi-user and text mode )).

Blacklist nouveau at Boot Time and Post Boot

We will create a file disable-noveau.conf in the/etc/modprobe. d/directory as follows:

[root@localhost ~]#echo 'blacklist nouveau' >> /etc/modprobe.d/disable-nouveau.conf[root@localhost ~]#echo 'nouveau modeset=0' >> /etc/modprobe.d/disable-nouveau.conf

Edit the/boot/grub2/grub. cfg file:

linux16 /vmlinuz-4.5.7-300.fc24.x86_64+debug root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet LANG=en_US.UTF-

Add the following content in rdblacklist = nouveau:

linux16 /vmlinuz-4.5.7-300.fc24.x86_64+debug root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rdblacklist=nouveau rhgb quiet LANG=en_US.UTF-8

Restart the system:

[root@localhost ~]#reboot

Use the root account to log on to the system:

For example, install the driver:

Select Accept:

Select "yes ":

Select "yes ":

After the installation is successful, modify the default value:

[root@localhost ~]#rm /etc/systemd/system/default.target[root@localhost ~]#ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target

Settings:

Install the Nvidia driver for Ubuntu 16.04 to solve problems such as hot fan conversion in the notebook

Install the Nvidia private driver on Ubuntu 14.04 and switch between two graphics cards

Ubuntu 12.04

Install the graphics card Driver Nvidia Driver 334.21 for Ubuntu users

How to install the latest NVIDIA 13.10 driver in Ubuntu 331.20

How to install the Nvidia 337.12 Beta graphics card driver in Linux

How do Ubuntu users install the latest Nvidia graphics card driver?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.