Horizon Platform Community [TUTORIAL] How to create a hallmarked node (and also: run a local client)
Thread Posts Reply To This Post
Viewing 10 posts - 1 through 10 (of 22 total)
  • wizard05

    7th April 2014 at 2:11 am

    Copied from the bct announcement and updated, thanks to fsonex (NHZ: 17739991969236383404) for writing the original!

    The following steps provide an overview of getting started with NHZ and setting up a hallmarked server node. To run a local client without hallmark you only need to follow steps 1, 3 and 4.
    Linux users may want to check out the notes on the bottom of this post first.

    ‘”

      \n”.self::process_list_items(“‘.str_replace(‘
      ‘, ”, ‘
      [*]Step 1 – Install Java 7
      [*]Step 2 – Add you public IP Address to conf file
      [*]Step 3 – Run NHZ
      [*]Step 4 – Create NHZ Account
      [*]Step 5 – Create your Node Hallmark
      [*]Step 6 – Update the NHZ conf file with hallmark
      [*]Step 7 – Open Port 7774
      [*]Step 8 – Run the hallmarked NHZ
      ‘).'”).”\n

    “‘

    See below for detailed instructions for each step…

    Step 1 – Install Java 7 (server and local)

    ‘”

      \n”.self::process_list_items(“‘.str_replace(‘
      ‘, ”, ‘
      [*](Linux Users)? ? ? ? Type “apt-get install openjdk-7-jre” in a Terminal Window
      [*](Windows Users)? ? Download Java 7 from http://www.java.com/en/download/
      [*]Unzip the file
      ‘).'”).”\n

    “‘

    Step 2 – Add you public IP Address to conf file (server)

    ‘”

      \n”.self::process_list_items(“‘.str_replace(‘
      ‘, ”, ‘
      [*]Open the conf/nhz-default.properties file for editing
      (Windows users: do not use notepad. Get notepad++,
      Linux users can use nano (nano -w conf/nhz-default.properties) or vim.)
      [*]
      Update the “nhz.myAddress=” parameter with your Public IP Address and save

      ‘).'”).”\n

    “‘

    ? ? ?

    Step 3 – Run NHZ (local)

    ‘”

      \n”.self::process_list_items(“‘.str_replace(‘
      ‘, ”, ‘
      [*]Open a Terminal Window
      [*]Navigate to the nhz_v3.x directory
      [*](Linux Users)? ? ? ? Type “./run.sh” in the Terminal Window (“chmod +x run.sh” before to make it executable)
      [*](Windows Users)? ? Type “run.bat” in the Terminal Window
      ‘).'”).”\n

    “‘
    ? ?
    ? ?
    Step 4 – Create NHZ Account (local)

    ‘”

      \n”.self::process_list_items(“‘.str_replace(‘
      ‘, ”, ‘[*]
      Open a browser window and enter “localhost:7776” as the address


      ‘).'”).”\n

    “‘

    ‘”

      \n”.self::process_list_items(“‘.str_replace(‘
      ‘, ”, ‘
      [*]Click on “Returning user”
      [*]
      Enter your secret passphrase into the Account Dialog and hit , (or click the “unlock account” button)


      ‘).'”).”\n

    “‘

    It is strongly urged that your passphrase is at least 35 characters and made up of random words and numbers. It’s the only thing needed to access your account, so it is in your best interest to make it a difficult to crack as possible.

    ‘”

      \n”.self::process_list_items(“‘.str_replace(‘
      ‘, ”, ‘[*]
      Your account number is displayed in the upper left


      ‘).'”).”\n

    “‘

    Step 5 – Create your node hallmark (local)

    ‘”

      \n”.self::process_list_items(“‘.str_replace(‘
      ‘, ”, ‘
      [*]
      Open a browser window and enter “localhost:7776/admin.html” as the address

      ‘).'”).”\n

    “‘

    ‘”

      \n”.self::process_list_items(“‘.str_replace(‘
      ‘, ”, ‘
      [*]Enter your public IP address and secret phrase, then click the “Submit” button. You can use the same secret phrase for multiple servers, but the ip always needs to be the one of the server
      [*]
      Your custom Hallmark will be displayed beneath the Submit button

      ‘).'”).”\n

    “‘

    ? ? ? ? ?
    Step 6 – Update the NHZ server conf file with hallmark (server)

    ‘”

      \n”.self::process_list_items(“‘.str_replace(‘
      ‘, ”, ‘
      [*]Open the nhz_v3.x/conf/nhz-default.properties file for editing (Windows users already know they mustn’t use notepad)
      [*]
      Update the “nhz.myHallmark=” parameter with the Hallmark generated in Step 5 and save

      ‘).'”).”\n

    “‘

    Step 7 – Open Port 7774 (server)

    ‘”

      \n”.self::process_list_items(“‘.str_replace(‘
      ‘, ”, ‘
      [*](Linux Users)? ? ? ? Type “iptables -A INPUT -p tcp -d 0/0 -s 0/0 –dport 7774 -j ACCEPT” in a terminal window
      [*](Windows Users)? ? Varies depending on your router instructions
      ‘).'”).”\n

    “‘

    Step 8 – Run the hallmarked NHZ (server)

    ‘”

      \n”.self::process_list_items(“‘.str_replace(‘
      ‘, ”, ‘
      [*]If you already started the server in Step 3, shut it down (CTRL+C)
      [*]Restart the server using the same instructions as Step 3
      ‘).'”).”\n

    “‘

    That’s it…you should now be setup as a hallmarked server node. You can check after some minutes at http://explorer.nhzcrypto.org/?page=nodecheck

    Additional notes for Linux users:

    You don’t necessarily need to run a local instance – connect to your server using ssh-tunneling to forward the necessary ports to your local machine (the example below forwards remote 7776 to local 17776).
    Be aware that entering your passphrase on a VPS instance is a security risk. Although it’s difficult and improbable, your account could be hacked by someone having access to the server through extracting the passphrase from memory. Use your local instance when possible!

    '.str_replace('
    ', '', '
    ssh -L17776:localhost:7776 [email protected]
    ').'

    If you want the server to run as a background process use screen (install if not available)

    '.str_replace('
    ', '', '
    screen -S nhz
    ./run.sh
    CTRL+A D (to disconnect from the session. The process keeps running until you reboot)
    to reconnect to session: screen -r nhz
    ').'

    tuanvie
    Participant

    Horizon: 0.00 HZ
    4th September 2014 at 7:14 pm

    I wanted to contribute hallmark, and all the linux install process is finished, what next?

    tuanvie
    Participant

    Horizon: 0.00 HZ
    4th September 2014 at 10:51 pm

    Hallmarked NHZ work in my server
    tutorial for install I followed the guide http://forum.nhzcrypto.org/index.php/topic,6.0.html

    stevevaii
    Participant

    Horizon: 0.00 HZ
    6th September 2014 at 5:25 am

    tuanvie.. tuanvie.. can you help me to learn how to create? hallmarked node step by step? whats is your facebook? may i add you?

    becansz
    Participant

    Horizon: 7.00 HZ
    9th September 2014 at 7:09 am

    running hallmarked more than one in in one account it acceptable ?

    Pharesim
    Keymaster

    Horizon: 123.50 HZ
    9th September 2014 at 10:48 am

    Yes, you can use the same account for an unlimited number of nodes. Each node needs an own hallmark with its correct ip though!

    tuanvie
    Participant

    Horizon: 0.00 HZ
    9th September 2014 at 5:02 pm

    if every swallow is already installed must be confirmed to the admin?

    and whether any new node will finish the install “our Data?
    how long this process usually

    Pharesim
    Keymaster

    Horizon: 123.50 HZ
    9th September 2014 at 8:21 pm

    Shouldn’t take longer than 12 hours usually. Message cbkr if it exceeds that time.

    JKNHZ
    Participant

    Horizon: 0.00 HZ
    23rd September 2014 at 5:03 am

    For those just setting up accounts with Digital Ocean. It’s very simple.

    I have 5 DO nodes running and they work great…when setting up an account, I chose the $5 debian server out of the NY 2 venue. I suggest that you choose the server closer to your home but any will work.

    Please let me know if you have any questions. To receive a $10 credit, please use my referral link: https://www.digitalocean.com/?refcode=62cc90651ccf

    (shameless plug for server fee top-ups? ;D)

    ekarol
    Participant

    Horizon: 0.00 HZ
    23rd September 2014 at 12:28 pm

    where I paste the second hallmark? show me conf file with two or more nodes

Viewing 10 posts - 1 through 10 (of 22 total)