What Makes Webmin Different?
One of the biggest advantages of Webmin is that it allows you to directly configure third-party services in your server. You will not need to memorize each configuration file for each service that you use in your machine. Webmin also allows you to configure deep system files in your machine. For example, it is possible to configure your GRUB Bootloader directly from Webmin’s interface.
Installing Webmin in Linux
Before you can install Webmin, you need to make sure that you have the following resources available and ready:
Machine that you can access over the network, such as a local machine in your home or a VPS that you rent online. Compatible Linux distribution in your machine that supports a wide range of Linux distributions. We are using Ubuntu. Root access in your machine, to be used for configuring system files during the installation process.
Obtaining Webmin’s Dependencies
The first step in installing Webmin is to import its repository archive, as Webmin is not included by default in Ubuntu 22.04. To import the Webmin repository, copy the developer’s signing key: Copy the repository information for Webmin to your /etc/apt/sources.list.d file: Lastly, update apt to refresh your system’s repository listings:
Configuring Your Firewall and Installing the Program
Make sure that Webmin is accessible from outside the server by using the iptables utility to enable port 10000 for incoming connections: Lastly, install the Webmin utility with the following command:
Managing Your System With Webmin
Once you have properly installed Webmin in your server, you can start configuring your system through it. However, you need to first find the IP address of your server. Do that by running the following command: After that, you can now open Webmin by going through your web browser and typing the machine’s IP address followed by the program’s port. In my case, I will type 192.168.68.165:10000. A small login page for Webmin will open. To access the system, provide your current Ubuntu credentials. For example, I am typing user “ramces” followed by my password to access the Webmin interface.
Installing a Service Using Webmin
Once inside, Webmin will display a visual dashboard of your system with a brief summary of your machine and how it utilizes its resources. The visual dashboard also allows you to easily install and remove third-party services from your server by clicking the “Un-used Modules” category in the Dashboard’s left sidebar. Webmin will list all of the available services that you can install. For example, I can click the “Apache Webserver” item to set up a web server in my machine. Doing that will display a new page where Webmin will ask if you want to install a new service in your server. To begin the installation, click the “Install Now” button. Webmin will list all the dependencies it needs to properly build the service that you want to install. To continue, click the “Install Now” button again. The program will create a new terminal instance and run all of the commands that it needs to install your service. Click the “Return” button at the bottom of the current page to load your new service. Tip: you can also learn how to configure Apache and PHP for a high traffic site.
Configuring a System Setting Using Webmin
Another brilliant use of Webmin is configuring system files and services through its interface. This approach removes the need to constantly access the system through SSH for relatively minor tweaks and configurations. Click the “System” category in the Dashboard’s left sidebar. Webmin will display all the available system settings that you can tweak through its interface. For example, I can select the “Users and Groups” item to either modify a user or add a group in the server. Doing that will load a new page where it lists all of the active user accounts and groups in the system. To add a new user, click the “Create a New User” button. Note: it is considered best practice to avoid using the root user for daily tasks. Instead, create a new user with sudo privileges and use that account for your daily tasks. For the most part, the user creation process in Webmin is similar to the useradd utility. However, one key difference between the two is that the Webmin’s approach allows you to associate an SSH key to a new user, allowing you to create secure accounts that do not rely on traditional password authentication. Save your new user by clicking the “Create” button. Lastly, restart your machine to fully apply your new configuration. Select the “Bootup and Shutdown” item in the left sidebar. Scroll down to the bottom of the page and select “Reboot System.” Image credit: Unsplash. All alterations and screenshots by Ramces Red. For the most part, you can ignore this warning if you are only hosting Webmin in a closed local network. However, you need to create a proper SSL certificate if you intend on running it over the Internet. Generate a Let’s Encrypt certificate by going to “Webmin -> Webmin Configuration -> SSL Encryption.”