Giter Club home page Giter Club logo

pokt-validator-configurator's Introduction

#f03c15RED BOXES#f03c15 . . . #1589F0GREEN BOXES#1589F0 . . . #1589F0ORANGE BOXES#1589F0

-  RED BOX or text in red shows important errors/messages/warnings
+  GREEN BOX  or text in green shows terminal output
!  ORANGE BOX or text in orange is stuff that you will type or copy paste into the terminal

pokt-validator-configurator

Scripts to setup Pocket Network validator node updated for RC-0.5.0

- Assumes fresh Ubuntu Install logged in as root without new user
- Tested on UBUNTU VERSION 20.04 = Successfully
- Does not work on version 18

Part One - Create a Pocket Full Node

Step 1 - Create Unix User

1.1) #1589F0 git clone https://github.com/PierrickGT/pokt-validator-configurator.git

+  Unpacking objects: 100% (38/38), 8.96 KiB | 705.00 KiB/s, done.

1.2) #1589F0 cd pokt-validator-configurator comand prompt now ends with

+ :~/pokt-validator-configurator#

1.3 #1589F0 chmod 755 ./*.sh (( no output generated )) 1.4 #1589F0 ./makeuser.sh

+ Enter name of new Unix user:
! enter new username
+ New password:
! enter password
+ Retype new password:
! enter password
+ Full Name []:
! hit enter to leave blank
+ Room Number []:
! hit enter to leave blank
+ Work Phone []:
! hit enter to leave blank
+ Home Phone []:
! hit enter to leave blank
+ Other []:
! hit enter to leave blank
+ Is the information correct? [Y/n]
!  Y
+ (( command prompt now starts with the username that you just created ))

Step 2 - Run Dependancy Installer and Reboot

2.1) #1589F0 git clone https://github.com/PierrickGT/pokt-validator-configurator.git

+      Unpacking objects: 100% (38/38), 8.96 KiB | 655.00 KiB/s, done.

2.2) #1589F0 cd pokt-validator-configurator

+        (( command prompt ends with :~/pokt-validator-configurator$ ))

2.3) #1589F0 ./dependencyinstaller.sh

+[sudo] password for nodeuser:
! enter password

- takes aproximately 3 minutes to complete,  pauses several times durring process
- several "error" and warning lines but it's OK
+ Do you want to continue? [y/N]
! Y
+ Do you want to install the latest go version? [y/N]
! N
+ STARTING NEW SHELL TO LOAD G-INSTALL...

2.4) Continue to Step 3 (you are dropped into a new shell)

Step 3 - Create SSL Cert

- [[ Run the following command and replace YourDomainName with your domain:]]

3.1) #1589F0 sudo certbot certonly -d YourDomainName --manual --preferred-challenges dns

+[sudo] password for nodeuser:
!enter password
+Enter email .... (Enter 'c' to cancel):
!enter email
+ (A)gree/(C)ancel: ))
! A
+ (Y)es/(N)o: ))
! Y
+ Are you OK with .... (Y)es/(N)o:
! Y
- STOP.. STOP.. STOP
- The "A" record for your domain and a "TXT" record with the name and values
- shown on your screen must be deployed and propogated across the internet
- before continuing
+        ((Please deploy a DNS TXT record under the name
+              _acme-challenge.YourDomainName.com with the following value:
+
+               Before continuing, verify the record is deployed.
+              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+               Press Enter to Continue  ))
- STOP.. STOP.. STOP do not press enter until you have confirmed the deployment of the TXT record and value.
- reference information for how to move name servers and checking TXT propagation

https://www.digitalocean.com/community/tutorials/how-to-point-to-digitalocean-nameservers-from-common-domain-registrars https://mxtoolbox.com/TXTLookup.aspx https://www.whatsmydns.net/

#1589F03.2) Create the TXT record where your domain's nameservers are hosted (wait and confirm propagation)

#1589F03.4) Go back to your terminal and "Press Enter to Continue" (You should see "Congratulations!")

Step 4 - Run the script to automate the Pocket-cli install and file configurations

4.1) #1589F0 cp ~/pokt-validator-configurator/install.sh ~

    (( no output ))

4.2) #1589F0 ~/install.sh

+ Enter domain name for node
! enter the domain name from above in step 3
+ Use seeds for Mainnet or Testnet (m/T):
! M
+ Mainnet
+ a long list of seed node info
+ Use RC-0.6.1? n=use 0.5.2.9 (Y/n):
! Y
+ Using RC-0.6.1
+ [sudo] password for nodeuser:
! enter password
- takes about 3 minutes, pauses several times
- ends with:
+ NGINX IS RESTARTED! CONFIGURATION COMPLETE - PROCEED TO STEP 5

Step 5 - Create Pocket Account and Sync the Node

5.1) #1589F0 pocket accounts create

+ Passphrase
- we use a simple passphrase here because this account will not have any money in it.
! emptyaddress
+ Account generated successfully:
+ Address: LongStringOfLettersAndNumbers

#1589F0 5.2) Close the current terminal session #1589F0 5.3) Reconnect and Login using username created in step 1.4 5.4) #1589F0 pocket start

Whoot, Whoot you have a working full node!

-  If you wish to continue forward and convert your node into a Validator go to:

6.0) https://github.com/PierrickGT/pokt-validator-configurator/blob/master/README_2.md

Helpful Commands

  • pocket query height #Show what block you are synced to
  • node01.yourDomain.com:26657/net_info? #Shows Peers
  • pocket query node #Shows status of node

pokt-validator-configurator's People

Contributors

benvangithub avatar perspekt avatar pierrickgt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.