Table of Contents
Minimum Hardware Requirements: #
- AWS EC2 m5.xlarge with 4 vCPUs (3.1 GHz)
- Minimum 3TB of Amazon EBS General Purpose SSD (gp2) storage or equivalent.
Running a Read-Only Node on NCOG Blockchain: A Step-by-Step Guide #
Node Hardware Requirements: #
For optimal performance, we recommend using an AWS EC2 m5.xlarge instance with the following specifications:
- 4 vCPUs (3.1 GHz)
- 16GB of memory
- At least 3 TB of Amazon EBS General Purpose SSD storage (gp2) or equivalent.
Steps to Run a Read-Only Node: #
Launch Cloud Instance: #
- Choose a cloud provider, such as Amazon AWS.
- Deploy an m5.xlarge General Purpose Instance with the specified hardware specifications.
- Utilize Ubuntu Server 20.04 LTS (64-bit) for the operating system.
Network Settings: #
- Open port 22 for SSH.
- Open port 5050 for both TCP and UDP traffic.
Set up Non-Root User: #
# SSH into your machine
(local)$ ssh root@{VALIDATOR_IP_ADDRESS}
# Update the system
(validator)$ sudo apt-get update && sudo apt-get upgrade -y
# Create a non-root user
(validator)$ USER={USERNAME}
(validator)$ sudo mkdir -p /home/$USER/.ssh
(validator)$ sudo touch /home/$USER/.ssh/authorized_keys
(validator)$ sudo useradd -d /home/$USER $USER
(validator)$ sudo usermod -aG sudo $USER
(validator)$ sudo chown -R $USER:$USER /home/$USER/
(validator)$ sudo chmod 700 /home/$USER/.ssh
(validator)$ sudo chmod 644 /home/$USER/.ssh/authorized_keys
# Enable sudo without password for the user
(validator)$ sudo vi /etc/sudoers
Install Required Tools #
Now we are going to install Go.
First, install the required build tools:
# Update package lists and upgrade installed packages
(validator)$ apt upgrade -y
# Install software-properties-common
(validator)$ apt install -y software-properties-common
# Add the Go programming language repository
(validator)$ add-apt-repository -y ppa:longsleep/golang-backports
# Update package lists after adding the repository
(validator)$ apt update
Install Go #
# Install go
(validator)$ apt install -y golang-go