• NEC Website
  • GitHub
  • Discord Community

Quick Start

  • Get Started

Staking

  • Quick Start
  • Overview
  • Stake on NCOG
  • Run NCOGEarthChain
  • Run Validator Node
  • Running Testnet
  • Operating a private network (fakenet)
  • Running the demo
  • Run a Read-only node
  • Testnet Faucet
  • Run a Full node
  • Run a Testnet read node

API

  • Public API End Points
  • Getting Started
  • Installation
  • GraphQL Schema Basics
  • Schema Structure
  • Implementation Details and Notes

Tutorials

  • Create a ERC721 Contract
  • Deploy a Smart Contract
  • Verify a Deployed Smart Contract
  • Setup MetaMask Wallet
  • Import NFT
  • Create a Local Test Network

Technology

  • Overview
  • Forest Protocal
  • Tolerance to Byzantine Fault (BFT)
  • Proof of Stake
  • Transaction Fees
  • FAQ

Best Practices

  • MANAGE NEC ASSETS WITH LEDGER NANO S
  • How to Navigate NCOG NEC
  • How to Check Your Account Balance
  • How to Receive NCOG Assets
  • How to Send NCOG Assets
  • Leager FAQ
  • Home
  • Docs
  • Staking
  • Run a Read-only node

Run a Read-only node

Table of Contents
  • Minimum Hardware Requirements:
  • Running a Read-Only Node on NCOG Blockchain: A Step-by-Step Guide
    • Node Hardware Requirements:
  • Steps to Run a Read-Only Node:
    • Launch Cloud Instance:
    • Network Settings:
  • Set up Non-Root User:
  • Install Required Tools
  • Install Go

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: #

1. SSH into Machine: Access your instance via SSH.
2. Update System: Run system updates and upgrades.
3. Create Non-Root User: Follow the commands to create a non-root user and assign permissions.

# 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

4. Paste SSH Key: Insert your public SSH key into the authorized_keys file for SSH access.
5. Enable Sudo: Grant sudo privileges to the new user.

# 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

What are your Feelings
Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on December 4, 2023
Running the demoTestnet Faucet

Powered by BetterDocs

Table of Contents
  • Minimum Hardware Requirements:
  • Running a Read-Only Node on NCOG Blockchain: A Step-by-Step Guide
    • Node Hardware Requirements:
  • Steps to Run a Read-Only Node:
    • Launch Cloud Instance:
    • Network Settings:
  • Set up Non-Root User:
  • Install Required Tools
  • Install Go
© 2023. NCOG Earth Chain. All Rights Reserved.