Skip to content

Instantly share code, notes, and snippets.

@curtislacy
Last active July 31, 2018 22:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save curtislacy/8424181 to your computer and use it in GitHub Desktop.
Save curtislacy/8424181 to your computer and use it in GitHub Desktop.
Bitcoin setup
# Create a new Ubuntu 13 instance.
# Get the tools and things as specified in https://gist.github.com/curtislacy/3905950/
sudo fdisk -l
sudo mkfs -t ext3 /dev/xvde1
sudo mkdir /var/lib/blockchain
sudo vi /etc/fstab
# Add:
# /dev/xvde1 /var/lib/blockchain ext3 defaults,noatime 0 2
sudo mount -a
# Get sx and obelisk and set up a bitcoin node.
sudo apt-get install python-simplejson python-git autoconf libtool libboost-all-dev pkg-config libcurl4-openssl-dev libleveldb-dev libzmq-dev libconfig++-dev libncurses5-dev
wget http://sx.dyne.org/install-sx.sh
sudo bash ./install-sx.sh
sudo sx initchain /var/lib/blockchain
sudo chown -R <user> /var/lib/blockchain/
# Set the blockchain storage location in /etc/obelisk/worker.config
# Then you can run the obelisk worker.
screen -S worker
obworker
# ctrl-a d to exit the screen, screen -r worker to get it back.
# run the obelisk load balancer.
screen -S balancer
obbalancer
# ctrl-a d to exit the screen, screen -r worker to get it back.
# If this is a deployment server, you'll probably want to run multiple workers. See http://libbitcoin.dyne.org/obelisk-setup.html for info on that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment