Install Nvidia drivers in Linux Mint

In Linux it is strongly recommended to use the proprietary drivers, instead of embedded in the kernel the free. This is due to several advantages of the proprietary drivers before free – support technologies CUDA and Vulkan, the possibility of power management, speed of coolers, and so on.

In this article we will discuss how to install Nvidia drivers Linux Mint. Note that in the process of writing this article used Linux Mint with the Cinnamon shell. In other DE some items may vary, but the General principles remain the same.

Install Nvidia driver Linux Mint

1. The definition of the necessary driver

The first step is to learn which graphics card is used. If you don’t remember her name, run in terminal the following command:

lspci | grep -E "VGA|3D"

In line 3D controller in square brackets will indicate the model of the graphics card. In our case it is GeForce GT 740M. Next you need to click on this link to the official portal page Nvidia. Enter in the appropriate information about your video card and click Search.

A list of drivers available for the adapter given OS, bitness, etc.). Leave the page open and move on.

2. Install the Nvidia driver using the GUI

Open the window settings of Linux Mint and go to driver Manager, located at the bottom.

When you start you will need to enter the password for the account.

The default free driver. In the list you will also see 1-2 driver recommended by the system for use.

The system recommends existing stable but outdated version of the software. If it suits you, then put a mark next to the appropriate line and press the button to Apply the changes. If you want to install a newer version of the drivers you need to add PPA repository. To do this, close the driver Manager, open Terminal and type the following command:

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

The treatment process will need to click Enter when I see the request.

Upon completion of the need to perform another command:

sudo apt update

Next, close the Terminal and again open the driver Manager. You will see that are available to new drivers.

You need to compare the list of drivers available on the Nvidia website. In an earlier article we wrote about how to get on the list and formed it. Select the most recent software available in the driver Manager, and on the Nvidia website. Then click Apply changes.

At the end of the operation a window will appear prompting you to restart the system. Make sure you do this by clicking Restart.

After rebooting, the system starts already with the new drivers. About how to test their performance, we will describe next.

3. Install the Nvidia driver using the terminal

Open Terminal and run the following command:

ubuntu-drivers devices

The command allows you to display the list of drivers available for installation. Note the line at the end of which is the word recommended. This string displays the version of SOFTWARE recommended for installation.

If you want to install it, use the Terminal this command:

sudo ubuntu-drivers autoinstall

If you need a specific version of the driver, use another team, “390” (for example) version of the software from Nvidia:

sudo apt install nvidia-driver-390

After processing all of the queries you will see a notification that the install nvidia drivers linux mint is completed. Close the Terminal and reboot the system.

4. Download and install from official website

Go to the driver download page on the portal Nvidia on this link. Specify all the necessary information, then click Search.

On two subsequent pages, click Download now.

In the end it will be downloaded a file with the extension *.run. In the future, you will need to register his name manually to run the command, so long suggest title change to something more convenient, e.g. nvidia. In this case, we will do so.

Before continuing, you must add support for i386 architecture and install libc6. This in turn, run in Terminal the following command:

sudo dpkg --add-architecture i386

sudo apt update

sudo apt install build-essential libc6:i386

Installing the nvidia linux mint, downloaded from official website, run in a console window. Switch to it using the key combination Ctrl+Alt+F2.

Next, enter in the console alternately login and password for your account. Before installing drivers you need to disable the GUI running previously. To do this, run the following command in the console:

sudo systemctl stop display-manager

You can now start installing drivers. Type and execute the following command:

sh ~/Download/filename.run

Instead of “file-name” specify the name you previously downloaded file. Previously, we were advised to rename it, for example, just “nvidia”. For these purposes. Please note that there can sometimes be problems with the language switching in the console. In this case, you can just copy the driver into the root of your home, and then instead of the command above to execute another:

sudo file-name.run

The installation process will appear a notification to install additional libraries. In such situations, click Yes. When the installation finishes, enter this command to reboot the system:

reboot

After reboot will already be using the new drivers.

Verifying the installation

To determine the health driver installed, you can perform special team designed to test support for hardware acceleration. If everything is working properly, then the only line you will see the name of the video card.

glxinfo | grep OpenGL | grep renderer

In addition, in the section administrative tools to run the NVIDIA X Server Settings. In the case of a correct installation of the driver displays all the information about the installed software. The utility can also be run from the system tray, clicking on the Nvidia icon, or by using this command at the Terminal:

nvidia-settings

Remove Nvidia drivers

Next, consider how to remove Nvidia Linux Mint. To do this you must first reboot the system. During restart, select in the initial menu line advanced options for Linux Mint 19.3 Cinnamon.

In the next menu select root to run a shell as root. The result appears at the bottom of the console in which you need to enter the command:

apt-get purge nvidia*

After a while all requests will be processed and the driver is removed. Then use the command reboot to reboot the system.

Insights

Now you know how to install nvidia driver in linux mint 19, as well as how to remove the nvidia driver, and it’s easy enough. Besides, it can be done in several different ways. To remove this software also simple. It is enough to execute a single command in the console recovery mode. If you still have not updated my Linux Mint to the 19th version of Mint, read the instruction manual for this update on this link.

Source: losst.ru

(Visited 59 times, 2 visits today)