Last active
May 10, 2018 05:51
-
-
Save brianlechthaler/aabccbe60948d9fb29f5dacf81c5fd84 to your computer and use it in GitHub Desktop.
Ubuntu 16.04 CUDA Install Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /tmp | |
wget https://developer.nvidia.com/compute/cuda/9.1/Prod/local_installers/cuda-repo-ubuntu1604-9-1-local_9.1.85-1_amd64 | |
sudo dpkg -i cuda-repo-ubuntu1604-9-1-local_9.1.85-1_amd64 | |
sudo apt-key add /var/cuda-repo-9-1-local/7fa2af80.pub | |
sudo apt-get update | |
sudo apt-get install cuda -y | |
echo "-----------------" | |
echo "INSTALL COMPLETE." | |
echo "HIT ANY KEY" | |
echo "TO RESTART." | |
echo "-----------------" | |
read -n 1 | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment