Script needs to be ran under a sudo user and not under root. It will build using zel apt packages and should work on Ubuntu 18/20. Script will install firewall, daemon service, bootstrap the chain, bootstrap collections(optional), create log rotations, create update script, and use pm2 to manage Zelflux on server restarts/reboots. You could find a detailed guide in the Wiki.
After creating a sudo user to run your ZelNode, run the following commands while still in root.
- sudo apt-get update
- sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y
- 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 docker-ce-cli containerd.io -y
- adduser USER docker #(Replace USER with the sudo user you created e.g adduser dk808 docker)
- reboot
Give server few min to restart, log back in as the user that you created above, and then run the script posted below.
User input will be prompted so have in hand the following.
- zelnodeprivkey
- Collateral txid
- Collateral output index usually 0/1
- Your ZelID for Zelflux
📝 Your ZelID is not your Zelcore username. Please check Wiki guide for more info.
bash -i <(curl -s https://raw.githubusercontent.com/dk808/deterministic-zelnode-script/master/install.sh)