1
0
mirror of https://github.com/tteck/Proxmox.git synced 2024-12-11 11:19:01 +02:00
Proxmox/webmin.sh

25 lines
1.0 KiB
Bash
Raw Normal View History

2021-12-10 23:10:36 +02:00
#!/usr/bin/env bash
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
CHECKMARK='\033[0;32m\xE2\x9C\x94\033[0m'
echo -e "Loading Script..."
echo -e "${CHECKMARK} \e[1;92m Installing Prerequisites... \e[0m"
2021-12-10 23:30:44 +02:00
apt update &>/dev/null
2021-12-10 23:52:47 +02:00
apt-get -y install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl unzip shared-mime-info &>/dev/null
2021-12-10 23:10:36 +02:00
echo -e "${CHECKMARK} \e[1;92m Downloading Webmin... \e[0m"
2022-01-01 22:07:52 +02:00
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.984_all.deb &>/dev/null
2021-12-10 23:10:36 +02:00
echo -e "${CHECKMARK} \e[1;92m Installing Webmin... \e[0m"
2022-01-01 22:07:52 +02:00
dpkg --install webmin_1.984_all.deb &>/dev/null
2021-12-10 23:10:36 +02:00
echo -e "${CHECKMARK} \e[1;92m Setting Default Webmin usermame & password to root... \e[0m"
2021-12-10 23:30:44 +02:00
/usr/share/webmin/changepass.pl /etc/webmin root root &>/dev/null
2021-12-11 01:43:38 +02:00
echo -e "Install Complete, Now Go To https:// IP:10000"
2021-12-10 23:10:36 +02:00
# bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/webmin.sh)"