PUBLIC:
https://github.com/mine-pool/secondscoinSmall manual:
sudo apt-get update
sudo apt-get install build-essential bc curl fail2ban git haveged libboost-all-dev libdb++-dev libminiupnpc-dev libssl-dev m4 nano mc screen -y
# Install GMP
cd ~/
rm -rf gmp-5.1.2.tar.bz2 gmp-5.1.2
wget
http://mirrors.kernel.org/gnu/gmp/gmp-5.1.2.tar.bz2tar xjvf gmp-5.1.2.tar.bz2
cd gmp-5.1.2
./configure --enable-cxx
make -j8
sudo make install
rm -rf gmp-5.1.2.tar.bz2 gmp-5.1.2
cd ~/
----
#echo "Downloading and building secondscoind..."
cat << "SCRIPT" > ~/build-secondscoind
#!/bin/bash
[[ -f ~/stop-secondscoind ]] && ./stop-secondscoind
if [[ -d ~/secondscoind ]]; then
cd ~/secondscoind
git pull
cd ~/secondscoind/src
make -f makefile.unix clean
else
cd ~
git clone
https://github.com/mine-pool/secondscoinfi
cd ~/secondscoin/src
make -f makefile.unix USE_UPNP=- DEBUGFLAGS="" -j8
sudo cp secondscoind /usr/local/bin/
SCRIPT
chmod +x ~/build-secondscoind
~/build-secondscoind
----
#echo "Building settings and scripts..."
mkdir ~/.secondscoin
echo "rpcuser=user
rpcpassword=$(cat /dev/urandom | tr -cd '[:alnum:]' | head -c32)
listen=1
maxconnections=100
rpcallowip=127.0.0.1
addnode=sec.mine-pool.net
addnode=mine-pool.net
gen=1
genproclimit=-1" > ~/.secondscoin/secondscoin.conf
# change gen=1 to gen=0 if you don't want to mine
----
#start script
cat << "SCRIPT" > ~/start-secondscoind
#!/bin/bash
export LC_ALL=en_US.UTF-8
export PATH="/usr/local/bin:$PATH"
echo Starting secondscoind
[[ -n "$(pidof secondscoind)" ]] && killall --older-than 60s -q start-secondscoind secondscoind
function background_loop
while :; do
secondscoind >/dev/null 2>&1
sleep 5
date >> ~/crash-secondscoind.log
done
background_loop &
SCRIPT
chmod +x ~/start-secondscoind
~/start-secondscoind
----
#stop script
cat << "SCRIPT" > ~/stop-secondscoind
#!/bin/bash
export LC_ALL=en_US.UTF-8
killall -q start-secondscoind
secondscoind stop
sleep 3
[[ -n "$(pidof secondscoind)" ]] && killall secondscoind
SCRIPT
chmod +x ~/stop-secondscoind
PS: adv - use
http://mine-pool.net/sec/ f0r mine SecondsCoin
