How to install a HEAT Node mining server
Hello,
I will show you how to install a Heat Node mining server in a few minutes in this article.
More info about Heat : http://heatledger.com/
Before we start :
- Order a VPS, for example at ovh.com, Ubuntu 64 bits.
- Create an account at heatwallet.com and write down your account number and passphrase.
- Open your terminal on your computer to enter command lines.
1. In the terminal enter
ssh [email protected]
then enter the root password when asked
2. Packages and updates
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install default-jdk
sudo apt-get install unzip
sudo apt-get install curl
3. Get the app and go inside the app folder (Get the lastest version, now it's 1.0.1)
Check for new releases : https://github.com/Heat-Ledger-Ltd/heatledger/releases
wget https://github.com/Heat-Ledger-Ltd/heatledger/releases/download/v1.0.1/heatledger-1.0.1.zip
unzip heatledger-1.0.1.zip
cd heatledger-1.0.1
4. Edit the conf file
vi conf/heat-default.properties
Press I to go in insert mode and change these fields
heat.apiKey=something (Change this by anything)
heat.myAddress=Public IP address
heat.myPlatform= (Your Heat account number, create an account at heatwallet.com)
heat.maxNumberOfConnectedPublicPeers=500
heat.myHallmark=Your Hallmark generated from https://heatwallet.com/api/#!/Tools/encode (you will need your secret passphrase to generate your Hallmark and the IP of your server)
Press ESC once it's edited
Enter :w to save
Enter :q to quite
5. Start the blockchain
screen -mS heatledger bin/heatledger
Wait for full sync with the blockchain.
Once you have downloaded the lastest block from this page https://heatwallet.com/#/explorer you can start forging.
You can also check that your node is online at https://heatwallet.com/nodes.cgi (it might take a few minutes before it shows)
6. Launch forging
Open a new tab in the terminal (Cmd+T on Mac).
Log in again in your server if you are not logged in (step 1).
Go inside the heat folder by using cd heatledger-1.0.1
Replace YOURAPIKEY by your ApiKey then enter this command :
read -s KEY ; curl -k -s "http://localhost:7733/api/v1/mining/start/${KEY// /%20}?api_key=YOURAPIKEY" ; unset KEY
Enter your passphrase and then the enter button.
If you see something like {"deadline":55985,"hitTime":110535218} it's forging.
You are done.
Tips :
If you close the window and want to come back, just log in in the server again (step 1) and type screen -r, if the window doesn't show directly type screen -r ID (example : screen -r 2230) the ID can be found by typing screen -r.
Check on https://heatwallet.com/nodes.cgi that your node is running.
You can check your rewards at https://heatbrowser.com/report.html
Your can have a view of your account at http://heatnodes.org/?ac=ACCOUNT&page_id=136 (replace ACCOUNT by your Heat account number)
You can also check other information at http://heatnodes.org/?page_id=329
Useful commands :
List folders : ls -l
Stop Node : CTRL + C
Screen help : https://www.tecmint.com/screen-command-examples-to-manage-linux-terminals/
Google cloud offers a free trial so you can deploy a free virtual machine and host a node for one year.