Skip to content

Instantly share code, notes, and snippets.

@Kmaschta
Forked from albertstartup/steps.sh
Last active March 22, 2017 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kmaschta/8de62ea5f73346a8f0c61b75fe36c93b to your computer and use it in GitHub Desktop.
Save Kmaschta/8de62ea5f73346a8f0c61b75fe36c93b to your computer and use it in GitHub Desktop.
AWS GPU / P2, Ubuntu 16.04, Nvidia driver 375 & CUDA 8.0, decred/gominer
#!/bin/bash
# Requirements
# - NVIDIA Driver - NVIDIA-Linux-x86_64-375.39.run - http://www.nvidia.fr/Download/index.aspx
# - CUDA runfile (local) - cuda_8.0.61_375.26_linux.run - https://developer.nvidia.com/cuda-downloads
sudo apt update -y && sudo apt upgrade -y
sudo apt install build-essential linux-image-extra-`uname -r` -y
chmod +x NVIDIA-Linux-x86_64-375.39.run
sudo ./NVIDIA-Linux-x86_64-375.39.run
chmod +x cuda_8.0.61_375.26_linux.run
./cuda_8.0.61_375.26_linux.run --extract=`pwd`/extracts
sudo ./extracts/cuda-linux64-rel-8.0.61-21551265.run
echo -e "export CUDA_HOME=/usr/local/cuda\nexport PATH=\$PATH:\$CUDA_HOME/bin\nexport LD_LIBRARY_PATH=\$LD_LINKER_PATH:\$CUDA_HOME/lib64" >> ~/.bashrc
source .bashrc
wget https://github.com/decred/decred-binaries/releases/download/v0.8.0/gominer-linux-amd64-cuda-v0.8.0.tar.gz
tar -xvzf gominer-linux-amd64-cuda-v0.8.0.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment