How to Install Webmin on Ubuntu

September 10, 2021

Introduction

Webmin is a web-based tool admins use to manage Linux and Unix systems and servers. The Webmin dashboard allows you to manage user accounts, update and configure your system, view system logs and emails, and perform other administrative tasks.

In this tutorial, we will show you the step-by-step process of installing, configuring, and logging into Webmin on Ubuntu 18.04 and 20.04.

How to install Webmin on Ubuntu

Prerequisites

Install Webmin on Ubuntu 20.04 - Step-by-Step

Follow the steps outlined below to install Webmin on Ubuntu. These steps work for both Ubuntu 18.04. (Bionic Beaver) and Ubuntu 20.04. (Focal Fossa).

Step 1: Update Ubuntu Package List

1. In the terminal, run the following command to update the package list:

sudo apt update

2. When prompted, enter your administrator password and press Enter.

3. Install the update packages with:

sudo apt upgrade

4. Type Y and press Enter to confirm the update.

Type Y and press Enter to confirm Ubuntu update

5. Install dependency packages to help you manage software repositories by using:

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

6. Type Y and press Enter when prompted to confirm the installation.

Step 2: Enable Webmin Repository

1. Add Webmin's GPG key with:

sudo wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add -
Add Webmin's GPG key

2. Manually add the Webmin repository using:

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

Step 3: Install Webmin on Ubuntu

1. Start the Webmin installation using:

sudo apt install webmin

2. When prompted, type Y and press Enter to confirm the installation.

Type Y and press Enter to confirm Webmin installation

3. Once the installation is complete, check the status of the Webmin service:

sudo systemctl status webmin
Check the status of the Webmin service to confirm installation

Another method to confirm the installation is successful is to check the installed version of Webmin:

dpkg -l | grep webmin
Check Webmin version to confirm installation

Step 4: Configure the Firewall

1. Webmin uses the TCP port 10000 by default. Open this port on your firewall by using:

sudo ufw allow 10000/tcp
Open port 10000 on your firewall

2. Reload your firewall for the changes to take effect:

sudo ufw reload
Reload your firewall

Note: The firewall is disabled on Ubuntu by default. If your system's firewall is disabled, enable it with sudo ufw enable.

3. Check the status of your firewall to confirm the changes:

sudo ufw status
Check the status of your firewall

Step 5: Access Webmin on Ubuntu

1. Set the password for the Webmin root user with:

sudo /usr/share/webmin/changepass.pl /etc/webmin root [new password]

Note: Setting up a new password this way only works for existing users. You can't use this method to set up new users.

2. Open your Internet browser and enter the following as a web address using your server's IP:

https://[your server's IP]:10000/

You can use local or remote server's IP address.

Note: If you still haven't set up a server for Webmin to manage, PhoenixNAP offers a choice of Bare Metal Cloud servers featuring high availability and performance. Start setting up your servers for as little as $0.10/hour!

3. Webmin generates its own SSL certificate not recognized by the browser, which causes a page indicating a potential security risk the first time you try to log in.

Potential security risk warning

To get through this page, click Advanced..., then Accept the Risk and Continue.

Get around the security risk warning by clicking Advanced, then Accept the Risk and Continue

4. Log in using the default username root and the password you set up.

Logging into Webmin online dashboard

5. Use the Webmin dashboard to review your system information.

An example of a Webmin dashboard

Conclusion

Now you know how to install Webmin on Ubuntu 18.04 or 20.04 After following this tutorial, you should have a fully functioning copy of Webmin set up and ready to use.

Was this article helpful?
YesNo
Aleksandar Kovačević
With a background in both design and writing, Aleksandar Kovacevic aims to bring a fresh perspective to writing for IT, making complicated concepts easy to understand and approach.
Next you should read
How to Install MySQL on Ubuntu 20.04
June 3, 2021

Learn how to install the MySQL server on Ubuntu 20.04 in this simple tutorial. See also how to secure your server after installation and log in to start working.
Read more
How to set DNS Nameserver on Ubuntu 20.04
May 18, 2021

The Domain Name System (DNS) translates text-based domain names to numeric IP addresses. Most networks are configured to work with DNS servers provided by the ISP. This tutorial shows you how to change DNS addresses in Ubuntu.
Read more
How to Install Puppet on Ubuntu 20.04
March 17, 2021

Puppet is an open-source solution that helps you perform administrative tasks remotely. This tutorial takes you step-by-step through the process of installing Puppet on Ubuntu 20.04.
Read more
How to Configure Proxy Settings on Ubuntu 20.04
December 10, 2020

Proxy servers are commonly found on local business networks, providing an additional security layer. Among personal users, they are popular because they help increase privacy and speed.
Read more