Browse Source

/bin/bash: ligne 1: :w : commande introuvable

moi 1 year ago
parent
commit
6f12d13872
1 changed files with 19 additions and 19 deletions
  1. 19 19
      other_arch/alma.sh

+ 19 - 19
other_arch/alma.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
 set -e
-Version=1.8
+Version=2.1
 
 #if (( $EUID != 0 )); then
 #   echo -e "$(tput setaf 11)This must be run as root. Try 'sudo $0'.$(tput sgr0)"
@@ -33,25 +33,25 @@ function print_centered {
 
 function intro_ {
 clear
-print_centered "$(tput setaf 244)"
-print_centered " █████  ██      ███    ███  █████  ██      ██ ███    ██ ██    ██ ██   ██"
-print_centered "██   ██ ██      ████  ████ ██   ██ ██      ██ ████   ██ ██    ██  ██ ██ "
-print_centered "███████ ██      ██ ████ ██ ███████ ██      ██ ██ ██  ██ ██    ██   ███  "
-print_centered "██   ██ ██      ██  ██  ██ ██   ██ ██      ██ ██  ██ ██ ██    ██  ██ ██ "
-print_centered "██   ██ ███████ ██      ██ ██   ██ ███████ ██ ██   ████  ██████  ██   ██"
-print_centered ""
-echo -n "$(tput sgr0)$(tput setaf 10)"
+print_centered "$(tput setaf 1)"
+print_centered "███╗   ██╗███████╗██████╗ ██╗   ██╗██╗      █████╗ "
+print_centered "████╗  ██║██╔════╝██╔══██╗██║   ██║██║     ██╔══██╗"
+print_centered "██╔██╗ ██║█████╗  ██████╔╝██║   ██║██║     ███████║"
+print_centered "██║╚██╗██║██╔══╝  ██╔══██╗██║   ██║██║     ██╔══██║"
+print_centered "██║ ╚████║███████╗██████╔╝╚██████╔╝███████╗██║  ██║"
+print_centered "╚═╝  ╚═══╝╚══════╝╚═════╝  ╚═════╝ ╚══════╝╚═╝  ╚═╝"
+echo -n "$(tput sgr0)$(tput setaf 7)"
 print_centered "Server installation script v$Version"
 print_centered "Special Dell R640"
 echo -n "$(tput sgr0)"
-echo ""
-print_centered "(ne pas activer le login automatique...)"
+echo -e "\n"
+#print_centered "(ne pas activer le login automatique...)"
 sleep 3
 }
 
 
 function update_ {
-echo -e "$(tput setaf 10)\nUpdate:$(tput sgr0)"
+echo -e "$(tput setaf 10)\nLibraries update:$(tput sgr0)"
 sudo dnf -y update
 sudo dnf install -y epel-release
 sudo dnf group install -y "Development Tools"
@@ -223,15 +223,15 @@ git config --global core.editor "nano"
 intro_
 update_
 drive_
-wol_
-tigervnc_
-chia_
-miner_
-config_
-webmin_
+#wol_
+#tigervnc_
+#chia_
+#miner_
+#config_
+#webmin_
 
 clear
 echo -e "\n\n$(tput setaf 10)VNC password:$(tput sgr0)"
-vncpasswd
+#vncpasswd
 
 echo -e "\nProcess finished !! \nhappy plotting."