|
@@ -76,13 +76,13 @@ sudo reboot
|
|
|
|
|
|
function intro_ {
|
|
function intro_ {
|
|
print_centered "$(tput setaf 1)"
|
|
print_centered "$(tput setaf 1)"
|
|
-print_centered "███████╗██████╗ ██████╗ ███████╗"
|
|
|
|
-print_centered "██╔════╝██╔══██╗██╔════╝ ██╔════╝"
|
|
|
|
-print_centered "█████╗ ██║ ██║██║ ███╗█████╗ "
|
|
|
|
-print_centered "██╔══╝ ██║ ██║██║ ██║██╔══╝ "
|
|
|
|
-print_centered "███████╗██████╔╝╚██████╔╝███████╗"
|
|
|
|
-print_centered "╚══════╝╚═════╝ ╚═════╝ ╚══════╝"
|
|
|
|
-print_centered " "
|
|
|
|
|
|
+print_centered " ██╗██╗ ██╗██████╗ ██╗████████╗███████╗██████╗ "
|
|
|
|
+print_centered " ██║██║ ██║██╔══██╗██║╚══██╔══╝██╔════╝██╔══██╗"
|
|
|
|
+print_centered " ██║██║ ██║██████╔╝██║ ██║ █████╗ ██████╔╝"
|
|
|
|
+print_centered "██ ██║██║ ██║██╔═══╝ ██║ ██║ ██╔══╝ ██╔══██╗"
|
|
|
|
+print_centered "╚█████╔╝╚██████╔╝██║ ██║ ██║ ███████╗██║ ██║"
|
|
|
|
+print_centered " ╚════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝"
|
|
|
|
+print_centered " "
|
|
echo -n "$(tput sgr0)"
|
|
echo -n "$(tput sgr0)"
|
|
print_centered "Edge Server installation script v$Version"
|
|
print_centered "Edge Server installation script v$Version"
|
|
print_centered "Ubuntu version 20.04.6"
|
|
print_centered "Ubuntu version 20.04.6"
|
|
@@ -102,12 +102,12 @@ case $passe in
|
|
sudo apt-get install lxde lxde-icon-theme -y
|
|
sudo apt-get install lxde lxde-icon-theme -y
|
|
echo -e ""
|
|
echo -e ""
|
|
sudo apt-get install samba cifs-utils mdadm git build-essential libtool pkg-config automake autoconf ethtool net-tools openvpn filezilla \
|
|
sudo apt-get install samba cifs-utils mdadm git build-essential libtool pkg-config automake autoconf ethtool net-tools openvpn filezilla \
|
|
- tasksel lzma-dev lzma cmake libuv1-dev libssl-dev msr-tools tightvncserver openssh-server xfsprogs -y
|
|
|
|
|
|
+ tasksel lzma-dev lzma cmake libuv1-dev libssl-dev msr-tools tightvncserver lm-sensors openssh-server xfsprogs -y
|
|
echo -e ""
|
|
echo -e ""
|
|
sudo apt-get install zstd pixz pbzip2 pigz btrfs-progs gparted gpart gnome-remote-desktop libcanberra-gtk-module \
|
|
sudo apt-get install zstd pixz pbzip2 pigz btrfs-progs gparted gpart gnome-remote-desktop libcanberra-gtk-module \
|
|
ctorrent libcurl4-openssl-dev bison byacc screen libudev-dev libjansson-dev libncurses5-dev libmicrohttpd-dev curl nvme-cli -y
|
|
ctorrent libcurl4-openssl-dev bison byacc screen libudev-dev libjansson-dev libncurses5-dev libmicrohttpd-dev curl nvme-cli -y
|
|
echo -e ""
|
|
echo -e ""
|
|
- sudo apt-get install libglib2.0-dev libgtk2.0-dev htop vlc locate cmake -y
|
|
|
|
|
|
+ sudo apt-get install libglib2.0-dev libgtk2.0-dev libsensors4-dev htop vlc locate cmake -y
|
|
echo -e "Done."
|
|
echo -e "Done."
|
|
;;
|
|
;;
|
|
2)
|
|
2)
|
|
@@ -123,13 +123,13 @@ esac
|
|
|
|
|
|
function kernel_check_ {
|
|
function kernel_check_ {
|
|
unamestr=$(uname -r)
|
|
unamestr=$(uname -r)
|
|
-if ! [[ "$unamestr" == "5.15.152-custom" ]]
|
|
|
|
|
|
+if ! [[ "$unamestr" == "5.15.152-jupiter" ]]
|
|
then
|
|
then
|
|
echo -e "\n$(tput setaf 10)Custom kernel install $(tput setaf 9)5.15.152-custom(tput setaf 10) (fix DKMS/WOL) :$(tput sgr0)"
|
|
echo -e "\n$(tput setaf 10)Custom kernel install $(tput setaf 9)5.15.152-custom(tput setaf 10) (fix DKMS/WOL) :$(tput sgr0)"
|
|
cd /tmp/
|
|
cd /tmp/
|
|
-#wget -c -q --show-progress http://folivier.homelinux.org/cube/pack/custom_kernel/kernel_5.15.152-custom-edge.run
|
|
|
|
-#chmod +x kernel_5.15.152-custom-edge.run
|
|
|
|
-#sudo ./kernel_5.15.152-custom-edge.run
|
|
|
|
|
|
+wget -c -q --show-progress http://folivier.homelinux.org/cube/pack/custom_kernel/kernel_5.15.152-jupiter.run
|
|
|
|
+chmod +x kernel_5.15.152-jupiter.run
|
|
|
|
+sudo ./kernel_5.15.152-jupiter.run
|
|
if ! [ -f /etc/modprobe.d/blacklist-nvidia-nouveau.conf ]
|
|
if ! [ -f /etc/modprobe.d/blacklist-nvidia-nouveau.conf ]
|
|
then
|
|
then
|
|
echo "Blacklist nvidia-nouveau driver..."
|
|
echo "Blacklist nvidia-nouveau driver..."
|
|
@@ -315,8 +315,8 @@ then
|
|
cp /etc/fstab /tmp/fstab
|
|
cp /etc/fstab /tmp/fstab
|
|
cat <<"EOF">> /tmp/fstab
|
|
cat <<"EOF">> /tmp/fstab
|
|
#ext4
|
|
#ext4
|
|
-#UUID=1df72b63-fca0-45c6-992c-3e2532d5591a /media/Store ext4 auto,nofail,noatime,rw,user 0 0
|
|
|
|
-#btrfs temporary drives
|
|
|
|
|
|
+UUID=e5089cbd-e278-4d87-a8b8-7555cc291ea4 /store ext4 auto,nofail,noatime,rw,user 0 0
|
|
|
|
+#raid temporary drives
|
|
#/dev/md0 /raid btrfs ssd,nodatasum,nobarrier,nodatacow,discard=async,noatime 0 0
|
|
#/dev/md0 /raid btrfs ssd,nodatasum,nobarrier,nodatacow,discard=async,noatime 0 0
|
|
#Chia drive
|
|
#Chia drive
|
|
EOF
|
|
EOF
|
|
@@ -343,6 +343,11 @@ ff02::2 ip6-allrouters
|
|
EOF
|
|
EOF
|
|
echo "Done."
|
|
echo "Done."
|
|
|
|
|
|
|
|
+echo -e "$(tput setaf 10)\nSensors drivers:$(tput sgr0)"
|
|
|
|
+sensors
|
|
|
|
+echo "Done."
|
|
|
|
+
|
|
|
|
+echo -e "$(tput setaf 10)\nW.O.L drivers:$(tput sgr0)"
|
|
sudo apt install ethtool -y
|
|
sudo apt install ethtool -y
|
|
iface=$(ip link | awk -F: '$0 !~ "lo|vir|^[^0-9]"{printf $2a}' | cut -d ' ' -f2)
|
|
iface=$(ip link | awk -F: '$0 !~ "lo|vir|^[^0-9]"{printf $2a}' | cut -d ' ' -f2)
|
|
sudo ethtool --change $iface wol g
|
|
sudo ethtool --change $iface wol g
|
|
@@ -395,8 +400,8 @@ then
|
|
if ! grep "#mod for cuda" /home/wareck/.bashrc >/dev/null
|
|
if ! grep "#mod for cuda" /home/wareck/.bashrc >/dev/null
|
|
then
|
|
then
|
|
echo '#mod for cuda' >>/home/wareck/.bashrc
|
|
echo '#mod for cuda' >>/home/wareck/.bashrc
|
|
-echo 'export PATH=/usr/local/cuda-12.3/bin/:$PATH'>>/home/wareck/.bashrc
|
|
|
|
-echo 'export LD_LIBRARY_PATH=/usr/local/cuda-12.3/lib64:$LD_LIBRARY_PATH'>>/home/wareck/.bashrc
|
|
|
|
|
|
+echo 'export PATH=/usr/local/cuda-12.4/bin/:$PATH'>>/home/wareck/.bashrc
|
|
|
|
+echo 'export LD_LIBRARY_PATH=/usr/local/cuda-12.4/lib64:$LD_LIBRARY_PATH'>>/home/wareck/.bashrc
|
|
echo '' >>/home/wareck/.bashrc
|
|
echo '' >>/home/wareck/.bashrc
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|