Various scripts for setting up fivegnode.
=============================================================
Open your notepad or any text editor application on your pc and write this down as your Cheat Sheet
1. FIVEGNODE NAME = SN1
2. COLLATERAL = 50000
3. FIVEG ADDRESS = SZRnGyyPv1FVGgMGn7JXbuHCGbsgiBRprq
4. FIVEGNODE GENKEY = 84qRmqujiRqJ1vepSacScUz1EuBTYoaPM3cD5n1211THemaRWms
5. FIVEGNODE OUTPUTS = 4873d0c50c6ddc623bedcf0684dafc107809f9434b8426b728634f7c8c455615 1
6. UNIQUE IP OF THE VPS = 201.47.23.109:22020
Set up your VPS, we recommend VULTR, and select DEPLOY INSTANCE
then select the following
- Cloud compute
- Location -any
- Server type: Ubuntu 18.04
- Server size: 1GB $5/month
- Add your desired hostname and label
- Click DEPLOY Note: The server will take a few minutes to deploy and will then shows as "running" in your "instances" section.
-
Open your
QT WALLET
. -
Open your
debug console
then type the following comamndfivegnode genkey
-
Copy the generated key from your
debug console
and open yourCheat Sheet
then paste the generated key on4. FIVEGNODE GENKEY
(84qRmqujiRqJ1vepSacScUz1EuBTYoaPM3cD5n1211THemaRWms) -
Copy your stealth address under the
Receive
tab (for example: SZRnGyyPv1FVGgMGn7JXbuHCGbsgiBRprq ) and paste it on yourCheat Sheet
on3. FIVEG ADDRESS
-
Copy the stealth address again from your
Cheat Sheet
under3. FIVEG ADDRESS
and head over to yourSend
tab then paste theFIVEG ADDRESS
on theEnter a Fiveg address
area on theSend
tab and input the2. FIVEGNODE COLLATERAL
which is50000
FIVEG on theAmount
area then clickSend
and wait for6
confirmations. -
Then click go to your Transactions tab and right click the transaction when you send the
FIVEGNODE COLLATERAL
then clickCopy transaction ID
when a windows pops-up and head over to yourdebug console
then typefivegnode outputs
then pressenter
copy thetxhash
and paste it on yourCheat Sheet
under5. FIVEGNODE OUTPUTS
( 4873d0c50c6ddc623bedcf0684dafc107809f9434b8426b728634f7c8c455615 ) and also don't forget to copy theoutputidx
( 1 ) and paste it next to thetxhash
. -
Then head over to your
Cheat Sheet
- input your
VPS
ip address ( 201.47.23.109 ) under6. UNIQUE IP OF THE VPS
- input your
Fivegnode Name
( SN1 )under1. FIVEGNODE NAME
- input your
-
-
Head over to your
fiveg
directory- Windows: %APPDATA%/fiveg
- Linux: ~/.fiveg
- Mac: ~/Library/Application Support/fiveg
-
Open and edit
fivegnode.conf
file with your preferred Text Editor- Inside
fivegnode.conf
file is this lines of text
# Fivegnode config file # Format: alias IP:port fivegnode_privatekey collateral_output_txid collateral_output_index # Example: zn1 127.0.0.1:22020 7Cqyr4U7GU7qVo5TE1nrfA8XPVqh7GXBuEBPYzaWxEhiRRDLZ5c 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c 1
- Inside
-
UNIQUE IP OF THE VPS = 201.47.23.109:22020
-
On line 4 add your
1. FIVEGNODE NAME
which isSN1
, next is add your6. UNIQUE IP OF THE VPS
which is56.56.65.20
and add the respective default port ofencrypt
which is22020
,next is add your4. FIVEGNODE GENKEY
which is84qRmqujiRqJ1vepSacScUz1EuBTYoaPM3cD5n1211THemaRWms
, and lastly add your5. FIVEGNODE OUTPUTS
which is4873d0c50c6ddc623bedcf0684dafc107809f9434b8426b728634f7c8c455615
then add youroutputidx
which is1
next to your5. FIVEGNODE OUTPUTS
. -
It will look like this on the
fivegnode.conf
file
# Fivegnode config file # Format: alias IP:port fivegnode_privatekey collateral_output_txid collateral_output_index # Example: zn1 127.0.0.1:22020 7Cqyr4U7GU7qVo5TE1nrfA8XPVqh7GXBuEBPYzaWxEhiRRDLZ5c 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c 1 SN1 201.47.23.109:22020 84qRmqujiRqJ1vepSacScUz1EuBTYoaPM3cD5n1211THemaRWms 4873d0c50c6ddc623bedcf0684dafc107809f9434b8426b728634f7c8c455615 1
-
- Download a SSH Application Client (you can choose one below)
- PuTTY (https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html)
- Bitvise (https://www.bitvise.com/ssh-client-download) [RECOMMENDED]
- Open Bitvise
- Enter your VPS
ip address
underHost
on the Server area - Enter the port number which is
22
underPort
- Enter your VPS
username
underUsername
on the Authentication area - Check the
Store encrypted password in profile
checkbox and enter your VPSpassword
underPassword
- Then click
Log in
- Enter your VPS
On your SSH Terminal type this lines below one at a time
git clone https://github.com/5G-Cash/5G.git
chmod -R 755 5G
cd 5G/contrib/masternode-setup-scripts/shell-scripts
./Install.sh
Note: The script allows you to automatically install Fiveg
from the 5G
repository.
rpcuser=username
rpcpassword=password
rpcallowip=127.0.0.1
debug=1
txindex=1
daemon=1
server=1
listen=1
maxconnections=24
fivegnode=1
fivegnodeprivkey=XXXXXXXXXXXXXXXXX ## Replace with your fivegnode private key
externalip=XXX.XXX.XXX.XXX:22020 ## Replace with your node external IP
- Change these following lines on the bash file named
Config.sh
by following steps below viavim
vi Config.sh
then
- change the
username
value to your own - change the
password
value to your own - change the
XXX.XXX.XXX.XXX:22020
value to your own which is located on yourCheat Sheet
(e.g. 201.47.23.109:22020) - change the
yourmasternodeprivkeyhere
value to your own which is also located on yourCheat Sheet
(e.g. 84qRmqujiRqJ1vepSacScUz1EuBTYoaPM3cD5n1211THemaRWms this is yourFIVEGNODE GENKEY
) (To save and exit the editor pressCtrl + C
then type:wq!
then press Enter)
- Then open
Config.sh
file by typing./Config.sh
.
Note: It will automatically change your fiveg.conf
file located on the fiveg
directory inputting all the text above.
-
OPEN YOUR QT WALLET ON YOUR LOCAL MACHINE
-
HEAD OVER TO
Fivegnodes
tab on your wallet -
YOU CAN CLICK
Start all
to start your fivegnode
Note: Fivegnodes that are enabled will appear on your Fivegnodes
tab
Run first the Sourceupdate.sh
shell file. On your SSH Terminal type this line below
cd
cd 5G/contrib/masternode-setup-scripts/shell-scripts
./Sourceupdate.sh
When finish updating the source using Sourceupdate.sh
then you can run the Update.sh
shell file. On your SSH Terminal type this line below
cd
cd 5G/contrib/masternode-setup-scripts/shell-scripts
./Update.sh
Note: It will automatically updates your daemon
if you have question regarding to the scripts feel free to head over to Discord (https://discord.com/invite/uXHvyBT)