|
@@ -1,16 +1,21 @@
|
|
#!/bin/bash
|
|
#!/bin/bash
|
|
set -e
|
|
set -e
|
|
-Version=18.0
|
|
|
|
-Cuda=NO
|
|
|
|
|
|
+Version=18.2.1
|
|
|
|
+Cuda=YES
|
|
kernel_custom=YES
|
|
kernel_custom=YES
|
|
Webmin="webmin-2.105"
|
|
Webmin="webmin-2.105"
|
|
kernel_dkms="5.15.0-71-generic"
|
|
kernel_dkms="5.15.0-71-generic"
|
|
driver=NVIDIA
|
|
driver=NVIDIA
|
|
|
|
+
|
|
if (( $EUID != 0 )); then
|
|
if (( $EUID != 0 )); then
|
|
echo -e "$(tput setaf 11)This must be run as root. Try 'sudo $0'.$(tput sgr0)"
|
|
echo -e "$(tput setaf 11)This must be run as root. Try 'sudo $0'.$(tput sgr0)"
|
|
exit 1
|
|
exit 1
|
|
fi
|
|
fi
|
|
clear
|
|
clear
|
|
|
|
+Cuda=${Cuda^^}
|
|
|
|
+kernel_custom=${kernel_custom^^}
|
|
|
|
+driver=${driver^^}
|
|
|
|
+
|
|
function ubuntu_version_check {
|
|
function ubuntu_version_check {
|
|
if [[ $(lsb_release -rs) == "20.04" ]]
|
|
if [[ $(lsb_release -rs) == "20.04" ]]
|
|
then
|
|
then
|
|
@@ -69,10 +74,10 @@ print_centered " ╚═════╝ ╚═════╝ ╚═════
|
|
echo -n "$(tput sgr0)"
|
|
echo -n "$(tput sgr0)"
|
|
print_centered "Cube Server installation script v$Version"
|
|
print_centered "Cube Server installation script v$Version"
|
|
print_centered "Ubuntu version 20.04"
|
|
print_centered "Ubuntu version 20.04"
|
|
-print_centered "GA990xa-ud3 $Drivers"
|
|
|
|
|
|
+print_centered "GA990xa-ud3"
|
|
if [ $Cuda = "YES" ]
|
|
if [ $Cuda = "YES" ]
|
|
then
|
|
then
|
|
-print_centered "CUDA version"
|
|
|
|
|
|
+print_centered "CUDA"
|
|
fi
|
|
fi
|
|
sleep 3
|
|
sleep 3
|
|
}
|
|
}
|
|
@@ -519,13 +524,11 @@ sudo sh -c "echo \"wareck ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers"
|
|
fi
|
|
fi
|
|
|
|
|
|
echo -e "$(tput setaf 10)\nBuild folder and mount drives:$(tput sgr0)"
|
|
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/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/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/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/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 ];then sudo mkdir /farm;fi
|
|
if ! [ -r /farm/farm0 ];then sudo mkdir /farm/farm0;fi
|
|
if ! [ -r /farm/farm0 ];then sudo mkdir /farm/farm0;fi
|
|
if ! [ -r /farm/farm1 ];then sudo mkdir /farm/farm1;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=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
|
|
UUID=1df72b63-fca0-45c6-992c-3e2532d5591a /media/Store ext4 auto,nofail,noatime,rw,user 0 0
|
|
#btrfs temporary drives
|
|
#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
|
|
#Chia drive
|
|
UUID=77a593df-1bdb-4012-8c9e-ce50864b464d /farm/farm0 ext4 auto,nofail,noatime,nodiratime,rw,user 0 0
|
|
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
|
|
UUID=0d145a5a-50b0-456c-8998-549def2f9fc9 /farm/farm1 ext4 auto,nofail,noatime,nodiratime,rw,user 0 0
|