How to Install Webmin on Ubuntu 24.04

|
Last Updated:
|
|

In this tutorial, you will learn how to install Webmin on Ubuntu 24.04. Webmin is a web based control panel that allows system administrators to manage system administration tasks such as user account management, package management, e.t.c from the browser.

Installing Webmin on Ubuntu 24.04

There are two ways in which you can install Webmin on Ubuntu;

In this guide, we will show you how to use the two methods.

Prerequisites

In order to install Webmin, you need;

  • SSH or physical console access to the server
  • Have root access or a user account with sudo rights

Method 1: Install Webmin from Webmin APT repository

Installing Webmin from its APT repos ensures that you can always fetch and install updates seamlessly as well deal with any required dependency automatically.

Install Webmin APT repository

Run the command below to install Webmin APT repo on Ubuntu 24.04;

echo "deb https://download.webmin.com/download/newkey/repository stable contrib" | sudo tee /etc/apt/sources.list.d/webmin.list

Install Webmin Repository Signing Key

Once the Webmin APT repo is installed, run the command below to install the repository GPG signing key;

sudo apt install gnupg2 -y
wget -qO - https://download.webmin.com/developers-key.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/webmin.gpg

Install Webmin via APT Repository

Next, update your system package cache;

sudo apt update

You can now install Webmin by running the command below;

sudo apt install webmin -y

Method 2: Install Webmin using Webmin DEB binary

You can also choose to download and install Webmin manually. With this method, you will have to deal with Webmin updates/upgrades manually.

Run System Update

Update system package cache;

sudo apt update

Download Webmin DEB Binary Installer

Navigate to Webmin download’s page download the Webmin DEB binary installer.

You can simply grab the download link and pull it using wget command. The version number varies. Be sure to check the downloads page.

curl -Ls https://www.webmin.com/download/deb/webmin-current.deb -o webmin.deb

Install Webmin using DEB Binary

To automatically deal with package dependencies when installing via the DEB binary, use the APT package manager;

sudo apt install ./webmin.deb

Running Webmin on Ubuntu 24.04

Once the installation is done, Webmin is started automatically.

Check the status

systemctl status webmin

To confirm it is running, check to ensure port 10000/tcp is opened.

ss -altnp | grep 10000
LISTEN 0      4096         0.0.0.0:10000      0.0.0.0:*    users:(("miniserv.pl",pid=3453,fd=5))

You can restart, reload and stop using the commands below, respectively.

/etc/webmin/restart
/etc/webmin/reload
/etc/webmin/stop

Similarly, you can use systemctl counterpart commands.

Accessing Webmin Web Interface

Webmin is now installed and ready for your system administration tasks.

Webmin listens on port 10000/tcp by default.

To allow external access, simply open this port on firewall if is running;

sudo ufw allow 10000/tcp

If you are using iptables;

sudo iptables -A INPUT -p tcp --dport 10000 -j ACCEPT

You can then access Webmin from your browser, https://server-IP:10000.

You can also use resolvable domain name instead of IP address.

Accept the self signed SSL warning and proceed to Webmin login interface. As stated above;

you can login as root with your root password, or as any user who can use sudo to run commands as root

The default Webmin dashboard showing system information.

On the left panel of the Webmin interface, you can access several other system administration settings.

For example, open a terminal by clicking on the icon as shown in the screenshot below;

launch terminal on webmin

Use terminal as you would when logged in to the system via SSH or console!

And that how easy it is to install Webmin on Ubuntu. You can now explore further.

SUPPORT US VIA A VIRTUAL CUP OF COFFEE

We're passionate about sharing our knowledge and experiences with you through our blog. If you appreciate our efforts, consider buying us a virtual coffee. Your support keeps us motivated and enables us to continually improve, ensuring that we can provide you with the best content possible. Thank you for being a coffee-fueled champion of our work!

Photo of author
Kifarunix
Linux Certified Engineer, with a passion for open-source technology and a strong understanding of Linux systems. With experience in system administration, troubleshooting, and automation, I am skilled in maintaining and optimizing Linux infrastructure.

Leave a Comment