Skip to content

Instantly share code, notes, and snippets.

@setanimals
Last active July 20, 2019 22:23
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 setanimals/f5d2e244c50d7aea1d6bd711ca10c318 to your computer and use it in GitHub Desktop.
Save setanimals/f5d2e244c50d7aea1d6bd711ca10c318 to your computer and use it in GitHub Desktop.
sudo apt-get update
sudo apt-get -y upgrade
sudo apt install -y build-essential
sudo apt install -y cmake
#upgrade cmake (ubuntu 18)
wget http://www.cmake.org/files/v3.12/cmake-3.12.1.tar.gz
tar -xvzf cmake-3.12.1.tar.gz
cd cmake-3.12.1/
./configure
make
sudo make install
sudo update-alternatives --install /usr/bin/cmake cmake /usr/local/bin/cmake 1 --force
#install Nvidia drivers if fresh instance
sudo apt install nvidia-driver-xxx
sudo reboot
#check install worked
nvidia-smi
#install CRUZ client and GO if not already installed
wget https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz
sudo tar -xvf go1.12.6.linux-amd64.tar.gz
sudo chown -R root:root ./go
sudo mv go /usr/local
sudo nano ~/.profile
#insert next after last line
export GOPATH=$HOME/work
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
source ~/.profile
export GO111MODULE=on
go install github.com/cruzbit/cruzbit/client
go install github.com/cruzbit/cruzbit/wallet
#install GPU miner
wget https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_10.1.168_418.67_linux.run
#next step let run until new screen
mkdir -p go/src/github.com/asdvxgxasjab/
cd go/src/github.com/asdvxgxasjab/
git clone https://github.com/asdvxgxasjab/cruzbit.git
cd cruzbit
git checkout cuda
cd cuda
mkdir build
cd build
cmake ..
make
cd ../../client
go build -tags cud-a
#run it
LD_LIBRARY_PATH=../cuda/build ./client -numminers x -pubkey xxx -datadir ~/xxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment