How to install NVIDIA Driver in Linux
By default, during the installation distributions of the Linux operating system, all necessary drivers that are compatible with this operating system are downloaded and added automatically. However, this is not always the most current version or the user has to manually install the missing components for any reason. It concerns and software for graphics adapters from NVIDIA.
Install drivers for NVIDIA on Linux
Today we propose to analyze the process of finding and installing the drivers, for example Ubuntu. In other popular distributions, this process will be identical, but if something won’t work, find the error code description in the official documentation and solve the problem of available methods. Just want to note that the following methods will not work for Linux, which are on a virtual machine because it uses the VMware driver.
Before you start the installation you should determine the model of the video card installed in your computer, if you do not have this information, and then conduct a search for the latest software. This can be done through the standard console.







After that you can go directly to the upgrade procedure or the installation of the right driver. The task is carried out by two different methods.
Method 1: Repository
Typically, the required software is official or custom repositories (repositories). The user will just download the necessary files and install them on your computer. However, data provided in different sources may differ in relevance, so let’s look at two options in turn.
The official repository
The official repository supported by software developers, and other objects. In your case you will need to refer to the standard driver repository:



If the most recent Assembly was not in this vault, it remains only to enable the user to add the required files.
Custom repository
In the custom repository files are updated more often, and typically there first appears the latest build. To use this facility, use the following:






In Linux Mint you can use the commands from Ubuntu, as they are fully compatible. In Debian, the graphics driver is added via sudo apt install nvidia-driver. Users to Elementary OS should alternately enter the following lines:
sudo apt-get update
sudo apt-get upgrade
sudo apt install software-properties-common
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nvidia-xxx.
In other less popular distributions, the following steps may be slightly different, which is associated with the name of the repository and the difference in the teams, therefore, as we have said above, read carefully the documentation from the developers.
Method 2: Graphical interface
Those users who are not particularly accustomed to management integrated console, much easier to use the GUI tools to install the appropriate drivers. This procedure is run in two different versions.
Programs and updates
Priority it is worth noting the standard application “Programs and updates”. Through the addition of the version that is in the official repository, and this is done like this:



This method is not suitable for those users who are to install the Assembly of the driver older than the one that was discovered on the official website. For them there is a separate option.
Official website
Way with the site still will require run the”Terminal”, but to enter there should be only one command. The whole process is quite easy and is done in a few clicks.





When the procedure is complete, restart your computer so the changes take effect.
Check the normal functioning of installed drivers with the command sudo lspci-vnn | grep-i VGA -A 18, where among all rows will need to find the”kernel driver in use: NVIDIA”. Support for hardware acceleration is checked using glxinfo | grep OpenGL | grep renderer.
The methods of installation for the graphic NVIDIA card are different, you only need to choose the best and work for your distribution. Again, for Troubleshooting errors it is best to consult the official documentation of the OS, which must be painted all important instructions.