Install Webmin Ubuntu 24.04
Installing Webmin on Ubuntu 24.04
Predominantly developed in Perl, Webmin is an excellent choice for beginners and users who prefer the simplicity of administering and monitoring a system graphically. No command-line skills are required (although it does offer a provision for running commands). This guide explores how to install Webmin on Ubuntu 24.04.
Step 1. Update the package index
To get started, update the local package index to update the list of package information from their repositories.
sudo apt update
You should get a similar output to what we
OutputHit:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
129 packages can be upgraded. Run 'apt list --upgradable' to see them.
Step 2. Download and run the Webmin setup
There are different ways to install Webmin. The most straightforward method is using an automated script to download and configure Webmin’s GPG key and repository.
This is achieved using two simple steps. First, download the setup script using the curl command:
curl -o webmin-setup-repo.sh https://raw.githubusercontent.com/webmin/webmin/master/webmin-setup-repo.sh
The download will display the following output.
Output % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16246 100 16246 0 0 111k 0 --:--:-- --:--:-- --:--:-- 111k
Once complete, you can verify the script download using the ls command:
ls -lh
The downloaded file should be listed.
Outputtotal 16K
-rw-r--r-- 1 root root 16K Mar 3 19:03 webmin-setup-repo.sh
Now run the installing script.
bash webmin-setup-repo.sh
The script automatically sets up the repository and installs GPG keys on your system. Additionally, it provides the Webmin package for installation.
OutputSetup Webmin releases repository? (y/N) y
Downloading Webmin developers key ..
.. done
Installing Webmin developers key ..
.. done
Cleaning up package priority configuration ..
.. done
Setting up Webmin releases repository ..
.. done
Cleaning repository metadata ..
.. done
Downloading repository metadata ..
.. done
Webmin and Usermin can be installed with:
apt-get install --install-recommends webmin usermin
Finally, install Webmin using the following command:
sudo apt install webmin --install-recommends
The command installs Webmin along with all the required packages and dependencies.
Step 3. Verify Webmin installation
Once installed, the Webmin service autostarts. You can confirm the status of the Webmin daemon by running:
sudo systemctl status webmin
The following output will be displayed, proof that Webmin is installed and running.
Output● webmin.service - Webmin server daemon
Loaded: loaded (/usr/lib/systemd/system/webmin.service; enabled; preset: enabled)
Active: active (running) since Mon 2025-03-03 19:41:14 EET; 1min 21s ago
Main PID: 4542 (miniserv.pl)
Tasks: 1 (limit: 2320)
Memory: 81.5M (peak: 214.5M)
CPU: 5.765s
CGroup: /system.slice/webmin.service
By default, Webmin listens on port 10000 on localhost. To confirm this, invoke the ss command.
ss -antp | grep 10000
Here is the expected output.
OutputLISTEN 0 4096 0.0.0.0:10000 0.0.0.0:* users:(("miniserv.pl",pid=4542,fd=5))
LISTEN 0 4096 [::]:10000 [::]:* users:(("miniserv.pl",pid=4542,fd=6))
Having confirmed the successful installation of Webmin, let’s go ahead and access it.
Step 4. Configure UFW for Webmin
If you already have UFW configured, allow inbound traffic to port 1000 as shown.
sudo ufw allow 10000/tcp
OutputRule added
Rule added (v6)
Next, reload the firewall for the changes to come into effect.
sudo ufw reload
OutputFirewall reloaded
Step 5. Access and start using Webmin
To access Webmin, fire up your browser and head to the following URL.
https://server-ip:10000
Conclusion
Webmin takes away the complexity of running commands on the terminal by offering a simple and intuitive UI for conveniently running system tasks. Check out the official documentation for more information.