Shell script to install a CampusCoin Masternode on a Linux server running Ubuntu 16.04.
*Use it on your own risk.
The Following Table represents the CC Masternode Tiers. It's a good idea to choose what tier you are looking to start prior to starting this setup.
Tier | Amount Required |
---|---|
Tier 1 | 500,000 CC |
Tier 2 | 1,000,000 CC |
Tier 3 | 2,000,000 CC |
Sign up for either (referral link) Digital Ocean or Vultr and set up a bare bones VPS. The $5/month option is sufficient for our needs. If you use the DO link above, you will get $100, 60-day credit.
- 1GB / 1CPU
- 25GB SSD
- 1TB Transfer
The install script will take care of the swap file for you.
- Login as root
- Run the following commands
*This step is optional, but highly recommended to secure your VPS.
NodeValet.io | AKcryptoGUY's team developed a fantastic 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 installation steps. Complete to its entirety.
Steps: (automated)
- OS Updates
- System Upgrades
- Favored Packages
- Crypto Packages
(User Selection)
- Create Non-Root User (y/n)
- SSH Config (Enter Port)
- Pass Auth (y/n)
- Firewall Config (y/n)
- Hardening (y/n)
- Ksplice Uptrack (y/n)
- Enhance MOTD (y/n)
- Restart SSH (y/n)
Complete & Reconnect to VPS
wget https://raw.githubusercontent.com/BKCrypto1/CC-MN/master/cc-install.sh && bash cc-install.sh
CC-Install will guide you through the installation of the CampusCoin Masternode Service.
Steps:
- Installation of Dependencies
- (optional) Masternode Private Key - If you have one generated, you can place one here. Otherwise, press enter to be provided with a newly generated key.
- Download CC Blockchain Snapshot
- CC Server Start
Complete. You will be provided with a bunch of masternode information. Save this information for the next step.
wget https://raw.githubusercontent.com/BKCrypto1/CC-MN/master/update_cc_mn.sh && bash update_cc_mn.sh
Note: If you have used this script in the past, you may need to remove the old update file before downloading
rm -rf update_cc_mn.sh
After the MN is up and running, you need to configure the desktop wallet accordingly.
- Open the CampusCoin (CC) Coin Desktop Wallet.
- Go to RECEIVE and create a New Address: MN1
- Send the required CC to MN1. (Choose which tier you want.)
- Wait for at least 15 confirmations.
- Go to Tools -> "Debug console"
- Type the following command:
masternode outputs
- Go to Tools -> "Open Masternode Configuration File"
- 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
- Save and close the file.
- Go to Tools -> "Open Wallet Configuration File"
- Add the following entry:
externalip=IP:port
- Save and close the file.
- Close and Restart Wallet.
- Go to Masternode Tab. If this tab is not shown, please enable it from: Settings - Options - Wallet - Show Masternodes Tab
- 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.
- 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
cc-cli getinfo
cc-cli mnsync status
cc-cli masternode status
Also, if you want to check/start/stop CampusCoin , run one of the following commands as root:
Ubuntu 16.04:
systemctl status CampusCoin #To check the service is running.
systemctl start CampusCoin #To start CampusCoin service.
systemctl stop CampusCoin #To stop CampusCoin service.
systemctl is-enabled CampusCoin #This will check if the CampusCoin service is enabled on boot or not
If you need any assistance, feel free to stop by the CampusCoin Discord or CampusCoin Telegram. I go by the name of BK in both Channels.
CC Donations: CNUfWFCDHH3711MbbF7Q7zTf7ctU6LkETi