Last active
September 8, 2024 01:55
-
-
Save curtislacy/8424181 to your computer and use it in GitHub Desktop.
Bitcoin 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
# 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
[/]