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 \

(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.


Coinmonks is a non-profit Crypto educational publication.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store