Run a Read-only node

Read-only node parameters

  • Minimum hardware requirements: AWS EC2 m5.xlarge with 4 vCPUs (3.1 GHz) and at least 2.5 TB of Amazon EBS General Purpose SSD (gp2) storage (or equivalent).

What are we going to do?

Launch Cloud Instance

You can either run a node on your own hardware or use a cloud provider. We would recommend choosing one of the big cloud providers, e.g. Amazon AWS.

Node Specifications

We recommend the following or better: m5.xlarge General Purpose Instance with 4 vCPUs (3.1 GHz), 16GB of memory, up to 10 Gbps network bandwidth, and at least 2.5 TB of disk space.
We would recommend going with Ubuntu Server 20.04 LTS (64-bit).

Network Settings

Open up port 22 for SSH, as well as port 5050 for both TCP and UDP traffic.

Set up Non-Root User

If there is already a non-root user available, you can skip this step.
1
# SSH into your machine
2
(local)$ ssh [email protected]{IP_ADDRESS}
3
# Update the system
4
$ sudo apt-get update && sudo apt-get upgrade -y
5
# Create a non-root user
6
$ USER={USERNAME}
7
$ sudo mkdir -p /home/$USER/.ssh
8
$ sudo touch /home/$USER/.ssh/authorized_keys
9
$ sudo useradd -d /home/$USER $USER
10
$ sudo usermod -aG sudo $USER
11
$ sudo chown -R $USER:$USER /home/$USER/
12
$ sudo chmod 700 /home/$USER/.ssh
13
$ sudo chmod 644 /home/$USER/.ssh/authorized_keys
Copied!
Make sure to paste your public SSH key into the authorized_keys file of the newly created user in order to be able to log in via SSH.
1
# Enable sudo without password for the user
2
$ sudo vi /etc/sudoers
Copied!
Add the following line to the end of the file:
1
{USERNAME} ALL=NOPASSWD: ALL
Copied!
Now close the root SSH connection to the machine and log in as your newly created user:
1
# Close the root SSH connection
2
$ exit
3
# Log in as new user
4
(local)$ ssh {USERNAME}@{IP_ADDRESS}
Copied!

Install Required Tools

You are still logged in as the new user via SSH. Now we are going to install Go and Opera.
First, install the required build tools:
1
# Install build-essential
2
$ sudo apt-get install -y build-essential
Copied!

Install Go

1
# Install go
2
$ wget https://dl.google.com/go/go1.15.10.linux-amd64.tar.gz
3
$ sudo tar -xvf go1.15.10.linux-amd64.tar.gz
4
$ sudo mv go /usr/local
Copied!
Export the required Go paths:
1
# Export go paths
2
$ vi ~/.bash_aliases
3
# Append the following lines
4
export GOROOT=/usr/local/go
5
export GOPATH=$HOME/go
6
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
Copied!

Validate your Go installation

Install Opera

1
# Install Opera
2
$ git clone https://github.com/Fantom-foundation/go-opera.git
3
$ cd go-opera/
4
$ git checkout release/1.0.2-rc.5
5
$ make
Copied!
Validate your Opera installation:
1
$./build/opera help
2
3
VERSION:
4
1.0.2-rc.5
Copied!
Last modified 25d ago