In this tutorial, you will learn how to install Webmin on Ubuntu 20.04. Webmin is a web based control panel that allows system administrators to manage system administration tasks such as user account management, package management, e.t.c from the browser.
Install Webmin on Ubuntu 20.04
The default Ubuntu 20.04 repos do not provide Webmin packages. As such, there are two ways in which you can install Webmin on Ubuntu 20.04;
In this guide, you will learn how to install Webmin on Ubuntu 20.04 using the two methods.
Install Webmin from Webmin APT repository
Installing Webmin from its APT repos ensures that you can always fetch and install updates seamlessly as well deal with any required dependency automatically.
Create Webmin APT repository
Run the command below to install Webmin APT repo on Ubuntu 20.04;
echo "deb https://download.webmin.com/download/repository sarge contrib" | sudo tee /etc/apt/sources.list.d/webmin.list
Install Webmin Repo Signing Key
Once the Webmin APT repo is installed, run the command below to install the repository GPG signing key;
wget -qO - http://www.webmin.com/jcameron-key.asc | apt-key add -
Update System Package Cache
Next, update your system package cache;
Install Webmin on Ubuntu 20.04 from Webmin APT Repo
You can now install Webmin by running the command below;
apt install webmin
Install Webmin using Webmin DEB binary
You can also choose to download and install Webmin manually. With this method, you will have to deal with updates manually.
Update system package cache;
Download Webmin DEB Binary Installer
Navigate to Webmin download’s page download the Webmin DEB binary installer. You can simply grab the download link and pull it using wget command;
Install Webmin using DEB Binary
To automatically deal with package dependencies when installing via the DEB binary, use the APT package manager;
apt install ./webmin_1.941_all.deb
Upon installation, Webmin service is started and enabled to run on system boot;
systemctl status webmin
● webmin.service - LSB: web-based administration interface for Unix systems Loaded: loaded (/etc/init.d/webmin; generated) Active: active (running) since Thu 2020-05-07 15:06:49 UTC; 1h 42min ago Docs: man:systemd-sysv-generator(8) Tasks: 1 (limit: 2283) Memory: 27.0M CGroup: /system.slice/webmin.service └─3060 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf May 07 15:06:47 ubuntu20 systemd: Starting LSB: web-based administration interface for Unix systems... May 07 15:06:47 ubuntu20 perl: pam_unix(webmin:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=root May 07 15:06:49 ubuntu20 webmin: Webmin starting May 07 15:06:49 ubuntu20 systemd: Started LSB: web-based administration interface for Unix systems.
Check if enabled to run on system boot;
systemctl is-enabled webmin
Accessing Webmin Web Interface
Webmin is now installed and ready for your system administration tasks. During the installation, you will see a message like;
... Setting up webmin (1.941) ... Webmin install complete. You can now login to https://ubuntu20:10000/ as root with your root password, or as any user who can use sudo to run commands as root. ...
The above highlighted line shows how you can access Webmin from browser. Webmin listens on port 10000/tcp by default.
To allow external access, simply open this port on firewall if is running;
ufw allow 10000/tcp
You can then access Webmin from your browser. Accept the self signed SSL warning and proceed to Webmin login interface. As stated above;
you can login as root with your root password, or as any user who can use sudo to run commands as root
The default Webmin dashboard showing system information.
On the left panel of the Webmin interface, you can access several other system administration settings.
Webmin is an awesome tool. Explore it further.