Announcement

Collapse
No announcement yet.

How to Install NVIDIA GPU Driver on Ubuntu 24.04 LTS Desktop/Server

Collapse
X
Collapse
  •  

  • How to Install NVIDIA GPU Driver on Ubuntu 24.04 LTS Desktop/Server


    If you have an NVIDIA GPU installed on your computer/server, installing the NVIDIA GPU drivers will be the first thing to do after installing Ubuntu 24.04 LTS.

    On Ubuntu 24.04 LTS Desktop, you can install NVIDIA GPU drivers using the following methods:
    • Software & Updates app
    • APT package manager



    On Ubuntu 24.04 LTS Server, you can install NVIDIA GPU drivers using the following methods:
    • APT package manager



    In this article, I will show you how to install NVIDIA GPU drivers on Ubuntu 24.04 LTS desktop and server operating systems.










    Table of Contents

    1. Checking if an NVIDIA GPU is Installed on Your Computer
    2. Method 1: Installing NVIDIA GPU Driver using Software & Updates App on Ubuntu 24.04 LTS Desktop
    3. Method 2: Installing NVIDIA GPU Driver on Ubuntu 24.04 LTS from the Command-Line
    4. Checking if NVIDIA GPU Driver is Working Correctly on Ubuntu 24.04 LTS
    5. Conclusion










    Checking if an NVIDIA GPU is Installed on Your Computer

    I have written an article demonstrating different methods of checking for the availability of an NVIDIA GPU on your Linux system.







    Method 1: Installing NVIDIA GPU Driver using Software & Updates App on Ubuntu 24.04 LTS Desktop

    First, search for the term driver in the Ubuntu application menu[1] and click on the Additional Drivers app from the search result[2].








    It will open the Additional Drivers tab of the Software & Updates app.

    By default, Ubuntu 24.04 LTS will use the open-source Nouveau GPU driver.








    To install and use the official NVIDIA GPU driver:
    1. Select Using NVIDIA driver metapackage from nvidia-driver-* (proprietary, tested) from the list.
    2. Click on Apply Changes.








    Type in the login user’s password and click on Authenticate.








    The official NVIDIA GPU driver packages are being downloaded and installed. It will take a while to complete.








    Once the official NVIDIA GPU driver is installed, click on Restart for the changes to take effect.








    Click on Restart to confirm the action.








    Once your Ubuntu 24.04 LTS machine boots, check if the NVIDIA GPU driver is working.







    Method 2: Installing NVIDIA GPU Driver on Ubuntu 24.04 LTS from the Command-Line

    You can install the official NVIDIA GPU drivers from the command-line on:
    • Ubuntu Desktop 24.04 LTS
    • Ubuntu Server 24.04 LTS



    First, update the APT package database cache with the following command:

    $ sudo apt update









    To install all the patches and security updates on your Ubuntu 24.04 LTS system, run the following command:

    $ sudo apt full-upgrade




    To confirm the installation, press Y and then press .








    All the updates should be downloaded and installed on your Ubuntu system.







    For the changes to take effect, reboot your Ubuntu machine with the following command:

    $ sudo reboot





    Once your Ubuntu machine boots, list all the available NVIDIA driver packages with the following command:

    $ sudo ubuntu-drivers list




    You should find the following NVIDIA driver packages:
    • ubuntu-driver-: This package installs the NVIDIA GPU driver on Ubuntu Desktop 24.04 LTS.
    • ubuntu-driver--server: This package installs t he NVIDIA GPU driver on Ubuntu Server 24.04 LTS.

    NOTE: At the time of this writing, NVIDIA driver version 535 is available for installation on Ubuntu Desktop 24.04 LTS and Ubuntu Server 24.04 LTS operating systems.








    To install the official NVIDIA driver on Ubuntu Desktop 24.04 LTS, run the following command:

    $ sudo apt install nvidia-driver-535




    To install the official NVIDIA driver on Ubuntu Server 24.04 LTS, run the following command:

    $ sudo apt install nvidia-driver-535-server




    To confirm the installation, press Y and then press .








    The official NVIDIA driver packages will be downloaded and installed on your Ubuntu machine. It will take a while to complete.








    Once you see the following prompt, select and press .








    For the UEFI firmware (with secure boot enabled) to allow the NVIDIA kernel modules to run on your Ubuntu system, you must set a UEFI secure boot password and verify it from the UEFI firmware.

    Type in a password for UEFI secure boot, select , and press .








    Retype the same password, select , and press .








    The NVIDIA GPU driver installation should continue.








    At this point, the NVIDIA GPU driver should be installed.








    For the changes to take effect, reboot your Ubuntu machine with the following command:

    $ sudo reboot




    Once your Ubuntu machine boots, you will see a similar shim UEFI key management window.

    Press any key to perform MOK management.








    Select Enroll MOK and press .








    To enroll the key, select Continue and press .



    Select Yes and press .








    Type in the password that you’ve set during the NVIDIA GPU driver installation and press .








    Select Reboot and press .






    Once your Ubuntu 24.04 LTS machine boots, check if the NVIDIA GPU driver is working.










    Checking if NVIDIA GPU Driver is Working Correctly on Ubuntu 24.04 LTS

    To check if the NVIDIA GPU driver is working on Ubuntu Desktop 24.04 LTS system:
    1. Open the Application Menu
    2. Search for the term nvidia
    3. Click on the NVIDIA X Server Settings app from the search result.








    The NVIDIA Settings app should be opened. If the NVIDIA GPU driver is working, detailed information on your NVIDIA GPU should be displayed on the app.








    To check if the NVIDIA GPU driver is working on Ubuntu Desktop 24.04 LTS and Ubuntu Server 24.04 LTS from the command line, you can use the nvidia-smi command-line utility.

    $ nvidia-smi




    If the NVIDIA GPU driver is working, detailed usage information on your NVIDIA GPU should be displayed on the output of the nvidia-smi command.










    Conclusion

    In this article, I have covered the following topics:
    • (Linked) Checking if an NVIDIA GPU hardware is available on your Ubuntu 24.04 LTS system.
    • Installing NVIDIA GPU driver on Ubuntu Desktop 24.04 LTS graphically using the Software & Updates app.
    • Installing NVIDIA GPU driver on Ubuntu Desktop 24.04 LTS and Ubuntu Server 24.04 LTS from the command-line using APT package manager.
    • Checking if NVIDIA GPU driver is working on Ubuntu Desktop 24.04 LTS using the NVIDIA X Server Settings app.
    • Checking if NVIDIA GPU driver is working on Ubuntu Desktop 24.04 LTS and Ubuntu Server 24.04 LTS from the command-line using the nvidia-smi utility.





    More...
      Posting comments is disabled.

    Categories

    Collapse

    Article Tags

    Collapse

    There are no tags yet.

    Latest Articles

    Collapse

    • Fortifying Linux Web Applications: Mastering OWASP ZAP and ModSecurity for Optimal Security
      by Kasimba



      by George Whittaker


      Introduction

      In an increasingly interconnected digital world, web applications are the backbone of online services. With this ubiquity comes a significant risk: web applications are prime targets for cyberattacks. Ensuring their security is not just an option but a necessity. Linux, known for its robustness and adaptability, offers a perfect platform for deploying secure web applications....
      11-29-2024, 05:12 PM
    • Harnessing Quantum Potential: Quantum Computing and Qiskit on Ubuntu
      by Kasimba



      by George Whittaker


      Introduction

      Quantum computing, a revolutionary paradigm, promises to solve problems that are computationally infeasible for classical systems. By leveraging the peculiar principles of quantum mechanics—superposition, entanglement, and quantum interference—quantum computing has emerged as a transformative force across industries. From cryptography and drug discovery to optimization and...
      11-27-2024, 06:22 PM
    • Using MAXQDA for Qualitative Data Analysis on Linux
      by Kasimba



      by George Whittaker


      Introduction

      Qualitative data analysis (QDA) is a cornerstone of research across various fields, from social sciences to marketing. It involves uncovering patterns, themes, and meanings within non-numerical data such as interviews, focus groups, and textual narratives. In this era of digital tools, MAXQDA stands out as a premier software solution for QDA, empowering researchers to organize...
      11-21-2024, 11:31 PM
    • HAProxy on Ubuntu: Load Balancing and Failover for Resilient Infrastructure
      by Kasimba



      by german.suarez


      Introduction

      In today’s fast-paced digital landscape, ensuring the availability and performance of applications is paramount. Modern infrastructures require robust solutions to distribute traffic efficiently and maintain service availability even in the face of server failures. Enter HAProxy, the de facto standard for high-performance load balancing and failover.


      This article...
      11-21-2024, 03:00 PM
    • Providing a license for package sources
      by Kasimba
      Arch Linux hasn't had a license for any package sources (such as PKGBUILD files) in the past, which is potentially problematic. Providing a license will preempt that uncertainty.

      In RFC 40 we agreed to change all package sources to be licensed under the very liberal 0BSD license. This change will not limit what you can do with package sources. Check out the RFC for more on the rationale and prior discussion.

      Before we make this change, we will provide contributors with...
      11-19-2024, 09:21 AM
    • Linux Binary Analysis for Reverse Engineering and Vulnerability Discovery
      by Kasimba



      by George Whittaker


      Introduction

      In the world of cybersecurity and software development, binary analysis holds a unique place. It is the art of examining compiled programs to understand their functionality, identify vulnerabilities, or debug issues—without access to the original source code. For Linux, which dominates servers, embedded systems, and even personal computing, the skill of binary analysis is...
      11-18-2024, 07:10 PM
    Working...
    X