install dogecoin or bitcoin miner on a cpanel / centos server with service monitoring

Started on the old forum in June 2014 · view the original in the archive · old links redirect here

#bitcoin #centos #cpanel #dogecoin #monitoring

2 replies · 1,676 views · started 12 years ago · 2 min read

3 participants
GumSlone Administrator Principal · 1,690 posts #1

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

👍 1
Share

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

shushant Developer · 207 posts #2

if you are ubuntu user use this

 sudo add-apt-repository ppa:cwayne18/doge sudo apt-get update && sudo apt-get install dogecoin-qt 
CliftonSox Junior · 10 posts #3

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

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close