Step By Step: How To Install Stratos Node, Incentivized Testnet Tropos5. update 1.0.2
The first decentralized data architecture that provides scalable, reliable, self-balanced storage, database and computation network and offers a solid foundation for data processing.
My Telegram Group ( Ask Your Questions)
Order Your Ledger Wallet (Support me)
Introduction to Stratos
The first decentralized data architecture that provides scalable, reliable, self-balanced storage, database and computation network and offers a solid foundation for data processing.
Storage
Stratos decentralized storage network is a scalable, reliable, self-balancing elastic acceleration network driven by data traffic. It accesses data efficiently and safely. The user has the full flexibility to store any data regardless of the size and type
Database
Stratos decentralized database is a scalable, high-availability, non-schema, non-maintenance, no single point failure database. With Stratos blockchain, the database also offers an immutable feature which could power Oracle and data aggregation for any blockchain project
Blockchain
Stratos Blockchain is a Value Network that facilitates all decentralized ledger transactions and functionalities where the value circulation of the Stratos Ecosystem is guaranteed for all stakeholders.
Computing
Stratos decentralized computing network is a perfect edge computing network which offers low latency and a Trusted Execution Environment(TEE) by your neighbourhood. Edge computing aims to make our lives smarter and easier.
Incentive Rewards Distribution
On the incentive testnet, the distribution will be similar but with some adjustments. All the rewards will not be in the form of testnet STOS; rewards token will be named as TROS which will be issued to the wallet of all participants during the period of incentive testnet. Each epoch will distribute 80 TROS as the mining reward.
Note: each epoch is around 10 minutes, so 80 tros is distributed every 10 minutes among 80% of the most active nodes
At the end of the incentive testnet, we will calculate the total TROS issued and convert it to mainnet STOS based on the ratio of TROS to Total Incentive STOS, which is 1,000,000 tokens. For example, during the incentive testnet there is a total of 2,000,000 TROS issued; this will make the TROS: STOS converting rate be 2:1, which means that every 2 TROS will withdraw 1 STOS from the mainnet STOS pool.
Part 01: How order and configure your VPS server
You need a VPS server to rent at once , VPS servers have some advantages:
- High Availability
- High Scalability
- Multi Locations
- Easy to Config
- Cheap
Minimum Hardware Requirements
Recommended Hardware based company docs:
CPU i5 (4 cores) RAM 16GB Hard disk 2TB Bandwidth 100M
My Hardware
CPU: 4 Core, RAM: 8 GB, SDD: 160GB, Bandwidth 100M, OS: Ubuntu 20.04
1.If you don`t have a account in a datacenter provider, use this link to sign up first and earn €20 for new sining up
2.Click on continue button
3. In the hetzner website click on sign up button
4. Click on REGISTER NOW button
5. Fill the form and continue
6. Do KYC and enjoy it.
7. Click on <+ New project> and add a name project then in new page, click on Add Server
8. Choose your location, OS and hardware based on minimum requirements then write your VPS name and click on <create and buy> button
Note:An email will be sent to you about your VPS server like: IP and Password, check your mail box and use informations to connect to VPS
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
4.Click on “Accept” bottun , Enter your username and password which sent by Hetzner
Note: To paste any command that you have already copied just right-click where you want to paste the command
5.Enter or paste your password again and type new password and retype it again.
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.
My Telegram Group ( Ask Your Questions)
Order Your Ledger Wallet (Support me)
Part 03: Preparation
1.Before you get start, need to update and upgrade server.
sudo apt update && apt upgrade -y
2. Install prerequisties for your sevrver:
Copy and paste below command when terminal asks you, enter Y and press ENTER on your keyboard.
sudo apt install git build-essential curl snapd --yes
3. Install Go 1.18+
Need to be installed with snap and export environment variables.
sudo snap install go --classic
echo 'export GOPATH="$HOME/go"' >> ~/.profile
echo 'export GOBIN="$GOPATH/bin"' >> ~/.profile
echo 'export PATH="$GOBIN:$PATH"' >> ~/.profile
source ~/.profile
3. Install Screen.
Linux Screen provides users an option to open several separate terminal instances within a single terminal window manager. Screen also includes an enhanced command line, giving you extra features and functionality over a standard command line.
More commands about screen .
sudo apt install screen
4.Create a new session by screen .
sudo screen -S <Your Session Name>
Replace <Your Session Name> by name of your choice.
sudo screen -S stratos
My Telegram Group ( Ask Your Questions)
Part 04: Setup SDS Resource Node
1.Compile the binary executables with source code.
git clone https://github.com/stratosnet/sds.git
cd sds
git checkout tags/v0.9.0
make build
2.You can find the binary executable ppd
in the target directory target
ls
3.Install the binary executable
The binary can be installed to the default $GOPATH/bin
folder by running:
make install
Part 05: Create And Configure SDS Resource Node
- Create a root directory
To start a resource node, you need to be in a directory dedicated to your resource node. Create a new directory, or go to the root directory of your existing node. In the following instruction, we assume you have entered the root directory of the resource node.
cd $HOME
mkdir rsnode
ls
Move into the root directory of the resource node.
cd $HOME/rsnode
echo 'export GOPATH="$HOME/go"' >> ~/.profile
echo 'export GOBIN="$GOPATH/bin"' >> ~/.profile
echo 'export PATH="$GOBIN:$PATH"' >> ~/.profile
source ~/.profile
Next, you need to generate the configuration file and its accounts of this resource node. The command ppd config
will help you to generate necessary configurations.
The ppd config
command consists of several flags or subcommand. Let take a look at its general definition using ppd config -h
.
ppd config -h
2.Generate/Recover local wallet
If you already have an existing wallet account, you can use the same one here by entering its mnemonic phrase. Otherwise, you can generate a new wallet account. This command provides an interactive way to communicate with SDS and makes it possible to create the same wallet account for multiple resource nodes.
ppd config -w -p
- First step command prompt asks to enter new P2P key password for you node, type your password and press ENTER on your keyboard.
- Second step command prompt asks to enter your wallet name and password, type your name and password, press ENTER on your keyboard.
- Third step can proceed according to your wishes when asking
input bip39 mnemonic:
1.Input your mnemonic -> recovering an existing wallet account; 2.keep it blank -> generating a new wallet account
Note: Inputed seeds when you copy/paste are hidden after entering just press ENTER on your keyboard.
4. Fourth Step type Y and press ENTER on your keyboard to set new wallet as your node wallet.
Save wallet address, passwords, seeds safe.
3.Configuration Modification
You will need to edit a few lines in the file configs/config.toml
to specify the blockchain you want to connect to.
nano configs/config.toml
Please modify and replace the config file based on the following changes below.
version section:
[version]
app_ver = 9
min_app_ver = 9
show = 'v0.9.0'
Connect to the Stratos-chain testnet:
stratos_chain_url = 'https://rest-tropos.thestratos.org:443'
Designate the meta node list:
[[sp_list]]
p2p_address = 'stsds12uufhp4wunhy2n8y5p07xsvy9htnp6zjr40tuw'
p2p_public_key = 'stsdspub1kst98p2642fv8eh8297ppx7xuzu7qjz67s9hjjhxjxs834md7e0sdnut0p'
network_address = '18.130.202.53:8888'
[[sp_list]]
p2p_address = 'stsds1wy6xupax33qksaguga60wcmxpk6uetxt3h5e3e'
p2p_public_key = 'stsdspub1yyfl7ljwc68jh2kuaqmy84hawfkak4fl2sjlpf8t3dd00ed2eqeqxtawdt'
network_address = '35.74.33.155:8888'
[[sp_list]]
p2p_address = 'stsds1nds6cwl67pp7w4sa5ng5c4a5af9hsjknpcymxn'
p2p_public_key = 'stsdspub16mz8w7dygzrsarhh76tnpz0hkqdq44u7usvtnt2qd9qgp8hs8wssx2rrlq'
network_address = '52.13.28.64:8888'
[[sp_list]]
p2p_address = 'stsds1403qtm2t7xscav9vd3vhu0anfh9cg2dl6zx2wg'
p2p_public_key = 'stsdspub1zarvtl2ulqzw3t42dcxeryvlj6yf80jjchvsr3s8ljsn7c25y3hqnetwsy'
network_address = '3.9.152.251:8888'
[[sp_list]]
p2p_address = 'stsds1mr668mxu0lyfysypq88sffurm5skwjvjgxu2xt'
p2p_public_key = 'stsdspub14v8yu6nzem787nfnwvzrfvpc5f7thktsqjts6xp4cy4a2j4rgm7s3ar0jv'
network_address = '35.73.160.68:8888'
[[sp_list]]
p2p_address = 'stsds18xg40a4msgr5ndu2l7k5hv6pudemr9dufcel4w'
p2p_public_key = 'stsdspub1wwhlr2jsfupjsp87ucd3ddy4s5ykcd4khqy3wg7san5kjlw8da5qa7cgcy'
network_address = '18.223.175.117:8888'
[[sp_list]]
p2p_address = 'stsds1ftcvm2h9rjtzlwauxmr67hd5r4hpxqucjawpz6'
p2p_public_key = 'stsdspub1q9rk5zwkzfnnszt5tqg524meeqd9zts0jrjtqk2ly2swm5phlc2qjnlj5c'
network_address = '46.51.251.196:8888'
Change the value of chain_id:
chain_id = 'tropos-5'
Set the value of network_address:
Note: Replace ‘Your node public address’ with IP of your VPS.
port = '18081'
network_address = 'your node public ip'
Press Ctrl+x and type Y then press ENTER on your keyboard.
4.Config Firewall
ufw allow ssh
ufw allow 18081
ufw allow https
ufw allow http
ufw allow 443
ufw enable
When command prompt asks type y and press ENTER on your keyboard.
Part 06: Run SDS Resource Node
- Request Faucet
Replace <your wallet address> with your wallet address which saved last step
curl --header "Content-Type: application/json" --request POST --data '{"denom":"stos","address":"<your wallet address>"} ' https://faucet-tropos.thestratos.org/credit
2.Start SDS Resource Node
This command will start the SDS resource node in background without interactivity. Don`t mine to error logs because you havn`t registered yet after you use the command, just press Ctrl + A + D to detach screen session which already you was working on.
cd $HOME/rsnode
ppd start
After many minutes… you have new line
If you are in screen session yet just press Ctrl + A + D to continue.
Part 07: Start Mine
1.Interact With The SDS Node
Use ppd terminal
subcommands to interact with the SDS node.
cd $HOME/rsnode
ppd terminal
2. Registering The Resource Node
The resource node(PP) should be registered to a meta node(SP) before doing anything else. Following the ppd terminal
command, input subcommand.
rp
3.Activ The Resource Node
Activate your resource node using the following subcommand.
activate 2stos 0.01stos 1000000
Resource node will start to receive tasks from meta nodes and thus gain mining rewards automatically after it has been activated successfully.
4. Check The Current Status Of a Resource Node
Note: For that your node become active ‘Weight score” parameter should slowly start to increase and when it reaches 5030, it will be starting to receive traffic. Check weight score with this command.
status
Press Ctrl + C to exit terminal.
My Telegram Group ( Ask Your Questions)
Part 08: Script->Generate Traffic And Files
devrawl, admin of the Stratos syas: we get rewards based on the volume of traffic in and out of our nodes. currently being in testnet and all, there’s no external entities to generate said traffic so basically we have to do it ourselves to 1. test and stress-test the network and 2. generate rewards for each other. Unfortunately, you can’t choose which node your uploads go to, that’s up to the meta layer nodes. however, you can upload files that get stored on someone else’s node and he gets rewards and hopefully he uploads files aswell that get stored on your nodes and so on. pretty much like wearing a mask, you did it for others and others did it for you.
source:
Build a Script:
cd $HOME/rsnode
ppd terminal
prepay 2stos 0.01stos 1000000
getoz <st1x5vrjhrjpnddqa0xxxxxxxxxxxx>
Replace <st1x5vrjhrjpnddqa0xxxxxxxxxxxx> with your own wallet address. You will be prompted to enter the wallet password you had entered then press Ctrl+c to close terminal.
Open a terminal and run these commands:
screen -S upload
mkdir $HOME/upload
nano $HOME/rsnode/upload.sh
Paste the following code in upload.sh file:
#!/bin/bash
while true;
do /usr/bin/head -c 25M /dev/urandom > "$HOME/upload/test-$(date '+%Y%m%d%H%M')" ; ppd terminal exec put "$HOME/upload/test-$(date '+%Y%m%d%H%M')";
sleep 900;
/usr/bin/rm -rf "$HOME/upload/test*";
sleep 1;
done
Press Ctrl+x and type Y then press ENTER on your keyboard.
Save the file. Now run these commands from the terminal:
cd $HOME/rsnode
chmod +x upload.sh
./upload.sh
Press Ctrl+A+D to detach screen session
What this script will do, is generating a 25 MB file and try to upload it to SDS network every 15 minutes, then delete the generated files so it doesn’t fill up your hard drive.
Part 09: Check The Rewards
Replace <your-wallet-here> with the you wallet address.You can also load this URL in a normal browser. Look at the utros mature rewards and keep in mind that 1 TROS = 1,000,000,000 utros.
curl -s https://rest-tropos.thestratos.org/pot/rewards/wallet/<your-wallet-here>
You can also check reward by browser. Replace your wallet address and copy/paste link to browser, result is same.
https://rest-tropos.thestratos.org/pot/rewards/wallet/<your-wallete-here>
Part 10: Check The Node
Use this link to check the node status online.
Tanks for your time.
My Telegram Group ( Ask Your Questions)
Order Your Ledger Wallet (Support me)