This repository contains instructions, commands and configurations required to run a SWARM Masternode. SWARM Masternodes are a way for anyone to provide services to the SWARM network - and to be rewarded for doing so.
Join the Swarm Masternode Telegram group to connect with other Masternode operators and to get help.
This guide assumes:
Installing a SWARM Masternode will require the following setup and specifications on the host machine/VPS.
Set up a Virtual Private Server (VPS) with Ubuntu Server 18 LTS 64bit, meeting the following minimum requirements. Then proceed to connecting and setting up your Masternode:
Minimum Specifications:
sudo apt update
sudo apt upgrade
Note: Replace USERNAME with a username you would like to use:
adduser USERNAME
usermod -a -G sudo USERNAME
logout
Enter all commands below into the PuTTY console. Ensure each command successfully completes before entering the next one.
sudo apt install docker-compose
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get install docker-ce
sudo usermod -aG docker USER
logout
git clone https://github.com/swarmfund/swarm-masternode.git masternode
cd masternode
mkdir -p ./ipfs/staging
sh masternode.sh up
Go to http://MASTERNODE_IP_ADDRESS_HERE/ipfs/QmUrLEFJAfAFhSYoWYnrUhxEDL2WwGJZkYijepLpLuRZ1r/#/
If your Masternode is properly connected, you should be able to see following page:
Go to https://masternodes.swarm.fund/ and follow the instructions.
When you see the success message, you have completed setting up and registering your SWARM Masternode.
Enter all commands below into the PuTTY console. Ensure each command successfully completes before entering the next one.
Start in the root/home directory of your USER by entering the command cd ~
docker exec mn_ipfs ipfs id
cd masternode
sh masternode.sh stop
cd masternode
sh masternode.sh down
cd masternode
sh masternode.sh upgrade
cd masternode
git pull
sh masternode.sh restart
If, for any reason, you need to register your node again from scratch, use the following commands to generate a new MNID
cd masternode
sh masternode.sh down
rm -rf ipfs
mkdir -p ipfs/staging
sh masternode.sh up