sudo apt update && sudo apt upgrade -y
First check to make sure there is not already swap active:
free -h
If the return is 0, you should create and activate the SWAP.
Swap: 0B 0B 0B
Create SWAP and Activate (only if required):
sudo dd if=/dev/zero of=/swapfile bs=1k count=2048k sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile sudo echo "/swapfile swap swap auto 0 0" | tee -a /etc/fstab sudo sysctl -w vm.swappiness=10 sudo echo vm.swappiness = 10 | sudo tee -a /etc/sysctl.conf
The return of the echo should be: swappiness = 10
First check to make sure there is not already swap active:
apt install ufw -y ufw default deny incoming ufw default allow outgoing ufw allow ssh ufw allow 1168/tcp ufw enable
sudo apt install fail2ban -y sudo nano /etc/fail2ban/jail.local
Copy and paste the following config into the file:
[sshd] enabled = true port = 22 filter = sshd logpath = /var/log/auth.log maxretry = 3
Restart fail2ban:
sudo systemctl restart fail2ban
Reboot the server:
sudo reboot
You can monitor the activity of the daemon with this command:
mkdir mecuai-latest cd mecuai-latest # download latest daemon wget https://github.com/mecuai/mecuai/releases/download/v1.2.6.8/mecuai-ubuntu20-1.2.6.8.tar.gz tar -xvf mecuai-ubuntu20-1.2.6.8.tar.gz # create config file cd .. mkdir ~/.mecuaicore && touch ~/.mecuaicore/mecuai.conf # set executing permission chmod +x ~/mecuai-latest/./mecuaid # sync with the network ~/mecuai-latest/./mecuaid --daemon
Open your LOCAL wallet.
Create new receiving address.
Send 15,120 MECU to the new receiving address.
Wait transaction confirmation
Enter the protx command in the Debug console of YOUR LOCAL wallet. This will create a .conf file for that node in the same directory you ran the wallet from.
protx quick_setup [Transaction ID] [Collateral index] [Smartnode server IP:1168] [Fee address]
The structure from left to right is:
Example:
protx quick_setup "5249b7172asdf8264a1bb7e63c21496f3744c94abb7bf5f3195e8e01e45518d4" "1" "16.127.125.168:1168" "MBjJcSit2DSwjtofWVH4hFz4c1BWSaPZt4"
# Stop daemon ~/mecuai-latest/./mecuai-cli stop # wait until the daemon is stopped, use top to monitor the processes # Open .conf file nano ~/.mecuaicore/mecuai.conf # Paste the configuration from the step 7 # Start the daemon ~/mecuai-latest/./mecuaid
Wait few minutes and validate the smartnode status:
~/mecuai-latest/./mecuai-cli smartnode status