You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.2 KiB

3 years ago
#!/usr/bin/env bash
3 years ago
YW=$(echo "\033[33m")
RD=$(echo "\033[01;31m")
BL=$(echo "\033[36m")
3 years ago
CM='\xE2\x9C\x94\033'
GN=$(echo "\033[1;92m")
CL=$(echo "\033[m")
3 years ago
while true; do
read -p "This will Install Webmin, Proceed(y/n)?" yn
case $yn in
[Yy]*) break ;;
[Nn]*) exit ;;
*) echo "Please answer yes or no." ;;
3 years ago
esac
done
3 years ago
clear
echo -en "${GN} Installing Prerequisites... "
3 years ago
apt update &>/dev/null
apt-get -y install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl unzip shared-mime-info &>/dev/null
3 years ago
echo -e "${CM}${CL} \r"
echo -en "${GN} Downloading Webmin... "
wget http://prdownloads.sourceforge.net/webadmin/webmin_2.000_all.deb &>/dev/null
3 years ago
echo -e "${CM}${CL} \r"
3 years ago
echo -en "${GN} Installing Webmin... "
dpkg --install webmin_2.000_all.deb &>/dev/null
3 years ago
echo -e "${CM}${CL} \r"
3 years ago
echo -en "${GN} Setting Default Webmin usermame & password to root... "
3 years ago
/usr/share/webmin/changepass.pl /etc/webmin root root &>/dev/null
rm -rf /root/webmin_2.000_all.deb
3 years ago
echo -e "${CM}${CL} \r"
3 years ago
IP=$(hostname -I | cut -f1 -d ' ')
echo -e "Successfully Installed!! Webmin should be reachable by going to https://${IP}:10000"
3 years ago
# bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/misc/webmin.sh)"

Powered by BW's shoe-string budget.