How to install Webmin on Ubuntu 20.04

Webmin is a web-based dashboard that allows system administrators to manage Linux and Unix-like systems (especially servers). Webmin allows system administrators to manage user accounts, update packages, system log files, configure firewalls, emails, databases, suffixes, etc.

In this tutorial, we learn how to install Webmin on Ubuntu 20.04 LTS. We have previously installed on Let’s Encrypt on Ubuntu 18.04, the following steps should also work normally.

Step 1: Update Ubuntu

First, it is best to update the system software package and repository first. So, first, run the command:

$ sudo apt update -y  && sudo apt upgrade -y

Update Ubuntu 20.04 LTS

Next, install the dependency packages, which will help you manage the software repository as follows:

$ sudo apt install software-properties-common apt-transport-https

    Install common Ubuntu 20.04 LTS software properties

Step 2: Enable the Webmin repository

After updating all system packages to the latest version, you need to enable the Webmin repository. This is due to the fact that Webmin’s repository is not yet available in Ubuntu 20.04 LTS.

So first, add Webmin ’s GPG key as shown

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

Add Webmin GPG key Ubuntu 20.04 LTS

Next, manually add the Webmin repository as follows:

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

Ad Webmin repository on Ubuntu 20.04 LTS

Step 3: Install Webmin

So far, we have updated the system, installed Webmin’s GPG key and manually added the required Webmin repository. To install Webmin, now just run the following simple command and press ‘Y’ when prompted to continue.

$ sudo apt install webmin

Install webmin on Ubuntu 20.04 LTS

After the installation of Webmin is completed, check its status by running the following command:

$ sudo systemctl status webmin

From the output, we can see that Webmin is already running to be configured to start at installation.

Check Webmin status

To check the installed version of Webmin, issue the following command:

$ dpkg -l | grep webmin

Check webmin status Ubuntu 20.04

From the output above, we can see that we have installed Webmin version 1.941. After installing and running Webmin, let us now access it through a browser.

Step 4: Configure the firewall

By default, Webmin listens on TCP port 10000. To access the server from outside, you need to open the port on the firewall. To do this, execute the command:

$ sudo ufw allow 10000/tcp

Allow port 10000 on ufw firewall

Then reload the firewall for the changes to take effect.

$ sudo ufw reload

To verify the status of the firewall, run:

$ sudo ufw status

Reload UFW firewall

Step 5: Log in to Webmin

To log in to Webmin’s dashboard, open a browser and browse the server’s IP as follows:

https://server-IP:10000/

Initially, you will get the following web page, indicating potential risks in the future. But don’t worry. it’s not a big deal. This happens because Webmin generates its own custom SSL certificate, and the browser believes that the certificate is not secure.

Log in to Webmin

To solve this obstacle, just click “advanced‘Label, then’Accept the risk and continue‘.

Continue to use Webmin Ubuntu 20.04

Log in to Webmin as root and use the same password as the root Unix user on the Linux system.

Provide username and password and click ‘Sign in‘Button,

Webmin login page Ubuntu 20.04

Finally, the Webmin dashboard will be displayed as follows.

Webmin dashboard

Now you can continue and configure the Ubuntu 20.04 system according to your specifications. To upgrade the Webmin installation after each release, simply run the following command:

$ sudo apt update

$ sudo apt upgrade

in conclusion

Ajenti and CockPit are good choices for Webmin tools. Ubuntu 20.04 LTS has good early support for Webmin and Virtualmin using installation scripts.

Virtualmin has added a nice theme and is good at managing domains, emails, databases and best suites in a shared hosting environment.

This tutorial will introduce the installation steps on Webmin on Ubuntu 20.04 LTS step by step, I hope to help you.

If you have any questions or feedback, please feel free to comment.

Sidebar