Setup Environments

Setup Cloud Instance Environments

A. Make sure you’re installing these commands in your VPS

# Update & Install Go-Ethereum
sudo apt update && sudo apt upgrade -y
sudo apt install build-essential -y
sudo apt install micro -y
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt update -y
sudo apt install ethereum -y
sudo apt install jq

# Installing Golang
wget https://go.dev/dl/go1.18.2.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.18.2.linux-amd64.tar.gz
copy dan paste ke terminal: export PATH=$PATH:/usr/local/go/bin
go install github.com/protolambda/eth2-testnet-genesis@latest
go install github.com/protolambda/eth2-val-tools@latest

Optional

If You Using Lodestar Consensus Layer You Need Install NVM

NodeJS versions older than the current LTS are not supported by Lodestar. We recommend running the latest Node LTS.

Node Version Manager (NVM) will only install NodeJS for use with the active user. If you intend on setting up Lodestar to run under another user, we recommend using Nodesource's source for NodeJS so you can install NodeJS globally.

# Install NVM 
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

# Copy and paste these codes on terminal
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"

# Run these nvm commands
nvm install --lts
nvm use --lts

If you want to use Lodestar as an option to run node validator you have to install NVM [Node Version Manager] To compile Lodestar from source. if you don't use Lodestar you don't need to install NVM just skip this step.

Last updated