Docs

Docs

  • Develop
  • Validate
  • Integrate
  • Learn

›Install a Testnet Node

Welcome to Elrond

  • Welcome to Elrond

Technology

  • Architecture Overview
  • Entities
  • Chronology
  • Secure Proof of Stake
  • Adaptive State Sharding
  • The Arwen WASM VM
  • Cross Shard Transactions

Wallet

  • Web Wallet
  • Ledger

Validators

  • Overview
  • System Requirements
  • Install a Mainnet Node

    • Scripts & User config
    • Installing a Validator Node
    • Optional Configurations
    • How to use the Docker Image

    Install a Testnet Node

    • Scripts & User config
    • Installing & updating
    • Manage your testnet node

    Install a Devnet Node

    • Scripts & User config
    • Installing & updating
    • Manage your devnet node

    Manage your keys

    • Validator Keys
    • Wallet Keys
    • Protecting your keys

    Staking, Unstaking, Unjailing

    • Staking, unstaking and unjailing
    • Staking
    • Unjailing
  • Rating
  • Node CLI
  • Useful Links & Tools
  • FAQs

Developers

    Tutorials

    • The Counter Smart Contract
    • Start Building - Crowdfunding Tutorial
    • The Crowdfunding Smart Contract (part 2)

    Signing Transactions

    • Signing Transactions
    • Tools for signing
    • Signing programmatically
  • ESDT tokens
  • The Staking Smart Contract
  • Developer reference

    • Mandos tests reference
    • The Elrond Serialization Format
  • Setup a Local Testnet
  • Setup a Local Testnet (advanced)
  • Creating Wallets

SDK and Tools

    REST API

    • REST API
    • Addresses
    • Transactions
    • Network
    • Nodes
    • Blocks
    • Virtual Machine
    • Versions and Changelog
  • Proxy
  • erdpy

    • erdpy
    • Installing erdpy
    • Configuring erdpy
    • erdpy CLI
    • Deriving the Wallet PEM file
    • Sending bulk transactions
    • Writing and running erdpy scripts
  • erdjs
  • erdgo
  • erdjava
  • erdwalletjs-cli

Integrators

  • Observing Squad
  • Accounts Management
  • Creating Transactions
  • Querying the Blockchain

Detailed comparison

  • Overview
  • Elrond vs. Ethereum Serenity
  • Elrond vs. Zilliqa
  • Elrond vs. Dfinity
  • Elrond vs. Algorand
  • Elrond vs. Harmony

Scripts & User config

Elrond provides scripts designed to streamline the process of installing an Elrond node. You will start by getting a copy of the latest version of the scripts from GitHub, and configure it to match your local setup.

Download the Elrond Testnet Scripts

We maintain different version of the scripts used to manage Elrond validators. How get the testnet scripts:

cd ~
git clone https://github.com/ElrondNetwork/elrond-go-scripts-testnet

Configure the scripts correctly

The scripts need a few options to be set in order to work correctly.

First and foremost, you need your exact username on the machine. You can find out your current username by using the whoami command, which will print it out:

whoami

Next, we need to edit the variables.cfg file and add your username in the following variables:

  • CUSTOM_HOME, which refers to the folder on the computer in which you will install your nodes
  • CUSTOM_USER, which is the username on the computer under which you will run the install, upgrade and other processes

Open variables.cfg in the nano editor:

cd ~/elrond-go-scripts-testnet/config
nano variables.cfg

Change the variables CUSTOM_HOME and CUSTOM_USER, as indicated in the screenshot. Do not use root

img

Replace with the returned output of the "whoami" command

Save the file and exit :

  • if you’re editing with nano, press Ctrl+X, then yand then Enter
  • if you’re editing with vi or vim, hold down Shift and press z twice

Ensure user privileges

Your user should be sudo capable, so that it doesn't ask a password every time it executes something. If you already know this to be true, skip ahead. Otherwise, you need to add your username to a special list.

So let's add it to the overrides:

sudo visudo -f /etc/sudoers.d/myOverrides

Now navigate to the end of the file, by pressing Shift + G. Now press o to add a new empty line, and type the following, replacing username with what you got from running the whoami command:

yourusername ALL=(ALL) NOPASSWD:ALL

Conclude by pressing Esc, then save and close the file by holding down Shift while pressing z twice.

Your user should now be able to execute sudo commands.

← How to use the Docker ImageInstalling & updating →
  • Download the Elrond Testnet Scripts
  • Configure the scripts correctly
  • Ensure user privileges
Made withby the Elrond team.
GithubChat
Main siteWalletExplorerBridgeDocs