Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

574 lines (410 sloc) 20.9 KB

Table of Contents

  1. Quick Guide
  2. VPS Staking Guide
  3. Troubleshooting / FAQ
  4. Appendix
  5. Energi Tip Address


Quick Guide

On your VPS run this to get VPS staking setup

bash -ic "$(wget -4qO- -o- raw.githubusercontent.com/mikeytown2/masternode/master/stake/energid.sh)" ; source ~/.bashrc

O and o are both the letter and not the number if you are typing this out.
Bitvise is highly recommended in order to use copy/paste (for windows).
You can view the script here https://github.com/mikeytown2/masternode/blob/master/stake/energid.sh.
At the prompts reply with y (recommended).



VPS Staking Guide

What you need:

Click here for the Windows Setup:

1.0 Wallet Prep.

Enable coin control features. In the desktop wallet go to Settings -> Options -> Wallet and make sure Enable coin control features is checked and click OK.

2.0 Next you'll need a VPS.

Any VPS provider will work; in this example vultr will be used. Get a VPS from here https://www.vultr.com/?ref=7876413-4F

Once signed up go here https://my.vultr.com/deploy/

  1. Choose Server
  2. Select a location
  3. Select Ubuntu 18.04
  4. Select $3.50
  5. Click deploy now button

Once deployed (wait 2 minutes)

3.0 Login to VPS via SSH.

Click the Cloud Instance link on the left or the Manage link/Server Details on the right

Under IP click the copy icon copy icon


Open up Bitvise and paste in the IP of your VPS into the Host field under Server on the left side. To the right of that in the Username field put in root and change Initial method to keyboard-interactive.
Click the login button

Click Accept and Save for host key verification

Go back to the vultr Server Information page and under password click the copy icon copy icon

Then paste in the password from vultr.

4.0 VPS Steps

Copy the following line and paste into your remote terminal and press enter (right click to paste in Bitvise) (How to connect to your VPS (3.0)).

bash -ic "$(wget -4qO- -o- raw.githubusercontent.com/mikeytown2/masternode/master/stake/energid.sh)" ; source ~/.bashrc  

O and o are both the letter and not the number if you are typing this out.
Bitvise is highly recommended in order to use copy/paste.
You can view the script here https://github.com/mikeytown2/masternode/blob/master/stake/energid.sh

Type in y when it asks to "Proceed with the script (y/n)?:"
This will take about 10 minutes to update Ubuntu 18.04 to the latest package versions. Please wait for Linux to be updated.

Type in y when it asks to "Make it so only the above list of users can login via SSH (y/n)?:"

Scan in your QR code and confirm it works by typing in the 6 digit code.

Write down the emergency scratch codes and then type in y to use this 2 factor code.

Type in y when it asks to "Install a new energid node on this vps (y/n)?:"

Give it time to install the node on your Linux box

5.0 Upload your wallet.dat to the VPS

This script uses https://send.firefox.com/ to transfer files from your desktop computer onto the vps. All files are encrypted before being uploaded and decrypted on the client after downloading. The encryption key is never sent to the server.

You should be at this point now.

Shutdown the energi wallet.

Open up the energicore folder.
windows key + r
explorer.exe %appdata%\energicore

If you see the database folder; please turn off the energi wallet

Please go to https://send.firefox.com/

Select wallet.dat and drag it into your browser to upload it

Click the upload button and then copy link

Then go to the ssh terminal and paste in (right click) the link and press enter.

Fill in the password you set on send.firefox.com if you set one.

Wait for the wallet to load

Enter in your wallet's password

6.0 Script will end with

Script will end with the amount of energi in the wallet.
The amount of energi that is staking.
The staking status.

7.0 Edit energi.conf on your desktop

windows key + r
notepad.exe %appdata%\energicore\energi.conf
and add in
staking=0

8.0 Notes

You can re-run the staking script to continue where you left off OR to upload a different wallet.dat file.

If you messed up and want to start over with a fresh VPS instance go to https://my.vultr.com/ click on the three dots to the right ... and select Server Reinstall.

Click here for the Mac Setup:

1.0 Wallet Prep.

Enable coin control features. In the desktop wallet go to Energi -> Preferences -> Wallet and make sure Enable coin control features is checked and click OK.

2.0 Next you'll need a VPS.

Any VPS provider will work; in this example vultr will be used. Get a VPS from here https://www.vultr.com/?ref=7876413-4F

Once signed up go here https://my.vultr.com/deploy/

  1. Choose Server
  2. Select a location
  3. Select Ubuntu 18.04
  4. Select $3.50
  5. Click deploy now button

Once deployed (wait 2 minutes)

3.0 Login to VPS via SSH.

Click the Cloud Instance link on the left or the Manage link/Server Details on the right

Under IP click the copy icon copy icon

Finder -> Menubar (top of screen) -> Go -> Utilities. Open Terminal.
Then from the menubar to Shell -> New Remote Connection.

Select Secure Shell (ssh); then click the right +. In the field paste in the ip address of your VPS.

Click the Connect button.

Type in yes here

Go back to the vultr Server Information page and under password click the copy icon copy icon

Then paste in the password from vultr and press enter. Note that there will not be any ******** when you paste in the password.

4.0 VPS Steps

Copy the following line and paste into your remote terminal and press enter (How to connect to your VPS (3.0)).

bash -ic "$(wget -4qO- -o- raw.githubusercontent.com/mikeytown2/masternode/master/stake/energid.sh)" ; source ~/.bashrc  

O and o are both the letter and not the number if you are typing this out.
You can view the script here https://github.com/mikeytown2/masternode/blob/master/stake/energid.sh

Type in y when it asks to "Proceed with the script (y/n)?:"
This will take about 10 minutes to update Ubuntu 18.04 to the latest package versions. Please wait for Linux to be updated.

Type in y when it asks to "Make it so only the above list of users can login via SSH (y/n)?:"

Scan in your QR code and confirm it works by typing in the 6 digit code.
You'll want to make the terminal window bigger here to more easily scan in the QR code.

Write down the emergency scratch codes and then type in y to use this 2 factor code.

Type in y when it asks to "Install a new energid node on this vps (y/n)?:"

Give it time to install the node on your Linux box

5.0 Upload your wallet.dat to the VPS

This script uses https://send.firefox.com/ to transfer files from your desktop computer onto the vps. All files are encrypted before being uploaded and decrypted on the client after downloading. The encryption key is never sent to the server.

You should be at this point now.

Shutdown the energi wallet.

Open up the energicore folder (~/Library/Application Support/EnergiCore).
Terminal -> Menubar (top of screen) -> Shell -> New Window -> New Window with Settings - Basic
Type/Paste in

open "${HOME}/Library/Application Support/EnergiCore"

If you see the database folder; please turn off the energi wallet

Please go to https://send.firefox.com/

Select wallet.dat and drag it into your browser to upload it

Click the upload button and then copy link

Then go to the ssh terminal and paste in the link and press enter.

Fill in the password you set on send.firefox.com if you set one.

Wait for the wallet to load

Enter in your wallet's password

6.0 Script will end with

Script will end with the amount of energi in the wallet.
The amount of energi that is staking.
The staking status.

7.0 Edit energi.conf on your desktop

Terminal -> Menubar (top of screen) -> Shell -> New Window -> New Window with Settings - Basic
Type/Paste in

open -a TextEdit "${HOME}/Library/Application Support/EnergiCore/energi.conf"  

and add in
staking=0

8.0 Notes

You can re-run the staking script to continue where you left off OR to upload a different wallet.dat file.

If you messed up and want to start over with a fresh VPS instance go to https://my.vultr.com/ click on the three dots to the right ... and select Server Reinstall.



Troubleshooting / FAQ

How do I backup my wallet?

Make sure it's been encrypted with a password and then store the wallet.dat file on Dropbox or Google Drive. Make sure the cloud backup provider has 2 factor authentication enabled (Google, Dropbox). On windows the wallet can be found in the %appdata%/energicore directory (windows key + r %appdata%/energicore and if that doesn't work try %userprofile%\AppData\Roaming\energicore). On Mac it can be found in the ~/Library/Application Support/EnergiCore directory; Finder -> Menubar (top of screen) -> Go -> Utilities, open Terminal, type in open ~/Library/Application\ Support/EnergiCore.

You can also backup via dumpwallet.
Go to tools -> debug console and type in dumpwallet enrg.txt.
enrg.txt is usually put in the same folder as the energi wallet executable.
Print this out and keep it in a safe place.

How do I restore a wallet backup (windows)?

Using the mnemonic phrase

Close the energi wallet
windows key + r
cmd /C move /Y "%userprofile%\AppData\Roaming\EnergiCore\wallet.dat" "%userprofile%\AppData\Roaming\EnergiCore\wallet.dat.bak" & pause

windows key + r

"%ProgramFiles%\EnergiCore\energi-qt.exe" --mnemonic="example example example example example example example example example example example example example example example example example example example example example example example example"

Using the hdseed hash

Close the energi wallet
windows key + r
cmd /C move /Y "%userprofile%\AppData\Roaming\EnergiCore\wallet.dat" "%userprofile%\AppData\Roaming\EnergiCore\wallet.dat.bak" & pause

windows key + r

"%ProgramFiles%\EnergiCore\energi-qt.exe" --hdseed="0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
How do I recover a deleted wallet.dat

Download Recuva: https://www.ccleaner.com/recuva/download/standard
Once you install run it and select all files

Search in the
C:\Users\username\AppData\Roaming\EnergiCore
folder replacing username with the correct path.

Check enable deep scan

Wait for it to scan your hard drive and then look for any files with wallet.dat in the name.

How do I recover a hard drive that doesn't work at all

If the drive still spins up but won't boot up and you suspect very minor damage SpinRite might be able to help.
https://www.grc.com/cs/prepurch.htm

If your drive needs a lot of help checkout professional data recovery services like this one.
https://rossmanngroup.com/data-recovery-service-nyc/

Edit energi.conf

Tools -> Open wallet configuration file.

If the above doesn't work you can do this:
Windows:
windows key + r
notepad %appdata%\energicore\energi.conf
Copy Paste the above line into the run dialog box.

Mac:
go to Finder -> Menubar (top of screen) -> Go -> Utilities, open Terminal, type in
open -a TextEdit ~/Library/Application\ Support/EnergiCore/energi.conf
If you already have a terminal window open and want another one go to the Menubar (top of screen) -> new window -> new windows with profile - basic. Then paste in the above command.

Use the snapshot/bootstrap/fast-sync on windows

Automatic

  1. Close out the Energi Wallet.
  2. Download and run this file: energi-qt.bat.
  3. Wait for the energi wallet to start up again (give it about 10 min to start after running the bat file).

Manual

  1. Download the latest snapshot here
  2. Close out the Energi Wallet.
  3. You'll need 7zip to open up the tar.gz file. Go to the energicore folder by pressing the windows key + r and then pasting in this
explorer.exe %appdata%\EnergiCore

and if that doesn't work try pasting in this

explorer.exe %userprofile%\AppData\Roaming\EnergiCore
  1. And then delete everything in the energicore folder except for
  • the backups folder
  • wallet.dat
  • masternode.conf
  • energi.conf
  1. Extract the contents of the archive into the EnergiCore folder.
  2. Start wallet up again.
Use the snapshot/bootstrap/fast-sync on mac

Automatic

  1. Close out the Energi Wallet.
  2. Go to the Finder -> Menubar (top of screen) -> Go -> Utilities, open Terminal, type/paste in
bash -i <( curl -sL https://raw.githack.com/mikeytown2/masternode/master/qt/energi-qt-mac.sh )
  1. Wait for the energi wallet to start up again (give it about 10 min to start after running the above command).

Manual

  1. Download the latest snapshot here
  2. Close out the Energi Wallet.
  3. Open up the EnergiCore folder Go to the Finder -> Menubar (top of screen) -> Go -> Utilities, open Terminal, type/paste in
open "${HOME}/Library/Application Support/EnergiCore"
  1. And then delete everything in the energicore folder except for
  • the backups folder
  • wallet.dat
  • masternode.conf
  • energi.conf
  1. Extract the contents of the archive into the EnergiCore folder.
  2. Start wallet up again.
I've been locked out of the VPS

You get one of these errors when trying to login via Bitvise:
"Network error: Connection timed out"
"Network error: Software caused a connection abort"

Go here to get your IP address: http://ipinfo.io/ip. Then you'll need to login to the box via the "view console" button on the vultr manage page. once logged in type this in

denyhosts_unblock YOUR.DESKTOP.IP.ADDRESS

Replace "YOUR.DESKTOP.IP.ADDRESS" with the numbers found on http://ipinfo.io/ip

Useful Websites

Energi Website
https://www.energi.world/

Block Explorer
https://explore.energi.network/
https://explore2.energi.network/

Coinmarketcap
https://coinmarketcap.com/currencies/energi/



Appendix

Useful commands to run on your VPS:

Get the staking status
energi-cli getstakingstatus

Get the total number of NRG coins the wallet has
energi-cli getbalance

Get the total number of NRG coins that will be staked
energi-cli liststakeinputs balance

Get how long the daemon has been running for in seconds.
energi-cli uptime

Compare the local blockcount and the explorer’s blockcount.
energi-cli blockcheck

Download the blocks and chainstake folders; fairly close to a new install. Will get the node back on the correct chain.
energi-cli dl_blocks_n_chains

Check github for a new version; and update if there is a new version.
energi-cli update_daemon

Delete the node off of the VPS.
energi-cli remove_daemon

Restart the daemon.
energi-cli restart

Watch the last 20 entries in the daemon log
energi-cli daemon_log tail 20 watch

Get the last 2 entries in the daemon log that deal with the node startup and shutdown
energi-cli daemon_log starts 2 20



NRG Tip Address

EfQZJxx86Xa2DqzP9Hdgv7HQe1MtYzQpDC



You can’t perform that action at this time.