|
@@ -94,9 +94,12 @@ function chia_ {
|
|
echo -e "$(tput setaf 10)\nInstall Chia:$(tput sgr0)"
|
|
echo -e "$(tput setaf 10)\nInstall Chia:$(tput sgr0)"
|
|
cd /home/wareck/Build_Cube/other_arch/
|
|
cd /home/wareck/Build_Cube/other_arch/
|
|
cp /home/wareck/Build_Cube/options/chia.sh .
|
|
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/ChiaPos=Yes/ChiaPos=No/g" chia.sh
|
|
sed -i "s/Miner=Yes/Miner=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/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
|
|
sed -i "s/sudo apt-get install/#sudo apt-get install/g" chia.sh
|
|
sh chia.sh
|
|
sh chia.sh
|
|
@@ -153,6 +156,19 @@ sudo ./setup-repos.sh
|
|
sudo dnf install -y webmin
|
|
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_ {
|
|
function wol_ {
|
|
echo -e "$(tput setaf 10)\nWake on lan modification:$(tput sgr0)"
|
|
echo -e "$(tput setaf 10)\nWake on lan modification:$(tput sgr0)"
|
|
iface=$(ip link | awk -F: '$0 !~ "lo|vir|^[^0-9]"{print $2a;getline}')
|
|
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
|
|
EOF
|
|
sudo cp /tmp/fstab /etc/fstab
|
|
sudo cp /tmp/fstab /etc/fstab
|
|
fi
|
|
fi
|
|
|
|
+if [ ! -r /raid/ ];then mkdir /raid/;fi
|
|
echo -e "Done"
|
|
echo -e "Done"
|
|
}
|
|
}
|
|
|
|
|
|
@@ -226,10 +243,12 @@ git config --global core.editor "nano"
|
|
}
|
|
}
|
|
|
|
|
|
intro_
|
|
intro_
|
|
|
|
+lvm2_
|
|
|
|
+exit
|
|
update_
|
|
update_
|
|
drive_
|
|
drive_
|
|
wol_
|
|
wol_
|
|
-tigervnc_
|
|
|
|
|
|
+#tigervnc_
|
|
chia_
|
|
chia_
|
|
miner_
|
|
miner_
|
|
config_
|
|
config_
|
|
@@ -240,4 +259,3 @@ echo -e "\n\n$(tput setaf 10)VNC password:$(tput sgr0)"
|
|
vncpasswd
|
|
vncpasswd
|
|
|
|
|
|
echo -e "\nProcess finished !! \nhappy plotting."
|
|
echo -e "\nProcess finished !! \nhappy plotting."
|
|
-echo -e "\n Pour les perfs maximales : kernel + lvm2 depuis les sources ..."
|
|
|