Cover photo

Shardeum Node

Part 01:

You need to rent a VPS server at first , VPS servers have some advantages:

Minimum Hardware Requirements CPU: 4vCore, RAM: 8 GB RAM , SDD: 60GB, OS: Ubuntu 20.04

Part 02:

How to Connect To Your VPS MacOs: To connect via SSH from this operating system, first open the Terminal window. You can find this tool by going to “Application->Utilities->Terminal”.

Windows: you can use many tools like putty and MobaXterm

1.Download one and lunch the application

2.Use informations which has been sent to your email address

3.Copy IP and enter in app and click on Open button

post image

4.Click on “Accept” bottun , Enter your username and password

Note: To paste any command that you have already copied just right-click where you want to paste the command

post image

5.Enter or paste your password again and type new password and retype it again.

post image

Finally you are on server, now you have permission to write or paste commands.

You should paste or type step by step the following commands that I have written.

Part 03: Preparation

1.Update & Upgrade Server

Before you get start, need to update and upgrade server.

sudo apt update && apt upgrade -y

post image

2.Install Docker

You shoul install the Shardeum node by docker, following commands help you to install that.

sudo apt-get install ca-certificates curl gnupg lsb-release

post image

Add Docker’s official GPG key:

sudo mkdir -p /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg

post image

Use the following command to set up the repository:

echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

post image

Try granting read permission for the Docker public key file before updating the package index:

sudo chmod a+r /etc/apt/keyrings/docker.gpg
sudo apt-get update
post image

To install the latest version, run:

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin

post image

To install docker compose:

sudo apt install docker-compose

When command prompt asks you, type Y and press ENTER on your keyboard.

post image

Verify that the Docker Engine installation is successful by running the hello-world image:

sudo docker run hello-world

post image

Check docker compose version:

docker-compose -v

post image

Part 04: Install The Node

1.Download and Install

Download the node and install it by the following command:

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

post image

Command prompt will ask questions about your setup settings.

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 press enter for port 8080:

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

Add a custom path or install to root:(press ENTER)

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

Wait for the installation process to complete.

post image

3.Config firewall

Open port based on your choice in previous step if you chose default port then you need to open 8080 also others like https, http, ssh, 443 .

ufw allow ssh ufw allow 8080 ufw allow https ufw allow http ufw allow 443 ufw enable

When command prompt asks you, type y and press ENTER on your keyboard.

post image

Part 05: Run The Node

Go to the hidden Shardeum directory:

cd .shardeum

post image

2.Start Script

Start the CLI by running the following shell script:

./shell.sh

post image

3.Start GUI

operator-cli gui start

post image

4.Dashboard

Open browser and enter your address according to the example below. Replace your IP with . https://<localhost>:8080 Enter the password which you set in the pervious step and click on Connect Button. 5.Start Validator Go to the “Maintenance” page, then click the “Start Node” button in the top left white box. Refresh the page and look at time validating parameter, it is increasing. 6.Monitor Go to “Performance” to see your node’s hardware performance here. the node consumes so much RAM, be carefull you need at less 4GB RAM. For more details about your node status run the following inside the CLI: operator-cli status pm2 list Part 06: Connect Wallet 1.MetaMask 2.Connect Wallet to Betanet https://docs.shardeum.org/Network/Endpoints#connect-wallet 3.Request Faucet Use the link below and request faucet according to example in the faucet channel. Type "/faucet [sphinx address]" to claim testnet SHM on Sphinx 1.0 network #Example /faucet address 0x0000000 4.Stake SHM After you start the validator, go to the “Maintenance” page. You will be asked to connect your wallet: This example has filled in 10 SHM tokens to stake. Once all fields are filled, click the “Stake” button. Your wallet will ask you to sign the transaction stake your SHM. Once the transaction is signed and complete, you have staked your SHM tokens successfully. https://discord.gg/shardeum Shardeum has annount 5% of its total supply to node runners officially. Try to run node untill mainet launch or atleast for 60 days