Install NVIDIA Drivers on Ubuntu (command-line and GUI ways)

You will need appropriate Nvidia drivers to make sure your graphics card can perform to its fullest. Here's a tutorial on how to install Nvidia drivers on Ubuntu.

By default, Linux Kernel comes with the open-source Nouveau driver for systems using Nvidia Graphics cards. That being said, the open-source driver lacks 3D acceleration support which can be a big issue for 3D graphics related workloads. Also, if you plan on playing games on your Linux PC, the driver can be limiting you.

As such, you must install the appropriate Nvidia drivers to make sure your graphics card can perform to its fullest. With this in mind, we have put together a comprehensive tutorial on how to install Nvidia drivers on Ubuntu.

Also, we know that Ubuntu users have their preferences. Some of you are content with the graphical user interface (GUI), while others feel more comfortable and powerful using the command-line interface (CLI). As such, we will show you how to install the Nvidia driver on Ubuntu using both methods – via GUI as well as Command-Line.

So without further ado, let’s get started:

Installing Nvidia Drivers on Ubuntu

Method 1: Using GUI

First things first, we need to check what graphics card your computer is using in the first place.

To do this, open “System Settings” and go to “Details.”

Note: “System Settings” is different from “Settings.” Both are accessible from the Application Menu.

By default, your Ubuntu installation will show you the integrated graphics that comes with your CPU. For example, if you have an Intel processor, it will show you the associated Intel HD graphics.

Device About Us

Now that you know what graphics are being used on your machine, you need to head over to the “Software & Updates” program from the application menu.

Software and Updates

Open it and go to the “Additional Drivers” tab.

Checking Additional Drivers

From here, you will see a list of proprietary drivers, including the default driver that is being used for your Nvidia graphics card – the Nouveau driver.

Depending on the Nvidia graphics card you have on your system, the screen should show you different driver options. Select the option based on your system specs and click the “Apply Changes” to install that particular driver.

Once the installation is complete, you will need to restart your system for the new graphics driver to take effect. After the system reboots, again head back to System Settings > Details. Here you will see the newly installed Nvidia driver listed under the Graphics section.

And that’s it! You have successfully installed an Nvidia driver on Ubuntu.

Now, in case you wish to revert to the integrated Intel HD Graphics, open the new “Nvidia X Server Settings” program from the application menu. From here, click on the “PRIME Profiles” tab on the left-side panel and select the Intel graphics as your preferred choice.

Similarly, following the same steps again, you can go back to using the Nvidia graphics if and when necessary.

Method 2: Using Command-Line

First, you will need to open up the terminal.

You can either right-click on the desktop background and open the Terminal interface or go to the “Application Menu” and search for the “Terminal” program. With access to the terminal window, type in the following command:

sudo lshw -c display


sudo lshw -c video

Both these commands will show you basic details about your Ubuntu installation, including which graphics driver you are using. As mentioned earlier, by default, you will see your system using the “Nouveau” driver, which is mentioned under the “Configuration” section.

Next, you will need to type in the following command:

sudo ubuntu-drivers devices

This will fetch a list of the available drivers for the Nvidia card straight from the Ubuntu repository. Similar as before, depending on which graphics card you have installed, it will show you different driver options.

As you can see, some of the drivers are recommended by Ubuntu, which is evident from the “recommended” tag that comes with them. You should install the recommended drivers to ensure your system doesn’t run into any sort of issue.

Now, to install the recommended driver, all you need to do is just type in this command:

sudo ubuntu-drivers autoinstall

However, if you are looking to install a particular driver, then you need to run this code:

sudo apt install nvidia-driver-version-number

For example,

sudo apt install nvidia-driver-430

Once the driver is installed, you need to restart the system to complete the process, which will enable “Nvidia-Prime”  – the technology which allows you to switch between the Intel and Nvidia graphics.

Now, you can reboot your computer from the command line interface using the following command:

sudo shutdown -r now

Once your system reboots, again open the terminal window and type in “sudo lshw -c display” to check if the Nvidia driver is showing under the configuration section.

And voila, you have successfully installed the Nvidia driver on Ubuntu using the command-line.

Now, in case you wish to revert to Intel graphics card, you can just type in the following command in the terminal:

sudo prime-select intel

Similarly, using the given command, you can switch back to the Nvidia card.

sudo prime-select Nvidia

Note: Remember, you will need to reboot your system each time after making the changes for it to take effect.

Wrapping Up

That brings us to the end of the tutorial on how to install Nvidia driver on Ubuntu using both the command line as well as the GUI. We hope that you found the read useful and that it helped you in installing the proper driver for your Nvidia graphics card on your Linux PC.

Nitish is a Technical Writer with five years of experience. He enjoys covering new tech and has a special love for Linux. He also has a keen interest in Blockchain and WordPress.


Please enter your comment!
Please enter your name here




How to install CouchPotato on Ubuntu

Downloading movies and copying them over to your home server can get frustrating, especially if you are doing it daily! What if you have an option to download videos automatically, quickly, and above all with excellent quality. CouchPotato allows you to download movies easily once they are available and released automatically.

Top 20 Rsync Examples in Linux

The Rsync (remote sync) command is a Linux/Unix utility used to synchronize and copy files and directories either locally or remotely. Most Linux geeks use Rsync to mirror, backup or migrate data across folders, across disks and networks. One notable feature with the Rsync command is that it uses the "delta transfer algorithm."

Setting up NFS Server on Ubuntu Server

We have put together a detailed step-by-step tutorial that will guide you on how to install and set up NFS Server on Ubuntu so you too can start sharing data with other client systems. It is divided into sections, the first part discussing how to set up the host server and the second part showing you how to set up the client-side. For this tutorial, we will be using Ubuntu 20.04 LTS.

Crontab in Linux Explained With Examples

Crontab is the Linux equivalent of the Window's Task Scheduler. It can help you set up a task to run automatically at a regular...

The 10 Best Linux Server Distros For Home And Businesses

By the year 2020, it is estimated that there are close to 600 Linux distributions in the market. It includes both servers and Desktop versions; therefore, if you are looking for lightweight Linux distribution for your old PC or a reliable desktop version for employees in your organization, you may be overwhelmed with the number of choices for finding one for your use.

How to list the installed Packages on Ubuntu

It is only natural to start installing more and more software on your Ubuntu PC once you start using it. Similarly, it is also natural to lose track of the different packages that you have installed on your system. Eventually, you may be overwhelmed with the number of packages in your system and with the ones you hardly used.


Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.
Elementary OS 5.1 Hera has received a point release with a handful of new features and bug fixes, and we will be reviewing the significant changes in this article. For those new to elementary OS, this Ubuntu-based Linux distribution uses their inhouse built Pantheon desktop environment and AppCenter.

Removing the Virus from a Windows PC with a Ubuntu Live USB drive

In this tutorial, we are going to show you how to clean your Windows machine from infected viruses using an Ubuntu live USB or CD and the ClamAV antivirus. The ClamAV is a free, open-source antivirus that can be used on Ubuntu.

10 ways to use the Chown command with examples

Any file in a Linux system belongs to a particular owner(s) and a group. It is one of the many features that maintain security in Linux systems. For example; If a file belongs to say UserA, then UserB cannot manipulate the data depending on any additional permissions set unless the user has permission to do that.

10 Best Screen Capturing Software for Linux

Do you want to make a video tutorial for YouTube or show-off your epic victory royale to your friends? Look no further — as we have compiled the 10 Best Screen Capturing Software for Linux. Whether you need to record your desktop screen or take a simple screenshot, FOSSLinux has got your back.

How to dual-boot Ubuntu and Fedora on your PC

Every Linux distribution has its capabilities and preferences as per the user requirements. That brings forth the need to run different distros on one laptop. For example, a CyberSecurity enthusiast might prefer to use Ubuntu for development and Kali Linux for penetration testing.