In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to install the nvidia driver in ubuntu, which is very detailed and has certain reference value. Friends who are interested must finish reading it!
Ubuntu install nvidia driver method: 1, download the appropriate driver on the nvidia official website; 2, shield the nouveau driver; 3, close the graphical interface; 4, modify file permissions; 5, execute the installation command to install.
1. Preparatory work:
Ubuntu16.04 dual system, graphics card model: Nvidia GTX1050.
(1) first, go to the Nvidia official website to download the driver:
Find your own graphics card, choose the Linux version to download, download is the .run file, note: it is best to download to the English path. For example, / home/xxx/Nvidia.
(2) at this point, it is best to upgrade the kernel version of Ubuntu, otherwise there may be a discrepancy between the kernel version and the driver (personal experience and attached pictures)
Second, install Nvidia driver:
(1) Shield nouveau drivers
The graphics card driver integrated by the Ubuntu system is nouveau, which is an open source driver developed by a third party for NVIDIA. We need to block it before we can install the official NVIDIA driver. So we have to add the driver to the blacklist blacklist.conf, and we have to modify the properties of the file before editing.
① modifies properties
$sudo chmod 666 / etc/modprobe.d/blacklist.conf
② is opened with gedit
$sudo gedit / etc/modprobe.d/blacklist.conf
③ adds the following lines to the last line to save the exit
Blacklist vga16fbblacklist nouveaublacklist rivafbblacklist rivatvblacklist nvidiafb
④ updates the file
Sudo update-initramfs-u
(learn video sharing: linux video tutorial)
(2) install the driver
Press Ctrl+Alt+F1 first to close the graphical interface (an asterisk in the process proves that you need to enter a password)
$sudo service lightdm stop
Then go to the .run file directory and install the driver
$cd / home/xxx/Nvidia / / enter the directory of the downloaded .run file $sudo chmod afigx NVIDIA-Linux-x86_64-xxx.run / / modify permissions $sudo. / NVIDIA-Linux-x86_64-xxx.run-no-x-check-no-nouveau-check-no-opengl-files / / perform the installation
In the process, according to the prompt, select Accept and so on.
(3) complete the installation
$sudo service lightdm start / / launch the graphical interface
Then press Ctrl+Alt+F7 to return to the graphical interface.
Third, verify the installation.
$nvidia-smi
The presence of the video card message proves that the installation is successful.
The above is all the contents of the article "how to install nvidia drivers in ubuntu". Thank you for reading! Hope to share the content to help you, more related 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.