How to Install Webmin on Ubuntu 24.04
Step-by-step tutorial on how to install Webmin on Ubuntu 24.04 LTS. Configure official APT repository, SSL certificates, firewall rules, and dashboard.

6 min read
Step-by-step tutorial on how to install Webmin on Ubuntu 24.04 LTS. Configure official APT repository, SSL certificates, firewall rules, and dashboard.
- Prerequisites and Supported Releases
- Step 1: Updating System and Installing Required Dependencies
- Step 2: Adding the Webmin Official GPG Keyring
Administering a Linux server traditionally requires executing terminal commands via SSH and manually editing complex text configuration files in /etc. While the command line offers unparalleled flexibility, navigating multiple configuration syntaxes for BIND DNS, Apache, Postfix, firewall tables, and disk partitions can be time-consuming and prone to syntax errors.
Webmin is a powerful, open-source web-based control panel designed for Unix and Linux system administrators. With Webmin, you can manage user accounts, disk quotas, package updates, systemd services, scheduled cron jobs, and database servers directly from any modern web browser without needing to touch the terminal for routine tasks. Understanding how to install webmin on ubuntu 24.04 gives you an enterprise-grade web interface to manage your infrastructure securely and efficiently.
In this step-by-step tutorial, we demonstrate how to install Webmin on Ubuntu 24.04 LTS (Noble Numbat) using the official Webmin APT repository and modern GPG keyring practices. We also guide you through firewall configuration with UFW, initial SSL access, dashboard navigation, and critical security hardening practices including two-factor authentication (2FA).
Install and secure the Webmin web-based server administration control panel on Ubuntu 24.04 LTS using the official APT repository and UFW firewall rules.
Prerequisites and Supported Releases
This guide is thoroughly verified on Ubuntu 24.04 LTS (Noble Numbat). The instructions apply cleanly to cloud instances (AWS EC2, Google Compute Engine, DigitalOcean, Hetzner), bare-metal servers, and local virtual machines.
Before proceeding, ensure you have the following requirements satisfied:
- A virtual or dedicated server running
Ubuntu 24.04 LTS. - A non-root user with administrative
sudoprivileges. - At least
1 GB of RAM(2 GB recommended if managing databases and web servers). - Inbound access to TCP port
10000configured in your firewall or security group.
Step 1: Updating System and Installing Required Dependencies
Before adding third-party repositories, update your local APT package database and install essential transport, cryptography, and Perl dependencies. Webmin is built on Perl and requires standard Perl runtime libraries.
Run the following command to update your system and install curl, gnupg, apt-transport-https, and core Perl libraries.
These packages ensure that APT can fetch metadata over HTTPS and verify cryptographic package signatures securely.
# Update package index and upgrade installed packages
sudo apt update && sudo apt upgrade -y
# Install prerequisite transport tools and Perl libraries
sudo apt install -y curl gnupg apt-transport-https libauthen-pam-perl libio-pty-perl
Step 2: Adding the Webmin Official GPG Keyring
To ensure that packages downloaded from the Webmin repository are authentic and unmodified, import the official Webmin developer GPG signing key.
In modern Ubuntu 24.04 LTS installations, GPG keys must be de-armored and saved into the dedicated /etc/apt/keyrings directory rather than added with deprecated commands like apt-key add.
Create the keyrings directory if it does not already exist, download the key, de-armor it, and assign standard 0644 permissions.
# Ensure keyrings directory exists with secure permissions
sudo mkdir -p -m 0755 /etc/apt/keyrings
# Download and de-armor the official Webmin GPG key
curl -fsSL https://download.webmin.com/jcameron-key.asc | sudo gpg --dearmor -o /etc/apt/keyrings/webmin.gpg
# Set correct read permissions
sudo chmod 0644 /etc/apt/keyrings/webmin.gpg
Step 3: Configuring the Webmin APT Repository
With the cryptographic key in place, add the official Webmin repository entry to your system's APT sources list.
Create a new source file at /etc/apt/sources.list.d/webmin.list, explicitly referencing the GPG keyring file.
Then refresh your local APT package lists so your package manager recognizes the newly available Webmin packages.
# Add the Webmin repository source file
echo 'deb [signed-by=/etc/apt/keyrings/webmin.gpg] https://download.webmin.com/download/repository sarge contrib' | sudo tee /etc/apt/sources.list.d/webmin.list
# Refresh local package index
sudo apt update
Step 4: Installing Webmin via APT
Now install the Webmin package using the standard APT package manager. APT will download the package and automatically configure systemd background services.
Run the installation command below.
Upon completion, the Webmin installer automatically creates the webmin systemd service and starts the internal MiniServ web server on port 10000.
Verify that the Webmin daemon is active and running.
# Install Webmin
sudo apt install -y webmin
# Check Webmin service status
sudo systemctl status webmin --no-pager
Step 5: Configuring the Firewall (UFW) for Webmin
By default, Webmin listens for incoming HTTPS requests on TCP port 10000. If you have Ubuntu's Uncomplicated Firewall (UFW) active, you must allow inbound traffic on this port.
Allow port 10000/tcp using UFW, or restrict access exclusively to your trusted office or home IP address for enhanced security.
Check the firewall status to confirm the rule has been applied.
# Allow incoming traffic on port 10000 from anywhere
sudo ufw allow 10000/tcp
# Or allow incoming traffic strictly from your trusted IP (recommended):
# sudo ufw allow from 203.0.113.50 to any port 10000 proto tcp
# Reload and verify firewall status
sudo ufw status numbered
Step 6: Accessing the Webmin Web Interface
With Webmin running and the firewall configured, open your favorite web browser and navigate to the Webmin address: https://your_server_ip:10000.
Because Webmin generates a self-signed SSL certificate during installation, your browser will display a security warning (such as 'Your connection is not private' or 'Warning: Potential Security Risk Ahead'). Click Advanced and proceed to the site.
At the Webmin login screen, log in using your standard Ubuntu non-root user credentials (any user account belonging to the sudo group).
Once authenticated, you will be greeted by the Webmin dashboard displaying real-time CPU usage, RAM utilization, disk space, and active system services.
# Identify your server public or private IP address
ip -brief address show
Step 7: Configuring a Trusted Let's Encrypt SSL Certificate
To eliminate browser security warnings and encrypt administrative traffic with a publicly trusted certificate, configure a free Let's Encrypt SSL certificate inside Webmin.
In the left-hand navigation menu of Webmin, navigate to Webmin > Webmin Configuration > SSL Encryption.
Click on the Let's Encrypt tab, enter your fully qualified domain name (e.g., webmin.example.com) and your email address, and click Request Certificate.
Webmin will automatically validate domain ownership, issue the certificate, and restart the MiniServ daemon with valid SSL encryption.
# Verify Webmin SSL configuration in /etc/webmin/miniserv.conf
sudo grep -i ssl /etc/webmin/miniserv.conf
Step 8: Hardening Webmin Security with Two-Factor Authentication
Because Webmin grants extensive administrative control over your Ubuntu server, protecting it from brute-force authentication attacks is critical.
Enable Two-Factor Authentication (2FA) by navigating to Webmin > Webmin Configuration > Two-Factor Authentication.
Select Google Authenticator (or TOTP-compatible app), save the configuration, and scan the generated QR code using an authenticator app on your smartphone.
Additionally, consider changing the default listening port from 10000 to an unassigned high port in /etc/webmin/miniserv.conf to reduce automated port scans.
# Restart Webmin after manual configuration changes
sudo systemctl restart webmin
Troubleshooting and Common Errors
When configuring Ubuntu servers, unexpected permission errors, network timeouts, or lock contention can occur. Review these common issues and verified resolutions:
Browser displays 'Connection Refused' when accessing port 10000
Resolution: Verify that the Webmin service is running with sudo systemctl status webmin. Next, check if port 10000 is listening with sudo ss -tulpn | grep 10000, and confirm UFW or your cloud provider security group permits incoming TCP port 10000.
Login fails with valid sudo user credentials
Resolution: Ensure that your Ubuntu user belongs to the sudo group by running groups . If using PAM authentication, verify that libauthen-pam-perl is installed.
SSL error: The site can't provide a secure connection
Resolution: Ensure you are prefixing the URL with https:// rather than http://. By default, Webmin rejects plaintext HTTP connections.
Security Best Practices and Hardening
Never leave Webmin exposed on port 10000 to the public internet without firewall restrictions. Whitelist only trusted IP addresses in UFW or access Webmin through an SSH tunnel.
Always enable Two-Factor Authentication (2FA) under Webmin Configuration for all administrative accounts.
Replace the self-signed SSL certificate with a verified Let's Encrypt certificate to protect against man-in-the-middle attacks.
Regularly review /var/webmin/miniserv.log to monitor login attempts and investigate unauthorized IP addresses.
Related Ubuntu Tutorials and Documentation
Deepen your Linux system administration skills with our related production-tested guides:
Authoritative References and Official Documentation

The Linux Command Line, 2nd Edition: A Complete Introduction
Frequently Asked Questions
Quick answers to common questions and configurations
sudo apt purge webmin && sudo rm /etc/apt/sources.list.d/webmin.list /etc/apt/keyrings/webmin.gpg.Editorial Disclosure: Website Vidya is supported by our readers. When you purchase hosting, tools, or software through our verified partner links, we may earn an affiliate commission at no extra cost to you. We only recommend solutions we trust and rigorously verify.
Rajesh Ray
I’m Rajesh Rai, a full-stack developer, Linux administrator, and technology enthusiast passionate about making complex technology easier to understand and use.
Most Read Guides
TrendingUbuntu Server Not Booting? 10 Simple Steps to Fix It Fast
How to Create a 3D Button in HTML and CSS: Easy Steps
How to Install Python and Pip on Ubuntu 24.04 LTS
How to Install Nginx on Ubuntu 24.04
How to Install Python on Ubuntu 24.04 LTS
Related Technical Guides
Tested runbooks, server administration walkthroughs, and troubleshooting guides


Join the Conversation & Perspective
Have thoughts, counterpoints, or reflections on this story? Engage directly with fellow readers and editorial contributors.
No comments on this guide yet. Be the first to share your thoughts or ask a question!