Skip to content

campuscoindev/MASTERNODE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CampusCoin Masternode Deployment

For your convenience, CampusCoin provides a shell script to help install your CampusCoin Masternode on a Linux server running Ubuntu 16.04. It should be noted that your masternode will not contain overly sensitive information. Because of this, the use of 'root' is commonplace, and the masternode is easily replaced, refreshed, or updated. Should you choose to separately store sensitive or confidential information on your masternode, please consider use of SSH keys, hardening scripts, and/or monitoring services. Our focus here is on the CampusCoin Masternode, however a base hardening script and several commands are referenced for your security considerations.

*CampusCoin provides no guarantees to the suitability or fitness of such code. Use at your own discretion and at your own risk.


CampusCoin Masternode Tiers

Please see the following table that outlines the three CampusCoin Masternode Tiers. Before getting underway, it helps if you decide which tier level that you want to operate.

TIER LEVEL CC REQUIRED
TIER I 500,000 CC
TIER II 1,000,000 CC
TIER III 2,000,000 CC

VPS

Nearly any Virtual Server Provider (VPS) may be used. Look for reputable companies that have been around for some time. Some of these companies will advertise their uptime. Higher uptime generally means higher costs. Commonly used is Digital Ocean - https://www.digitalocean.com/pricing or Vultr - https://www.vultr.com/products/cloud-compute/#pricing. You will need only a basic VPS, and the $5.00/month options at each - for our purposes - should be sufficient. When last checked, machines at that price range offered the following specifications:

1 GB Memory 1 vCPU 25GB SSD 1 TB Transfer per month


CampusCoin Installation:

  1. Login as root
  2. Run the following commands

(Optional) VPS Harden - 3rd Party Security Script

*This step is optional, and highly recommended by our longtime supporter BKCrypto1 to secure your VPS. CampusCoin does not control the following script. However, excellent results have been experienced by CampusCoin Masternode Operators. We have personally used this script with success, and find value presenting here.

As BKCrypto1 points out through his page, NodeValet.io | AKcryptoGUY's team developed this robust VPS Hardening script.

git clone https://github.com/akcryptoguy/vps-harden.git && cd vps-harden && bash get-hard.sh

VPS-Harden will guide you through a series of steps to better secure your VPS. If you choose to run it, please complete to its entirety.

# Description How Applied
1. OS Updates Automatic
2. System Upgrades Automatic
3. Favored Packages Automatic
4. Crypto Packages Automatic
5. Create Non-Root User User Prompt Y/N
6. SSH Config User Prompt & Choose Port#
7. Pass Auth User Prompt Y/N
8. Firewall Config User Prompt Y/N
9. Hardening User Prompt Y/N
10. Ksplice Uptrack User Prompt Y/N
11. Enhance MOTD User Prompt Y/N
12. Restart SSH User Prompt Y/N

Once the script completes, please reconnect to your VPS to continue on to the CampusCoin Masternode Installation.


Installation of your CampusCoin Masternode Service (v3.0.2.2)

wget https://github.com/campuscoindev/MASTERNODE/raw/master/cc_mn_install.sh && bash cc_mn_install.sh

CC_MN_Install will guide you through the installation of your New CampusCoin Masternode Service.

Steps:

  1. Installation of Dependencies
  2. (Optional) Masternode Private Key - If you have one generated, you can place one here. If you do not have one, press enter. A new key will be generated.
  3. Download the latest CampusCoin Blockchain Snapshot
  4. CampusCoin Masternode Server Startup

Complete. You will be provided with a bunch of masternode information. Save this information for the next step.

RESOURCE: If Needing To Update or Refresh An EXISTING CampusCoin Masternode Service

wget -N https://github.com/campuscoindev/MASTERNODE/raw/master/cc_mn_update.sh && bash cc_mn_update.sh

REMINDER: If you used this script in the past, the bash script may need to be removed before you can run it again.

rm -rf cc_mn_update.sh

Desktop wallet setup

After your New CampusCoin Masternode is up and running, please configure your desktop wallet accordingly.

  1. Open your CampusCoin (CC) Coin Desktop Wallet.
  2. Go to RECEIVE and create a New Address: MN1
  3. Send the required CC to MN1. (Choose which tier you want.)
  4. Wait for at least 15 confirmations.
  5. Go to Tools -> "Debug console"
  6. Type the following command:
masternode outputs
  1. Go to Tools -> "Open Masternode Configuration File"
  2. Add the following entry:
Alias IP:port MN_PrivateKey MN_Output_txid MN_Output_index
  • Alias: MN1
  • IP:port: VPS_IP:PORT
  • MN_PrivateKey: Masternode Private Key
  • MN_Output_txid: First value from Step 6
  • MN_Output_index: Second value from Step 6
  1. Save and close the file.
  2. Go to Tools -> "Open Wallet Configuration File"
  3. Add the following entry:
externalip=IP:port
  1. Save and close the file.
  2. Close and Restart Wallet.
  3. Go to Masternode Tab. If this tab is not shown, please enable it from: Settings - Options - Wallet - Show Masternodes Tab
  4. Click Update status to see your node. If it is not shown, close the wallet and start it again. Make sure the wallet is unlocked.
  5. Open Debug Console and type: (you can also click the start missing button)
masternode start-missing

or if you need to start a specific MN alias:

startmasternode "alias" 0

VPS Usage:

cc-cli getinfo
cc-cli mnsync status
cc-cli masternode status
cc-cli getblockcount
cc-cli getblockchaininfo
cc-cli getconnectioncount
cc-cli masternode winners
cc-cli getpeerinfo

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

Ubuntu 16.04:

systemctl status CampusCoin      #Checks if the service is running.
systemctl start CampusCoin       #Start your CampusCoin service.
systemctl stop CampusCoin        #Stop your CampusCoin service.
systemctl is-enabled CampusCoin  #Checks if the CampusCoin service is enabled on boot.

Other Potentially Useful Commands:

 cc-cli getnetworkhashps | awk '{print $1/1000000000}'     #Get Network hash Per Second in GH/s
 last -25 -i                                               #Show last 25 successful server logons
 egrep "Failed|Failure|invalid" /var/log/auth.log          #Show server logon attempts

Help:

If you need any assistance, feel free to ask over at our Discord or Telegram channel.


Thank You:

CampusCoin exists because of you, the members of our CampusCoin Community. We cannot function without your ongoing support. We encourage you to participate in our social media, and to tell others of your experience and help our CampusCoin Family to grow. We need your support, and any way you can volunteer will help us to succeed. If you would like to donate to help grow our project, anything you contribute goes right back into building the project.

CampusCoin Project also thanks BKCrypto1 for his ongoing technical contributions, through which we are all grateful.

Thanks,

CampusCoin Project


Type Donation Address
CC Cawn4BSvSuPFHk3wo43Nm85CG8TW1Y2s1H
BTC 16QejfnTNUBhE2JRVmTMCRpi8j2kyqQu22

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages