How to install Webmin on Ubuntu

Andrei Maksimov
Andrei Maksimov

As you probably already know, the terminal provides tech professionals a lot of flexibility in managing Linux operating systems. But what if you’re not a tech professional and still need to effectively manage several Linux servers? Well, we have a solution for you! In this article, we’ll show you how to install and start using Webmin – an open-source web-based tool that allows users to manage almost every aspect of your operating system right from your web browser!

For example, you can use Webmin to manage user accounts, configure firewall, configure DNS settings, updating OS and its packages.

Here’s a list of Webmin’s features that you might be interested in:

  • See server’s utilization stats.
  • Install, update, and remove software packages.
  • Manage user accounts: create and delete and change users’ passwords.
  • Configure network settings, e.g., network interface IPs, DNS, DHCP.
  • Enable firewall and manage its rules.
  • Set up disk limits for services and users.
  • Run commands from the interactive shell.

Prerequisites

You must have sudo privileges to install and set up Webmin on Ubuntu Linux.

Installation process

Webmin is not listed in the official Ubuntu repository, so you need to use the following steps to install it by manually adding the Webmin repository to your Ubuntu server first:

Updating system repository 

It is extremely important that update your APT repository before getting the new package:

sudo apt update
1. How To Install Webmin on Ubuntu - apt-get update

Installing prerequisite packages

Once all the packages and repositories are updated, you need to install the following dependency packages that will help you to manage the Ubuntu software repositories:

sudo apt install -y wget apt-transport-https software-properties-common
2. How To Install Webmin on Ubuntu - apt-get install wget apt-transport-https software-properties-common

Extracting GPG key

To extract the GPG key, use the command given below: 

sudo wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add -
3. How To Install Webmin on Ubuntu - Add Webmin GPG key

Adding Webmin repository

When the GPG key is in place, copy and paste the command into the terminal to add the Webmin repository:

sudo add-apt-repository "deb [arch=amd64] http://download.webmin.com/download/repository sarge contrib"
4. How To Install Webmin on Ubuntu - Add Webmin repository

Installing “Webmin” on Ubuntu

As soon as you’ve added the Webmin repository, it is a good idea to update your package list again:

sudo apt update
5. How To Install Webmin on Ubuntu - apt-get update after adding Webmin repo

Now, install the Webmin application by typing the command:

sudo apt install -y webmin
6. How To Install Webmin on Ubuntu - apt-get install webmin

The Webmin has been successfully installed as a service inside of your system.

Verification of installation

Check the status of the Webmin service and make sure that it is in an active and running state:

sudo systemctl status webmin
7. How To Install Webmin on Ubuntu - systemctl status webmin

To check the version of the Webmin, use the following command:

dpkg -l | grep webmin
8. How To Install Webmin on Ubuntu - check Webmin installed package

It displays that we have installed version “1.974”.

Configuring Firewall

Webmin listens on port 10000, but your firewall blocks it. You must first allow port 10000 on your firewall so that you can log in to Webmin. 

sudo ufw allow 10000/tcp
9. How To Install Webmin on Ubuntu - ufw add webmin port

After that, restart the firewall to see the changes:

sudo ufw reload
10. How To Install Webmin on Ubuntu - ufw reload

To check the status of the firewall, use:

sudo ufw status
11. How To Install Webmin on Ubuntu - ufw status

Using Webmin on Ubuntu

In this section, we’ll cover the first steps at Webmin so that you can feel the taste of the ease of Linux server management.

Accessing Webmin’s UI

Once port 10000 is opened, you can use your browser and enter your server IP address or hostname to connect to it:

  • https://IP-address:10000
  • https://hostname:10000

At first login, the warning web page will appear, which tells you that the website you’re connecting to has an invalid SSL certificate. This happens because Webmin produces its SSL certificate during the installation, and your browser can not validate it.

You can install your own valid (paid) certificate later.

As for now, click on the “Advanced” tab:

12. How To Install Webmin on Ubuntu - ssl alert

Then, click “Accept the risk and continue“:

13. How To Install Webmin on Ubuntu - Accept risk and continue

The login page for the Webmin will appear. Provide your system user username and password and click on the “Sign-in” button:

14. How To Install Webmin on Ubuntu - Login window

The Webmin dashboard will show you an overview of system statistics such as CPU and RAM consumption and other system information.

15. How To Install Webmin on Ubuntu - Dashboard

You will see a panel with a list of options on the left side where you can choose any administrative functions.

16. How To Install Webmin on Ubuntu - Menu

Creating a new user

You can easily create a new user at your server using Webmin.

To do that, click on the “System” tab and select “Users and groups” from the drop-down menu.

16. How To Install Webmin on Ubuntu - Menu (users and groups)

You can create a new user by clicking on the “Create a new user” button as shown in the image:

17. How To Install Webmin on Ubuntu - Menu (Create new user button)

Enter the required details in the form:

18. How To Install Webmin on Ubuntu - Menu (Create new user dialog)

A new user will be created when you click on the “Create” button after giving all the details. 

Changing password

If you want to modify the user’s password, click the “Change Passwords” option in the “System” menu.

The list of users will appear on the screen.

Select the user to whom you want to change the password:

19. How To Install Webmin on Ubuntu - Menu (Change password)

Uninstalling “Webmin”

You can delete the Webmin from your system using the following command:

sudo apt remove webmin
20. How To Install Webmin on Ubuntu - apt-get remove webmin

The Webmin tool has been deleted from your Linux system.

Summary

Webmin is a powerful browser-based system configuration tool for handling server administration tasks such as user accounts, DNS settings, manage files, and many others. 

The Webmin makes it easy to complete tasks without using a terminal.

This guide covers how to install the Webmin, its interface, and a couple of most commonly used actions.

Happy system administration of your Ubuntu Linux servers using the web browser and Webmin.

We hope this article was useful! If so, please, help us to spread it to the world!

Like this article?

Share on Facebook
Share on Twitter
Share on Linkdin
Share on Pinterest

Want to be an author of another post?

We’re looking for skilled technical authors for our blog!

Leave a comment

If you’d like to ask a question about the code or piece of configuration, feel free to use https://codeshare.io/ or a similar tool as Facebook comments are breaking code formatting.