Automated miner setup Ubuntu 14.04

in #steemhelp10 years ago (edited)

This script can be used for AWS or other hosters which allow to provide a setup script. The LTS version of Ubuntu comes with an old version of boost, so we need to install a more recent one. This can be skipped on distributions including boost>=1.57, just install libboost-all-dev or the corresponding package then.

Replace every 36 with the amount of threads (cores) you want to use. Replace the accountnames and set the private keys. You can add as many accounts as you like, each with a new line. Remove the last \ from the final script.

#!/bin/bash
apt-get update
apt-get upgrade -y
apt-get install -y git build-essential cmake libssl-dev autoconf autotools-dev doxygen libncurses5-dev libreadline-dev libtool screen libicu-dev libbz2-dev graphviz
cd /home/ubuntu
wget http://downloads.sourceforge.net/project/boost/boost/1.57.0/boost_1_57_0.tar.bz2
tar xjf ./boost_1_57_0.tar.bz2
cd boost_1_57_0
./bootstrap.sh --prefix=/opt/boost_1_57_0
./b2 -j36 > /dev/null
./b2 install > /dev/null
export BOOST_ROOT=/opt/boost_1_57_0
cd ..
git clone https://github.com/steemit/steem.git
cd steem
git submodule update --init --recursive
cmake .
make -j36
cd programs/steemd/
screen -S steem -dm ./steemd --mining-threads=36 --seed-node='52.38.66.234:2001' --seed-node='52.37.169.52:2001' --seed-node='52.26.78.244:2001' --rpc-endpoint \
--miner='["account1","5WIF1"]' --witness='"account1"' \
--miner='["account2","5WIF2"]' --witness='"account2"' \
--miner='["account3","5WIF3"]' --witness='"account3"' \
Sort:  

#!/bin/bash
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y git build-essential cmake libssl-dev autoconf autotools-dev doxygen libncurses5-dev libreadline-dev libtool screen libicu-dev libbz2-dev graphviz
cd /home/ubuntu
git clone https://github.com/steemit/steem.git
cd steem
git submodule update --init --recursive
cmake .
make

Launched ubuntu 14.04 instance and followed your instructions but ended up with cannot find boost errors at cmake...
I would appreciate a simple "working" step by step guide for noobs, from launching a AWS instance to a working miner.

If memory is low
cmake -DENABLE_CONTENT_PATCHING=OFF -DLOW_MEMORY_NODE=ON CMakeLists.txt
If boost not found
cmake -DBOOST_ROOT=/opt/boost_1_57_0 .

Doesn't get simpler than listing all necessary steps :P
Make sure boost was installed to /opt/boost_1_57_0 and that you didn't forget the "export ..." line. Remove the " > /dev/null" at the end of boost installations to debug those.

Coin Marketplace

STEEM 0.08
TRX 0.29
JST 0.035
BTC 103492.17
ETH 3424.81
USDT 1.00
SBD 0.52