123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- #!/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
|