Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
sudo apt-get update
sudo apt-get -y upgrade
sudo apt install -y build-essential
sudo apt install -y cmake
#upgrade cmake (ubuntu 18)
tar -xvzf cmake-3.12.1.tar.gz
cd cmake-3.12.1/
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
#install CRUZ client and GO if not already installed
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
go install
#install GPU miner
#next step let run until new screen
mkdir -p go/src/
cd go/src/
git clone
cd cruzbit
git checkout cuda
cd cuda
mkdir build
cd build
cmake ..
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