1. Home
  2. Knowledge Base
  3. Secure Home Node (SHN)
  4. SHN Complete Installation Guide

SHN INSTALLATION GUIDE 

HARDWARE REQUIREMENTS
Rapberry Pi Motherboard with 1gb ram (preferably Rpi 3 or 3 B+)
RPi case
RPi Power Cable
Micro SD card (class 10 or better, 16gb or 32gb)
Usb Keyboard (for setup)
Hdmi Monitor (for setup)
Hdmi Cable (for setup)
Desk-top computer or laptop (for setup)

SD CARD SETUP: HOW TO FLASH SD CARD
The following steps will be done on your personal computer
-Go to etcher and download the version for your OS.
-Go to raspberrypi.org and download “Raspian Stretch Lite”.
-Insert the SD card into the card reader on your PC and start etcher.
-Go to settings and deactivate “auto-unmount on success”.
-Unzip the raspian.zip and tell etcher to put the image on the SD Card. Let it flash.
-As soon as it’s done, create an empty file called “ssh” in the root(boot) directory of the SD Card.
-Make sure the file is not called ssh.txt or ssh.doc or anything else – just “ssh”.
-Eject the SD card, put it back into your raspberrypi and connect it to power.

RASPBERRY PI SETUP
Plug everything in and turn on RPi. If connecting to ethernet simply plug the ethernet cable into the RPi. The RPi will boot and it will prompt you for a username, then password. Login using the default username and password (you will change the password later).
-Username-pi
-Password- raspberry (your Password will not show up; this is normal)

Once you are logged in enter the following command…
sudo raspi-config

The RPi Configuration GUI will appear

FOR WIFI SETUP ONLY (SKIP THIS STEP FOR ETHERNET SETUP)
Requirements for WIFI: 2.4ghz at least & Reliable Wifi Connection

Select Network Options

Select Wifi

Select Country

Enter Local Network Name

Type Password

END OF WIFI SETUP

RPi SYSTEM SETUP
Localization Options

Select Country

Select Region

GO Back to main UI screen

Select Interfacing Options

Select SSH then Enter

Enable SSH

Arrow back to main UI

Select Advanced Options

Select Expand File System

Arrow Over to Finish then Enter

When Asked to Reboot System Select Yes then Enter

System will restart

The RPi will show your IP after reboot. Write down the IP, you will need it for putty.  If you don’t see an IP, then follow the steps below to find IP.

FINDING YOUR RPi IP ON ANOTHER MACHINE
Windows
Download the Adafruit Pi Finder Finder for Windows and run it. It will detect your Raspberry Pi and allow you to connect by clicking the “Terminal” button. Proceed to Installation.

macOS
Open Terminal.app and run the following command:

ping raspberrypi.local -c1 | head -1 | awk -F ” ” ‘{print $3}’
You should see a single line containing the IP address of your home node.

If you don’t get an address, use the Linux command below.

Linux
Open a shell and run the following command:

arp -na | grep -i b8:27:eb | head -1 | awk -F ‘ ‘ ‘{print $2}’
You should see a single line containing the IP address of your home node.

Vulcano SHN Installation
Now you’re ready to install the Vulcano SHN! Using Putty or a terminal, connect to your RPi using the address you found in the last step and the username “pi” – the default password is “raspberry” – don’t worry, we will change this in a bit.

PUTTY EXAMPLE

Putty Interface Login (password will not appear, this is normal for linux)

Once you are logged in, run this line:
bash <( wget -qO – https://raw.githubusercontent.com/vulcanocrypto/shn/master/prepare.sh )

The installer will prepare some things, then ask you to change your password. Enter a new password, this will be your new login password for user pi.

After that, your Raspberry will reboot. Putty will disconnect from the server. Wait for a minute, log into your Raspberry through putty again, then run this command:

sudo bash shn.sh

Now the Secure Home Node will be installed. After a while, you will see the following line:

I will open the getinfo screen for you in watch mode now, close it with CTRL + C once we are fully synced. 

Then you will see the status of vulcanod syncing (this can take several hours).

Once the sync is complete (when the number of blocks displayed is up to the current block height), press Ctrl+c to finish the installation. You will be shown some information. Among this information is the configuration line you need to add your your masternode.conf on your local wallet. Copy this line from putty by highlighting it and pasting it into a text document for safe keeping. YOU WILL NEED IT LATER.

Press Enter to restart one more time.

While the Raspberry Pi is rebooting, add the line you got from the script to masternode.conf by following the steps below.

SETTING UP MASTERNODE ON LOCAL WALLET

-Download Vulcano2.0.0.0 wallet if you already haven’t
-Go to Receive tab and generate a new address labeled TORNODE
-Send 50,000 Vulcano to TORNODE address
-Wait for 15 confirmations.
-Open debug console (Tools>Debug console)
-In debug console Type masternode outputs then Enter
-Copy txid and output id into a text file
-Go to Tools>Open Masternode Configuration File
– In the MN config file add the address label, the line you got from the SHN script, and the txid and and output id you got from the masternode outputs in the debug window.
FORMAT: alias IP:port masternodeprivkey collateral_output_txid collateral_output_index 
(eg. TORNODE mnnefjdajriogs28.onion:62543 93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg 2bcd3c84c84f87eaa86e4e56834c92927a07f9e187 1 )
-Save the Masternode.conf file and close the wallet
-Re-Open the wallet go to the debug console (Tools>Debug console)
-Type startmasternode alias false TORNODE then Enter
-Under mastnode tab TORNODE should show up as enabled. 

WARNING!!! DO NOT PUT ANY EXTRA CHARACTERS, SPACES, OR PRESS ENTER AT THE END OF THE MASTERNODE CONFIGURATION FILE. DOING SO WILL NOT ALLOW THE WALLET TO RE-OPEN UNTIL IT IS FIXED!

STARTING SHN VULCANO SERVER
When RPI reboots, log back in
-UN: rpi
-PW: Password set earlier

Your SHN should start automatically upon reboot.
-Wait a few minutes and type to following to check that the mn started.
systemctl status vulcanod
It should looks something like this

-To exit vulacnod status type
ctrl + c

Congratulations, you have finished setting up the SHN.
Now you can monitor the node using the Home Node Dashboard

HOME NODE DASHBOARD
-Go to your browser and enter your RPi IP address.
-The dashboard will appear.

=============SETUP END===============

Updates

To update your Homenode to the newest version of the Vulcano Protocol simply paste the following line in your terminal:

bash <( curl https://raw.githubusercontent.com/vulcanocrypto/shn/master/update.sh )

Refreshing your node

To refresh your node, similarly to a factory reset button, run the below script:

bash <( curl https://raw.githubusercontent.com/vulcanocrypto/shn/master/refresh.sh )

TROUBLESHOOTING
If SHN did not start automatically then use this command to start vulcanod service
systemctl start vulcanod

-Wait a few minutes and run these commands to ensure SHN is functioning.
systemctl status vulcanod

vulcano-cli masternode status
    -(You should get a “masternode statrted successfully” message)
If you get this screen, a message that says “waiting for remote activation” then something is wrong on the local wallet side. Either you didn’t enter information correctly into the mn.config file, or you need to alias.


vulcano-cli getinfo

-Check the “blocks” section to make sure you are on the correct block
(same as the block displayed on explorer.vulcano.io)

=====================END========================

Masternode VPS helpful Commands

Start service – systemctl start vulcanod

Stop service – systemctl stop vulcanod

Restart service – systemctl restart vulcanod

Server status – systemctl status vulcanod

Masternode status – vulcano-cli masternode status

Masternode info – vulcano-cli getinfo

Masternode sync info – vulcano-cli mnsync status

Related Articles