> For the complete documentation index, see [llms.txt](https://zel.gitbook.io/zelnodes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zel.gitbook.io/zelnodes/master.md).

# Setting up a ZelNode on a DigitalOcean VPS

**This guide will assist you in setting up a ZelNode on a DigitalOcean VPS running Ubuntu 18.04.5 x 64**

**Use Goose's video guide in conjunction with these steps to help answer any questions by clicking** [**here**](https://youtu.be/afE2hnKR9CQ)

**If you require further assistance contact the support team on** [**Discord**](https://discord.gg/szN9yZ) **or** [**Telegram English**](http://t.me/zelcash) **/** [**Chinese**](http://t.me/zelcashcn) **/** [**Russian**](http://t.me/zelcashru)

### Requirements

1. **ZEL Collateral (10K Basic / 25K Super / 100K BAMF)**
2. **Controller wallet (ZelCore or ZelCash Swing Wallet)**
3. **VPS running Linux Ubuntu 18.04 (benchmark requirements can't be guaranteed for servers that the team hasn't tested)**
4. **SSH client such as** [**Putty**](https://www.putty.org/)

### Contents

* **Section A : Preparing ZelCore Wallet**
* **Section B : Creating** [**DigitalOCean**](https://www.digitalocean.com/) **VPS**
* **Section C : Downloading and Installing** [**Putty**](https://www.putty.org/)
* **Section D : Connecting VPS and Installing ZelNode Script**
* **Section E : Connecting and Starting ZelNode**

### Section A: Preparing ZelCore Wallet

&#x20;***Step 1 (if necessary)***

* **Download the current ZelCore wallet based on your OS by clicking** [**here**](https://zelcore.io/#download)

![](/files/-LaXPsFLF3qztawbaLBz)

&#x20;***Step 2***&#x20;

* &#x20;**First time users of a ZEL full node need to download the bootstrap file to decrease sync time by clicking** [**here**](https://github.com/zelcash/zelcash/wiki/Bootstrap-for-ZelNodes)

&#x20;***Step 3***

* **Open your ZelCore wallet and choose 'ZelCash' (Click 'My Assets' and add 'ZelCash' if not already displayed in 'Portfolio' screen)**

![](/files/-LaXSxULGASqC0NUvKUk)

&#x20;***Step 4***

* **'Full Node'**

![](/files/-LaXTCvbvSePmkXVJVFz)

&#x20;***Step 5***

* **'Launch Full Node'**

![](/files/-LaXTMwREyPSX_KFRhbA)

&#x20;***Step 6***

* **'Launch ZelCash' when prompted**

![](/files/-LaXTje_z5xq9Q-sV1ef)

&#x20;***Step 7***

* **Go into 'Tools' after wallet is 100% synced**

![](/files/-LaXTxAkwpBU01fQb3Gs)

&#x20;***Step 8***

* **Open ZelNodes Management**

![](/files/-LaXUBDp21C7BTUVUgdv)

&#x20;***Step 9***

* **Setup ZelNodes**

![](/files/-LaXU__UAtWO7dmy1hCZ)

&#x20;***Step 10***

* **'Backup all addresses' (use a text file to save info, and store in multiple secure locations)**

![](/files/-LaXUjfbTjNITTBZLOsJ)

&#x20;***Step 11***

* **Set automatic logout to 'Never'**

![](/files/-LaXUvBrdsswbzp-6Ozt)

&#x20;***Step 12***

* **Continue to the next step after zelcash.conf info is generated**

![](/files/-LaXV6G0QQD-mmvUQdHS)

&#x20;***Step 13***

* **Choose which type of ZelNode you are going to set up**

![](/files/-LaXVKLIS0EgZx2afBCp)

&#x20;***Proceed to the next section, leave ZelCore wallet open to continue setting up in future steps***

### Section B: Creating DigitalOcean VPS

&#x20;***Step 1***

* **Register at** [**DigitalOcean**](https://m.do.co/c/c9c22684c5db) **(use this** [**referral link**](https://m.do.co/c/c9c22684c5db) **to receive a $100 credit that's good for 2 months)**

&#x20;***Step 2***

* **After you have your account setup go** [**here**](https://cloud.digitalocean.com/droplets?i=8fe2ca\&preserveScrollPosition=false) **to create your ZelNode droplet**

![](/files/-LaXVjZUMbl59O--hQTo)

&#x20;***Step 3***

* &#x20;**Choose server type: 'Ubuntu 18.04'**&#x20;

![](/files/-LaXXRPxR-cLAOTX8C-I)

&#x20;***Step 4***

* **Choose Droplet (Basic/Super/BAMF)**

![](/files/-LaXXoUUF7ir8M-XhEXB)

&#x20;***Step 5***

![(Consider choosing a data center not near you to help decentralize the network)](/files/-LaXY0D9tceAp2AFdzFs)

&#x20;***Step 6***

![](/files/-LaXZDYyI3ExHCNI1lFI)

### Section C: Downloading and Installing Putty

&#x20;***Step 1***

* **Download Putty** [**here**](https://www.putty.org/)

&#x20;***Step 2***

* **Select the correct installer depending upon your operating system, and follow the install instructions**

![](/files/-LaX_VpOS0YnYk3JCsJl)

### Section D: Connecting VPS and Installing ZelNode Script

&#x20;***Step 1***

* &#x20;**Copy your VPS IP (located within Droplets tab)**&#x20;

![](/files/-LaX_iMpd-MoaqrvUZQm)

&#x20;***Step 2***

* **Open the Putty terminal and fill in the "Host Name" box with the IP address of your VPS**

![](/files/-LaX_s0SrWtS4nyAGd4W)

&#x20;***Step 3***

* **Once you hit 'Open' a security alert will open up (click yes)**

![](/files/-LaXa1tOBmIq3at1vuZa)

&#x20;***Step 4***

* **Type "root" as the login/username**

![](/files/-LaXauI69bspjSprYr8u)

***Step 5***

* **Copy the root password that DigitalOcean emailed you**

&#x20;***Step 6***<br>

* **Paste the password into the Putty terminal by right clicking (it will not show the password so just press enter)**

![](/files/-LaXbeIKyaHe9Qb82jk8)

&#x20;***Step 7***

* &#x20;**Enter password for root (UNIX password same as Step 5)**
* &#x20;**Make new password and confirm**

![](/files/-LaXbpTW4pswpJLUtyZC)

&#x20;***Step 8***

**`sudo apt-get update`**

**`sudo apt-get upgrade -y`**

&#x20;***Step*****&#x20;9**

* &#x20;**Adduser to secure your VPS, by adding a new username so you aren't running everything as root**
* &#x20;**Run the command below and use a username that you want associated with this server ('whodatbamf1' is an example, you need to generate your own username)**

**`adduser YOURUSERNAME`**<br>

![](/files/-LaXcDJEIGd-4kBU7xdD)

&#x20;***Step 10***

* **You will then need to make a new password associated with your new username. Hit 'Enter' for the next 5 lines after your new password has been set, then 'Y' to save your information.**

![](/files/-LaXcukgPty2BJn9iI-m)

&#x20;***Step 11***

* **Grant sudo permissions for your adduser by running the command below to activate it**

**`usermod -aG sudo YOURUSERNAME`**

&#x20;***Step 12***

* **Reboot server with the following command**

**`sudo reboot -n`**

* **Close Putty terminal while server reboots**

### Section E : Connecting and Starting ZelNode (ZelCore and VPS)

&#x20;***Step 1 (ZelCore)***

* **Go back to your ZelCore wallet and enter your VPS IP address**

![](/files/-LaXeyK7uoCW1q5j_z0P)

***Step 2 (ZelCore)***

* **Name your ZelNode**

![](/files/-LaXfJnqyVmtV3Pz3WF0)

&#x20;***Step 3 (ZelCore)***

* **Save your private key that is generated in ZelCore and enter on VPS when prompted**

![](/files/-LaXfyX4B95pNWRVcGoN)

&#x20;***Step 4 (VPS)***

* **Log back into your VPS with the new username and password from Section D: Steps 9 and 10**

&#x20;***DO NOT RUN THE INSTALL SCRIPT AS ROOT, ONLY RUN IT AS THE NEW USER THAT WAS MADE IN STEP 9!!!!!!!!!!!!!!!***

***Step 5 (VPS)***

* **Paste the code below into the Putty terminal then press enter**

***`wget https://apt.zel.cash/zelnodev4.0.sh && chmod +x zelnodev4.0.sh && ./zelnodev4.0.sh`***

&#x20;***HUGE SHOUTOUT TO GOOSE, SKYSLAYER AND DK808 FOR PUTTING TOGETHER THIS INSTALL SCRIPT***

&#x20;***Step 6 (VPS)***

* **Confirm IP and enter** **ZELNODE KEY from Step 3 and hit 'Enter'**

![CONFIRM IP](/files/-LaXghL3aVxb-95G_xU9)

![BOOTSTRAP](/files/-LjRAcNTGOOtBcW9fFyT)

![SPROUT KEY](/files/-LjRB24evHb4RinlWbr6)

![PARAMS](/files/-LjRB6vtoBKhxQfKs4Kh)

![1ST COUNTDOWN](/files/-LjRBCzZzeAXXAEHvdxo)

![STARTING DAEMON AND SYNCING ZELNODE WITH BLOCKCHAIN](/files/-LjRBI-2vPJ1OodhdLOg)

![2ND COUNTDOWN](/files/-LjRBO6MWic1xFiOrFFj)

![WELCOME TO ZELNODES](/files/-LjRBVX0snXKw_ygWrHi)

***Step 7***

* **Go to the ZelCash block explorer**

**<https://explorer.zel.cash/>**

![](/files/-LaXh7w7D_yHFKTfh5bX)

&#x20;***Step 8 (VPS)***

* **Press any key, then CTRL-C when the blocks match explorer in Step&#x20;*****7***

![](/files/-LjRC-uSfi2IUR70PLxx)

&#x20;***Step 9 (VPS)***

* ***Run the following cmd, and proceed to Step 10 when you get 'Synchronization finished'***

***`zelcash-cli znsync status`***

![](/files/-LjRCoeS4ewrzlBI9d27)

&#x20;***Step 10 (ZelCore)***

* **Activate your ZelNode**

![](/files/-LaXia-yaPl_nVdOQnHq)

* **Successfully started will show if everything is done properly ('startzelnode local false' isn't needed)**

![](/files/-LaXirLg6NJC5OkTqoy7)

&#x20;***(It will take at least 15 confirms for your ZelNode to show up in 'MY ZELNODES')***

&#x20;***Step 10***

* **Run the following command in VPS to confirm that your ZelNode is showing 'Status 4' (If VPS does not show successfully started, wait 5 minutes and run the command again. Repeat if necesary)**

**`zelcash-cli getzelnodestatus`**

![](/files/-LaXjNdalaa6NijbS3-f)

* **You can also view your ZelNode on the block explorer `https://explorer.zel.cash/zelnodes`**

![](/files/-LaXjuJJ_NDZwkuMHLb4)

***(It will show up as 'PRE\_ENABLED' for at least 3-4 hours, and could take up to 48 hrs for 1st reward)***

## &#x20;***CONGRATULATIONS AND THANK YOU FOR BEING A PART OF THE COMMUNITY!!!!!!!!!!!!!***
