Last active
September 9, 2024 21:33
-
-
Save Inigovd/bc5013255db7d4b2efefa325acbf76ac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########## | |
# 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