WhatsApp
Request a Quote
Leave Your Message
Three methods to install graphics card drivers under Ubuntu system of industrial computers The first method
Blog

Three methods to install graphics card drivers under Ubuntu system of industrial computers The first method

2024-09-21

System settings->Software update->Additional drivers->Select the latest nvidia driver (361)->Apply changes (simple but not recommended)

The second method
First download the corresponding driver from the official website and compile it
Nvidia's Chinese official website is http://www.nvidia.cn/page/home.html
1) Open the terminal and delete the old driver first
Ubuntu uninstall nvidia driver method:
a. Switch to integrated graphics

01.png

b. If not, then switch to the character interface first, press ctrl+alt+(F2 to F6), and enter the username and password. Switch from the character screen to the desktop shortcut key: ctrl+alt+F7
Execute the following command:
sudo apt-get purge nvidia* or sudo apt-get –purge remove nvidia*sudo apt autoremove or sudo apt-get purge --remove nvidia*
2) Disable the built-in nouveau nvidia driver
If the following error occurs when installing a new driver, you need to disable the Nouveau driver:
ERROR: The Nouveau kemel driver is currently in use by your system
Create a file through the command sudo vim /etc/modprobe.d/blacklistnouveau.conf f or vi /etc/modprobe.d/blacklist-nouveau.conf or sudo gedit /etc/modprobe.d/blacklist.conf, open the system's blacklist list file, and add the following content at the end of the file:
blacklist nouveau
options nouveau modeset=0

Put nouveau Add the driver back to the blacklist, save and exit.

Update the above file again and enter:
sudo update-initramfs -u

After the modification, you need to restart the system. Confirm that Nouveau has been killed by you, use the command:
lspci | grep nouveau or lsmod | grep nouveau

3) Install the downloaded NVIDIA graphics card driver.
First enter the BIOS settings, find the SecureBoot item and turn it off. Otherwise, the signature will pop up during installation.
First we need to end the x-window service, otherwise the driver will not be installed normally.
To close X-Window, it is very simple: sudo service lightdm stop, then switch to tty1 console: Ctrl+Alt+F1. Sometimes you need to install plugins:
You need to install gcc: sudo apt-get install gcc;
You need to install 3354make: sudo apt-get install make;

4) First execute the downloaded driver permissions: sudo chmod +x NVIDIA…….run
The next step is the most critical step: sudo./NVIDIA.run to start the installation, or: Sudobash NVIDIA---.run to start the installation.
The installation process is relatively fast. Just follow the prompts. After the installation is complete, restart X-
Window: sudo service lightdm start, then press Ctrl+Alt+F7 to enter the graphical interface;

02.png

Finally, test whether the installation is successful
nvidia-smi
nvidia-settings

The third method
Add the official ppa source
Shortcut key ctrl+alt+T to open the command terminal and add the official resource warehouse ppa source:
sudo add-apt-repository ppa:graphics-drivers/ppa
You need to enter the password and press enter to confirm. Then refresh the software library and install the latest driver.
Update: sudo apt-get update
Find the appropriate graphics card driver: ubuntu-drivers devices
Select the driver to install: sudo apt-get install (required driver)
Automatic installation: sudo Ubuntu-drivers autoinstall
After installation, use the following command to check whether the installation is successful:
nvidia-settings or nvidia-smi
Note that you need to restart after installation. If the following results are achieved, the installation is complete. Otherwise, there is a problem with the installation. Try to turn off UEFI protection.

03.png


You may be interested in SINSMART popular products:

Industrial portable computer

Rackmount custom industrial computers

Military laptop for sale

1U computers

Din rail computer

Rugged laptops for sale


Related Products

01

LET'S TALK ABOUT YOUR PROJECTS

  • sinsmarttech@gmail.com
  • 3F, Block A, Future Research & Innovation Park, Yuhang District, Hangzhou, Zhejiang, China

Our experts will solve them in no time.