# 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
--------------------------------------------------------