Skip to content

Instantly share code, notes, and snippets.

@iSkore
Last active October 29, 2020 17:18
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save iSkore/ad043b64c8576d8eb818f7027da18b09 to your computer and use it in GitHub Desktop.
Save iSkore/ad043b64c8576d8eb818f7027da18b09 to your computer and use it in GitHub Desktop.
Installing Nvidia drivers on Ubuntu 16.04 for GTX1070

Installing Nvidia drivers on Ubuntu 16.04 for GTX1070

Build Specification:

  • Intel i7-6850K @ 3.60GHz
  • GTX 1070

Prerequisites

  • Fresh install of Ubuntu 16.04

Note - did not encrypt home directory or xda drive

  • No packages installed yet
  • Enter Desktop after standard boot of Ubuntu - not in safe mode or TTY space - just standard desktop

Setup

  1. sudo apt-get remove nvidia*

  2. sudo apt-get autoremove

  3. sudo apt-get update

  4. sudo apt-get install dkms build-essential linux-headers-generic vim

  5. sudo vim /etc/modprobe.d/blacklist-nouveau.conf and add the following lines:

     blacklist nouveau
     blacklist lbm-nouveau
     options nouveau modeset=0
     alias nouveau off
     alias lbm-nouveau off
    
  6. echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf

  7. sudo update-initramfs -u

  8. cd ~/Downloads/

  9. wget us.download.nvidia.com/XFree86/Linux-x86_64/384.90/NVIDIA-Linux-x86_64-384.90.run

  10. chmod +x NVIDIA-Linux-x86_64-384.90.run

  11. reboot

  12. Once rebooted, go into TTY1 (CTRL+ALT+F1) and login

  13. In root directory: mv ~/Downloads/NVIDIA-Linux-x86_64-384.90.run ./NVIDIA-Linux-x86_64-384.90.run

  14. sudo /etc/init.d/lightdm stop

  15. sudo ./NVIDIA-Linux-x86_64-384.90.run (select yes to everything)

  16. Once finished reboot

  17. To test run: nvidia-smi - should show: NVIDIA-SMI 384.90 at the top

Sources: AllAboutLinux.eu

@ryanbranch
Copy link

Hi! Thank you for writing this. I found it very helpful while troubleshooting driver issues with my GTX 1070 during a Ubuntu 16.04.7 install. This Gist page was the 3rd result on Google when I searched ubunutu 16.04 driver for gtx 1070 ti just now.

Just wanted to point out that there's a small error in the markdown formatting which is causing removal of the line breaks within step 5. I created a modified fork which has whitespace inserted to ensure proper parsing by GitHub. Feel free to use it if you want to update this!

@iSkore
Copy link
Author

iSkore commented Oct 29, 2020

Thank you @ryanbranch, good catch.
Gist updated to match your modification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment