Installation

Automatic Installation

source <(curl -s https://raw.githubusercontent.com/NodersUA/Scripts/main/shardeum)

Node

Update the repositories

sudo apt update && sudo apt upgrade -y

Install developer packages

apt install curl iptables build-essential git wget jq make gcc nano tmux htop nvme-cli pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev chrony -y

Install docker

# Install docker
source <(curl -s https://raw.githubusercontent.com/NodersUA/Scripts/main/system/docker)

Install apparmor

sudo apt install apparmor-profiles

Installing and enabling the validator

curl -O https://raw.githubusercontent.com/shardeum/validator-dashboard/main/installer.sh && chmod +x installer.sh && ./installer.sh

The terminal will ask questions about your setup settings.

Give permission to collect validator data for bug reporting:

By running this installer, you agree to allow the Shardeum team to collect this data. (y/n)?:

Enter y to setup the web based dashboard:

Do you want to run the web based Dashboard? (y/n): y

Set a password for dashboard access:

Set the password to access the Dashboard:

Add a custom session port for the web based dashboard or hit enter for port 8080:

Enter the port (1025-65536) to access the web based Dashboard (default 8080):

For the default port, just Enter, if you want a custom one, select and enter it (for example, 3101)

This allows p2p communication between nodes. Enter the first port (1025-65536) for p2p communication (default 9001):

For the default port, just Enter, if you want a custom one, select and enter it (for example, 9113)

Enter the second port (1025-65536) for p2p communication (default 10001):

For the default port, just Enter, if you want a custom one, select and enter it (for example, 10013)

Add a custom path or install to root:

What base directory should the node use (defaults to ~/.shardeum):

Waiting for the installation to finish from about 10 to 30 minutes.

Running cli and validator

Go to folder .shardeum

cd && cd .shardeum

Launching a shell

./shell.sh

Launching gui

operator-cli gui start

Check status of the node

operator-cli gui status

The output should look something like this

Go to the browser using the link: https://<your_IP>:8080 and enter your password

At this stage, an error may occur when entering the correct password, it is not possible to enter the account. In this case, enter the command

 operator-cli gui set password <your_password>

There will be general information on the validator

Run the validator Go to the "Maintenance" tab and press the "Start Node" button

Go to terminal and start node

operator-cli start

We go back to the browser, wait a couple of minutes and refresh the page. If the button changed to "Stop Node", then you did everything right and the node is running.

Validator Monitoring​

Go to "Performance" to see the hardware performance of your node here.

To get more detailed information about the state of your node, run the following in the CLI:

operator-cli status

Connecting the wallet and stake tokens to the validator

Go to website and add network Sphinx 1.X in MetaMask.

Go into faucet branch, make a post on twitter with your ethereum address, copy the link to the post, paste the copied link into the faucet and get test tokens in the Sphinx network (Betanet)

Also now you can get tokens in the Liberty network, they are not needed for the current testnet, but it will not be superfluous

Go to your validator page and connect the Metamask wallet (Shardeum Sphinx 1.X network)

Additional faucets for tokens

Discord (once in 12 hours)

Chaindrop Faucet Website (once in 30 min)

Sphinx 1.X:

https://chaindrop.org/?chainid=8082&token=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

Liberty 2.X:

https://chaindrop.org/?chainid=8081&token=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

Press the "Add Stake" button, enter the amount of the stake (leaving a little for the commission. The minimum stake is 10 SHM, the faucet gives out 15 SHM, 14 of which I staked)

It remains only to confirm the transaction and the validator is ready to go

Last updated

Was this helpful?