Deterministic Zelnode and Zelflux Install Guide
Note: All test runs of this install script have only been done on VPS platforms and most likely will not work on personal home servers. USE AT OWN RISK.
This guide will be using the install script on Vultr's VPS platform
- Collateral (10K Basic/ 25K Super/ 100K BAMF) Exchange List
- Control wallet and will recommend to use Zelcore
- SSH client such as MobaXterm or Putty
- VPS that meets the required specs for the tier
- BAMF | 8vCore | 32GB RAM | 600GB SSD | 6TB total monthly bandwidth @ 100mbps+
- Super | 4vCore | 8GB RAM | 150GB SSD | 4TB total monthly bandwidth @ 100mbps+
- Basic | 2vCore | 4GB RAM | 50GB SSD | 2.5TB total monthly bandwidth @ 100mbps+
Setting up Control Wallet
1. Login to your Zelcore account and set automatic log out to never.
2. Select Zel from your portfolio, click on the 3 dots in top right corner to see options, and start full node.
3. If you don't have a Sapling address create one first and backup your private keys. To create a Sapling address click on Receive and then New Sapling Address. Now click on Tools, Wallet Management, then Import/Export. Click to choose path on Export option and export to a location of your choice. Save this offline somewhere safe. Also backup the wallet.dat file which you could find in your appdata roaming folder(Windows), library app folder(Mac), or .zelcash(Linux).
4. Click on Receiving Address and copy one of your transparent address you want to send your collateral to. Send the exact amount of Zel for your Zelnode collateral to the transparent address you just copied all in one transaction no more no less. Keep in mind with this upgrade to deterministic Zelnodes you now how to wait 100 confirmations(3.5 hours) before starting your Zelnode. So before moving on to the next step go do something and kill some time.
5. Now time to setup the Zelnode on the VPS. Whether you use Vultr, Digital Ocean, or Hetzner make sure you select the right server with the hardware specs you need for the Zelnode you are trying to setup. You will fail to get the Zelnode on the network if you try on a server that doesn't meet the requirements. Following images are from Vultr and for a Basic Zelnode.
- Deploy new server
- Select a location
- Choose Ubuntu 18.04 as your OS(recommended)
- Name your server, and deploy
Will not go into how to use SSH keys but will recommend for you to look it up. Once server is ready click on it to get server info.
5. To access your server open up your SSH client and add your IP address. Will be using MobaXterm for this guide.
- Click Session
- SSH as your session type
- Your VPS IP address in Remote Host and give it a name under Bookmark Settings
6. Login as root, copy password you got from your VPS provider, and right click and paste. You won't see password being typed out but it's there so hit enter after pasting. Create a user, add user to the sudo group, install docker from their apt repo, add user to the docker group, and reboot. List of commands to do all this.
- adduser USERNAME Change USERNAME to name of your choice and replace USERNAME with one you chose in following commands.
- adduser USERNAME sudo
- 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 USERNAME docker
*Note you will be prompted to add user info after you create a password. Just leave them blank and hit enter it is not required.
7. Back to your full node on Zelcore. In the Zelnodes section which is in the bottom right select the Zelnode Wizard to start your Zelnode configuration. You will be prompted to backup keys but since you did it earlier you could just select skip.
- Select the tier
- Add your VPS IP address in front of the port(Ctrl+v to paste)
- Select the available output
- Give the Zelnode an alias
8. Open up a text editor such as notepad and copy paste the Zelnode private key, transaction id, and the output index just as I have it in image below. This will make it easier to just copy and paste when you run the install script as it will prompt you for this info during the install. Save and continue. Assuming you have waited 100 confirms since making the collateral transaction click Activate my Zelnode if not click on the X and you could start it once you have the confirmations.
9. Back on your SSH client log back in to your VPS but this time as the user you created. Do not login as root. Once logged in run the following command and install will begin
10. Script will prompt you the list below.
- Confirmation of SSH port you're using select yes unless you changed it
- Confirmation of IP address of VPS script detected
- To add swap space if none is detected
- Zelnode Private Key(this is first value you copied to the text editor)
- Zelnode Collateral TxID(second value on text editor)
- Collateral TxID output index(last value on the text editor)
- Before Zelflux installs it will ask if you want admin privileges and I highly recommend you select Yes
- Your ZelID You could find this under Apps in your Zelcore wallet.
- Name for tmux session your Zelflux will be running under. Keep it simple e.g zelflux.
Note: Your ZelID is not your username but the set of values under the QR code as shown in the clip below.
At the end of the install it will give some tips on a few commands and IPaddress and port for you to enter as your url on Chrome to access Zelflux. Once the refresh loop ends at end of script wait about 5-10 min and enter
zelcash-cli getzelnodestatus to check status of your Zelnode. You are now a Zelnode op. Any further support please join Zel's Discord
Any donations are welcomed and appreciated. Thanks.