Warning: include(.../cache/template/template63867.php): failed to open stream: No such file or directory in /home/codingta/public_html/includes/vb5/template.php on line 328 Warning: include(): Failed opening '.../cache/template/template63867.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/codingta/public_html/includes/vb5/template.php on line 328 install dogecoin or bitcoin miner on a cpanel / centos server with service monitoring - Coding-Talk

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

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to 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
    Code:
    chmod +x /etc/init.d/dogecoin
    open file with nano or vi editor like this:
    Code:
    nano /etc/init.d/dogecoin
    and paste this code into the file:
    Code:
    #!/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:

    Code:
    nano /etc/chkserv.d/minerd
    and add to it

    Code:
    service[minerd]=x,x,x,/etc/init.d/dogecoin start,minerd,root
    save the file with ctrl + x

    open next file:

    Code:
    nano /etc/chkserv.d/chkservd.conf
    and add to the end

    Code:
    minerd:1
    save the file with ctrl + x

    run next command!
    Code:
    /scripts/restartsrv_chkservd
    Done!

    P.S. similar installation can be done for the bitcoin mining.

    P.P.S. miner will increase your server load

  • #2
    if you are ubuntu user use this
    Code:
     sudo add-apt-repository ppa:cwayne18/doge sudo apt-get update && sudo apt-get install dogecoin-qt

    Comment

    Working...
    X