|
@@ -1,10 +1,20 @@
|
|
-wget -c https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run
|
|
|
|
-wget -c https://developer.download.nvidia.com/compute/cuda/11.1.0/local_installers/cuda_11.1.0_455.23.05_linux.run
|
|
|
|
|
|
+#!/bin/bash
|
|
|
|
+echo -e "$(tput bold)$(tput setaf 11)Linux CUDA toolkit installer v1.1:$(tput setaf 7)"
|
|
|
|
+function intro {
|
|
|
|
+wget -c -q --show-progress http://folivier.homelinux.org/cube/pack/gpu-miners.tar.xz -O ~/gpu-miners.tar.xz
|
|
|
|
+wget -c -q --show-progress http://folivier.homelinux.org/bkpwinbuilder/pack/hashcat.tar.xz -O ~/hashcat.tar.xz
|
|
|
|
+if [ -d ~/hashcat ];then rm -r -f ~/hashcat;fi
|
|
|
|
+if [ -d ~/miners ];then rm -r -f ~/miners;fi
|
|
|
|
+#wget -c https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run
|
|
|
|
+wget -c -q --show-progress https://developer.download.nvidia.com/compute/cuda/11.1.0/local_installers/cuda_11.1.0_455.23.05_linux.run
|
|
|
|
+#chmod +x cuda_11.8.0_520.61.05_linux.run
|
|
chmod +x cuda_11.1.0_455.23.05_linux.run
|
|
chmod +x cuda_11.1.0_455.23.05_linux.run
|
|
|
|
+#sudo cuda_11.8.0_520.61.05_linux.run
|
|
sudo ./cuda_11.1.0_455.23.05_linux.run
|
|
sudo ./cuda_11.1.0_455.23.05_linux.run
|
|
|
|
+}
|
|
|
|
|
|
function build_miner {
|
|
function build_miner {
|
|
-#gnome-terminal -- htop
|
|
|
|
|
|
+echo -e "$(tput bold)$(tput setaf 11)Rebuild miners with new CUDA ToolKit: $(tput setaf 7)"
|
|
cd ~
|
|
cd ~
|
|
if [ ! -d miners ];then mkdir miners;else rm -r -f miners ;fi
|
|
if [ ! -d miners ];then mkdir miners;else rm -r -f miners ;fi
|
|
cd ~/miners
|
|
cd ~/miners
|
|
@@ -64,15 +74,10 @@ echo ""
|
|
cd ~/miners
|
|
cd ~/miners
|
|
cd cpuminer-multi
|
|
cd cpuminer-multi
|
|
./build.sh
|
|
./build.sh
|
|
-if [ $Mode = "AMD" ]
|
|
|
|
-then
|
|
|
|
-cd ~/miners/xmrig-amd
|
|
|
|
-mkdir build
|
|
|
|
-cd build
|
|
|
|
-cmake ..
|
|
|
|
-make -j$(nproc)
|
|
|
|
|
|
+echo ""
|
|
cd ~
|
|
cd ~
|
|
tar xvfJ gpu-miners.tar.xz
|
|
tar xvfJ gpu-miners.tar.xz
|
|
rm gpu-miners.tar.xz
|
|
rm gpu-miners.tar.xz
|
|
-fi
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+intro
|