In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to install Nvidia GTX1080 graphics card driver in CentOS 7, I believe most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's learn about it!
One: first of all, of course, download the driver.
My computer belongs to NVIDIA, so naturally I have to visit its official website: http://www.geforce.cn/drivers
According to your own video card model, select the appropriate video card, download it, and download a .run file.
Second: OK, the next step is to install the compiler environment: gcc, kernel-devel, kernel-headers (of course, if your computer is already installed, you don't have to install it anymore)
# yum-y install gcc kernel-devel "kernel-devel-uname-r = = $(uname-r)" dkms "kernel-devel-uname-r = = $(uname-r)"
You can ensure that you install the same kernel-header as the current kernel version
Third: modify the / etc/modprobe.d/blacklist.conf file to prevent the loading of the nouveau module
Method: add blacklist nouveau and comment out blacklist nvidiafb (if any)
When blacklist.conf does not exist, execute the following script
# echo-e "blacklist nouveau\ noptions nouveau modeset=0" > / etc/modprobe.d/blacklist.conf
IV: re-establish the initramfs image file
# mv / boot/initramfs-$ (uname-r). Img / boot/initramfs-$ (uname-r). Img.bak # dracut / boot/initramfs-$ (uname-r). Img $(uname-r)
Five: execute the following installation script
. / NVIDIA-Linux-x86_64-375.39.run-- kernel-source-path=/usr/src/kernels/3.10.0-514.el7.x86_64-k $(uname-r)-dkms-s
Problems encountered:
ERROR: Unable to load the kernel module 'nvidia.ko'.
The reason is that the nouveau module is enabled by default in the kernel, and this error will be reported if the third step is not performed.
Unable to load the 'nvidia-drm' module
Failure to install the dkms module results in
Your kernel headers for kernel 3.10.0-229.el7.x86_64 cannot be found
The reason is that the kernel-header library file that matches the kernel cannot be found, and execute
Yum install-y "kernel-devel-uname-r = = $(uname-r)" is fine.
Other considerations:
-- dkms can compile the Nvidia module into the default kernel load module, and there is no need to reinstall the driver when upgrading the kernel later.
-s option is silence mode installation, excluding-s is interactive mode installation
Here are some additions from other netizens
Train of thought:
1. Go to the nvidia official website to download the video card driver with the suffix ".run". It is important to note that the video card series name + digits
2. Open the terminal terminal and enter the command "init 3" to switch to the text interface.
3. Installation process
# cd into the directory where the video card driver is downloaded # chmod axix driver name # sh driver name
4. if you find that there is no compiler in the error report, simply install the development kit
# yum groupinstall-y Development-Tool
Repeat the installation steps to indicate that kernel-source cannot be found, and prompt to specify the path to kernel.
# sh driver name-kernel-source-path=kernel path (mine is / usr/src/kernels/ core number /) these are all the contents of the article "how to install Nvidia GTX1080 graphics card driver in CentOS 7". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.