Skip to content

Instantly share code, notes, and snippets.

@emre
Last active January 1, 2016 01:39
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save emre/8074396 to your computer and use it in GitHub Desktop.
Save emre/8074396 to your computer and use it in GitHub Desktop.
qrk installer script for windows azure instances (ubuntu 13.10)
#!/bin/bash
read -p "enter your wallet address: " WALLETID
sudo apt-get update
sudo apt-get install -y git automake g++ build-essential libcurl4-openssl-dev libjansson4 libjansson-dev
if [ -d $(pwd)/quarkcoin-cpuminer ]; then
rm -r $(pwd)/quarkcoin-cpuminer
fi
git clone https://github.com/uncle-bob/quarkcoin-cpuminer
cd quarkcoin-cpuminer
./autogen.sh
./configure CFLAGS="-O3"
make
if [ -e /etc/supervisor/conf.d/quark.conf ]; then
sudo rm -f /etc/supervisor/conf.d/quark.conf
fi
echo "[program:quark]
command=/home/azureuser/quarkcoin-cpuminer/minerd -q -a quark -o stratum+tcp://lowend.fm:8372 -t 8 -u $WALLETID
stdout_logfile=/home/azureuser/quark.log
stderr_logfile=/home/azureuser/quark_log
autorestart=true" | sudo tee -a /etc/supervisor/conf.d/quark.conf
sudo apt-get install supervisor -y
sudo /etc/init.d/supervisor stop
sudo /etc/init.d/supervisor start
ps aux|grep minerd
@emre
Copy link
Author

emre commented Dec 21, 2013

give these commands on /home/azureuser/

wget https://gist.github.com/emre/8074396/raw/f37af58384fe1723dfb8411e1826dc53a9f2a668/qrkinstall.sh -O qrkinstall.sh
chmod +x qrkinstall.sh
./qrkinstall.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment