Skip to content

Instantly share code, notes, and snippets.

@mks-m
Forked from romanz/fullnode.md
Last active November 13, 2023 14:26
Show Gist options
  • Save mks-m/e0f1c7555e8f3e7da4a103c2418e82d8 to your computer and use it in GitHub Desktop.
Save mks-m/e0f1c7555e8f3e7da4a103c2418e82d8 to your computer and use it in GitHub Desktop.
Bitcoin Full Node on AWS Free Tier

Bitcoin Full Node on AWS Free Tier

Provisioning

  • Launch one T2 micro instance, using Ubuntu 14.04 LTS AMI.
  • Open SSH and Bitcoin Protocol TCP ports: 22, 8333.
  • Attach 40GB EBS volume for blockchain storage to /dev/sdf.
  • Attach 1GB EBS volume for swap to /dev/sdp.

The pricing should be ~3$ for the first year (assuming 30GB upload per month). See here for more details.

Installing

  • Run as superuser:
add-apt-repository -y ppa:bitcoin/bitcoin
apt-get update -y
mkdir ~/.bitcoin/
apt-get install bitcoind -y
  • Add the following to /etc/fstab configuration:
# /dev/xvdf is EXT4 filesystem under /home/ubuntu/.bitcoin
/dev/xvdf /home/ubuntu/.bitcoin ext4 defaults 0 0
# /dev/xvdp1 is a swap partition
/dev/xvdp1 none swap sw 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment