|
@@ -1,6 +1,6 @@
|
|
#!/bin/bash
|
|
#!/bin/bash
|
|
set -e
|
|
set -e
|
|
-Version=18.3.2
|
|
|
|
|
|
+Version=18.3.3
|
|
Cuda=YES
|
|
Cuda=YES
|
|
kernel_custom=YES
|
|
kernel_custom=YES
|
|
Miners=Yes
|
|
Miners=Yes
|
|
@@ -13,6 +13,7 @@ if (( $EUID != 0 )); then
|
|
exit 1
|
|
exit 1
|
|
fi
|
|
fi
|
|
clear
|
|
clear
|
|
|
|
+export TERM=xterm-256color
|
|
Cuda=${Cuda^^}
|
|
Cuda=${Cuda^^}
|
|
kernel_custom=${kernel_custom^^}
|
|
kernel_custom=${kernel_custom^^}
|
|
driver=${driver^^}
|
|
driver=${driver^^}
|
|
@@ -75,8 +76,7 @@ print_centered "╚██████╗╚██████╔╝████
|
|
print_centered " ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝"
|
|
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 "GA990xa-ud3"
|
|
|
|
|
|
+print_centered "Ubuntu version 20.04.6"
|
|
if [ $Cuda = "YES" ]
|
|
if [ $Cuda = "YES" ]
|
|
then
|
|
then
|
|
print_centered "CUDA"
|
|
print_centered "CUDA"
|
|
@@ -95,7 +95,7 @@ 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 lm-sensors 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 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 libsensors4-dev htop vlc locate cmake -y
|
|
sudo apt-get install libglib2.0-dev libgtk2.0-dev libsensors4-dev htop vlc locate cmake -y
|
|
@@ -832,6 +832,11 @@ sleep 1
|
|
}
|
|
}
|
|
|
|
|
|
function autoroot_ {
|
|
function autoroot_ {
|
|
|
|
+if ! grep "#color putty" ~/.bashrc >/dev/null
|
|
|
|
+then
|
|
|
|
+echo "#color putty" >> ~/.bashrc
|
|
|
|
+echo "export TERM=xterm-256color" >> ~/.bashrc
|
|
|
|
+fi
|
|
if [ ! -d /home/wareck/.config/autostart ]
|
|
if [ ! -d /home/wareck/.config/autostart ]
|
|
then
|
|
then
|
|
echo -e "$(tput setaf 10)\nInit install & autostart:$(tput sgr0)"
|
|
echo -e "$(tput setaf 10)\nInit install & autostart:$(tput sgr0)"
|