Skip to content

Instantly share code, notes, and snippets.

Embed
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)
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
You can’t perform that action at this time.