Install CPU Miner on Ubuntu and Mine FTC

# install dependencies
sudo apt-get install autoconf automake libcurl4-nss-dev gcc git

# download cpuminer
git clone https://github.com/pooler/cpuminer

# cd to directory
cd cpuminer

# generate make files
./autogen.s
./configure CFLAGS="-O3"

# install
sudo make install

# run on wemineftc mining pool
sudo minerd -o stratum+tcp://stratum.wemineftc.com:4444 -u [username].[worker] -p [worker password]

#cron script to keep you mining whenever your computer is on
sudo vi /usr/sbin/mine_cron
------------------------------------------------------
#!/bin/bash
ps cax | grep -v grep | grep minerd > /dev/null
result=$?
echo "${result}"
if [ "${result}" -eq "0" ] ; then
        echo "minderd is already running" #>>/home/work/cgcron
else
        sudo minerd -o stratum+tcp://stratum.wemineftc.com:4444 -u [username].[worker] -p [worker password]
fi
-------------------------------------------------------
sudo chmod a+x /usr/sbin/mine_cron

#run it however often you like
crontab -e
--------------------------------------------------------
# m h  dom mon dow   command
  * *  *   *   *     /usr/sbin/mine_cron
--------------------------------------------------------


2 comments:

  1. This is exactly the information I'm looking for, I couldn't have asked for a simpler read with great tips like this... Thanks! responsive wordpress theme

    ReplyDelete
  2. I am very much pleased with the contents you have mentioned. I wanted to thank you for this great article..check out this

    ReplyDelete