1. Install
# cd ~/
# sudo apt-get install build-essential libssl-dev libdb++-dev libboost-all-dev libqrencode-dev libminiupnpc-dev
# git clone https://github.com/HcashOrg/Hshare.git
# cd Hshare
# ./build.sh <---- The finally result was failed.
# cd src
# make -f makefile.unix <---- You will find the "hshared" in src folder.
2. Add systemd
# sudo vim /lib/systemd/system/hshared.service
[Unit]
Description=Hshare Client
[Service]
Type=simple
ExecStart=/home/ubuntu/Hshare/src/hshared -datadir=/Your_Block_Data_Path
Restart=on-failure
User=ubuntu
[Install]
WantedBy=multi-user.target
:wq!
3. Enable systemd
# sudo systemctl enable hshared
4. Add hshare.conf
# sudo vim /Your_Block_Data_Path/hshare.conf
server=1
listen=1
enableaccounts=1
staking=0
rpcport=9487 <--- You can change it
rpcallowip=192.168.0.0/24 <--- You can change it
rpcuser=1qaz2wsx <--- You can change it
rpcpassword=1q2w3e4r <--- You can change it
:wq!
5. Start systemd
# sudo systemctl start hshared