How to mine coins in linux-tutorial

Works on Linux Ubuntu 14.04,13.10 and others
This sample is for dogecoin
Paste in or write one line at the time.
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile
This will update and install the necessary building blocks. We are going to use Supervisor later on and htop will show you some cool information about the performance of the CPU.
sudo apt-get update
sudo apt-get install build-essential libcurl4-openssl-dev
sudo apt-get install supervisor htop
This will download the miner.
wget http://sourceforge.net/projects/cpuminer/files/pooler-cpuminer-2.3.3.tar.gz
tar xzf pooler-cpuminer-2.3.3.tar.gz
cd cpuminer-2.3.3
“-O3″, not a zero, it is an “o” – like in “Ooooh”.
./configure CFLAGS="-O3"
make
mkdir -p /var/log/supervisor
touch /etc/supervisor/conf.d/doge.conf
nano /etc/supervisor/conf.d/doge.conf
You are now inside Supervisor, this will keep the miner running even when you close Putty.
change yourworkername and your password with yours.
[program:dogecoin]
command=/root/cpuminer-2.3.3/minerd --url stratum+tcp://stratum.fast-pool.com:80 --userpass yourworkername:your password
stdout_logfile=/var/log/supervisor/%(program_name)s.log
stderr_logfile=/var/log/supervisor/%(program_name)s.log
autorestart=true
To save and exit Supervisor press “ctrl+X”, then “Y” and hit “Enter”.Next
sudo /etc/init.d/supervisor stop
sudo /etc/init.d/supervisor start
tail -f /var/log/supervisor/dogecoin.log
YOU ARE NOW MINING COINS!