Provisioning an AWS EC2 instance for Geth

The first thing you need to do when you are ready to start writing smart contracts is to setup your network connection to Ethereum. This is usually as simple as installing and running Geth. For this exploration, I will spin up a default Ubuntu instance in AWS.

Next, we’ll SSH in and run any updates that are needed:

sudo apt-get update 
sudo apt-get dist-upgrade -y
sudo apt-get upgrade -y

We’ll also might need to install some build tools:

sudo apt-get install build-essential -y
sudo apt-get install python -y

Next, we install Geth:

sudo apt-get install software-properties-common 
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum -y

Then, we fire up Geth on the testnet:

geth --testnet \
--syncmode=fast \
--rpc--rpcapi="db,eth,net,web3,personal"

(Make sure port 8545 isn’t open in your security group, because this exposes an RPC interface.)

Geth will start to sync with the blockchain:

Finally, after a few hours of downloading the blockchain, your Geth client will start to sync blocks one at a time:

To learn how to attach to Geth, create accounts, and send Ethereum, continue to the Ethereum Network Interaction section.

This writeup is an excerpt from Concurrence Provisioning.

To learn more about the Concurrence Oracle Network click here.