#!/bin/bash sudo apt-get update -y sudo apt-get upgrade -y sudo apt-get install git build-essential autoconf automake libtool pkg-config libcurl4-openssl-dev libudev-dev libjansson-dev libncurses5-dev -y sudo apt-get install screen htop build-essential autoconf automake libtool pkg-config libcurl4-gnutls-dev libjansson-dev uthash-dev libncursesw5-dev libudev-dev libusb-1.0-0-dev libevent-dev libmicrohttpd-dev libhidapi-dev libgcrypt20-dev libssl-dev -y echo "" git clone https://github.com/wareck/cgminer-gekko.git echo "" git clone https://github.com/wareck/cgminer-lketc.git echo "" git clone https://github.com/wareck/bfgminer.git bfgminer-ftb echo "" git clone https://github.com/wareck/bfgminer.git echo "" git clone https://github.com/wareck/dualminer-cgminer.git echo "" git clone https://github.com/csa402/cgminer-ants3.git echo "" git clone https://github.com/tpruvot/cpuminer-multi.git echo "" sudo usermod -a -G dialout,plugdev $USER sudo cp 01-cgminer.rules /etc/udev/rules.d/ sudo cp 70-bfgminer.rules /etc/udev/rules.d/ echo "" cd cgminer-gekko ./autogen.sh ./configure --enable-gekko make cat <<'EOF'>> go.sh #!/bin/bash ./cgminer -o stratum+tcp://b3v.f2pool.com:1328 -u 1EjmJRoZ5UL7Bd7ujpRFRLK7g1oQt78nSR.Stick -p x --gekko-compac-freq 200 --gekko-2pac-freq 150 EOF chmod +x go.sh cd .. echo "" cd cgminer-lketc ./autogen.sh ./configure --enable-scrypt --enable-zeus --enable-lketc make cat <<'EOF'>> go.sh #!/bin/bash ./cgminer --scrypt -o stratum+tcp://scrypt.eu.mine.zpool.ca:3433 -u D7zsHbdJvoL17mYWXPTDt3XfxNMwgoxuYt -p c=XVG,zap=XVG --lketc-clock 280 --zeus-chips 6 --zeus-clock 328 EOF chmod +x go.sh cd .. echo "" cd dualminer-cgminer ./autogen.sh ./configure --enable-dualminer --enable-scrypt make cat <<'EOF'>> go.sh #!/bin/bash ./cgminer --scrypt -o stratum+tcp://scrypt.eu.mine.zpool.ca:3433 -u D7zsHbdJvoL17mYWXPTDt3XfxNMwgoxuYt -p c=XVG,zap=XV EOF chmod +x go.sh cd .. echo "" cd bfgminer-ftb ./autogen.sh ./configure --enable-scrypt --enable-futurebit --disable-gridseed --disable-zeusminer --disable-dualminer make cat <<'EOF'>> go.sh #!/bin/bash ./bfgminer --scrypt -o stratum+tcp://scrypt.eu.mine.zpool.ca:3433/#skipcbcheck -u D7zsHbdJvoL17mYWXPTDt3XfxNMwgoxuYt -p c=XVG,zap=XVG -S all --set MLD:clock=600 --set ZUS:clock=328 EOF chmod +x go.sh cd .. echo "" cd bfgminer ./autogen.sh ./configure --enable-futurebit --enable-scrypt make cat <<'EOF'>> go.sh #!/bin/bash ./bfgminer --scrypt -o stratum+tcp://scrypt.eu.mine.zpool.ca:3433/#skipcbcheck -u D7zsHbdJvoL17mYWXPTDt3XfxNMwgoxuYt -p c=XVG,zap=XVG -S all --set MLD:clock=600 --set ZUS:clock=328 EOF chmod +x go.sh cd .. echo "" cd cgminer-ants3 ./autogen.sh ./configure --enable-ants3 make cd .. echo "" cd cpuminer-multi ./autogen.sh ./build.sh cat <<'EOF'>> go.sh #!/bin/bash #./cpuminer -a x16rv2 -o stratum+tcp://x16rv2.eu.nicehash.com:3379 -u 3Fn2uyxTZ8Zu9ksVyakH6tT2XYzq1fyXf3.pi -px ./cpuminer -a lyra2v3 -o stratum+tcp://lyra2rev3.eu.nicehash.com:3373 -u 3Fn2uyxTZ8Zu9ksVyakH6tT2XYzq1fyXf3.pi -p x EOF chmod +x go.sh cd .. echo "" if ! grep "bfgminer-ftb" /etc/rc.local >/dev/null then sudo bash -c 'sed -i -e "s/exit 0//g" /etc/rc.local' sudo bash -c 'echo -e "su - pi -c \047screen -dmS miner /home/pi/miner_base/bfgminer-ftb/bfgminer --scrypt -o stratum+tcp://scrypt.eu.mine.zpool.ca:3433/#skipcbcheck -u D7zsHbdJvoL17mYWXPTDt3XfxNMwgoxuYt -p c=XVG,zap=XVG -S all --set MLD:clock=600\047" >>/etc/rc.local' sudo bash -c 'echo "exit 0" >>/etc/rc.local' fi