-
-
Save aaronhenshaw/cd35388fb7751afd7447ad5738a8fa8a to your computer and use it in GitHub Desktop.
Grin miner install on Ubuntu 18.04.1 LTS Server - Cuda Setup
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
### Install, build and RUN Grin — Then stop it | |
sudo apt-get update && sudo apt-get dist-upgrade -y && sudo apt install build-essential cmake git libgit2-dev clang libncurses5-dev libncursesw5-dev zlib1g-dev pkg-config libssl-dev llvm wget -y | |
mkdir /opt/ | |
cd /opt/ | |
wget https://github.com/mimblewimble/grin-miner/releases/download/v1.0.2/grin-miner-v1.0.2-480780314-linux-amd64.tgz | |
tar -xvf grin-miner-v1.0.2-480780314-linux-amd64.tgz -C . | |
mv grin-miner-v1.0.2 grin-miner | |
### INSTALL CUDA DRIVERS | |
sudo rm /etc/apt/sources.list.d/cuda* | |
sudo apt remove nvidia-cuda-toolkit && sudo apt remove nvidia-* | |
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub | |
sudo bash -c 'echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/cuda.list' | |
sudo apt update && sudo apt install nvidia-driver-410 cuda-10-0 -y | |
# set PATH for cuda 10.0 installation | |
if [ -d "/usr/local/cuda-10.0/bin/" ]; then | |
export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}} | |
export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | |
fi | |
## Test nvidia drivers | |
nvcc --version | |
##check you are picking up your nvidia cards | |
nvidia-smi | |
###FIX GCC for miner build | |
sudo update-alternatives --remove-all gcc | |
sudo update-alternatives --remove-all g++ | |
sudo apt-get install gcc-5 g++-5 -y && sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 10 && sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 10 && sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30 && sudo update-alternatives --set cc /usr/bin/gcc && sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30 && sudo update-alternatives --set c++ /usr/bin/g++ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment