Home Operation and Maintenance Linux Operation and Maintenance How to install nvidia driver on ubuntu

How to install nvidia driver on ubuntu

Feb 18, 2021 pm 03:07 PM
nvidia ubuntu drive

How to install the nvidia driver on ubuntu: 1. Download the appropriate driver from the nvidia official website; 2. Block the nouveau driver; 3. Close the graphical interface; 4. Modify the file permissions; 5. Execute the installation command to install it. .

How to install nvidia driver on ubuntu

The operating environment of this article: ubuntu 16.04 system, nvidia GTX 1050, thinkpad t480 computer.

1. Preparation:

Ubuntu16.04 dual system, graphics card model: Nvidia GTX1050.

(1) First go to Nvidia official website to download the driver:

How to install nvidia driver on ubuntu

Find your own graphics card, select the Linux version to download, and download the .run file. Note: It is best to download to the English path. For example /home/xxx/Nvidia.

How to install nvidia driver on ubuntu

(2) At this point, it is best to upgrade the kernel version of Ubuntu, otherwise the kernel version and driver may not correspond to each other during subsequent installations (my personal experience and attached pictures)

How to install nvidia driver on ubuntu

2. Install Nvidia driver:

(1) Shield nouveau driver

The integrated graphics driver of Ubuntu system is nouveau, which It is an open source driver developed by a third party for NVIDIA. We need to block it first before installing the official NVIDIA driver. So we need to add the driver to the blacklist blacklist.conf first. We need to modify the properties of the file before we can edit it

①Modify the properties

$sudo chmod 666 /etc/modprobe.d/blacklist.conf
Copy after login

②Open it with gedit

$sudo gedit /etc/modprobe.d/blacklist.conf
Copy after login

③Add the following lines to the last line, save and exit

blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist rivatv
blacklist nvidiafb
Copy after login

④Update file

sudo update-initramfs -u
Copy after login

(Learning video sharing: linux video tutorial)

(2) Install the driver

First press Ctrl Alt F1 to close the graphical interface (an asterisk appears during the process to prove that you need to enter a password)

$sudo service lightdm stop
Copy after login

Then enter the .run file directory, During the installation of the driver

$cd /home/xxx/Nvidia //进入下载的.run文件目录中
$sudo chmod a+x NVIDIA-Linux-x86_64-xxx.run //修改权限
$sudo ./NVIDIA-Linux-x86_64-xxx.run -no-x-check -no-nouveau-check -no-opengl-files   //执行安装
Copy after login

, follow the prompts and select Accept, etc.

(3) Complete the installation

$sudo service lightdm start    //启动图形界面
Copy after login

Then press Ctrl Alt F7 to return to the graphical interface.

3. Verify the installation.

$ nvidia-smi
Copy after login

The display of graphics card information proves that the installation is successful.

How to install nvidia driver on ubuntu

Related recommendations: linux tutorial

The above is the detailed content of How to install nvidia driver on ubuntu. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to solve the problem that the NVIDIA graphics card screen recording shortcut key cannot be used? How to solve the problem that the NVIDIA graphics card screen recording shortcut key cannot be used? Mar 13, 2024 pm 03:52 PM

NVIDIA graphics cards have their own screen recording function. Users can directly use shortcut keys to record the desktop or game screen. However, some users reported that the shortcut keys cannot be used. So what is going on? Now, let this site give users a detailed introduction to the problem of the N-card screen recording shortcut key not responding. Analysis of the problem of NVIDIA screen recording shortcut key not responding Method 1, automatic recording 1. Automatic recording and instant replay mode. Players can regard it as automatic recording mode. First, open NVIDIA GeForce Experience. 2. After calling out the software menu with the Alt+Z key, click the Open button under Instant Replay to start recording, or use the Alt+Shift+F10 shortcut key to start recording.

Does Logitech ghub driver not support win7? -Why can Logitech ghub driver only be installed on the c drive? Does Logitech ghub driver not support win7? -Why can Logitech ghub driver only be installed on the c drive? Mar 18, 2024 pm 05:37 PM

Does Logitech ghub driver not support win7? Not compatible. Since Windows 7 has stopped updating and is no longer Microsoft's main operating system, many new software no longer supports it, such as Logitech ghub. The main interface of the Logitech driver: 1. The main software interface is on the left. The three buttons are lighting, buttons, and sensitivity settings. 2. In the settings of the lighting interface, the general special effects are relatively conventional, and the audio visual effects are the highlight. They can change color according to the sound frequency, and can be set according to the high, middle and bass bands, with different colors and effects. 3. In button settings, users can edit them here according to their special requirements. 4. In the sensitivity settings, many users will have some of their own settings. They can add the DPI speed switching point by themselves, but

Log in to Ubuntu as superuser Log in to Ubuntu as superuser Mar 20, 2024 am 10:55 AM

In Ubuntu systems, the root user is usually disabled. To activate the root user, you can use the passwd command to set a password and then use the su- command to log in as root. The root user is a user with unrestricted system administrative rights. He has permissions to access and modify files, user management, software installation and removal, and system configuration changes. There are obvious differences between the root user and ordinary users. The root user has the highest authority and broader control rights in the system. The root user can execute important system commands and edit system files, which ordinary users cannot do. In this guide, I'll explore the Ubuntu root user, how to log in as root, and how it differs from a normal user. Notice

Cyberpunk 2077 sees up to a 40% performance boost with new optimized path tracing mod Cyberpunk 2077 sees up to a 40% performance boost with new optimized path tracing mod Aug 10, 2024 pm 09:45 PM

One of the standout features ofCyberpunk 2077is path tracing, but it can put a heavy toll on performance. Even systems with reasonably capable graphics cards, such as the RTX 4080 (Gigabyte AERO OC curr. $949.99 on Amazon), struggle to offer a stable

AMD Radeon RX 7800M in OneXGPU 2 outperforms Nvidia RTX 4070 Laptop GPU AMD Radeon RX 7800M in OneXGPU 2 outperforms Nvidia RTX 4070 Laptop GPU Sep 09, 2024 am 06:35 AM

OneXGPU 2 is the first eGPUto feature the Radeon RX 7800M, a GPU that even AMD hasn't announced yet. As revealed by One-Netbook, the manufacturer of the external graphics card solution, the new AMD GPU is based on RDNA 3 architecture and has the Navi

How to download Razer mouse driver How to download Razer mouse driver Mar 11, 2024 pm 03:40 PM

Steps to download the Razer mouse driver: 1. Open the browser and enter the Razer official website; 2. On the official website page, find and click "Technical Support" or a similar option; 3. On the technical support page, select "Mouse" or the specific subcategory; 4. On the mouse driver download page, you can see various mouse models and their corresponding drivers; 5. Click the download link for the selected driver; 6. After the download is completed, check whether the downloaded file is complete , make sure nothing is damaged or missing.

Detailed explanation of what to do if NVIDIA graphics card driver installation fails Detailed explanation of what to do if NVIDIA graphics card driver installation fails Mar 14, 2024 am 08:43 AM

NVIDIA is currently the most popular graphics card manufacturer, and many users prefer to install NVIDIA graphics cards on their computers. However, you will inevitably encounter some problems during use, such as NVIDIA driver installation failure. How to solve this? There are many reasons for this situation. Let’s take a look at the specific solutions. Step 1: Download the latest graphics card driver You need to go to the NVIDIA official website to download the latest driver for your graphics card. Once on the driver page, select your product type, product series, product family, operating system, download type and language. After clicking search, the website will automatically query the driver version suitable for you. With GeForceRTX4090

How to install Angular on Ubuntu 24.04 How to install Angular on Ubuntu 24.04 Mar 23, 2024 pm 12:20 PM

Angular.js is a freely accessible JavaScript platform for creating dynamic applications. It allows you to express various aspects of your application quickly and clearly by extending the syntax of HTML as a template language. Angular.js provides a range of tools to help you write, update and test your code. Additionally, it provides many features such as routing and form management. This guide will discuss how to install Angular on Ubuntu24. First, you need to install Node.js. Node.js is a JavaScript running environment based on the ChromeV8 engine that allows you to run JavaScript code on the server side. To be in Ub

See all articles