Skip to content

Instantly share code, notes, and snippets.

@ychin
Last active March 18, 2017 05:42
Show Gist options
  • Save ychin/57e2c52cae36abb3c9da6b8f1ab20fee to your computer and use it in GitHub Desktop.
Save ychin/57e2c52cae36abb3c9da6b8f1ab20fee to your computer and use it in GitHub Desktop.
Basic script to set up a Bitcoin Unlimited full node on an Ubuntu cloud server
# Instructions:
# 1) Set up a VM or server running Ubuntu, and make sure port 8333 is open
# 2) Run this script in a bash environment.
# More complete steps at https://gist.github.com/romanz/17ff716f13a34df49ff4
# Basic installations
sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:bitcoin-unlimited/bu-ppa -y
sudo apt-get update -y
sudo apt-get install bitcoind bitcoin-qt -y
sudo apt-get clean
# Set up basic restart on reboot, as well as log rotations
echo "@reboot bitcoind -daemon -disablewallet
@daily logrotate $HOME/.bitcoin/utils/logrotate.conf" | crontab -
mkdir ~/.bitcoin/utils --parents
echo "\"$HOME/.bitcoin/debug.log\" {
daily
missingok
rotate 5
copytruncate
compress
}" > ~/.bitcoin/utils/logrotate.conf
# Could add bandwidth limiting code here. Not doing that for now
# Now run the bitcoin full node daemon
bitcoind -daemon -disablewallet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment