Skip to content

Instantly share code, notes, and snippets.

@debaraj-barua
Last active June 18, 2021 10:41
Show Gist options
  • Save debaraj-barua/daedb797e0a818e31ada10b940d1818c to your computer and use it in GitHub Desktop.
Save debaraj-barua/daedb797e0a818e31ada10b940d1818c to your computer and use it in GitHub Desktop.

Revisions

  1. debaraj-barua revised this gist Mar 31, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion installNvidiaDriver.md
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,7 @@ sudo apt-get autoremove
    ```
    ## Install 375 version of the driver
    ```
    sudo apt-get nvidia-375 nvidia-modprobe
    sudo apt-get install nvidia-375 nvidia-modprobe
    ```


  2. debaraj-barua revised this gist Dec 12, 2019. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion installNvidiaDriver.md
    Original file line number Diff line number Diff line change
    @@ -45,4 +45,6 @@ Add exports for environment variables to bashrc:
    ```
    export PATH=/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2019.1${PATH:+:${PATH}}
    export LD_LIBRARY_PATH="/usr/local/cuda-10.1/lib64:${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}}"
    ```
    ```

    Finally move CUDA out from root into home and create symlink to avoid path issues
  3. debaraj-barua revised this gist Oct 29, 2019. 1 changed file with 28 additions and 0 deletions.
    28 changes: 28 additions & 0 deletions installNvidiaDriver.md
    Original file line number Diff line number Diff line change
    @@ -17,4 +17,32 @@ sudo apt-get autoremove
    ## Install 375 version of the driver
    ```
    sudo apt-get nvidia-375 nvidia-modprobe
    ```


    # Install CUDA

    Check pre-installation [steps](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#pre-installation-actions) at NVIDIA docs.

    Finally download the toolkit at http://developer.nvidia.com/cuda-downloads.

    For installing CUDA 10.1 at Ubuntu 16.04, x86_64:

    Installer used: deb(network)

    ```
    wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-ubuntu1604.pin
    sudo mv cuda-ubuntu1604.pin /etc/apt/preferences.d/cuda-repository-pin-600
    sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
    sudo add-apt-repository "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/ /"
    sudo apt-get update
    sudo apt-get -y install cuda
    ```

    ## Post installation steps:

    Add exports for environment variables to bashrc:
    ```
    export PATH=/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2019.1${PATH:+:${PATH}}
    export LD_LIBRARY_PATH="/usr/local/cuda-10.1/lib64:${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}}"
    ```
  4. debaraj-barua revised this gist Oct 29, 2019. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions installNvidiaDriver.md
    Original file line number Diff line number Diff line change
    @@ -8,13 +8,13 @@ For now, following [this](https://gist.github.com/wangruohui/df039f0dc434d6486f5

    ## Removing earlier versions
    **NOTE: May remove CUDA installations as well***
    `sh
    ```
    sudo apt-get purge nvidia*
    `
    `sh
    ```
    ```
    sudo apt-get autoremove
    `
    ```
    ## Install 375 version of the driver
    `sh
    ```
    sudo apt-get nvidia-375 nvidia-modprobe
    `
    ```
  5. debaraj-barua revised this gist Oct 29, 2019. 1 changed file with 14 additions and 1 deletion.
    15 changes: 14 additions & 1 deletion installNvidiaDriver.md
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,17 @@ https://askubuntu.com/questions/61396/how-do-i-install-the-nvidia-drivers/61433#

    However, it seems that contrary to what the `ubuntu-drivers devices | grep nvidia` recommends, for Ubuntu 16.04, installing the latest recommended version of the driver (currently 430) does not play nice with X (maybe my kernal is not updated). And once I update the kernal I'll have to go through this all over again. So, better write shit down.

    For now, following [this](https://gist.github.com/wangruohui/df039f0dc434d6486f5d4d098aa52d07#install-nvidia-graphics-driver-via-apt-get)
    For now, following [this](https://gist.github.com/wangruohui/df039f0dc434d6486f5d4d098aa52d07#install-nvidia-graphics-driver-via-apt-get)

    ## Removing earlier versions
    **NOTE: May remove CUDA installations as well***
    `sh
    sudo apt-get purge nvidia*
    `
    `sh
    sudo apt-get autoremove
    `
    ## Install 375 version of the driver
    `sh
    sudo apt-get nvidia-375 nvidia-modprobe
    `
  6. debaraj-barua created this gist Oct 29, 2019.
    7 changes: 7 additions & 0 deletions installNvidiaDriver.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    with Ubuntu 18.04 and higher, this might be useful:
    https://askubuntu.com/questions/61396/how-do-i-install-the-nvidia-drivers/61433#61433


    However, it seems that contrary to what the `ubuntu-drivers devices | grep nvidia` recommends, for Ubuntu 16.04, installing the latest recommended version of the driver (currently 430) does not play nice with X (maybe my kernal is not updated). And once I update the kernal I'll have to go through this all over again. So, better write shit down.

    For now, following [this](https://gist.github.com/wangruohui/df039f0dc434d6486f5d4d098aa52d07#install-nvidia-graphics-driver-via-apt-get)