|
@@ -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
|