How to Install Webmin on Ubuntu 21.10

Webmin is a web-based dashboard that allows sysadmins to manage Linux and Unix-like systems (especially servers). Webmin allows system administrators to manage user accounts, updating packages, system log files, configuring firewalls, email, database, postfix, etc.

Installing Webmin on Ubuntu

First, check for any pending system updates,

apt update

apt upgrade

Install the required packages.

apt install software-properties-common apt-transport-https wget

Import and Add Webmin Repository Key.

wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add -

add-apt-repository "deb [arch=amd64] http://download.webmin.com/download/repository sarge contrib"

Output:

root@crowncloud:~# add-apt-repository "deb [arch=amd64] http://download.webmin.com/download/repository sarge contrib"
Repository: 'deb [arch=amd64] http://download.webmin.com/download/repository sarge contrib'
Description:
Archive for codename: sarge components: contrib
More info: http://download.webmin.com/download/repository
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Found existing deb entry in /etc/apt/sources.list.d/archive_uri-http_download_webmin_com_download_repository-impish.list
Adding deb entry to /etc/apt/sources.list.d/archive_uri-http_download_webmin_com_download_repository-impish.list
Found existing deb-src entry in /etc/apt/sources.list.d/archive_uri-http_download_webmin_com_download_repository-impish.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/archive_uri-http_download_webmin_com_download_repository-impish.list

Install Webmin by running the following command.

apt install webmin

Output:

root@crowncloud:~# apt install webmin
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libauthen-pam-perl libio-pty-perl
The following NEW packages will be installed:

To Configure the Firewall.

ufw allow 10000/tcp

Output:

root@crowncloud:~# ufw allow 10000/tcp
Rule added
Rule added (v6)

To access Webmin, open the URL from your web browser: https://IP_address:10000

Note:

  1. When logging in for the first time, you will see an 'invalid SSL' warning.
  2. Simply click on the 'Advanced' tab and then 'Accept the risk and Continue'.

Login to the Webmin web interface using your root user and password.

image

Once you log in, you will be redirected to the Webmin dashboard.

image

Done.