In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to install RHEL6 NVIDIA graphics card driver, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Download and install NVIDIA graphics card driver 1 and check your video card model
1.1 Open Terminal 1.2 and enter the code below to view your video card model.
Lspci
Or
Lspci | grep VGA
Or
Lspci | grep NVIDIA
two。 Download the corresponding driver on the official website:
2.1 official website
2.2 if the picture is my graphics card model information, you need to select the video card version information of your computer and click search.
2.3 Click to download
3. Disable nouveau driver
Disable the default nouveau, it is said that this is the open source driver of the NVIDIA graphics card, the default is to use this one, not sure what to do, you can enter the following command to check, there should be echoes appear, first let it live for a while, a moment will disappear.
Lsmod | grep nouveau
Add nouveau to the blacklist in / etc/modprobe.d/blacklist.conf.
Vim / etc/modprobe.d/blacklist.conf
Add to it:
Blacklist nouveau
Save exit
4. Reshape the boot image
4.1 enter root mode
Su
4.2 back up the original image
Mv / boot/initramfs-$ (uname-r). Img / boot/initramfs-$ (uname-r). Img.bak1
4.3 reshaping
Dracut / boot/initramfs-$ (uname-r). Img
Of course, some people use the following command, but I can't find it on my computer.
Sudo update-initramfs-u
5. Restart the computer
Reboot
6. Check whether nouveau is disabled successfully.
Lsmod | grep nouveau
If the command is entered and there is no echo of any messages, the disable is successful and you can continue, otherwise restart the above steps
7. Restart to enter command line mode (i.e. no interface mode)
Init 3
8. Enter the account number and password of the root account to log in
(the password is not displayed, just enter it.)
9. Use the cd command to switch to the location where you downloaded the driver 10, and enter the following command to start the installation
The xxxxxx here is replaced by the file name of the driver file you downloaded.
. / NVIDIA-xxxxxxx.run
Wait for the loading to complete, and a dialog box appears
According to the prompts, use the left and right arrows and enter keys to select, about 3-5 dialog boxes, not a few
12. After loading, enter the following command to enter the graphical interface
Maybe you need to restart it after typing.
Init 5
13. If the loading is successful, the installation is completed. 2. Judge whether the NVIDIA driver is installed successfully or not. 1. Graphical interface-terminal
After entering the graphical interface, enter the following command at the terminal to pop up the Nvidia settings interface
Nvidia-settings
2. Command line or terminal
Enter the following command in command line mode or terminal without prompting that the command was not found
Nvidia-smi
Third, the error encountered and my solution 1. Update-initramfs did not find the command
Solution: use the following command instead
Dracut / boot/initramfs- (uname-r)
Analysis: dracut is an event-driven initramfs infrastructure. Dracut (tools) is used to create an initramfs image from an installed system by copying tools and files, and to combine the image with the dracut framework.
2. After the installation is completed, it is stuck and cannot be started, or the cursor flashes in the upper left corner.
Reason: it hasn't been identified yet, but there are 2 solutions that are definitely related to the driver.
2.1 option 1: uninstall the newly installed NVIDIA graphics card driver
That is, uninstall the NVIDIA video card driver you just installed.
2.1.1 Press Ctrl+Alt+F2 in the stuck position to enter command line mode (if there is no response, try other key combinations, Ctrl+Alt+F1-F12) 2.1.2 use the cd command or switch to the location of your video card driver 2.1.3 enter root mode to uninstall the xxxxxx here replace the file name of the driver file you downloaded
Su. / nvidia-xxxxxx.run-uninstall
2.1.4 after the uninstall is complete, enter any command into the graphical interface. It should be successful. I have succeeded.
Init 5
Or
Reboot
2.2 scenario 2: modify / add profile xorg.conf
This solution is inspired by the blog 0007 kali linux installation of NVIDA graphics card driver https://blog.csdn.net/weixin_33739627/article/details/92182185
2.2.0 enter command line mode 2.2.1 as in scenario 1. View the information of the NVIDIA graphics card and remember the PCI address behind the PCI BusID. Mine is 5:0:0.
Nvidia-xconfig-query-gpu-info
2.2.2 modify xorg.conf 1) change directory to X11
Cd / etc/X11
2) use the ls command to check whether xorg.conf exists, and if so, proceed to the next step, otherwise skip the next step and proceed directly to step 4
Ls
3) back up the original configuration. To avoid typing wrong letters, you can use the ls command to check whether the backup is successful.
Mv xorg.conf xorg.conf.bak
4) this step is divided into three modes, full manual, semi-manual, semi-manual 4-1) add xorg.conf configuration information manually
Vim xorg.conf
Enter the following and replace the x in the following PCI: X: X: X with the address you just saw
Section "ServerLayout" Identifier "layout" Screen 0 "nvidia" Inactive "intel" EndSectionSection "Device" Identifier "nvidia" Driver "nvidia" BusID "PCI:x:x:x" EndSectionSection "Screen" Identifier "nvidia" Device "nvidia" Option "AllowEmptyInitialConfiguration" EndSectionSection "Device" Identifier "intel" Driver "intel" EndSectionSection "Screen" Identifier intel "Device" intel
4-2) semi-manual add xorg.conf configuration information description: this step first su into root mode, then automatically generate xorg.conf through nvidia-xconfig command, and then modify it based on it.
❝
Su nvidia-xconfig vim xorg.conf
Then add after any EndSection
Section "Screen" Identifier "Device0" Device "nvidia" Option "AllowEmptyInitialConfiguration" EndSectionSection "Device" Identifier "Device1" Driver "intel" EndSection12345678910
Then modify the existing Device0 block and add a line to change it to (Note: replace the x in the following PCI: X: X: X with the address you just saw)
Section "Device" Identifier "Device0" Driver "nvidia" BusID "PCI:x:x:x" EndSection123456
4-3) semi-manually add the xorg.conf configuration file to download the additional resources of this blog, copy it to the X11 directory and replace the x in the file PCI: X: X: X with the address you just saw.
2.2.3 after saving and exiting, init 5 enters the graphical interface, or reboot restarts, then you can enter the graphical interface. I am excited to think about it.
Init 5
Or
Reboot
3. Error entering nvidia-settings at the terminal of the graphical interface
This situation occurs when you can open the graphical interface directly after installing the driver, but entering nvidia-setting at the terminal will not show the nvidia setting interface, but will report the following error
ERROR: Unable to load info from any available syste
How to solve this problem? the solution refers to the solution of error 2, which is exactly the same. You only need to change your PCI address.
Thank you for reading this article carefully. I hope the article "how to install NVIDIA graphics card driver in RHEL6" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.