How to install Nvidia driver in Linux Mint. On Linux Mint, use these commands to install Nvidia driver via command line and then change graphics driver command line.
Linux Mint Install Nvidia Driver Command Line
Open terminal and run the following command:
$ lspci | grep VGA $ lsmod | grep nvidia
Note that the above command is used to check the GPU hardware which is already installed on your computer.
As y ou must be aware that by default, Linux Mint 21 uses the open-source Nouveau drivers, not the official NVIDIA drivers. If you are not sure whether you’re using the open-source Nouveau drivers, you can check the same using the following command:
$ lsmod | grep nouveau
Terminal commands to install Nvidia GPU driver on Linux Mint:
$ sudo apt update $ sudo apt install nvidia-driver- $ sudo apt install nvidia-driver-525 $ sudo reboot $ lsmod | grep nouveau $ lsmod | grep nvidia
Once installed you can run the nvidia-smi command which can print the NVIDIA GPU usage information.