Your Name 5 years ago
parent
commit
8c464b9690
3 changed files with 19 additions and 7 deletions
  1. 3 0
      01-cgminer.rules
  2. 12 5
      build.sh
  3. 4 2
      x11/go.sh

+ 3 - 0
01-cgminer.rules

@@ -61,3 +61,6 @@ ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", SUBSYSTEM=="usb", ACTION=="ad
 
 # Lketc
 ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
+ 
+#X11
+ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="0007", SUBSYSTEM=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"

+ 12 - 5
build.sh

@@ -42,7 +42,7 @@ cd cgminer-lketc
 make
 cat <<'EOF'>> go.sh
 #!/bin/bash
-./cgminer --scrypt -o stratum+tcp://hub.miningpoolhub.com:20523 -u wareck.1 -p x --lketc-clock 280 --zeus-chips 6 --zeus-clock 328
+./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 ..
@@ -54,7 +54,7 @@ cd dualminer-cgminer
 make
 cat <<'EOF'>> go.sh
 #!/bin/bash
-./cgminer --scrypt -o stratum+tcp://b3v.f2pool.com:1328 -u 1EjmJRoZ5UL7Bd7ujpRFRLK7g1oQt78nSR.Stick -p x
+./cgminer --scrypt -o stratum+tcp://scrypt.eu.mine.zpool.ca:3433 -u D7zsHbdJvoL17mYWXPTDt3XfxNMwgoxuYt -p c=XVG,zap=XV
 EOF
 chmod +x go.sh
 cd ..
@@ -62,11 +62,11 @@ cd ..
 echo ""
 cd bfgminer-ftb
 ./autogen.sh
-./configure --enable-futurebit  --enable-scrypt --disable-gridseed  --disable-zeus --disable-dualminer
+./configure --enable-scrypt --enable-futurebit --disable-gridseed --disable-zeusminer --disable-dualminer
 make
 cat <<'EOF'>> go.sh
 #!/bin/bash
-./bfgminer --scrypt -o stratum+tcp://hub.miningpoolhub.com:20523 -u wareck.1 -p x -S ALL --set MLD:clock=600
+./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 ..
@@ -78,7 +78,7 @@ cd bfgminer
 make
 cat <<'EOF'>> go.sh
 #!/bin/bash
-./bfgminer --scrypt -o stratum+tcp://hub.miningpoolhub.com:20523 -u wareck.1 -p x -S ALL --set MLD:clock=600
+./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 ..
@@ -103,4 +103,11 @@ 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 "su - pi -c 'screen -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'" >>/etc/rc.local'
+sudo bash -c 'echo "exit 0" >>/etc/rc.local'
+fi
 
+echo ""

+ 4 - 2
x11/go.sh

@@ -1,3 +1,5 @@
 #!/bin/bash
-#./cgminer --x11 -o stratum+tcp://x11.eu.nicehash.com:3336 -u 3Fn2uyxTZ8Zu9ksVyakH6tT2XYzq1fyXf3.x11 -p x --dr1-clk 400 --dr1-fan LV3 --du1 -S /dev/ttyACM0 -S /dev/ttyACM1
-./cgminer --x11 -o stratum+tcp://dash.suprnova.cc:9991 -u wareck.1 -p x --dr1-clk 400 --dr1-fan LV3 --du1 -S /dev/ttyACM0 -S /dev/ttyACM1
+#screen -dmS x11 ./cgminer --x11 -o stratum+tcp://x11.eu.nicehash.com:3336 -u 3Fn2uyxTZ8Zu9ksVyakH6tT2XYzq1fyXf3.x11 -p x --dr1-clk 400 --dr1-fan LV3 --du1 -S /dev/ttyACM0 -S /dev/ttyACM1
+screen -dmS x11 ./cgminer --x11 -o stratum+tcp://dash.suprnova.cc:9991 -u wareck.1 -p d=1024 --dr1-clk 400 --dr1-fan LV3 --du1 -S /dev/ttyACM0 -S /dev/ttyACM1
+#screen -dmS x11 ./cgminer --x11 -o stratum+tcp://img.f2pool.com:4400 -u Mh12jBRtUkY1FnWV8iAyUZLLjLuNGxJmdY.pni -p x --dr1-clk 400 --dr1-fan LV3 -S /dev/ttyACM0 -S /dev/ttyACM1 --du1
+