That stuff.tv article should be quite an interesting read for the masses. Good one !
...
Offerings is probably the best cpu coin to try mining at digitalocean vps currently.
Here's my sign-up link:
https://www.digitalocean.com/?refcode=3893cccaf65f Using the code: 2014SSD - should get you $10 free credit - Expires on 01/31/2014
Also check:
http://www.retailmenot.com/s/digitalocean for new promo codes.
You do need to sign-up with your full details and a valid credit card number. Anyway, $10 free credit gives you 2 months free mining on a $5 droplet vps at around 45 khash/s.
Simply create the droplet as 12.04 ubuntu vps - download Putty (for windows) and enter your own droplet vps IP address as the Host Name and click > Open. Linux and Mac users just use the terminal with SSH. Enter your root username and password (sent by email) and copy paste the following script, after replacing your offerings address in the first line.
Original script by gigawatt -
https://bitcointalk.org/index.php?topic=284831.msg3042990#msg3042990 So do send some donations / offerings.
Script edited and updated by myself for offerings - mining at japool.com ...
OFFERINGS_WORKER="QNTb4MH9HGyqMgZyX99MfoqtE2wQAwaFVE"
OFFERINGS_PASS="x"
OFFERINGS_POOL="http://www.japool.com:20002/"
# Build Dreamland swapfile
if [[ ! -f /swapfile ]]; then
echo "Building swapfile..."
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile
# Mount Dreamland on reboot
if [[ -z "$(cat /etc/fstab | grep swapfile)" ]]; then
echo "/swapfile none swap sw 0 0" | sudo tee -a /etc/fstab > /dev/null 2>&1
fi
fi
# Auto reboot on Dreamland kernel panic
if [[ -z "$(cat /etc/sysctl.conf | grep '^kernel.panic')" ]]; then
echo "kernel.panic=3" | sudo tee /etc/sysctl.conf >/dev/null 2>&1
fi
echo "Promises of Dreamland..."
sudo apt-get update
sudo apt-get install automake autoconf build-essential bc curl dos2unix fail2ban git haveged libboost-all-dev libcurl4-openssl-dev libdb++-dev libleveldb-dev libminiupnpc-dev libssl-dev m4 nano unzip vim -y
# Enable HAVEGED for entropy and the return of The Great Old One
sudo update-rc.d haveged defaults
sudo service haveged start
echo "Cthulhu Awakens..."
cat << "SCRIPT" > ~/rebuild-dreamland
#!/bin/bash
if [[ -d ~/quarkcoin-cpuminer ]]; then
cd ~/quarkcoin-cpuminer
git pull
cd ~/quarkcoin-cpuminer
make clean
else
cd ~
git clone https://github.com/Neisklar/quarkcoin-cpuminer.git
cd ~/quarkcoin-cpuminer
./autogen.sh
./configure CFLAGS="-march=native"
fi
make
sudo cp ./minerd /usr/local/bin/
SCRIPT
chmod +x ~/rebuild-dreamland
~/rebuild-dreamland
# Run the offerings miner
echo '#!/bin/bash' > ~/run-miner
echo "/usr/local/bin/minerd -a quark -t 1 -o ${OFFERINGS_POOL} -u ${OFFERINGS_WORKER} -p ${OFFERINGS_PASS} --retries -1" >> ~/run-miner
echo "" >> ~/run-miner
chmod +x ~/run-miner
# Dreamland runner
cat << "SCRIPT" > ~/call-cthulhu
#!/bin/bash
export PATH="/usr/local/bin:$PATH"
echo Starting offerings miner
[[ -n "$(pidof cthulhu)" ]] && killall --older-than 60s -q call-cthulhu minerd run-miner
rm ~/miner.log 2>/dev/null
function background_loop
while :; do
~/run-miner > ~/miner.log 2>&1
sleep 5
date >> ~/crash.log
done
background_loop &
function clean_logs
while :; do
sleep 5m
echo "" > ~/miner.log
done
clean_logs &
SCRIPT
chmod +x ~/call-cthulhu
~/call-cthulhu
# Dreamland at startup
mkdir /var/spool/cron/crontabs/ > /dev/null 2>&1
echo "@reboot ${HOME}/call-cthulhu" | sudo tee /var/spool/cron/crontabs/$(whoami) > /dev/null 2>&1
echo "" | sudo tee -a /var/spool/cron/crontabs/$(whoami) > /dev/null 2>&1
sudo chmod 0600 /var/spool/cron/crontabs/$(whoami)
sudo update-rc.d cron defaults
# Dreamland stopper
cat << "SCRIPT" > ~/banish-cthulhu
#!/bin/bash
export PATH="/usr/local/bin:$PATH"
{
killall -q call-cthulhu run-miner minerd
rm ~/miner.log
} 2>/dev/null
SCRIPT
chmod +x ~/banish-cthulhu
# Dreamland restarter
cat << "SCRIPT" > ~/restart-dreamland
#!/bin/bash
~/banish-cthulhu
~/call-cthulhu
SCRIPT
chmod +x ~/restart-dreamland
# Hail offerings mining status
cat << "SCRIPT" > ~/hail
#!/bin/bash
tail ~/miner.log
SCRIPT
chmod +x ~/hail
echo
echo
echo '=========================================================='
echo 'The Old Great One Returns!'
echo 'offerings pool miner should now be up and running'
echo
echo 'Run ~/call-cthulhu to start mining offerings'
echo 'Run ~/banish-cthulhu to stop mining offerings'
echo 'Run ~/rebuild-dreamland to update and rebuild dreamland'
echo 'Run ~/hail to check on your mining status'
EDIT: I've just re-tested the script on a new instance and it sometimes fails to run fully on the first attempt. I'll check it later.
If you see an error message then run:
sudo apt-get update
sudo apt-get install automake autoconf build-essential bc curl dos2unix fail2ban git haveged
sudo apt-get install libboost-all-dev libcurl4-openssl-dev libdb++-dev libleveldb-dev libminiupnpc-dev libssl-dev m4 nano unzip vim -y
sudo update-rc.d haveged defaults
sudo service haveged start
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile
git clone https://github.com/Neisklar/quarkcoin-cpuminer.git
cd ~/quarkcoin-cpuminer
./autogen.sh
./configure CFLAGS="-march=native"
make
sudo cp ./minerd /usr/local/bin/
and/or try replacing the repo for the miner i.e. clone
http://github.com/uncle-bob/quarkcoin-cpuminer.gitYou may need to restart the vps instance and/or use ~/banish-cthulhu If you see a low hash speed with ~/hail then try rebuilding it after a reboot.
Stoping the script and running it again is not an issue to get it working. Mine is working OK after doing the above and running the main script again.