ONZ Coin TESTNET - Node Installation Guide

in #social6 years ago

Pre-requirement:

If you haven’t completed the Server Setup Guide then please do so before continuing with this guide.

  • After preparing your server, you can now install ONZ on your server. To complete this tutorial, you will need:
  • One Ubuntu 16.04 server, including a sudo non-root user and a firewall configured with ssh port 22 (or the random one you created in the Secure node guide), 10998 & 10999 (for TESTNET) open.
  • A wallet with 205 ONZ (ask for testnet-delegates in Slack channel), will be used for register your delegate name and setup the second passphrase.

First Step

First of all you’ll need to login into your server with the username you created when preparing the server:

Login as: YOURUSERNAME
Password: YOURPASSWORD

Install en_US.UTF-8 locales:

sudo locale-gen "en_US.UTF-8"

Now, change to your home directory, clone the ONZ repository (TESTNET branch) there and install it:

cd ~
git clone -b testnet https://github.com/OnzCoin/onz.git

Then run the following cmds, one by one.

cd onz
./onz_manager.bash install

When install is complete, please CLEAN_START your node:

./onz_manager.bash clean_start

To check the status of your onz node, it should show the Block height increasing, type:

./onz_manager.bash status

Second Step

Note: Registration should not take place on your own node, but use the Nano Wallet download from official GitHub.Otherwise your first and second passphrase will be sent un-encrypted over the network, thus making it very easy for anyone to steal your coins!


Download and install the Nano Wallet, the official wallet: https://github.com/OnzCoin/onz-nano/releases/tag/v1.3.3

IMPORTANT: Store or write down the first and second passphrase in a safe place, we cannot restore your fund if you lost your passphrase.

  1. After install, create your ONZ address by clicking “New Account”.
  2. (Optional) Setup your second passphrase by click on the top-right “…” icon and click “Register second passphrase”. Follow the steps to create your second passphrase.
  3. Tell us your ONZ address.
  4. Then, we will send you the coins (205 ONZ) to get start.
  5. After you receive your coin, click on the top-right “…” icon to show the sub-menu.
  6. Now click on “Register as delegate ”.
  7. Type in the name of your delegate and send the registration fee. If you have setup a second passphrase, it will ask you for it.
  8. That’s it! Now tell us your delegate name and our admin will vote for you as a delegate.

Final Step

ONZ is now installed. However, you’ll need to modify the config.json to your own values. Type:

sudo nano config.json

Edit the “forging” part by placing your secret in double quotes inside the brackets [“word1 word2 word3”] with your first passphrase (the 12 words you use to login). It is important that you keep the same format as shown above:

"forging": { 
"force": false,
"secret": ["word1 word2 word3 word4 word5 word6 word7 word8 word9 word10 word11 word12"],
"access": {
"whitelist": [
"127.0.0.1"
]
}
}

After editing the file press Ctrl+x and confirm with y and then Enter.To apply the changes made in the config.json, make sure to always RELOAD ONZ:

./onz_manager.bash reload

To make sure your node is working,

./onz_manager.bash status


Good luck!


Coin Marketplace

STEEM 0.18
TRX 0.13
JST 0.028
BTC 64479.05
ETH 3181.85
USDT 1.00
SBD 2.57