Last active
February 23, 2021 10:49
-
-
Save greenbigfrog/f46ac253a0d804320f3f4ff984f8cce3 to your computer and use it in GitHub Desktop.
Dogecoin "Super"Node Quick Setup
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
sudo apt-get -y install libboost-all-dev tmux git aria2 < /dev/null | |
wget https://github.com/greenbigfrog/dogecoin-bootstrap/releases/download/v2021.01.29/dogecoin-bootstrap-2021-01-29.torrent | |
echo 'ln -s ~/dogecoin-bootstrap-2021-01-29 ~/.dogecoin' >> ~/hook.bash | |
chmod +x ~/hook.bash | |
tmux new-session -d 'aria2c --check-integrity=true --bt-max-peers=0 --seed-ratio=0 --on-bt-download-complete="/root/hook.bash" dogecoin-bootstrap-2021-01-29.torrent' | |
while [ ! -d ~/.dogecoin ];do for s in / - \\ \|; do printf "\r$s Waiting for torrent to finish";sleep 1;done;done | |
wget https://github.com/greenbigfrog/dogecoin-bootstrap/releases/download/1.14.2_no-auxpow/dogecoin-cli | |
wget https://github.com/greenbigfrog/dogecoin-bootstrap/releases/download/1.14.2_no-auxpow/dogecoind | |
chmod +x dogecoin* | |
echo "rpcuser=jdgjg | |
rpcpassword=dgskgdsk | |
maxconnections=128" >> ~/.dogecoin/dogecoin.conf | |
tmux new-session -d ~/dogecoind -printtoconsole | |
apt install -y git python3-pip < /dev/null | |
git clone https://github.com/greenbigfrog/bitcoin-prometheus-exporter.git | |
cd bitcoin-prometheus-exporter | |
while read p; | |
do pip3 install $p | |
done < requirements.txt | |
tmux new-session -d 'export BITCOIN_RPC_USER=jdgjg; export BITCOIN_RPC_PASSWORD=dgskgdsk; python3 bitcoind-monitor.py' | |
echo 'Waiting for node to finish loading' | |
sleep 30 | |
echo 'Adding nodes' | |
~/dogecoin-cli addnode dnf-1.gbf.re add | |
~/dogecoin-cli addnode dnf-2.gbf.re add | |
~/dogecoin-cli addnode dnf-3.gbf.re add | |
~/dogecoin-cli addnode dnf-4.gbf.re add | |
~/dogecoin-cli addnode dnf-5.gbf.re add | |
~/dogecoin-cli addnode dnf-6.gbf.re add | |
~/dogecoin-cli addnode dnf-7.gbf.re add | |
~/dogecoin-cli addnode dnf-8.gbf.re add | |
~/dogecoin-cli addnode dnf-9.gbf.re add | |
~/dogecoin-cli addnode dnf-10.gbf.re add | |
~/dogecoin-cli addnode dnf-alpha.gbf.re add | |
~/dogecoin-cli addnode dnf-test.gbf.re add | |
~/dogecoin-cli addnode doge1-eu.langerhans.de add | |
~/dogecoin-cli addnode doge2-eu.langerhans.de add | |
~/dogecoin-cli addnode doge3-eu.langerhans.de add | |
~/dogecoin-cli addnode doge4-eu.langerhans.de add | |
echo 'DONE' |
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
export TERM=xterm | |
wget https://gist.githubusercontent.com/greenbigfrog/f46ac253a0d804320f3f4ff984f8cce3/raw/boot.bash | |
bash boot.bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment