Step 1: Updates & setup ENV
sudo apt update && apt upgrade
sudo apt-get install curl
Step 2: Install docker
sudo apt install docker.io
docker ‐‐version
Step 3: install docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose ‐‐version
Step 4: Download and install validator
curl -O https://gitlab.com/shardeum/validator/dashboard/-/raw/main/installer.sh && chmod +x installer.sh && ./installer.sh
Press Y
Set passwork and save notes
Next
– Press 8080
– Press 9001
– Press 10001
– Press ENTER
It’s should show display here
Step 5: Config firewall
ufw allow ssh
ufw allow 8080
ufw allow https
ufw allow http
ufw allow 443
ufw allow 4000
ufw allow 4001
ufw enable
Press Y
Step 6: Run the node
Move to Directory
cd .shardeum
Start Script
./shell.sh
Start GUI
operator-cli gui start
Dashboard
Open Browser and enter your address according to the example below:
https://<localhost>:8080
Example : your ip : 143.233.4.5
Then you must insert ip correct : https:// 143.233.4.5:8080
Start Validator
Refresh the page and look at time validator parameter, Connet wallet and Stake:
Step 7: Stake SHM
Access the Maintenance Tab and perform the Stake SHM token step:
Step 8: Setup Crontab
sudo su
–
sudo apt-get install cron
cd && echo '*/5 * * * * root cd && /usr/bin/sh shardeum_check.sh' >> /etc/crontab && /etc/init.d/cron restart
–
cat <<EOF > shardeum_check.sh
docker exec shardeum-dashboard operator-cli status | grep stopped
if [ \$? -eq 0 ]; then
echo "START SHARDEUM"
docker exec shardeum-dashboard operator-cli start
fi
EOF
–
chmod +x shardeum_check.sh
pm2 list
If you get the following error, then proceed to the next step:
Disclaimer: Giao dịch tiền điện tử có mức độ rủi ro cao và có thể không phù hợp với tất cả các nhà đầu tư. CryptoViet sẽ không chịu trách nhiệm pháp lý đối với bất kỳ tổn thất hoặc thiệt hại nào có thể phát sinh trực tiếp hoặc gián tiếp từ việc sử dụng hoặc phụ thuộc vào những thông tin trên. Tất cả các ý kiến được bày tỏ trên trang web này thuộc sở hữu của người viết và không bao giờ được coi là lời khuyên dưới bất kỳ hình thức nào.cd ~/.shardeum
./shell.sh
//get your node's external IP:
curl https://ipinfo.io/ip
export APP_IP="<external IP>"