Skip to content

Instantly share code, notes, and snippets.

@Inigovd
Last active June 9, 2018 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Inigovd/bc5013255db7d4b2efefa325acbf76ac to your computer and use it in GitHub Desktop.
Save Inigovd/bc5013255db7d4b2efefa325acbf76ac to your computer and use it in GitHub Desktop.
##########
# Usage:
#
# wget https://gist.githubusercontent.com/Inigovd/bc5013255db7d4b2efefa325acbf76ac/raw/50dccd7f3b22a8bb7d88a93a75f2680d98b33186/solaris-masternode-setup.sh
# chmod +x solaris-masternode-setup.sh
# ./solaris-masternode-setup.sh <your_masternode_genkey_here>
#
# By Inigo, for https://nodesupply.com
#
##########
# Write variables
privkey=$1
# Part 1, download wallet
mkdir /root/solaris
cd /root/solaris
wget https://github.com/Solaris-Project/Solaris/releases/download/v2.8.0.0/solaris-daemon-2.8.0.0-linux64.tar.gz
tar xzvf solaris-daemon-2.8.0.0-linux64.tar.gz
cp solarisd solaris-cli /usr/local/bin
solarisd -daemon
# Part 2, create solaris.conf
IP=$(curl http://checkip.amazonaws.com/)
PW=$(date +%s | sha256sum | base64 | head -c 32 ;)
echo "==========================================================="
pwd
echo "rpcallowip=127.0.0.1" >> /root/.solaris/solaris.conf
echo "rpcuser=solarisusernodesupply">> /root/.solaris/solaris.conf
echo "rpcpassword="$PW >> /root/.solaris/solaris.conf
echo "daemon=1" >> /root/.solaris/solaris.conf
echo "staking=1" >> /root/.solaris/solaris.conf
echo "listen=1" >> /root/.solaris/solaris.conf
echo "server=1" >>/root/.solaris/solaris.conf
echo "externalip="$IP":60020" >>/root/.solaris/solaris.conf
echo "masternodeaddr="$IP":60020" >>/root/.solaris/solaris.conf
echo "masternode=1" >>/root/.solaris/solaris.conf
echo "masternodeprivkey="$privkey >>/root/.solaris/solaris.conf
cat /root/.solaris/solaris.conf
# Part 3, start daemon
solarisd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment