webmin.sh 1.0 KB

123456789101112131415161718192021222324
  1. #!/usr/bin/env bash
  2. while true; do
  3. read -p "This will Install Webmin, Proceed(y/n)?" yn
  4. case $yn in
  5. [Yy]* ) break;;
  6. [Nn]* ) exit;;
  7. * ) echo "Please answer yes or no.";;
  8. esac
  9. done
  10. CHECKMARK='\033[0;32m\xE2\x9C\x94\033[0m'
  11. echo -e "Loading Script..."
  12. echo -e "${CHECKMARK} \e[1;92m Installing Prerequisites... \e[0m"
  13. apt update &>/dev/null
  14. apt-get -y install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl unzip shared-mime-info &>/dev/null
  15. echo -e "${CHECKMARK} \e[1;92m Downloading Webmin... \e[0m"
  16. wget http://prdownloads.sourceforge.net/webadmin/webmin_1.984_all.deb &>/dev/null
  17. echo -e "${CHECKMARK} \e[1;92m Installing Webmin... \e[0m"
  18. dpkg --install webmin_1.984_all.deb &>/dev/null
  19. echo -e "${CHECKMARK} \e[1;92m Setting Default Webmin usermame & password to root... \e[0m"
  20. /usr/share/webmin/changepass.pl /etc/webmin root root &>/dev/null
  21. echo -e "Install Complete, Now Go To https:// IP:10000"
  22. # bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/misc/webmin.sh)"