PEPE / MEME Master Node 2.6.2.0

by alohatone
19 deployments · 4 still active · last rev. 2 days ago

Memetic Master Node - Ideally this is run on a 2CPU Linode.

What the stackscript does:

Step 1 : Installs docker
Step 2 : Installs MN's from github : https://github.com/CryptoHawaii-com/memetic-mn-docker

This will create (2) master nodes:

1. Seeding server on port 29377 and RPC port 29376
2. Masternode on port 29477 and RPC port 29476

*all rewards goto you for helping out with the seeding.


What you need to do:

1. Wallet - create master node - IP of your node:29477
2. Fund the received address with 15,000 coins (it may or may not charge you) it'll be live after 15 confirmations.
3. Get config and input in the 1-time entry URL @ the IP of your server
- After you input the key the website will never work again (if you make a mistake you'll have to reinstall)
4. Click on your MN to start receiving payments.

Notes :

Help us out, sign the petition for Hawaii to allow Coinbase: http://cryptohawaii.com

If you want assistance email info@cryptohawaii.com

Compatible with: Ubuntu 16.04 LTS
						#!/bin/bash

export DEBIAN_FRONTEND=noninteractive
apt -y -o Acquire::ForceIPv4=true update
apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" upgrade
apt -y install apt-transport-https ca-certificates curl software-properties-common git
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt -y -o Acquire::ForceIPv4=true update
apt -y install docker-ce
systemctl start docker
systemctl enable docker
docker pull ubuntu

ufw default allow outgoing
ufw default deny incoming
ufw allow ssh/tcp
ufw limit ssh/tcp
ufw allow 29377/tcp
ufw allow 29387/tcp
ufw logging on
ufw --force enable

apt -y install fail2ban
systemctl enable fail2ban
systemctl start fail2ban

apt-get -y install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libminiupnpc-dev libgmp3-dev libdb-dev libdb++-dev libgmp3-dev
cd /root
git clone https://github.com/pepeteam/pepecoin.git
cd pepecoin/src
make -f makefile.unix USE_UPNP=-1

#BOOTSTRAP CHAIN FILE
apt-get -y install unzip
cd /root
mkdir chainfile
cd chainfile
wget http://108.61.216.160/cryptochainer.chains/chains/PepeCoin_blockchain.zip
unzip PepeCoin_blockchain.zip


cd /root/pepecoin/src
wget https://raw.githubusercontent.com/CryptoHawaii-com/pepecoin-Dockerfiles/master/pepecoin/Dockerfile
docker build -t "pepecoin" .
docker run -d --restart always -p 29377:29377 --name pepecoin pepecoin
cd /root/chainfile
docker cp ./ pepecoin:/root/.pepecoin/
docker stop pepecoin
docker start pepecoin


rm /root/pepecoin/src/Dockerfile
wget https://raw.githubusercontent.com/CryptoHawaii-com/pepecoin-Dockerfiles/master/pepecoinmasternode/Dockerfile
docker build -t "pepecoinmasternode" .

#SETUP WEB SERVER FOR MASTER NODE KEY
apt-get -y install apache2 php libapache2-mod-php php-mcrypt inotify-tools pwgen
systemctl start apache2
a2ensite default-ssl 
a2enmod ssl 
systemctl restart apache2 
ufw allow 443/tcp

#DOWNLOAD WEBFORM AND SCRIPT
rm -rf /var/www/html/index.html
cd /var/www/html
wget https://raw.githubusercontent.com/CryptoHawaii-com/pepecoin-Dockerfiles/master/webscript/index.html
wget https://raw.githubusercontent.com/CryptoHawaii-com/pepecoin-Dockerfiles/master/webscript/masternode.php
mkdir /var/www/masternodeprivkey
touch /var/www/masternodeprivkey/masternodeprivkey.txt
chown -R www-data.www-data /var/www/masternodeprivkey
chown -R www-data.www-data /var/www/html
cd /root
wget https://raw.githubusercontent.com/CryptoHawaii-com/pepecoin-Dockerfiles/master/scripts/masterprivactivate.sh
chmod 755 /root/masterprivactivate.sh
/root/masterprivactivate.sh &