Linux (CentOS7) NVIDIA geforece GTX 745 graphics driver __linux

Source: Internet
Author: User
Tags gtx linux mint

Dell Desktop Vostro, based on its "service number" or "Express service code" to find, the official website only the Windows family of graphics drivers, no Linux driver to provide downloads. Program-"System Tools-" hardware-"monitor, the resolution is only two optional, the interface is quite awkward.

The following steps recommend that the Linux system on another desktop be ssh-x to a host that needs to be installed, or not desktop, to avoid trouble

# Lspci | grep VGA/* Check the video card model * *

01:00.0 VGA compatible Controller:nvidia Corporation GM107 [GeForce GTX 745] (rev A2)

In the NVIDIA network search "GeForce GTX 745 CentOS", according to the need to choose 32-bit or 64 for, I choose here is the following image driver, download the file for the Nvidia-linux-x86_64-340.32.run

Nvidia-linux-x86_64-340.76_0.run-Direct download of this 2015.1.27 latest.

# chmod +x nvidia-linux-x86_64-340.32.run/* Gives driver file execution rights.

Here, depending on the desktop type, if there is a desktop, I use GNOME here, first stop the desktop [KDM (KDE), GDM (GNOME), LIGHTDM (LXDE and Xfce), MDM (Linux Mint)]

# Systemctl Stop GDM/* Stop Desktop *

If you perform the next installation directly, you will be prompted to stop the X window first:

Error:you appear o is running an X server; Please exit X before installing. For further details, installing the "section" of the NVIDIA DRIVER in the DRIVER in the 
README available 
on The Linux driver download page at www.nvidia.com.

#./nvidia-linux-x86_64-340.32.run/* login into No desktop mode, install drive/*

*************************************************************************************************************

There may be a nouveau error :

Error:the Nouveau Kernel Driver is currently into use by your system. This driver was incompatible with the NVIDIA driver, and 
must be disabled before. Please consult the NVIDIA driver README and your Linux distribution ' s documentation for details in how to 
correctly dis Able the Nouveau kernel driver.

The Nouveau is an open source 3D driver developed by a third party for Nvidia graphics, and has not been recognized and supported by NVIDIA. Although Nouveau Gallium3D is far from being able to compete with Nvidia's official private drive, it makes it easier for Linux to deal with a variety of sophisticated NVIDIA graphics environments, allowing users to install the system to the desktop and have a good display, so Many Linux distributions default to integrated Nouveau drivers and are installed by default when they encounter Nvidia graphics cards. This is especially true for Enterprise Linux, where almost all enterprise Linux distributions that support the graphical interface will nouveau revenue.
But for personal desktop users, the growth phase of the Nouveau is not perfect, and the Enterprise version is not the same, individual users in addition to the normal display graphics interface often need some 3D special effects, Nouveau most of the time can not be completed, While the user installs the NVIDIA official private drive the time nouveau again becomes the obstruction, needs to disable Nouveau to install the official drive first.

# Lsmod | grep Nouveau/* detects if the Nouveau drive is enabled/*

Nouveau              1403757  1 
mxm_wmi                13021  1 nouveau
WMI                    19070  2 Mxm_wmi,nouveau
i2c_ Algo_bit           13413  1 nouveau
drm_kms_helper        125008  1 nouveau
ttm                    93441  1 Nouveau
DRM                   349210  4 ttm,drm_kms_helper,nouveau
i2c_core               40582  5 drm,i2c_i801,drm_ Kms_helper,i2c_algo_bit,nouveau
Video                  24400  1 nouveau
# vim/etc/modprobe.d/blacklist.conf/* Add Nouveau to blacklist * *
Blacklist nouveau
# mv/boot/initramfs-$ (uname-r). img/boot/initramfs-$ (uname-r). Img.bak/* Backup initramfs*/
# dracut-v/boot/initramfs-$ (UNAME-R). IMG $ (UNAME-R)/* Rebuild initramfs*/

# Systemctl Isolate multi-user.target/* Set (boot up) to 3-layer multiuser mode * *

# REBOOT/* REBOOT * *

This time the font is very large, indicating that the driver has been disabled, $ (lsmod | grep nouveau) Detect no results, this time to perform the installation

# yum-y Install gcc/* Basic tools to load * *

#./nvidia-linux-x86_64-340.32.run/* login into No desktop mode, install drive/*

*************************************************************************************************************

Verifying Archive Integrity ... OK
uncompressing NVIDIA accelerated Graphics Driver for linux-x86_64 340.32 ..... ...... ...... ..... ...... ..... ...... ...... ..... ...... ...... ... ..... ....... ...... ..... ..... ..... ..... ...... ..... ..... ..... ..... ...
........................................................................
...........................................

*************************************************************************************************************

If the unable to build Nvidia kernel module error appears, it means that the driver file you downloaded is not up to date or does not fit the current operating system. The way is to go to the official website to download the latest driver, I installed on the CentOS7.1 Nvidia-linux-x86_64-340.32.run is OK, but on the CentOS7.2 on the report of this error, download the latest nvidia-linux-x86_ 64-340.76_0.run can be. Later, there may be newer systems and newer drivers.

*************************************************************************************************************

The following are some basic options, accept the agreement, etc.


# Systemctl Start GDM/* Last boot Desktop (GNOME) * *

Look at the effect, big screen, pretty


Related Article

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.