Installing and maintaining an Elrond node is not a trivial task and it can’t be — blockchain is hard. But automation is lovely. The 2nd version of the Elrond scripts are full of cool features which I urge you all to explore by reading the README.md part of https://github.com/ElrondNetwork/elrond-go-scripts-v2

For those of you looking to get a quick start, here are a few basic steps:

1. Backup your keys. Always.

Never lose your .pem files! Make sure they safely copied to a remote storage somewhere.

2. Start with a clean VPS or server.

For the scripts to work without issues, it’s ideal to run them on a fresh install. If you can’t (be asked), there’s a script command for that at step 4.

3. (skip this if installing for the first time) Clear old nodes with one command, then do a fresh pull

4. New server? If yes, do a clone, if no, skip to 5

5. Edit variables.cfg and change the values for CUSTOM_HOME and CUSTOM_USER.

(just “/root” for root, so )

How to find out your current user:

And you will get your username like “username”, without quotations

Now edit the config file and add the relevant user information:

If you want to use “root” because YOLO, make sure you put “/root” where appropriate, i.e.

This is bad practice, avoid using root for running stuff!

6. Make sure your user has the proper rights

How to make sure your user is sudo capable, without asking for a password every time it executes something:

Navigate to the end of the file and add this line, where “username” is what you got from running the “whoami” command

Save the file and exit:

7. Create a new folder for your private keys:

8. (skip this if installing for the first time) ZIP your keys and copy the zips to the folder created in step 7. The scripts refer to nodes as node-0, node-1, … regardless of their name. With this in mind:

Repeat for all the other nodes

9. Install the node(s) as a service:

Make sure to select Y when prompted to enable auto-updater!

10. Start the node(s):

Those are the basic steps. Please carefully read the on-screen instructions, refer to the readme file https://github.com/ElrondNetwork/elrond-go-scripts-v2 and make sure to ask any questions in the Elrond Validators chat!

11. Start the node visual interface

Navigate to your $HOME/elrond-utils folder and start the termui

cd $HOME/elrond-utils

12. How to check if the autoupdater job was added succesfully

Run the following command and check its output:

The default output would be:

*/10 * * * * /bin/bash -c /home/ubuntu/elrond-go-scripts-v2/auto-updater.sh

Try running the autoupdater yourself, to make sure all is fine. Make sure to replace (user) with your username:

Now check for the output by opening this file:

A successful output would look like:

Well done! You’ve just entered the top 1% elite of the world, who use dark windows with boring text to hack a better future for mankind. Or for attacking their friends in Phase 3.

See you on the battle #fiedl !

Story teller @ Elrond

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store