Votre Nom 1 year ago
parent
commit
6caecd2883
4 changed files with 17 additions and 17 deletions
  1. 11 11
      build_cube.sh
  2. 1 1
      options/chia.sh
  3. 1 1
      options/minecraft.sh
  4. 4 4
      options/tools/_cmake.sh

+ 11 - 11
build_cube.sh

@@ -1,16 +1,21 @@
 #!/bin/bash
 set -e
-Version=18.0
-Cuda=NO
+Version=18.2.1
+Cuda=YES
 kernel_custom=YES
 Webmin="webmin-2.105"
 kernel_dkms="5.15.0-71-generic"
 driver=NVIDIA
+
 if (( $EUID != 0 )); then
    echo -e "$(tput setaf 11)This must be run as root. Try 'sudo $0'.$(tput sgr0)"
    exit 1
 fi
 clear
+Cuda=${Cuda^^}
+kernel_custom=${kernel_custom^^}
+driver=${driver^^}
+
 function ubuntu_version_check {
 if [[ $(lsb_release -rs) == "20.04" ]]
 then
@@ -69,10 +74,10 @@ print_centered " ╚═════╝ ╚═════╝ ╚═════
 echo -n "$(tput sgr0)"
 print_centered "Cube Server installation script v$Version"
 print_centered "Ubuntu version 20.04"
-print_centered "GA990xa-ud3 $Drivers"
+print_centered "GA990xa-ud3"
 if [ $Cuda = "YES" ]
 then
-print_centered "CUDA version"
+print_centered "CUDA"
 fi
 sleep 3
 }
@@ -519,13 +524,11 @@ sudo sh -c "echo \"wareck ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers"
 fi
 
 echo -e "$(tput setaf 10)\nBuild folder and mount drives:$(tput sgr0)"
-#if ! [ -r /media/Exos ];then sudo mkdir /media/Exos && cd / & sudo ln -s /media/Exos /Exos ;fi
 if ! [ -r /media/Cloud ];then sudo mkdir /media/Cloud && cd / & sudo ln -s /media/Cloud /Cloud ;fi
 if ! [ -r /media/Store ];then sudo mkdir /media/Store && cd / & sudo ln -s /media/Store /Store;fi
 if ! [ -r /media/Partage ];then sudo mkdir /media/Partage && cd / & sudo ln -s /media/Partage /Partage;fi
 if ! [ -r /media/Nas ];then sudo mkdir /media/Nas && cd / & sudo ln -s /media/Nas /Nas;fi
-if ! [ -r /media/nvme0 ];then sudo mkdir /media/nvme0 && cd / & sudo ln -s /media/nvme0 /nvme0 ;fi
-if ! [ -r /media/nvme1 ];then sudo mkdir /media/nvme1 && cd / & sudo ln -s /media/nvme1 /nvme1 ;fi
+if ! [ -r /raid ];then sudo mkdir /raid;fi
 if ! [ -r /farm ];then sudo mkdir /farm;fi
 if ! [ -r /farm/farm0 ];then sudo mkdir /farm/farm0;fi
 if ! [ -r /farm/farm1 ];then sudo mkdir /farm/farm1;fi
@@ -541,10 +544,7 @@ UUID=6fc06d70-1a38-4706-ae83-0a329181b9f7 /media/Cloud ext4 auto,nofail,noatime,
 UUID=a111c12b-d1b4-441a-9352-b6bbc558184e /media/Partage ext4 auto,nofail,noatime,rw,user  0   0
 UUID=1df72b63-fca0-45c6-992c-3e2532d5591a /media/Store ext4 auto,nofail,noatime,rw,user    0   0
 #btrfs temporary drives
-#UUID=98f4077f-36da-42de-b322-8c58aec550a7 /nvme0 btrfs ssd,nodatasum,nobarrier,nodatacow,discard=async,noatime
-#UUID=1181ac83-b8c5-404a-97fa-b23ceb1addc5 /nvme1 btrfs ssd,nodatasum,nobarrier,nodatacow,discard=async,noatime
-/dev/md0 /raid btrfs auto,nofail,noatime,nodiratime,rw,user  0   0
-#/dev/plant/fast /nvme0 btrfs ssd,nodatasum,nobarrier,nodatacow,discard=async,noatime
+/dev/md0 /raid btrfs ssd,nodatasum,nobarrier,nodatacow,discard=async,noatime 0 0
 #Chia drive
 UUID=77a593df-1bdb-4012-8c9e-ce50864b464d /farm/farm0 ext4 auto,nofail,noatime,nodiratime,rw,user  0   0
 UUID=0d145a5a-50b0-456c-8998-549def2f9fc9 /farm/farm1 ext4 auto,nofail,noatime,nodiratime,rw,user  0   0

+ 1 - 1
options/chia.sh

@@ -7,7 +7,7 @@ GigaHorse_farmer=Yes
 
 MadMax=Yes
 GigaHorse=Yes
-BladeBit=Yes
+BladeBit=No
 ChiaPos=Yes
 
 H9_ChiaService=No

+ 1 - 1
options/minecraft.sh

@@ -172,7 +172,7 @@ if [ $version -ge 18 ]
 then
 echo -e "$(tput setaf 6)Java version $version =>> OK$(tput sgr0)"
 else
-echo "error !"
+echo "erreur ! désinstaller java d'abord !"
 exit 1
 fi
 

+ 4 - 4
options/tools/_cmake.sh

@@ -21,11 +21,11 @@ case $flag in
         sleep 2
         if ! [ $(version $cmake_v) -ge $(version "3.18") ]
         then
-        echo -e "cmake need update=> cmake_3.26.4"
+        echo -e "cmake need update=> cmake_3.27.9"
         sudo apt-get -qq remove --purge cmake -y
-        wget -c -q --show-progress http://folivier.homelinux.org/cube/pack/cmake_3.26.4-1_amd64.deb
-        sudo dpkg -i cmake_3.26.4-1_amd64.deb
-        rm cmake_3.26.4-1_amd64.deb
+        wget -c -q --show-progress http://folivier.homelinux.org/cube/pack/cmake_3.27.9-1_amd64.deb
+        sudo dpkg -i cmake_3.27.9-1_amd64.deb
+        rm cmake_3.27.9-1_amd64.deb
         else
         echo -e "cmake version ok."
         sleep 2