Last active
April 25, 2018 14:47
-
-
Save nate-strauser/088bc9bd4820c02d9921f861ea2b2d3c to your computer and use it in GitHub Desktop.
0xBitcoin Mining on HiveOS
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
#from hive console | |
stop all miners on rig | |
disable hashrate watchdog #don't want the last miner starting back up on it's own | |
#from terminal | |
ssh user@192.168.1.XXX #the local ip of the rig | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
sudo apt-get update | |
sudo apt-get install gcc-4.9 | |
sudo apt-get upgrade libstdc++6 | |
#After that you can check if you get GLIBCXX desired version like this: | |
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX | |
#if you see 'GLIBCXX_3.4.22' then proceed | |
cd /root | |
mkdir 0xbitcoin | |
cd 0xbitcoin | |
wget https://github.com/azlehria/0xbitcoin-gpuminer/releases/download/v2.10.0-pre5/0xbtcminer-linux_2.10.0-pre5.tar.xz.txz | |
tar xf 0xbtc* | |
sudo apt-get install npm | |
npm install -g cryptr | |
0xbitcoin-miner #launch the miner | |
account new #create a new account to initialize the keystore, won't mine to this account though | |
account select 0x263Ac803afECf644e97a858893e0a159EC6ca946 #change to your eth address | |
account list #verify the correct account is selected | |
pool select http://mine0xbtc.eu:8586 #vardiff | |
pool list #verify correct pool is listed | |
pool mine cuda #verify that mining starts | |
#you can stop now if you only have 1 gpu, proceed with tmux setup to run multiple gpus | |
ctrl-c ctrl-c #quit the miner | |
sudo apt-get install tmux | |
#### repeat with N from 0 to number of gpus-1 - eg 8 gpus, 0-7 | |
tmux | |
CUDA_VISIBLE_DEVICES=N 0xbitcoin-miner | |
pool mine cuda | |
crtl-b d #detach leave the miner running | |
### should now be running on multiple GPUs | |
tmux list-sessions #view running sessions | |
#to attach back to a session | |
tmux attach -t 0 #attach to session 0 | |
======================= | |
Limitations | |
* HiveOS console will not show hash rate, only gpu temp and fan speed - sufficent to tell if miner is still running | |
* 0xBitcoin miner will not auto-start if rig is restarted - rig will go back to last selected miner | |
Future Improvements | |
* shell script to config and launch miners - take number of gpus, address, pool url as params - config miner and launch 1 miner per gpu - tmux has 'send-keys' so it should be pretty doable | |
* Using the proxy from mine0xbtc.eu - one proxy per rig to avoid single point of failure | |
- not sure if needed, i'm running 30 gpus across 4 rigs without it currently, seems OK, but i have quite fast internet here, maybe worse on slow connection | |
*************************** | |
Donations happily accepted | |
ETH (or tokens) 0x263Ac803afECf644e97a858893e0a159EC6ca946 | |
BTC 3A8YVKi9RN3MhCApHzMCC45dFXLVj3YHHY | |
BCH 1QKLV39EfxwPezZMKMHmai2pSYwdaDZYi6 | |
LTC MLoA387QSvMg5aYcRsrSvrkY69pqUAbuE5 | |
XMR 891qCvasmBpLzAQr8BG3r7HoGuR9gAQro7uAGBfMLvcwUkauayp3paJaW1qtraJ1RW5o5xdPkH9RJcKiC8Z8C9hSSpkXEVz | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment