Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Nvidia graphics card driver in Ubuntu18.04 system

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces how to install the Nvidia graphics card driver in the Ubuntu18.04 system, the content is very detailed, interested friends can refer to, hope to be helpful to you.

1. Disable nouveau

1. Create a file. If you do not download the vim editor, just change the vim to gedit.

one

$sudo vim / etc/modprobe.d/blacklist-nouveau.conf

2. Insert the following content into the file to add nouveau to the blacklist. Default is not enabled.

one

two

Blacklist nouveau

Options nouveau modeset=0

3. Enter the following command to make the disable effective and restart

one

two

$sudo update-initramfs-u

$sudo reboot

4. Verify after restart

one

Lsmod | grep nouveau

If there is no response after entering the carriage enter, the disable is successful.

2. Install the video card driver

First completely uninstall the previously installed video driver:

Uninstall the ppa source file:

one

$sudo apt-get remove-purge nvidia*

Uninstall the runfile source file:

one

$sudo. / NVIDIA-Linux-x86_64-384.59.run-- uninstall

Now let's introduce the simplest installation method-ppa source driver installation.

Query the most suitable video card driver version for the computer.

one

Ubuntu-drivers devices

As shown in the picture, the best video card driver version of my computer is nvidia-driver-435

Then install it with the command line

one

two

three

four

$sudo add-apt-repository ppa:graphics-drivers/ppa

$sudo apt-get update

$sudo apt-get install nvidia-driver-435 # the number here corresponds to the version number queried above

$sudo apt-get install mesa-common-dev

Note: if secure boot is not disabled before, you will be prompted to set a password during installation. You need to enter password verification to disable secure boot during reboot, and a blue screen will appear after rebooting. Instead of directly selecting continue, you should press the button, select Enroll MOK, confirm and select continue in the next option, and then enter the password set when installing the driver to boot.

Restart after installation is complete

one

$sudo reboot

Verify on the terminal after reboot

one

$nvidia-smi

If the GPU list appears, the installation is successful

On how to install Nvidia graphics card driver in the Ubuntu18.04 system to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Original link: https://blog.csdn.net/weixin_43820996/article/details/100676292

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report