Install and Ethereum node on Ubuntu 16.04

Install Packages

Run:

# sudo apt-get -y update && sudo  apt-get -y upgrade
# sudo apt-get -y install git curl npm nodejs

Install Geth

Run:

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

Create an account

Get account list

# geth account list

Create an account
Run:

# geth account new

Set a passphrase

Run Geth

To synchronize with Ethereum blockchain, execute:

# geth

Run Geth in background

Install screen packages

# sudo apt-get update && sudo apt-get install screen -y

Make a bash

# vim ~/geth.sh

add

#!/usr/bin/env bash
echo "Starting geth"
screen -dmS geth /usr/bin/geth --verbosity 3 --rpc --rpcaddr=localhost --rpcport=8545 --rpcapi eth,personal,net,web3

Make it executable

# sudo chmod +x ~/geth.sh

Run script

# ~/geth.sh

Attach to the screen

# screen -x geth

Detach from the screen

CTRL + a then d

Raphaël has written 45 articles

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>