In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to install the Nvidia official graphics card driver under the Linux system". In the operation of the actual case, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Steps to install the Nvidia driver:
1. Go to the NV official website: http://www.nvidia.cn/Download/index.aspx?lang=cn to download the 295.59 version of Linux driver. Get an installation file that ends in .run and give it executable permissions. If the SElinux module is open, please disable it first!
The code is as follows:
# chmod + x NVIDIA-Linux-x86_64-295.59.run
2. Edit the blacklist.conf file to prohibit the loading of the nouveau module:
The code is as follows:
# vim / etc/modprobe.d/blacklist.conf
Add at the end of the file:
The code is as follows:
Blacklist nouveau
Save exit.
3. Edit the grub.conf file to prohibit the loading of nouveau KMS.
The code is as follows:
# vim / etc/grub.conf
It will be as follows:
The code is as follows:
Kernel / boot/vmlinuz-2.6.39-200.24.1.el6uek.x86_64 ro root=UUID=363dd151-b0dd-4bc5-b382-79bcb5edbb98
Rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM quiet numa=off
Modified to:
The code is as follows:
Kernel / boot/vmlinuz-2.6.39-200.24.1.el6uek.x86_64 ro root=UUID=363dd151-b0dd-4bc5-b382-79bcb5edbb98
Rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM quiet numa=off
Nouveau.modeset=0
Save exit.
4. Because the video card driver does not support the X-Windows service runtime, it is necessary to enter run level 3. Run init 3 to enter character-only terminal mode on ok.
5. Log in under the character terminal, enter the directory where the driver installation file is located, and run the installation file using the following command.
The code is as follows:
#. / NVIDIA-Linux-x86_64-295.59.run
Follow the instructions one step at a time. It's simple. After the installation is completed, reboot restarts the system. Before entering the desktop, you will see the large Logo of Nvidia, indicating that Nvidia is running normally. See
The video is smooth and the 3D effects desktop can be turned on.
6. Install multiple kernels or compile kernel modules after kernel upgrade:
A major disadvantage of using the official driver is that the kernel module is recompiled every time the kernel is updated. I installed two kernels, and the steps for installing the NV driver for the second kernel are a little different. To put it simply, perform steps 4 and 5 of the first installation above, except that there are some differences in step 5:
The code is as follows:
#. / NVIDIA-Linux-x86_64-295.59.run-K
Adding the-K parameter at run time means that only the kernel module is compiled, not the driver file is installed. Restart after execution. At this point, the official Nvidia driver installation is complete.
Second, enable Plymouth graphical boot:
Plymouth is a graphical boot system that emerged after Fedora 10, while RHEL/CentOS 6.x is based on Fedora 12. The official Nvidia driver itself does not support KMS, so you can only specify a driver that uses MESA at boot time to achieve the effect of graphical Plymouth.
1. Press the Esc key after the brand Logo appears to enter the GRUB interface, select the kernel, press the e key to edit, and do not add the parameter vga=ask in the kernel line.
For example, my kernel line is
The code is as follows:
Kernel / boot/vmlinuz-2.6.39-200.24.1.el6uek.x86_64 ro root=UUID=363dd151-b0dd-4bc5-b382-79bcb5edbb98
Rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM quiet numa=off
Nouveau.modeset=0
Modify to
The code is as follows:
Kernel / boot/vmlinuz-2.6.39-200.24.1.el6uek.x86_64 ro root=UUID=363dd151-b0dd-4bc5-b382-79bcb5edbb98
Rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM quiet numa=off
Nouveau.modeset=0 vga=ask
When finished, press Enter to exit edit mode, and press b key to boot.
2. At this point, the screen will be prompted to press Enter to view the optional display mode, and Enter will enter.
A table is displayed showing the corresponding values of the code and the color depth of the resolution to find the value that suits your screen resolution and color depth, or the resolution you like. Ratio
For example, if my resolution color depth is 1024x768x32, the corresponding value on the table is 318. Notice that the value you just got is actually a hexadecimal number, and you need to add 0x in front of it, for example, I
At this point, 318 becomes 0 × 318. Enter 0x318 at this time, then enter, and you can see the graphical Plymouth boot interface.
3. You can use this value as a parameter for each boot. Edit the / boot/grub/grub.conf file and add vga=0 × 318.
The code is as follows:
# vim / etc/grub.conf
Set
The code is as follows:
Kernel / boot/vmlinuz-2.6.39-200.24.1.el6uek.x86_64 ro root=UUID=363dd151-b0dd-4bc5-b382-79bcb5edbb98
Rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM quiet numa=off
Nouveau.modeset=0
Modify to
The code is as follows:
Kernel / boot/vmlinuz-2.6.39-200.24.1.el6uek.x86_64 ro root=UUID=363dd151-b0dd-4bc5-b382-79bcb5edbb98
Rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM quiet numa=off
Nouveau.modeset=0 vga=0x318
After that, the resolution of 0 × 318 is used to enable Plymouth boot each time.
Plymouth hides the boot information. To view boot information, press ESC during boot, or view it in / var/log/boot.log after boot. It can also be obtained from the kernel
Delete rhgb from the command line (I always delete this), and plymouth displays all boot information, and there is a status icon on the login screen to view the boot warning.
This is the end of the content of "how to install the official Nvidia graphics card driver under the Linux system". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.