To install Webmin on Ubuntu, you add the official Webmin repository, import its GPG key, update your package list, and then install the webmin package with apt. This guide walks through each step for current Ubuntu LTS releases (20.04 and newer) using the terminal.
What Is Webmin?
Webmin is a web-based system administration tool for Unix-like systems. Instead of editing configuration files or running complex commands over SSH, you log into a web interface (usually on port 10000) and manage users, packages, disk partitions, firewall rules, and dozens of other services through forms and menus. It is open source, free to use, and runs on most Linux distributions as well as FreeBSD and Solaris.
Webmin is not a control panel like cPanel or Plesk that is tied to hosting features. It is a general-purpose server management panel. You can install it on a fresh Ubuntu server or on a desktop install, though it is most useful on servers. It does not replace the command line, but it lowers the barrier for tasks like adding cron jobs, setting up Samba shares, or managing Apache virtual hosts.
Prerequisites
Before you start, make sure you have:
- Ubuntu 20.04, 22.04, or 24.04 (the steps are the same for these versions).
- Root access or a user with sudo privileges.
- An internet connection to download packages.
- Port 10000 open in any firewall if you plan to access Webmin remotely.
You do not need a static IP address, and you do not need a domain name for basic use. If you are on a cloud server, make sure your security group allows inbound TCP on port 10000.
Step-by-Step Installation
Open a terminal and run the following commands one at a time. The first command installs the dependencies needed to add a repository securely.
sudo apt updatesudo apt install wget apt-transport-https gnupg2 -y- Add the Webmin GPG key:
wget -qO- https://download.webmin.com/jcameron-key.asc | sudo gpg --dearmor -o /usr/share/keyrings/webmin.gpg - Add the repository:
echo "deb [signed-by=/usr/share/keyrings/webmin.gpg] https://download.webmin.com/download/repository sarge contrib" | sudo tee /etc/apt/sources.list.d/webmin.list - Update again:
sudo apt update - Install Webmin:
sudo apt install webmin -y
After installation, Webmin starts automatically. You can check its status with sudo systemctl status webmin. The service listens on port 10000, so open https://your-server-ip:10000 in a browser. You will see a certificate warning because Webmin uses a self-signed SSL certificate by default; that is expected. Accept the warning and log in with your Ubuntu username and sudo password.
How to Update and Remove Webmin
Because you added the official repository, Webmin updates automatically when you run sudo apt update && sudo apt upgrade. This is the recommended way to keep it current. If you prefer a different update method, you can also download the latest .deb file from the Webmin website and install it with sudo dpkg -i, but that is more manual.
To remove Webmin completely, run:
sudo apt remove --purge webmin
sudo rm /etc/apt/sources.list.d/webmin.list
sudo rm /usr/share/keyrings/webmin.gpg
This removes the software and the repository configuration. Your system data and configuration files for other services are not touched.
Common Problems and Fixes
Most installation issues fall into a few categories:
- GPG key errors: If you see “The following signatures couldn’t be verified,” the key file may be missing or misplaced. Re-run the wget and gpg commands exactly as shown, then update again.
- Port 10000 not reachable: Check your firewall with
sudo ufw status. If UFW is active, allow the port withsudo ufw allow 10000/tcp. On cloud servers, also check the security group settings. - HTTPS certificate warning: This is normal for a self-signed certificate. You can replace it with a Let’s Encrypt certificate through Webmin’s own interface later, but for a fresh install, just proceed.
- Webmin does not start: Run
sudo systemctl status webminto see the error. A common cause is a missing Perl module. The package manager should install dependencies, but if one is missing,sudo apt install --fix-brokenmay help.
Security Considerations
Webmin gives full administrative control over your system, so securing it is important. At a minimum, do the following:
- Change the default port from 10000 to something less predictable via Webmin > Webmin Configuration > Ports and Addresses.
- Restrict access by IP address if your IP is static. In the same settings page, you can limit which IPs can connect.
- Enable two-factor authentication in Webmin’s configuration if you want extra protection.
- Keep the system updated. Webmin releases security patches regularly, so staying current is essential.
- Do not expose port 10000 to the public internet unless you have a strong password and ideally a VPN. Consider using SSH tunneling instead.
Alternatives to Webmin
Webmin is not the only option. Depending on your needs, you might consider:
- Cockpit: A modern, lightweight web console built into many Linux distributions. It focuses on system monitoring, container management, and basic configuration. It is less powerful than Webmin for detailed service configuration.
- Ajenti: Another open-source web panel with a clean interface, though it has a smaller community and fewer modules.
- Command line: For experienced administrators, plain SSH and tools like
nano,systemctl, andufwoffer the most control and no extra attack surface. - cPanel/WHM or Plesk: Commercial hosting panels that are more oriented toward web hosting providers. They are heavier and cost money.
Choose Webmin when you want a free, flexible, and comprehensive web interface for a single server. Choose Cockpit if you prefer a minimal, distro-integrated tool. Choose the command line if you are comfortable with it and want the least overhead.
Frequently Asked Questions
Do I need a desktop environment to use Webmin?
No. Webmin runs as a web server, so you only need a browser on any device (laptop, tablet, phone) to access it. The Ubuntu server itself can be headless (no GUI).
Can I install Webmin on Ubuntu Desktop?
Yes, the same steps work on Ubuntu Desktop. It will run alongside the graphical environment. Some users do this to manage services without opening a terminal, though it is more common on servers.
What is the default username and password for Webmin?
There is no separate Webmin user. You log in with any existing system user that has sudo privileges. The first time you log in, use your Ubuntu username and the password you use for sudo.
Is Webmin safe to use on a production server?
It can be safe if you secure it properly. The software is widely used and actively maintained. The main risks come from exposing the port publicly with weak credentials. Use a strong password, restrict access, and keep it updated.
How do I change the Webmin port?
Go to Webmin > Webmin Configuration > Ports and Addresses, change the port number, and save. The service restarts automatically. Remember to update your firewall rules accordingly.
Why does my browser show a certificate warning?
Webmin generates a self-signed SSL certificate during installation. Browsers do not trust self-signed certificates by default. You can either accept the warning or install a certificate from a trusted CA like Let’s Encrypt through Webmin’s interface.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Snapchat Web Not Working? 7 Fixes That Work
- Fix Windows 10 Mouse Double Clicks on Single Click
- Continuous Testing: How It Cuts Technical Debt
- Call Failed on iPhone? Here’s How to Fix It
- Organize Android Apps for Productivity: Step-by-Step
- How to Delete Apps on Galaxy J5