Votre Nom 1 year ago
parent
commit
ee6f758092
2 changed files with 22 additions and 4 deletions
  1. 1 1
      options/chia.sh
  2. 21 3
      other_arch/centos.sh

+ 1 - 1
options/chia.sh

@@ -1,7 +1,7 @@
 #!/bin/bash
 set -e
 Version=5.0.0
-Gui=YES #can be Yes No or Only
+Gui=Yes #can be Yes No or Only
 MadMax=Yes
 GigaHorse=Yes
 BladeBit=Yes

+ 21 - 3
other_arch/centos.sh

@@ -94,9 +94,12 @@ function chia_ {
 echo -e "$(tput setaf 10)\nInstall Chia:$(tput sgr0)"
 cd /home/wareck/Build_Cube/other_arch/
 cp /home/wareck/Build_Cube/options/chia.sh .
-sed -i "s/BladeBit=Yes/BladeBit=No/g" chia.sh
+sed -i "s/Gui=Yes/Gui=No/g" chia.sh
 sed -i "s/ChiaPos=Yes/ChiaPos=No/g" chia.sh
 sed -i "s/Miner=Yes/Miner=No/g" chia.sh
+sed -i "s/ChiaService=Yes/ChiaService=No/g" chia.sh
+sed -i "s/Miner=Yes/Miner=No/g" chia.sh
+sed -i "s/ChiaProxy=Yes/ChiaProxy=No/g" chia.sh
 sed -i "s/Toolkit for Chia v$Version/Toolkit for Chia AlmaLinux /g" chia.sh
 sed -i "s/sudo apt-get install/#sudo apt-get install/g" chia.sh
 sh chia.sh
@@ -153,6 +156,19 @@ sudo ./setup-repos.sh
 sudo dnf install -y webmin
 }
 
+function lvm2_ {
+echo -e "$(tput setaf 10)\nInstall Lvm2:$(tput sgr0)"
+sudo dnf install libaio-devel -y
+cd /home/wareck
+git clone https://github.com/lvmteam/lvm2.git
+cd /home/wareck/lvm2
+./configure
+make -j 32
+sudo make install
+sudo ldconfig
+echo -e "Done"
+}
+
 function wol_ {
 echo -e "$(tput setaf 10)\nWake on lan modification:$(tput sgr0)"
 iface=$(ip link | awk -F: '$0 !~ "lo|vir|^[^0-9]"{print $2a;getline}')
@@ -188,6 +204,7 @@ tmpfs /ramdisk tmpfs defaults,size=110G 0 0
 EOF
 sudo cp /tmp/fstab /etc/fstab
 fi
+if [ ! -r /raid/ ];then mkdir /raid/;fi
 echo -e "Done"
 }
 
@@ -226,10 +243,12 @@ git config --global core.editor "nano"
 }
 
 intro_
+lvm2_
+exit
 update_
 drive_
 wol_
-tigervnc_
+#tigervnc_
 chia_
 miner_
 config_
@@ -240,4 +259,3 @@ echo -e "\n\n$(tput setaf 10)VNC password:$(tput sgr0)"
 vncpasswd
 
 echo -e "\nProcess finished !! \nhappy plotting."
-echo -e "\n Pour les perfs maximales : kernel + lvm2 depuis les sources ..."