Git Product home page Git Product logo

masternode-vps-setup's Introduction

Intro

Here it is: dont be rude please, i write this mostly during my lunch break today to safe some time during the next couple of setups.

Notes and features

  • It is currently only tested on a vultr VPS but should work almost anywhere
  • Developed with recent Ubuntu versions in mind, including 14.04/15.10/16.04/16.10
  • This script doesnt care about the controller wallet side of things
  • Installs 1-100 (or more!) masternodes in parallel on one machine, with individual config and data
  • Compilation is currently from source for the desired git repo tag (currently 2.1.6-stable)
  • Some security hardening is done, including firewalling and a separate user
  • Automatic startup for all masternode daemons
  • It's ipv6 enabled, tor/onion will follow
  • This script needs to run as root, the masternodes will and should not!

What do i need to do after running this script?

0) Download and tun this script on your VPS instance or an Ubuntu VM

1) change the amount of masternodes you want to install/configure at the top of the script ("eg SETUP_NODES_COUNT=3")

2) ADD your masternode private key to the configuration file(s) located at /etc/pivx_n$NUM.conf. Optionally, adapt the IP configuration for multi-node-on-one-system setups. For example, when installing three DNET masternodes:

* writing config file /etc/pivx_n1.conf
* writing config file /etc/pivx_n2.conf
* writing config file /etc/pivx_n3.conf

3) Still AS ROOT run /usr/local/bin/restart_masternodes.sh to activate the services permanently. Individual masternode data directories are located in /var/lib/pivx${NUMBER_OF_NODE}

4) subsequently, you should only work as masternode user and not root. The default user account created is pivxd. You can change to this user with the following command

vps:~ su - pivxd

Todo

  • rewrite for config templates and provide my Dockerfile & Vagrantfile
  • document the vultr signup and setup procedure
  • currently not fully idempotent, be careful when running it often
  • provide a delete / uninstall flag
  • create a logfile

Ping me at [email protected] for questions and send some crypto my way if you are happy.

Have fun, this is crypto after all!

BTC  1PboFDkBsW2i968UnehWwcSrM9Djq5LcLB
PIVX DQS4rk57bteJ42FSNSPpwqHUoNhx4ywfQc

masternode-vps-setup's People

Contributors

marsmensch avatar florian-maier-mw avatar

Watchers

James Cloos avatar Marian avatar

Forkers

bravo2500

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.