Hi there,
after googling and testing different settings out i have made this install instructions for those who would like to run a dogecoin miner on their cpanel / centos server. Including the instructions for monitoring script which restarts your miner in case it crashes.
Here we go:
first of all sign up at http://doge.poolerino.com/index.php and create your worker for mining,
after that you have to open port tcp 3333 in the firewall of your server, a good description can be found here: http://www.liquidweb.com/kb/opening-...your-firewall/
in next step login as a root user to your server via ssh client and add following commands one after another: (every code block means next command)
yum update
yum install git automake gcc make curl-devel
cd /usr/src
wget http://sourceforge.net/projects/cpuminer/files/pooler-cpuminer-2.4.tar.gz
tar xzf pooler-cpuminer-*.tar.gz
cd cpuminer-*
./configure CFLAGS="-O3“
make
touch /etc/init.d/dogecoin
chmod +x /etc/init.d/dogecoin
open file with nano or vi editor like this:
nano /etc/init.d/dogecoin
and paste this code into the file:
#!/bin/sh
DAEMON=/usr/src/cpuminer-2.4/minerd
PARAMETERS='-B -o stratum+tcp://doge.poolerino.com:3333 --userpass=poolerinousername.workername:workerpassword'
start() {
echo -n "starting up $DAEMON"
RUN=`cd / && $DAEMON $PARAMETERS >& /dev/null`
if [ "$?" -eq 0 ]; then
echo "Done."
else
echo "FAILED."
fi
}
stop() {
killall $DAEMON
}
status() {
killall -0 $DAEMON
if [ "$?" -eq 0 ]; then
echo "Running."
else
echo "Not Running."
fi
}
case "$1" in
start)
start
;;
restart)
stop
sleep 2
start
;;
stop)
stop
;;
status)
status
;;
*)
echo "usage : $0 start|restart|stop|status"
;;
esac
exit 0
save the file with ctrl + x
open next file:
nano /etc/chkserv.d/minerd
and add to it
service[minerd]=x,x,x,/etc/init.d/dogecoin start,minerd,root
save the file with ctrl + x
open next file:
nano /etc/chkserv.d/chkservd.conf
and add to the end
minerd:1
save the file with ctrl + x
run next command!
/scripts/restartsrv_chkservd
Done!
P.S. similar installation can be done for the bitcoin mining.
P.P.S. miner will increase your server load
Advertise your mobile site for FREE with AdTwirl