Last active
January 1, 2016 01:39
-
-
Save emre/8074396 to your computer and use it in GitHub Desktop.
qrk installer script for windows azure instances (ubuntu 13.10)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
give these commands on /home/azureuser/