Browse Source

update gminer and cpu mining

Votre Nom 6 years ago
parent
commit
17d64ec569
3 changed files with 31 additions and 61 deletions
  1. 4 4
      miner.sh
  2. 15 6
      setup_amd.sh
  3. 12 51
      setup_cpu.sh

+ 4 - 4
miner.sh

@@ -143,10 +143,10 @@ echo "start miner."
 ##---------------
 ##---  BEAM   ---
 ##---------------
-cd ~/lolMiner_beam
-screen -dmS miner ./lolMiner --coin BEAM --pool beam.eu.nicehash.com --port 3370 --user 16F8V2EnHCNPVQwTGLifGHCE12XTnWPG8G.OpenRig --pass x --tls 0
-
+#cd ~/lolMiner_beam
+#screen -dmS miner ./lolMiner --coin BEAM --pool beam.eu.nicehash.com --port 3370 --user 16F8V2EnHCNPVQwTGLifGHCE12XTnWPG8G.OpenRig --pass x --tls 0
 #screen -dmS miner ./lolMiner --coin AUTO144_5 --pool zhash.eu.nicehash.com --port 3369 --user 16F8V2EnHCNPVQwTGLifGHCE12XTnWPG8G.OpenRig --pass x --tls 0
-
+cd gminer_1.34
+screen -dmS miner ./miner -a beam --server beam.eu.nicehash.com --port 3370 -u 16F8V2EnHCNPVQwTGLifGHCE12XTnWPG8G.OpenRig -p x
 
 echo "use 'screen -x miner' to see miner activity"

+ 15 - 6
setup_amd.sh

@@ -1,7 +1,7 @@
 #!/bin/bash
 set -e
-script_version="1.53"
-rdate="30/01/2019"
+script_version="1.54"
+rdate="20/02/2019"
 remote_folder="http://wareck.free.fr/openrig"
 lsb_v="`lsb_release -r | awk '{print$2; exit}'`"
 lsb_r="`lsb_release -d | awk '{print$2" "$3}'`"
@@ -24,7 +24,7 @@ SGMINER_x16r="YES"
 Lyra2z="YES"
 Phoenix="YES"
 lolMiner="YES"
-
+Gminer="YES"
 swap_size="8" # 0/4/8/16 Go
 
 #script_version=`grep version version.txt | awk '{ print $2 }'`
@@ -50,7 +50,7 @@ claymore_xmr_v="`curl -s $remote_folder/version.txt | awk 'NR==3 {print$3; exit}
 lolminer_v="`curl -s $remote_folder/version.txt | awk 'NR==6 {print$3; exit}'`"
 lolminer_beam_v="`curl -s $remote_folder/version.txt | awk 'NR==7 {print$3; exit}'`"
 Phoenix_v="`curl -s $remote_folder/version.txt | awk 'NR==8 {print$3; exit}'`"
-
+Gminer_v="`curl -s $remote_folder/version.txt | awk 'NR==9 {print$3; exit}'`"
 
 echo ""
 echo -n -e " \e[97m\u2554"
@@ -82,6 +82,7 @@ echo -e "\e[97m    +\e[91m Claymore zcash $claymore_zcash_v\e[0m\e[97m"
 echo -e "\e[97m    +\e[91m Claymore xmr $claymore_xmr_v\e[0m\e[97m"
 if [ $Lyra2z = "YES" ]; then echo -e "\e[97m    +\e[91m Lyra2z GPU Mining (experimental)\e[0m\e[97m";fi
 if [ $Phoenix = "YES" ];  then echo -e "\e[97m    +\e[91m Phoenix ETH v$Phoenix_v \e[0m\e[97m";fi
+if [ $Gminer = "YES" ];  then echo -e "\e[97m    +\e[91m Gminer v$Gminer_v \e[0m\e[97m";fi
 
 echo
 sleep 4
@@ -216,14 +217,22 @@ fi
 
 if [ $lolMiner = "YES"  ]
  then
- echo -e "\n\e[95mInstall lolMiner v$lolMiner_v :\e[0m"
+ echo -e "\n\e[95mInstall lolMiner v$lolminer_v :\e[0m"
  sudo -u work curl -sf $remote_folder/miners/lolMiner_v$lolminer_v.tar.xz | tar xvJ
- echo ""
+ echo -e "\n\e[95mInstall lolMiner_beam v$lolminer_beam_v :\e[0m"
  sudo -u work curl -sf $remote_folder/miners/lolMiner_beam.tar.xz | tar xvJ
  sudo chown -R work /home/work/lolMiner
  sudo chown -R work /home/work/lolMiner_beam
 fi
 
+if [ $Gminer = "YES"  ]
+ then
+ echo -e "\n\e[95mInstall Gminer v$Gminer_v :\e[0m"
+ sudo -u work curl -sf $remote_folder/miners/gminer_v$Gminer_v.tar.xz | tar xvJ
+ sudo chown -R work /home/work/gminer_1.34
+fi
+
+
 if [ $ETHMine = "YES" ]
  then
  echo -e "\n\e[95mInstall Ethminer :\e[0m"

+ 12 - 51
setup_cpu.sh

@@ -44,10 +44,6 @@ if ! [ -d cpuminer-xzc ]
 then
 git clone https://github.com/aizensou/cpuminer-xzc.git && echo
 fi
-if ! [ -d xmr-stak_cpu ]
-then
-git clone https://github.com/fireice-uk/xmr-stak-cpu.git xmr-stak_cpu && echo
-fi
 if ! [ -d xmrig_cpu ]
 then
 git clone https://github.com/xmrig/xmrig.git xmrig_cpu
@@ -68,51 +64,6 @@ cd ~/cpuminer-xzc
 ./build.sh
 echo -e "\e[97mDone !\e[0m"
 
-echo -e "\n\e[95mBuild xmr-stak-cpu:\e[0m"
-cd /tmp/
-if ! [ -f hwloc-1.11.8.tar.gz ]
-then
-wget http://wareck.free.fr/grinder/hwloc-1.11.8.tar.xz
-tar xvfJ hwloc-1.11.8.tar.xz
-fi
-cd hwloc-1.11.8
-./autogen.sh
-./configure --prefix=/usr/local
-make -j $(nproc)
-make install
-echo ""
-cd ~
-chown -R work xmr-stak_cpu
-cd xmr-stak_cpu
-git pull
-if [ -d build ]
-then
-rm -r build
-fi
-mkdir build
-sed -i -e "s/= 2.0/= 0.0/g" donate-level.h
-cd build
-cmake ..
-make $(if $(THREADS="-j$(($(tail -c 2 /sys/devices/system/node/node0/cpulist 2>/dev/null)+2))"); then echo $THREADS; fi)
-cd ~
-if [ -f ~/xmr-stak-cpu ];
-then
-sudo rm ~/xmr-stak-cpu;
-fi
-sudo cp xmr-stak_cpu/build/bin/xmr-stak-cpu /usr/local/bin/xmr-stak-cpu
-cd ~
-if ! [ -f xmrstak-cpu ]
-then
-ln -s /usr/local/bin/xmr-stak-cpu ~/xmr-stak-cpu | true
-fi
-echo
-if ! grep -q "vm.nr_hugepages=256" /etc/sysctl.conf
-then
-sudo bash -c 'echo "vm.nr_hugepages=256" >> /etc/sysctl.conf'
-sudo bash -c 'sysctl -p'
-fi
-echo -e "\e[97mDone !\e[0m"
-
 echo -e "\n\e[95mInstall xmrig-cpu:\e[0m"
 cd ~
 cd /tmp/
@@ -177,9 +128,19 @@ screen -S cpu -X quit
 ##-------MINER-----
 echo "start cpuminer."
 
-##Lyra2z
+## Lyra2z
 #screen -dmS cpu ~/cpuminer-xzc/cpuminer -a Lyra2z  -o stratum+tcp://lyra2z.in.nicehash.com:3365 -u 16F8V2EnHCNPVQwTGLifGHCE12XTnWPG8G  -p password
-screen -dmS cpu ~/cpuminer-opt/cpuminer -a Lyra2z  -o stratum+tcp://lyra2z.eu.nicehash.com:3365 -u 16F8V2EnHCNPVQwTGLifGHCE12XTnWPG8G  -p password
+#screen -dmS cpu ~/cpuminer-opt/cpuminer -a Lyra2z  -o stratum+tcp://lyra2z.eu.nicehash.com:3365 -u 16F8V2EnHCNPVQwTGLifGHCE12XTnWPG8G  -p password
+
+## cryptonightv7
+screen -dms cpu ~/xmrig-cpu -o cryptonightv7.eu.nicehash.com:3363 -u 16F8V2EnHCNPVQwTGLifGHCE12XTnWPG8G.OpenRig -p x &
+
+# cryptonightheavy
+#screen -dms cpu ~/xmrig-cpu -o cryptonightheavy.eu.nicehash.com:3364 -u 16F8V2EnHCNPVQwTGLifGHCE12XTnWPG8G.OpenRig -p x -a cryptonight-heavy
+
+# cryptonightv8
+#screen -dmS cpu ~/xmrig-cpu -o stratum+tcp://cryptonightv8.eu.nicehash.com:3367 -u 16F8V2EnHCNPVQwTGLifGHCE12XTnWPG8G.OpenRig -p x -a cryptonight --variant 2 &
+
 echo "use 'screen -x cpu' to see miner activity"
 EOF
 chown work miner_cpu.sh