How to Install Webmin on Ubuntu: A Step-by-Step Guide 2023

Webmin is a powerful web-based interface that simplifies managing a Unix or Linux system. In this blog post, we’ll walk you through the steps to install Webmin on your machine. Let’s go!

Prerequisites

  • A system running Ubuntu 18.04 or Ubuntu 20.04.
  • A user account with sudo privileges
  • Access to the terminal window
  • A working network connection

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. 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 turned off 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 a local or remote server’s IP address.

 

Note: If you still haven’t set up a server for Webmin to manage, My Software Online recommends to check Digital Ocean.

 

Top Pick
1200px DigitalOcean logo.svg

DigitalOcean

Deploy faster & scale easier with an application server that saves your team time & money. Get started with fast, secure, and reliable cloud infrastructure solutions.

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

Click Advanced…, then Accept the Risk and Continue to get through this page.

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

4. Login using the default username root and your password.

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 this tutorial, you should have a fully functioning copy of Webmin set up and ready to use.

More from this stream

Recomended

Post