How to install Webmin on Ubuntu

Andrei Maksimov

Andrei Maksimov

0
(0)

As you probably already know, the terminal provides tech professionals a lot of flexibility when it comes to managing Linux operating systems. But what if you’re not a tech professional and still have a 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 which allows users to manage almost every aspect of your operating system right from you web browser!

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

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

  • See server’s utilization stats.
  • Install, update, and remove software packages.
  • Manage user accounts: create and delete users, change user’s passwords.
  • Configure network settings, eg: network interfaces IPs, DNS, DHCP.
  • Enable firewall and manage its rules.
  • Set up disk limits for services and users.
  • Run commands from 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 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 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 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 you can feel the taste of ease Linux server management.

Accessing Webmin’s UI

Once the 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 invalid SSL certificate. This happens because Webmin produces its own 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 consumptions and other system’s 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 then 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)

When you click on the “Create” button after giving all the details, a new user will be created. 

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 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 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

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

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

In this guide, we’ve covered how to install the Webmin, it’s 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!

How useful was this post?

Click on a star to rate it!

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Top rated Udemy Courses to improve you career

Subscribe to our updates

Like this article?

Share on facebook
Share on Facebook
Share on twitter
Share on Twitter
Share on linkedin
Share on Linkdin
Share on pinterest
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.