Last active
May 12, 2017 08:50
-
-
Save Thann/42c418b051a898dc78701fe1a904766a to your computer and use it in GitHub Desktop.
Initialize ubuntu instance with bcoin
This file contains hidden or 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
#!/bin/bash | |
cd ~ | |
apt-get update | |
apt-get upgrade | |
apt-get install nodejs-legacy deluged deluge-console | |
deluged | |
deluge-console add "magnet:?xt=urn:btih:25c01def1549048b301f40ab533913154c08d5d8&dn=bcoin.chain.tar.gz&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337" | |
# wait for torrent | |
while true ; do | |
sleep 10 | |
if deluge-console info | grep -qw "Seeding" ; then | |
break | |
fi | |
done | |
echo "Torrent Downloaded" | |
pkill deluged | |
mkdir .bcoin | |
tar -xvvf Downloads/bcoin.chain.tar.gz .bcoin/ | |
npm install bcoin | |
node_modules/.bin/bcoin --daemon --fast |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment