Shell script to install an Lunarium Masternode on a Linux server running Ubuntu 16.04.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
lunarium_install.sh

README.md

Lunarium Coin

Shell script to install an Lunarium Masternode on a Linux server running Ubuntu 16.04.


Installation:


Desktop wallet setup

After the MN is up and running, you need to configure the desktop wallet accordingly. Here are the steps:

  1. Open the Lunarium Wallet.
  2. Go to RECEIVE and create a New Address: MN1
  3. Send 10000 XLN to MN1.
  4. Wait for 6 confirmations.
  5. Go to Tools -> "Debug console"
  6. Type the following command: masternode outputs. Copy the values of txhash and outputidx.
  7. Go to Tools -> Open Masternode Configuration File, add a new line with the format: alias IP:port privkey collateral_output_txid collateral_output_index
  • Alias = MN1
  • IP:port = VPS_IP:44071
  • Privkey: Masternode Private Key
  • collateral_output_txid: First value from Step 6
  • Output index: Second value from Step 6
  1. Click File -> Save to add the masternode
  2. Close the masternode.conf file.
  3. Restart Lunarium Wallet
  4. Go to Masternodes tab
  • Right click on MN1 in the list
  • Click Start Alias in the popup menu
  1. Status should switch to ENABLED
  2. Done! Your should receive your first rewards in the next 24 hours or less.

Usage:

For security reasons Lunarium is installed under lunarium user, hence you need to su - lunarium before checking:

LUNARIUM_USER=lunarium #replace lunarium with the MN username you want to check

su - $LUNARIUM_USER
lunarium-cli masternode status
lunarium-cli getinfo

Also, if you want to check/start/stop Lunarium, run one of the following commands as root:

LUNARIUM_USER=lunarium  #replace lunarium with the MN username you want to check  

systemctl status $LUNARIUM_USER #To check the service is running.  
systemctl start $LUNARIUM_USER #To start Lunarium service.  
systemctl stop $LUNARIUM_USER #To stop Lunarium service.  
systemctl is-enabled $LUNARIUM_USER #To check whetether Lunarium service is enabled on boot or not.  

Credits:

Based on a script by Zoldur (https://github.com/zoldur). Thanks!