Power Users
cloud-init
If you know if your server provider has cloud init, you're a power user. A few hosts that have cloud-init include OVH, Hetzner, Digital Ocean, Vultr and many many more. Here's our custom cloud-init that will prep any VPS for Harmony! Thanks for the security hardening tips from here (opens in a new tab).
To use the code below simply replace the ssh-rsa key with your id_rsa.pub key and set the username you would like to use on the server (Change serviceharmony
or serviceuser
in the examples below).
Security Notes:
- You can customize any of this!
- We included a config that sets up UFW for you if you use it! Cloud providers may have their own firewall, your choice!
- Inject your
- ssh-rsa ...Your Key Here...
into the cloud-init users section below as 1 line with the full key.
Note: The cloud-init does take a few minutes to run after your server comes online. Wait a few minutes for this to complete or verifiy it finishes up by watching the logs with sudo tail -f /var/log/syslog
to see it complete.
Harmony
To pull and install the Harmony Validator Toolbox, run the following command:
cd ~/ && sudo apt-get install dnsutils git python3-pip python3-dotenv unzip tmux -y && wget -O harmony.sh https://raw.githubusercontent.com/easy-node-pro/harmony-toolbox/main/src/bin/harmony.sh && chmod +x harmony.sh && bash ~/harmony.sh
The installer will start up, ask some quesitons and install harmony. To re-launch the menu with the latest updates after installation completes, run:
bash -x ~/harmony.sh