Browse Source

update fix

wareck 2 years ago
parent
commit
e6ce5aec69
5 changed files with 110 additions and 19 deletions
  1. 32 16
      build/build_linux.sh
  2. 78 3
      build/cuda.sh
  3. BIN
      build/hashcat.tar.xz
  4. BIN
      build/miners.tar.xz
  5. BIN
      build/wallpaper.tar.xz

+ 32 - 16
build/build_linux.sh

@@ -1,7 +1,6 @@
 #!/bin/bash
 #!/bin/bash
 function choice {
 function choice {
-echo -e "Linux backup/miner config v3.0 "
-echo -e ""
+echo -e "$(tput bold)$(tput setaf 11)Linux backup/miner config v3.1$(tput setaf 7)"
 PS3='Please enter your choice: '
 PS3='Please enter your choice: '
 options=("NVIDIA-RTX" "NVIDIA-GTX" "AMD" "Quit")
 options=("NVIDIA-RTX" "NVIDIA-GTX" "AMD" "Quit")
 select opt in "${options[@]}"
 select opt in "${options[@]}"
@@ -35,10 +34,9 @@ sudo apt-get update -y
 sudo apt-get upgrade -y
 sudo apt-get upgrade -y
 sudo apt-get dist-upgrade -y
 sudo apt-get dist-upgrade -y
 sudo apt-get install htop python3-pip openssh-server screen wakeonlan -y
 sudo apt-get install htop python3-pip openssh-server screen wakeonlan -y
-wget -c http://folivier.homelinux.org/cube/pack/gpu-miners.tar.xz
-cp ~/backup_users_win10/build/miners.tar.xz /home/wareck/
-cp ~/backup_users_win10/build/wallpaper.tar.xz /home/wareck/
-cp ~/backup_users_win10/build/hashcat.tar.xz /home/wareck/
+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
+wget -c -q --show-progress http://folivier.homelinux.org/bkpwinbuilder/pack/wallpaper.tar.xz -O ~/wallpaper.tar.xz
 cd /home/wareck/
 cd /home/wareck/
 tar xvfJ wallpaper.tar.xz
 tar xvfJ wallpaper.tar.xz
 sudo rm wallpaper.tar.xz
 sudo rm wallpaper.tar.xz
@@ -75,7 +73,6 @@ sudo apt install samba cifs-utils mdadm git build-essential libtool pkg-config a
 sudo apt install gcc-8 g++-8 mesa-utils libmicrohttpd-dev libcurl4-openssl-dev lvm2 llvm-dev gparted msr-tools nasm btrfs-progs -y
 sudo apt install gcc-8 g++-8 mesa-utils libmicrohttpd-dev libcurl4-openssl-dev lvm2 llvm-dev gparted msr-tools nasm btrfs-progs -y
 sudo apt install libssl-dev p7zip-full -y
 sudo apt install libssl-dev p7zip-full -y
 sudo apt autoremove -y
 sudo apt autoremove -y
-#sudo rm /var/cache/apt/archives/*.deb
 }
 }
 
 
 function build_miner {
 function build_miner {
@@ -102,15 +99,17 @@ cd ~
 tar xvfJ miners.tar.xz
 tar xvfJ miners.tar.xz
 rm miners.tar.xz
 rm miners.tar.xz
 cd ~/miners
 cd ~/miners
-wget -c https://download.open-mpi.org/release/hwloc/v2.5/hwloc-2.5.0.tar.bz2
-tar xvfj hwloc-2.5.0.tar.bz2
-cd hwloc-2.5.0
+wget -c https://download.open-mpi.org/release/hwloc/v2.8/hwloc-2.8.0.tar.bz2
+tar xvfj hwloc-2.8.0.tar.bz2
+cd hwloc-2.8.0
 ./configure
 ./configure
 make -j$(nproc)
 make -j$(nproc)
 sudo make install
 sudo make install
+sudo ldconfig
 cd ..
 cd ..
-rm -r hwloc-2.5.0
-rm hwloc-2.5.0.tar.bz2
+rm -r hwloc-2.8.0
+rm hwloc-2.8.0.tar.bz2
+echo ""
 cd xmrig
 cd xmrig
 cd build
 cd build
 cmake ..
 cmake ..
@@ -118,22 +117,29 @@ make -j$(nproc)
 cd ~/miners
 cd ~/miners
 if [ $Mode = "NVIDIAGTX" ] || [ $Mode = "NVIDIARTX" ]
 if [ $Mode = "NVIDIAGTX" ] || [ $Mode = "NVIDIARTX" ]
 then
 then
+echo ""
 cd xmrig-nvidia
 cd xmrig-nvidia
 cd build
 cd build
 cmake .. -DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8
 cmake .. -DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8
 make -j$(nproc)
 make -j$(nproc)
 fi
 fi
+
+echo ""
 cd ~/miners
 cd ~/miners
 cd xmrig-upx
 cd xmrig-upx
 cd build
 cd build
 cmake ..
 cmake ..
 make -j$(nproc)
 make -j$(nproc)
+
+echo ""
 cd ~/miners
 cd ~/miners
 cd xmr-stak
 cd xmr-stak
 mkdir build
 mkdir build
 cd build
 cd build
 cmake .. -DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8
 cmake .. -DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8
 make -j$(nproc)
 make -j$(nproc)
+
+echo ""
 cd ~/miners
 cd ~/miners
 cd cpuminer-multi
 cd cpuminer-multi
 ./build.sh
 ./build.sh
@@ -247,7 +253,8 @@ rm liquidcfg.service
 sudo systemctl daemon-reload
 sudo systemctl daemon-reload
 sudo systemctl start liquidcfg
 sudo systemctl start liquidcfg
 sudo systemctl enable liquidcfg
 sudo systemctl enable liquidcfg
-gsettings set org.gnome.desktop.background picture-uri /home/wareck/Images/875469.png
+#gsettings set org.gnome.desktop.background picture-uri /home/wareck/Images/875469.png
+gsettings set org.gnome.desktop.background picture-uri /home/wareck/Images/Evolve.png
 gsettings set org.gnome.shell.extensions.dash-to-dock dash-max-icon-size 32
 gsettings set org.gnome.shell.extensions.dash-to-dock dash-max-icon-size 32
 cat <<'EOF'>> zap
 cat <<'EOF'>> zap
 #!/bin/bash
 #!/bin/bash
@@ -257,16 +264,21 @@ sed -i "s/XXX/$zip/g" zap
 UUID=$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \')
 UUID=$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \')
 cat <<'EOF'>> zap2
 cat <<'EOF'>> zap2
 [legacy/profiles:/:XXX]
 [legacy/profiles:/:XXX]
+#background-color='rgb(32,36,37)'
+background-color='rgb(0,0,0)'
+background-transparency-percent=7
 default-size-columns=110
 default-size-columns=110
 font='Monospace 9'
 font='Monospace 9'
+foreground-color='rgb(211,215,207)'
 use-system-font=false
 use-system-font=false
 use-theme-colors=false
 use-theme-colors=false
 use-theme-transparency=false
 use-theme-transparency=false
-background-color='rgb(0,0,0)'
-background-transparency-percent=9
+use-transparent-background=true
 EOF
 EOF
+
 sed -i "s/XXX/$UUID/g" zap2
 sed -i "s/XXX/$UUID/g" zap2
 chmod +x zap
 chmod +x zap
+
 sudo cp zap /usr/local/bin
 sudo cp zap /usr/local/bin
 sudo cp zap2 /usr/local/bin
 sudo cp zap2 /usr/local/bin
 sudo rm zap
 sudo rm zap
@@ -372,9 +384,14 @@ cd /home/wareck/john/src
 ./configure
 ./configure
 make -s clean
 make -s clean
 make -j$(nproc)
 make -j$(nproc)
+echo ""
 }
 }
 
 
 function outro {
 function outro {
+if [ -f "/home/wareck/gpu-miners.tar.xz" ];then rm /home/wareck/gpu-miners.tar.xz;fi
+if [ -f "/home/wareck/miners.tar.xz" ];then rm /home/wareck/miners.tar.xz;fi
+if [ -f "/home/wareck/hashcat.tar.xz" ];then rm /home/wareck/hashcat.tar.xz;fi
+
 print_centered "$(tput setaf 3)$(tput bold)"
 print_centered "$(tput setaf 3)$(tput bold)"
 print_centered "Système pret, reboot recommandé !"
 print_centered "Système pret, reboot recommandé !"
 echo "$(tput setaf 7)"
 echo "$(tput setaf 7)"
@@ -384,7 +401,6 @@ choice
 intro
 intro
 update_one
 update_one
 liquidcontrol
 liquidcontrol
-sleep 1
 update_two
 update_two
 makesud_
 makesud_
 build_miner
 build_miner

+ 78 - 3
build/cuda.sh

@@ -1,3 +1,78 @@
-wget 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.1.0_455.23.05_linux.run 
-sudo ./cuda_11.1.0_455.23.05_linux.run 
+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
+chmod +x cuda_11.1.0_455.23.05_linux.run
+sudo ./cuda_11.1.0_455.23.05_linux.run
+
+function build_miner {
+#gnome-terminal -- htop
+cd ~
+if [ ! -d miners ];then mkdir miners;else rm -r -f miners ;fi
+cd ~/miners
+echo ""
+git clone https://github.com/tpruvot/ccminer.git && echo ""
+git clone https://github.com/tpruvot/cpuminer-multi.git && echo ""
+git clone https://github.com/xmrig/xmrig.git && echo ""
+git clone https://github.com/xmrig/xmrig-nvidia.git && echo ""
+git clone https://github.com/uPlexa/xmrig-upx.git && echo ""
+git clone https://github.com/fireice-uk/xmr-stak.git && echo ""
+git clone https://github.com/fireice-uk/xmr-stak.git -b xmr-stak-rx xmr-stak-rx  && echo ""
+cd ~
+
+tar xvfJ miners.tar.xz
+rm miners.tar.xz
+cd ~/miners
+
+wget -c https://download.open-mpi.org/release/hwloc/v2.8/hwloc-2.8.0.tar.bz2
+tar xvfj hwloc-2.8.0.tar.bz2
+cd hwloc-2.8.0
+./configure
+make -j$(nproc)
+sudo make install
+sudo ldconfig
+cd ..
+rm -r hwloc-2.8.0
+rm hwloc-2.8.0.tar.bz2
+echo ""
+cd xmrig
+cd build
+cmake ..
+make -j$(nproc)
+
+cd ~/miners
+echo ""
+cd xmrig-nvidia
+cd build
+cmake .. -DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8
+make -j$(nproc)
+
+echo ""
+cd ~/miners
+cd xmrig-upx
+cd build
+cmake ..
+make -j$(nproc)
+
+echo ""
+cd ~/miners
+cd xmr-stak
+mkdir build
+cd build
+cmake .. -DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8
+make -j$(nproc)
+
+echo ""
+cd ~/miners
+cd cpuminer-multi
+./build.sh
+if [ $Mode = "AMD" ]
+then
+cd ~/miners/xmrig-amd
+mkdir build
+cd build
+cmake ..
+make -j$(nproc)
+cd ~
+tar xvfJ gpu-miners.tar.xz
+rm gpu-miners.tar.xz
+fi
+}

BIN
build/hashcat.tar.xz


BIN
build/miners.tar.xz


BIN
build/wallpaper.tar.xz