Guides 11792 Published by

The article is a practical how‑to guide that shows readers how to install Webmin on Ubuntu 21.04 quickly, using only a handful of terminal commands. It begins by explaining why Webmin can replace command‑line management with a browser interface for users, services, and firewall rules, then lists the prerequisites such as a fresh installation, root or sudo access, and an internet connection. The core of the post walks through updating apt, installing wget and HTTPS transport, adding Webmin’s GPG key, creating the repository file pointing to the “sarge” entry, refreshing the index again, installing Webmin itself, opening UFW on port 10000, and finally accessing the web UI via https://localhost:10000/. Finally, it offers quick troubleshooting for DNS or proxy issues, port blocking, and SSL warnings, before encouraging users to explore the System menu and reminding them that a simple apt update can resolve most hiccups.



How to Install Webmin on Ubuntu 21.04 in Minutes

If you’ve ever tried to manage an Ubuntu server and thought, “I wish I could just tweak this from a browser,” Webmin is the answer. In this post you’ll learn how to get it running on 21.04 with a handful of commands, no fuss.

Why You’ll Need Webmin

Webmin turns your command‑line worries into a tidy web UI: user accounts, packages, services, and even firewall rules can be edited without typing sudo ufw or opening /etc/ssh/sshd_config. I’ve seen admins jump from the terminal to Webmin after an accidental SSH key deletion; it’s a lifesaver when you’re on the road or in a hurry.

Prerequisites for a Smooth Setup
  • A fresh Ubuntu 21.04 install (desktop or server).
  • Root or sudo privileges.
  • A working internet connection – Webmin pulls its packages from a remote repo.

If you’re behind a corporate proxy, remember to export http_proxy and https_proxy before running the commands.

Step‑by‑Step Installation

1. Update your package list

   sudo apt update

This ensures you pull the latest security patches first.

2. Install prerequisites (wget and apt-transport-https)

   sudo apt install wget apt-transport-https -y

Webmin uses an HTTPS repo, so you need that transport layer.

3. Add Webmin’s GPG key – this prevents a rogue package from slipping in.

   wget -qO - http://www.webmin.com/jcameron-key.asc | sudo apt-key add -

4. Create the Webmin repository file

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

The sarge entry is still valid for all recent Ubuntu releases.

5. Refresh the package index again

   sudo apt update

6. Install Webmin – this pulls in everything you need, including the Apache‑based web server that runs it.

   sudo apt install webmin -y

7. Open the firewall for HTTP/HTTPS if you’re using UFW

   sudo ufw allow 10000/tcp

Webmin listens on port 10000 by default.

8. Navigate to it in your browser – go to https://your‑server-ip:10000/ or, if you’re on the same machine, https://localhost:10000/. The first time you hit it, a self‑signed certificate warning will pop up; accept it and log in with your system’s root or sudo user credentials.

Troubleshooting Common Pitfalls
  • “Could not resolve host” error – usually the proxy settings are wrong. Double‑check http_proxy/https_proxy.
  • Port 10000 blocked – make sure you added the UFW rule and that no other service is using that port.
  • SSL warning on login – Webmin uses a self‑signed cert; it’s fine for local use. If you want a proper cert, install one with Let’s Encrypt and point Webmin to it.
Final Checks and Usage

Once logged in, explore the “System” menu: you can add users, manage services, or even tweak the firewall from a GUI. I’ve used Webmin for quick package installs on a spare VM after an accidental apt purge, so it’s handy when the terminal is off.

That’s all there is to it—no deep dive into configuration files required unless you want to customize the theme or add modules. You’re now set to control your Ubuntu 21.04 server from a browser, and if anything goes sideways just remember: a quick sudo apt update && sudo apt upgrade usually clears up most hiccups.