How to Install CUDA for Ubuntu 19.04 Disco 64-bit Step by Step

March 24, 2019 | By thelinuxevangelist | Filed in: Tutorial.

Installing

  1. 3. Installing Headers

    Next Install Ubuntu’s Kernel Headers

    sudo apt install linux-headers-$(uname -r)

    If Got “User is Not in Sudoers file” then Look: Solution

  2. 4. Setting Up Repo

    See How Setup CUDA Ubuntu Repo Package

    CUDA Repository Setup
  3. 5. Installing CUDA

    Finally, Install CUDA Toolkit for Ubuntu

    sudo apt -y install cuda
  4. 6. Setting Up Env Vars

    Again to Setup Path Env Variable
    This is necessary to Find the Binaries on System:

    echo 'export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}' >> $HOME/.bashrc

    Eventually Amend the 10.0 with the Actual Version
    And Reload Configuration simply with:

    bash

Contents


Tags: , , , , , , , , , , , , , , , , , ,