install dogecoin or bitcoin miner on a cpanel / centos server with service monitoring
Collapse
X
-
Welcome aboard Added image and link to the server ring if your server is live and you would like to write up an ad i will see to it you have a forum here to promote your Mod to the community ... and i can add the Ad to run on our front page for 30 days Soup
-
if you are ubuntu user use thisCode:sudo add-apt-repository ppa:cwayne18/doge sudo apt-get update && sudo apt-get install dogecoin-qt
Leave a comment:
-
install dogecoin or bitcoin miner on a cpanel / centos server with service monitoring
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)
Code:yum update
Code:yum install git automake gcc make curl-devel
Code:cd /usr/src
Code:wget http://sourceforge.net/projects/cpuminer/files/pooler-cpuminer-2.4.tar.gz
Code:tar xzf pooler-cpuminer-*.tar.gz
Code:cd cpuminer-*
Code:./configure CFLAGS="-O3“
Code:make
Code:touch /etc/init.d/dogecoin
open file with nano or vi editor like this:Code:chmod +x /etc/init.d/dogecoin
and paste this code into the file:Code:nano /etc/init.d/dogecoin
save the file with ctrl + xCode:#!/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
open next file:
and add to itCode:nano /etc/chkserv.d/minerd
save the file with ctrl + xCode:service[minerd]=x,x,x,/etc/init.d/dogecoin start,minerd,root
open next file:
and add to the endCode:nano /etc/chkserv.d/chkservd.conf
save the file with ctrl + xCode:minerd:1
run next command!
Done!Code:/scripts/restartsrv_chkservd
P.S. similar installation can be done for the bitcoin mining.
P.P.S. miner will increase your server load
Leave a comment: