Linux Masternodeguide

  • 1 Replies
  • 1286 Views
*

chris

  • Globaler Moderator
  • Full Member
  • *****
  • 160
  • +21/-0
    • View Profile
Linux Masternodeguide
« on: 28. February 2016, 20:07:51 »
MASTERNODE BUILD NOTES

Some notes on "How to build a BSD Masternode in Ubuntu server". Using Windows Qt Client to configure.

System requirements

An Ubuntu 14.10 64 bit server is recommended with at least 768MB of memory and 15GB space available when running a Masternode.

Notes

You need exactly 25.000 BSD to run a Masternode. Masternode input must have at least 15 confirmations. Building a new wallet.dat is also recommended (a seperate .conf is needed). Masternode earnings going to this wallet.dat and address. Send only new earned coins away and pay attention for transaction fees. To fix a broken accountaddress 0 (possible when sending huge amounts of coins away), do a self tx of 25.000 BSD.

Start

Open your Windows bitsend-Qt Client and open the debug console.

masternode genkey
copy the generated code to a text file
---
getaccountaddress 0
copy the generated address to a text file
---
encryptwallet "strong password"
Send 25.000 BSD to "address 0"


Rent a Vultr Ubuntu 14.10 64bit server
--------------------------------------
http://www.vultr.com

Vultr accepts Bitcoin payments.
Build Instructions: Ubuntu & Debian

$ adduser <NEW USER>
$ passwd <PSW>
$ gpasswd -a <NEW USER> sudo
---
$ sudo apt-get install build-essential
$ sudo apt-get install libtool autotools-dev autoconf automake libssl-dev
$ sudo apt-get install libboost1.54-all-dev
$ sudo add-apt-repository ppa:bitcoin/bitcoin
$ sudo apt-get install libdb4.8-dev libdb4.8++-dev
$ sudo apt-get install miniupnpc*-dev
$ sudo apt-get install git ntp make g++ gcc autoconf cpp ngrep iftop sysstat unzip
$ sudo update-rc.d ntp enable
$ sudo apt-get update
$ sudo apt-get upgrade
---
optiopnal linux gui: $ sudo apt-get install lubuntu-desktop
---
optional, if problems with boost version:
$ sudo apt-get remove libboost*
$ sudo apt-get purge libboost*
$ sudo apt-get install libboost1.54-all-dev


Swapfile:
---------
$ sudo dd if=/dev/zero of=/swapfile bs=1M count=1024
$ sudo mkswap /swapfile
$ sudo swapon /swapfile


FireWall:
---------
$ sudo apt-get install ufw
$ sudo ufw allow ssh/tcp
$ sudo ufw limit ssh/tcp
$ sudo ufw allow 8886/tcp
$ sudo ufw logging on
$ sudo ufw enable
$ sudo ufw status


Install Bitsend
------------
mkdir .bitsend
cd .bitsend
wget https://github.com/LIMXTEC/BitSend/releases/download/BSD1271/Linux.tar [correct link not avaible]
unzip Linux.tar

$ sudo cp bitsendd /usr/bin
$ sudo chmod 775 /usr/bin/bitsendd


Create a bitsend.conf in nano
-------------------------------
cd .bitsend
nano
---
rpcuser=<anything>
rpcpassword=<anything>
rpcallowip=127.0.0.1
maxconnections=256
listen=1
server=1
daemon=1
masternode=1
promode=1
masternodeprivkey=XXXXXX
externalip=xxx.xxx.xxx.xxx:8886
---
save nano: Ctrl +  O
exit nano: Ctrl +  X
cd


Create CRON
-----------
cd /etc/cron.d
crontab -e
2 (for nano)

at bottom of newly created file, insert:
---
@reboot /usr/bin/bitsendd -shrinkdebugfile    [to start masternode  (or wherever you keep your daemon)]
*/20 * * * * /usr/bin/bitsendd
---
save nano: Ctrl +  O
exit nano: Ctrl +  X
cd


Manually start bitsendd
-------------------------
cd  bitsend
./bitsendd


 Bitsendd commands
------------------
./bitsendd getinfo
./bitsendd masternode list
./bitsendd masternode debug
./bitsendd masternode stop
./bitsendd help
Windows  Bitsend-Qt Client configuration

(if using a seperate wallet.dat, a seperate limecoinx.conf is needed)

---
go to  Bitsend.conf in %appdata%

---
rpcuser=<anything>
rpcpassword=<anything>
maxconnections=256
masternode=1
masternodeprivkey=XXXXXXXXXXXXXXXXXX
masternodeaddr=xxx.xxx.xxx.xxx:8886
---


Windows  Bitsend-Qt Client console
-----------------------------------
masternode start <PSW>


Windows Bitsend-Qt Client console commands
--------------------------------------------
masternode list      <<find your MN IP
masternode debug
masternode stop
getinfo
help

*

nov

  • Newbie
  • *
  • 2
  • +0/-0
    • View Profile
Re: Linux Masternodeguide
« Reply #1 on: 21. April 2017, 17:26:30 »
Thanks for the info.

I am trying to setup masternode on linux Ubuntu.
With masternode controller wallet on macOS.

I am already running masternode for pivx.

But the guide seems to be little different.

Is masternode.conf file used here?

Also bitsend.conf on macOS for pivx does not contain: "masternode=1" and masternode private key and masternode ipaddress.

Could you give exact steps, please?

Also "./bitsend-cli masternode state" command gives me this:

./.bitsendcore/bitsend-cli masternode state
error: {"code":-1,"message":"masternode \"command\"... ( \"passphrase\" )\nSet of commands to execute masternode related actions\n\nArguments:\n1. \"command\"        (string or set of strings, required) The command to execute\n2. \"passphrase\"     (string, optional) The wallet passphrase\n\nAvailable commands:\n  count        - Print number of all known masternodes (optional: 'enabled', 'both')\n  current      - Print info on current masternode winner\n  debug        - Print masternode status\n  genkey       - Generate new masternodeprivkey\n  enforce      - Enforce masternode payments\n  outputs      - Print masternode compatible outputs\n  start        - Start masternode configured in bitsend.conf\n  start-alias  - Start single masternode by assigned alias configured in masternode.conf\n  start-many   - Start all masternodes configured in masternode.conf\n  stop         - Stop masternode configured in bitsend.conf\n  stop-alias   - Stop single masternode by assigned alias configured in masternode.conf\n  stop-many    - Stop all masternodes configured in masternode.conf\n  list         - Print list of all known masternodes (see masternodelist for more info)\n  list-conf    - Print masternode.conf in JSON format\n  winners      - Print list of masternode winners\n  vote-many    - Vote on a Bitsend initiative\n  vote         - Vote on a Bitsend initiative\n"}


Also macOS Bitsend controller wallet with  "masternode=1" in bitsend.conf  is stuck in "Loading masternode cache.."

 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13