Script needs to be ran under a non-root user with sudo privileges. It will build using zel apt packages and should work on Ubuntu 18 and Debian 10. Script will install firewall, daemon service, create update script, create zelflux restart script, and set cron job to run the restart script if is not running. USE AT OWN RISK. You could find a detailed guide in the Wiki
After creating a non-root user to run your zel daemon, run the following commands as the root user.
- apt update && apt install snapd -y
- snap install docker
- groupadd docker
- adduser USER docker #(Replace USER with the username you just created)
- reboot
Once the server has finished restarting, 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 installation
bash -i <(curl -s https://raw.githubusercontent.com/dk808/deterministic-zelnode-script/master/install.sh)