To stake Mina from your command line without any intermediary entity, we recommend to install Ubuntu as one of the most user-friendly Linux distributions. You can find guides how to install Ubuntu here:
If your VPS server has a built-in Firewall, then you should open ports 8302 and 8303 there.
If not, then follow the commands below:
Open ports 8302 and 8303:
sudo iptables -A INPUT -p tcp --dport 8302:8303 -j ACCEPT
Run a node
--name mina - you can use any name for the container, or leave it as it is;
-block-producer-password "YOUR PASS" - instead YOUR PASS enter the password for your key.
$KEYPATH - path to the file with the private key my-wallet.
--coinbase-receiver B62qp... - flag to redirect block reward to another address.
Wait for the node to synchronize. The Sync status: field should say Synced (see the screenshot below). If the status says Catched, then you need to wait a little longer. After this you can start importing your keys.
Launch a node with Service
Open ports 22, 8302 and 8303 and activate the Firewall:
sudo ufw allow 22 \
&& sudo ufw allow 8302 \
&& sudo ufw allow 8303 \
&& sudo ufw enable
We check the status of open ports with the command:
sudo ufw status
If you do not have UFW installed on your server, install it using the command sudo apt install ufw
Downloading package Mina:
echo "deb [trusted=yes] http://packages.o1test.net release main" | sudo tee /etc/apt/sources.list.d/mina.list
Specify the following Mina fee amount depending on transaction speed you want:
Moderate speed is 0.01
Fast speed is 0.05
Very fast speed is 0.1
Tokens are on the journey to stake and will be used by the staking provider soon. Just wait for your Mina rewards from now. Don't be scared that your tokens are still visible on your balance. Physically Mina tokens are not moved to the staking provider from your wallet.
The whole balance of your address will be delegated into stake to a Mina validator.
The command above sends your Mina funds to StakeTab staking provider. If you want to stake Mina with another provider, you can select one on the Mina block explorer.
After delegation, you can stop your node running. There is no need for that after successful delegation.