Fedora 29: Install Webmin for web base system admin tool

This article will describe installing Webmin which is a web base system administrator tool.

1 Install Webmin

Install Webmin.

#!/bin/sh -e

[ -z "${WEBMIN_PASSWD}" ] && WEBMIN_PASSWD=webmin

webmin_install()
{
  cat <<EOF | sudo tee /etc/yum.repos.d/webmin.repo
[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1
EOF

  TMP=$(mktemp -t webmin.sh.XXXXXX)
  trap 'rm $TMP* 2>/dev/null' 0

  wget -q http://www.webmin.com/jcameron-key.asc -O "${TMP}"
  sudo rpm --import "${TMP}"

  sudo dnf install -y webmin
  sudo /usr/libexec/webmin/changepass.pl /etc/webmin root ${WEBMIN_PASSWD}
  sudo systemctl enable webmin

  sudo firewall-cmd --add-port=10000/tcp --permanent
  sudo firewall-cmd --reload

  sudo reboot
}

webmin_install

1.1 Change port

Change "port" and "listen" in /etc/webmin/miniserv.conf. Run "sudo systemctl restart webmin".

$ sudo sed -e 's/^port=.*/port=10002/g' \
-e 's/^listen=.*/listen=10002/g' -i /etc/webmin/miniserv.conf
$ sudo systemctl restart webmin

2 Access to Webmin

Access to 10000/tcp via https.

https://<server>:10000

Login with root user and WEBMIN_PASSWD password.

0001_Webmin.png