How to Install Webmin on Ubuntu 20.04

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@vps:~# wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add -
OK

root@vps:~# add-apt-repository "deb [arch=amd64] http://download.webmin.com/download/repository sarge contrib"
Ign:1 http://download.webmin.com/download/repository sarge InRelease
Get:2 http://download.webmin.com/download/repository sarge Release [16.9 kB]
Get:3 http://download.webmin.com/download/repository sarge Release.gpg [173 B]
Hit:4 http://gb.archive.ubuntu.com/ubuntu focal InRelease
Hit:5 http://gb.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:6 http://gb.archive.ubuntu.com/ubuntu focal-backports InRelease
Get:7 http://download.webmin.com/download/repository sarge/contrib amd64 Packages [1,379 B]
Hit:8 http://gb.archive.ubuntu.com/ubuntu focal-security InRelease
Fetched 18.4 kB in 2s (10.9 kB/s)
Reading package lists... Done

Install Webmin by running following command.

apt install webmin

Output:

Webmin install complete. You can now login to https://vps.server.com:10000/
as root with your root password, or as any user who can use sudo
to run commands as root.

To Configure the Firewall.

ufw allow 10000/tcp

Output:

root@vps:~# ufw allow 10000/tcp
Rules updated
Rules updated (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.

First

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

First