Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/masternodes/vps into vps_…
Browse files Browse the repository at this point in the history
…upstream

Updated Phore logo
  • Loading branch information
tohsnoom committed Apr 5, 2018
2 parents deff06f + d9f36ce commit 4ca34e7
Show file tree
Hide file tree
Showing 63 changed files with 530 additions and 195 deletions.
29 changes: 16 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,17 @@ BTC 33ENWZ9RCYBG7nv6ac8KxBUSuQX64Hx3x3

# Install guide on vultr

## How to get VPS server
---

For new masternode owners, **Vultr** is recommended as a VPS hosting provider, but other providers that allow direct root SSH login access and offer Ubunto 16.04 may work.
**NOTE on the VPS choice for starters**

**Vultr** is highly recommended for this kind of setup. I created an [easy step-by-step guide for the VPS provider vultr](/docs/masternode_vps.md) that will guide you through the hardest parts.

You can use the following referral link to sign up with Vultr for VPS hosting:

<a href="https://www.vultr.com/?ref=7316561"><img src="https://www.vultr.com/media/banner_2.png" width="468" height="60"></a>

## Deploy a new system
Many masternode crypto currencies only have incomplete or even non-existing instructions available how to setup a masternode from source.

First, create a new VPS by clicking that small "+" button.

Expand All @@ -46,11 +48,16 @@ You can choose any location. You may wish to have it hosted in a city/country ne

<img src="docs/images/masternode_vps/location-choice.png" alt="VPS location choice" class="inline"/>

## Linux distribution (Ubuntu 16.04 LTS)

Select Ubuntu 16.04.
* 100% auto-compilation and 99% of configuration on the masternode side of things. It is currently only tested on a vultr VPS but should work almost anywhere where IPv6 addresses are available
* Developed with recent Ubuntu versions in mind, currently only 16.04 is supported
* 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 (configurable via config files)
Some security hardening is done, including firewalling and a separate user
* Automatic startup for all masternode daemons
* This script needs to run as root, the masternodes will and should not!
* It's ipv6 enabled, tor/onion will follow

<img src="docs/images/masternode_vps/linux-distribution--ubuntu-1604-lts-.png" alt="VPS location choice" class="inline"/>
## Installation

## VPS size

Expand Down Expand Up @@ -118,13 +125,9 @@ Enter this command to copy the Masternode installation script and install a sing
git clone https://github.com/phoreproject/vps.git && cd vps && ./install.sh -p phore
```

This prepares the system and installs the Phore Masternode daemon. This includes downloading the latest Phore masternode release, creating a swap file, configuring the firewall, and compiling the Phore Masternode from source code. This process takes about 10-15 minutes.

<img src="docs/images/masternode_vps/install-the-desired-masternode-and-amount.png" alt="VPS configuration" class="inline"/>

While that is underway, go back to your local desktop and open phore-qt.
## Examples for typical script invocation

### More complex situations (ignore if you are installing a single masternode on a new VPS)
These are only a couple of examples for typical setups. Check my [easy step-by-step guide for [vultr](/docs/masternode_vps.md) that will guide you through the hardest parts.

If you wish to install more than one masternode on the same VPS, you can add a -c parameter to tell the script how many to configure, so for example this would install three Phore masternodes:

Expand Down
Binary file removed assets/DSTkKH_XUAArpAF.jpg
Binary file not shown.
Binary file added assets/achilles.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/block.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/collage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/cream.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/crown.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/curium.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dyn.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/klks.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/linda.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/mdc.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/node.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/phore.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/smart.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/vegas.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/xcurrency.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/xde2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/xsn.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions config/achilles/achilles.compile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# monkey patching b/c ...
cp ../../config/achilles/rpcrawtxbuild.patch src/
patch -p0 < src/rpcrawtxbuild.patch
# end monkey patching

cd src
make -f makefile.unix USE_UPNP=-
cp achillesd ${MNODE_DAEMON}
6 changes: 6 additions & 0 deletions config/achilles/achilles.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CODENAME=achilles
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/achillesd}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-32507}
GIT_URL=https://github.com/Wintroy/AchillesCoin.git
SCVERSION="master"
NETWORK_BASE_TAG="2023"
11 changes: 11 additions & 0 deletions config/achilles/rpcrawtxbuild.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- src/old_rpcrawtransaction.cpp 2018-03-12 14:49:04.343945839 +0100
+++ src/rpcrawtransaction.cpp 2018-03-12 14:49:22.976741001 +0100
@@ -239,7 +239,7 @@
CTxDestination address;
if (ExtractDestination(pk, address))
{
- const CScriptID& hash = boost::get<const CScriptID&>(address);
+ const CScriptID& hash = boost::get<CScriptID>(address);
CScript redeemScript;
if (pwalletMain->GetCScript(hash, redeemScript))
entry.push_back(Pair("redeemScript", HexStr(redeemScript.begin(), redeemScript.end())));
6 changes: 3 additions & 3 deletions config/bitsend/bitsend.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CODENAME=bitsend
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/bitsendd}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-8886}
GIT_URL=https://github.com/LIMXTEC/BitSend.git
SCVERSION="master"
NETWORK_BASE_TAG="2012"
GIT_URL=https://github.com/LIMXTEC/BitSend
SCVERSION="v0.14.0.5"
NETWORK_BASE_TAG="2012"
8 changes: 4 additions & 4 deletions config/chain/chain.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CODENAME=chain
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/chaincoind}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-51472}
GIT_URL=https://github.com/chaincoin/chaincoin.git
SCVERSION="tags/v0.9.3.2"
NETWORK_BASE_TAG="2002"
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-11994}
GIT_URL=https://github.com/chaincoin-legacy/chaincoin.git
SCVERSION="tags/v0.9.3.3"
NETWORK_BASE_TAG="2022"
9 changes: 6 additions & 3 deletions config/crave/crave.compile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

cd src
make -f makefile.unix USE_UPNP=-
cp craved ${MNODE_DAEMON}
chmod u+x share/genbuild.sh
chmod u+x src/leveldb/build_detect_platform
chmod u+x ./autogen.sh && ./autogen.sh
./configure --disable-dependency-tracking --enable-tests=no --without-gui --without-miniupnpc --with-incompatible-bdb CFLAGS="-march=native" LIBS="-lcurl -lssl -lcrypto -lz"
make
make install
4 changes: 2 additions & 2 deletions config/crave/crave.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CODENAME=crave
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/craved}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-30104}
GIT_URL=https://github.com/CooleRRSA/crave.git
SCVERSION="tags/v2.1.0.3"
GIT_URL=https://github.com/CooleRRSA/crave-ng.git
SCVERSION="tags/v2.5.0.2"
NETWORK_BASE_TAG="2013"
7 changes: 7 additions & 0 deletions config/cream/cream.compile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

cd src && mkdir -p obj/support obj/x11 obj/crypto
cd secp256k1 && chmod u+x ./autogen.sh && ./autogen.sh && ./configure --enable-module-recovery && make && cd ..
chmod u+x leveldb/build_detect_platform
make -f makefile.unix USE_UPNP=-
cp creamd ${MNODE_DAEMON}
6 changes: 6 additions & 0 deletions config/cream/cream.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CODENAME=cream
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/creamd}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-36066}
GIT_URL=https://github.com/creamcoin/CREAM-cryptocurrency.git
SCVERSION="master"
NETWORK_BASE_TAG="2033"
4 changes: 2 additions & 2 deletions config/crowd/crowd.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CODENAME=crowd
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/crowd}
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/crowdcoind}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-33472}
GIT_URL=https://github.com/crowdcoinChain/Crowdcoin.git
SCVERSION="tags/1.0.0"
SCVERSION="tags/1.1.0"
NETWORK_BASE_TAG="2009"
2 changes: 1 addition & 1 deletion config/crown/crown.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ CODENAME=crown
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/crownd}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-9340}
GIT_URL=https://github.com/Crowndev/crowncoin
SCVERSION="tags/v0.12.3.0"
SCVERSION="tags/v0.12.3.5"
NETWORK_BASE_TAG="2017"
2 changes: 1 addition & 1 deletion config/curium/curium.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ CODENAME=curium
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/curiumd}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-12845}
GIT_URL="https://github.com/mrmetech/Curium.git"
SCVERSION="master"
SCVERSION="tags/0.12.0.0"
NETWORK_BASE_TAG="2009"
4 changes: 2 additions & 2 deletions config/dash/dash.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ CODENAME=dash
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/dashd}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-9999}
GIT_URL=https://github.com/dashpay/dash.git
SCVERSION="tags/v0.12.1.5"
NETWORK_BASE_TAG="2009"
SCVERSION="tags/v0.12.2.3"
NETWORK_BASE_TAG="2009"
2 changes: 1 addition & 1 deletion config/desire/desire.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ CODENAME=desire
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/desired}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-9919}
GIT_URL=https://github.com/lazyboozer/Desire.git
SCVERSION="Desire-v.0.12.2.1"
SCVERSION="tags/Desire-v.0.12.2.2"
NETWORK_BASE_TAG="2009"
6 changes: 6 additions & 0 deletions config/dyn/dyn.compile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

./autogen.sh
./configure --disable-dependency-tracking --enable-tests=no --without-gui --without-miniupnpc --with-incompatible-bdb CFLAGS="-march=native" LIBS="-lcurl -lssl -lcrypto -lz"
make
make install
50 changes: 50 additions & 0 deletions config/dyn/dyn.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
################################
# basic settings
################################
txindex=1
logtimestamps=1
listen=1
daemon=1
gen=0
maxconnections=256
bind=XXX_IPV6_INT_BASE_XXX:XXX_NETWORK_BASE_TAG_XXX::XXX_NUM_XXY:XXX_MNODE_INBOUND_PORT_XXX

#############################
# nodes we want to stick to
#############################
# addnode=seed1.xxx.org

################################
# masternode specific settings
################################
dynode=1
#### INSERT YOUR MASTERNODE PRIVATEKEY BELOW ####################################################
dynodepairingkey=HERE_GOES_YOUR_MASTERNODE_KEY_FOR_MASTERNODE_XXX_GIT_PROJECT_XXX_XXX_NUM_XXX
#################################################################################################
#
# b.
# 88b Insert your generated masternode privkey here
# 888b.
# 88888b
# 888888b.
# 8888P"
# P" `8.
# `8.
# `8
#################################################################################################

#############################
# optional indices
#############################
addressindex=1
timestampindex=1
spentindex=1

#############################
# JSONRPC
#############################
server=1
rpcuser=XXX_GIT_PROJECT_XXXrpc
rpcpassword=XXX_PASS_XXX
rpcallowip=127.0.0.1
rpcport=555XXX_NUM_XXX
6 changes: 6 additions & 0 deletions config/dyn/dyn.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CODENAME=dyn
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/dynamicd}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-33300}
GIT_URL=https://github.com/duality-solutions/Dynamic.git
SCVERSION="tags/v2.2.0.0"
NETWORK_BASE_TAG="2222"
4 changes: 2 additions & 2 deletions config/ent/ent.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ CODENAME=ent
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/eternityd}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-4855}
GIT_URL=https://github.com/eternity-group/eternity.git
SCVERSION="tags/v0.12.0.61"
NETWORK_BASE_TAG="2002"
SCVERSION="tags/v0.12.1.6"
NETWORK_BASE_TAG="2002"
2 changes: 1 addition & 1 deletion config/force/force.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ CODENAME=force
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/forced}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-37246}
GIT_URL=https://github.com/forceunited/force.git
SCVERSION="master"
SCVERSION="tags/v3.7.0.0"
NETWORK_BASE_TAG="2012"
6 changes: 6 additions & 0 deletions config/klks/klks.compile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

./autogen.sh
./configure --disable-dependency-tracking --enable-tests=no --without-gui --without-miniupnpc --with-incompatible-bdb CFLAGS="-march=native" LIBS="-lcurl -lssl -lcrypto -lz"
make
make install
69 changes: 69 additions & 0 deletions config/klks/klks.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
################################
# basic settings
################################
txindex=1
logtimestamps=1
listen=1
daemon=1
gen=0
maxconnections=256
bind=XXX_IPV6_INT_BASE_XXX:XXX_NETWORK_BASE_TAG_XXX::XXX_NUM_XXY:XXX_MNODE_INBOUND_PORT_XXX

#############################
# nodes we want to stick to
#############################
# addnode=seed1.xxx.org
addnode=209.250.242.79
addnode=45.63.99.2
addnode=45.77.226.205
addnode=199.247.28.77
addnode=45.32.151.186
addnode=45.63.99.2
addnode=209.250.242.79
addnode=199.247.28.77
addnode=37.187.140.168
addnode=207.148.12.243
addnode=159.65.101.235
addnode=149.210.236.210
addnode=45.76.223.109
addnode=45.32.57.184
addnode=43.224.33.148
addnode=46.105.34.58
addnode=192.210.241.56
addnode=213.183.53.222
addnode=1.236.156.24

################################
# masternode specific settings
################################
masternode=1
#### INSERT YOUR MASTERNODE PRIVATEKEY BELOW ####################################################
masternodeprivkey=HERE_GOES_YOUR_SYSTEMNODE_KEY_FOR_MASTERNODE_XXX_GIT_PROJECT_XXX_XXX_NUM_XXX
#################################################################################################
#
# b.
# 88b Insert your generated systemnode privkey here
# 888b.
# 88888b
# 888888b.
# 8888P"
# P" `8.
# `8.
# `8
#################################################################################################

#############################
# optional indices
#############################
addressindex=1
timestampindex=1
spentindex=1

#############################
# JSONRPC
#############################
server=1
rpcuser=XXX_GIT_PROJECT_XXXrpc
rpcpassword=XXX_PASS_XXX
rpcallowip=127.0.0.1
rpcport=555XXX_NUM_XXX
6 changes: 6 additions & 0 deletions config/klks/klks.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CODENAME=klks
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/klksd}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-51121}
GIT_URL=https://github.com/kalkulusteam/klks.git
SCVERSION="tags/v2.5.1"
NETWORK_BASE_TAG="2111"
5 changes: 5 additions & 0 deletions config/linda/linda.compile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

cd src
make -f makefile.unix USE_UPNP=-
cp Lindad ${MNODE_DAEMON}
6 changes: 6 additions & 0 deletions config/linda/linda.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CODENAME=linda
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/lindad}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-33820}
GIT_URL=https://github.com/Lindacoin/Linda.git
SCVERSION="tags/1.0.1.1"
NETWORK_BASE_TAG="2115"
4 changes: 2 additions & 2 deletions config/magnet/magnet.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ CODENAME=magnet
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/magnetd}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-17177}
GIT_URL=https://github.com/magnetwork/magnet.git
SCVERSION="master"
NETWORK_BASE_TAG="2017"
SCVERSION="tags/v1.3.0"
NETWORK_BASE_TAG="2017"
8 changes: 8 additions & 0 deletions config/mdc/mdc.compile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

cd src/secp256k1 && chmod u+x ./autogen.sh && ./autogen.sh && ./configure --enable-module-recovery && make && make install && cd ../..
chmod u+x ./autogen.sh share/genbuild.sh && ./autogen.sh
./configure --disable-dependency-tracking --enable-tests=no --without-gui --without-miniupnpc --with-incompatible-bdb CFLAGS="-march=native" LIBS="-lcurl -lssl -lcrypto -lz"
make
make install
ldconfig
6 changes: 6 additions & 0 deletions config/mdc/mdc.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CODENAME=mdc
MNODE_DAEMON=${MNODE_DAEMON:-/usr/local/bin/madcoind}
MNODE_INBOUND_PORT=${MNODE_INBOUND_PORT:-21525}
GIT_URL=https://github.com/mccmm/Madcoin-Core
SCVERSION="master"
NETWORK_BASE_TAG="2021"
Loading

0 comments on commit 4ca34e7

Please sign in to comment.