2022-01-19 01:10:02 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-02-19 09:47:36 +00:00
|
|
|
|
2022-02-19 09:38:20 +00:00
|
|
|
YW=`echo "\033[33m"`
|
|
|
|
RD=`echo "\033[01;31m"`
|
|
|
|
BL=`echo "\033[36m"`
|
|
|
|
CM='\xE2\x9C\x94\033'
|
|
|
|
GN=`echo "\033[1;92m"`
|
|
|
|
CL=`echo "\033[m"`
|
2022-01-19 01:10:02 +00:00
|
|
|
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.";;
|
|
|
|
esac
|
|
|
|
done
|
2022-02-19 09:38:20 +00:00
|
|
|
clear
|
|
|
|
|
|
|
|
echo -en "${GN} Installing Prerequisites... "
|
2022-01-19 01:10:02 +00:00
|
|
|
apt update &>/dev/null
|
|
|
|
apt-get -y install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl unzip shared-mime-info &>/dev/null
|
2022-02-19 09:38:20 +00:00
|
|
|
echo -e "${CM}${CL} \r"
|
|
|
|
|
|
|
|
echo -en "${GN} Downloading Webmin... "
|
2022-03-04 12:50:51 +00:00
|
|
|
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.990_all.deb &>/dev/null
|
2022-02-19 09:38:20 +00:00
|
|
|
echo -e "${CM}${CL} \r"
|
|
|
|
|
2022-02-19 09:50:15 +00:00
|
|
|
echo -en "${GN} Installing Webmin... "
|
2022-03-04 12:50:51 +00:00
|
|
|
dpkg --install webmin_1.990_all.deb &>/dev/null
|
2022-02-19 09:38:20 +00:00
|
|
|
echo -e "${CM}${CL} \r"
|
|
|
|
|
2022-02-19 09:50:15 +00:00
|
|
|
echo -en "${GN} Setting Default Webmin usermame & password to root... "
|
2022-01-19 01:10:02 +00:00
|
|
|
/usr/share/webmin/changepass.pl /etc/webmin root root &>/dev/null
|
2022-03-04 12:50:51 +00:00
|
|
|
rm -rf /root/webmin_1.990_all.deb
|
2022-02-19 09:38:20 +00:00
|
|
|
echo -e "${CM}${CL} \r"
|
2022-02-19 15:03:10 +00:00
|
|
|
IP=$(hostname -I | cut -f1 -d ' ')
|
2022-02-19 15:15:00 +00:00
|
|
|
echo -e "${BL} Successfully Installed Webmin, Now Go To https://${IP}:10000 ${CL}"
|
2022-01-19 01:10:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
# bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/misc/webmin.sh)"
|