SPS Validator Node: Setup Guide for Dummies on Linux Ubuntu

in #splinterlands2 months ago (edited)

Hi,
This guide for those who want to run a Validator node on a Linux. If you have any questions, feel free to leave a comment. I'll be happy to help!

0. Hardware requireme

Minimum 2 vCPU and 4 GB Memory or more

1. Prepare

Open Ternimal app or connect your ubuntu via ssh

2025-03-13-15-57-47.jpg



make sure your system is up to date
run
sudo apt update
sudo apt upgrade -y

2025-03-13-16-06-29.jpg

2. Install Required Dependencies

run
sudo apt install -y curl git

2025-03-13-16-23-01.jpg

3. Run Installation Script

run
bash -c "$(curl -s https://raw.githubusercontent.com/TheSPSDAO/SPS-Validator/refs/tags/vlatest/install.sh)"

2025-03-13-16-32-00.jpg



(Optional: If you don't get those below questions
or get this message: 'IMPORTANT Please re-login (or close and re-connect SSH) for docker to function correctly. Please re-run this script after re-login.'

run
exit
and restart Terminal or connect ssh again and run same command again)

2025-03-13-16-34-48.jpg

You will be asked those questions
Do you want to use a production prefix or qa prefix?
-> type 1
Enter your the hive account name
-> type your hive account
Enter your the hive posting key
-> We will put your real posting key later. Type 1111 enter
Do you want to turn on block pruning?
-> type y
Are you sure you want to destory?
-> type y

2025-03-13-16-39-32.jpg


(Optional) If you get this error
Got permission denied while trying to connect to the Docker daemon socket

run
newgrp docker
and run the script again
bash -c "$(curl -s https://raw.githubusercontent.com/TheSPSDAO/SPS-Validator/refs/tags/vlatest/install.sh)"

(Optional) If you get this error, try to use x86_64 cpu not on arm cpu machine

→ CANCELED [validator-sqitch 10/11] ADD https:/ /d33cuc2qlex36c.cloudfront.net/release-1.0.0-93703455.zip /app/snapshot.zip
=> [validator-sqitch internal] load build context
=>=> transferring context: 98.48kB
• ERROR [validator-saitch 2/111 RUN apt-aet -aa update && apt-aet. => ERROR [validator-sqitch 2/11]

This process may take some time

You can see log with y. After checking the logs, to stop seeing logs press control + c
2025-03-13-19-09-33.jpg

4. Configuration

run
cp .env-example .env
nano .env

Important settings to configure:
VALIDATOR_ACCOUNT: Your Hive account name
VALIDATOR_KEY: Your Hive posting key
DB_BLOCK_RETENTION=432000

2025-03-13-19-12-30.jpg

2025-03-13-19-12-52.jpg

save the updated .env file with
ctrl + x → y → enter

5. Monitor and Sync block

Check the logs to ensure your node is catching up with the blockchain:
run
./run.sh logs
You'll know your node is fully synchronized when you see log messages like: (head:0)
Processing block [XXXXX], Head Block: XXXXX, Blocks to head: 0

2025-03-13-19-13-44.jpg

6. Register Your Node

Once your node is fully synced (Blocks to head: 0),


Go to the "Manage Validator Nodes" sectionNavigate to the management UI at http://localhost:8888/

2025-03-13-19-17-51.jpg

You can skip API url, Post URL, Reward account
After registration and once your node synced the block (Blocks to head: 0), set your node to "active"

7. Stake Licenses for Rewards

To earn LICENSE rewards:


Click Activate and Stake LicensesGo to https://splinterlands.com/dashboard/licenses

2025-03-13-19-41-41.jpg

2025-03-13-19-42-40.jpg



Congrat! Now your validator node is running and you are getting License block reward! 🎉

You just made the SPS chain stronger and more decentralized! 💪

If this helps, please consider voting for my node to support.

Thank you! https://monstermarket.io/validators?validator=hanv

Sort:  

This post has been supported by @Splinterboost with a 15% upvote! Delagate HP to Splinterboost to Earn Daily HIVE rewards for supporting the @Splinterlands community!

Delegate HP | Join Discord

Congratulations @hanv! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You distributed more than 100 upvotes.
Your next target is to reach 200 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP