
Webmin is an open-source server management tool that provides a web-based GUI for system administration on Linux. It offers core functionalities and supports additional modules to manage system tasks like user accounts, disk quotas, networking, and applications.
In this article, you are to install Webmin on an Ubuntu 22.04 server, providing a web-based control panel to manage and monitor system functionalities.
Before you begin:
Have an Ubuntu 22.04 server.
Create a new subdomain DNS record pointing to your server IP address. For example, webmin.example.com.
Access the server using SSH as a non-root user with sudo privileges.
Webmin is not available in the default Ubuntu 22.04 APT repositories. Follow the steps below to download the latest Webmin repository information and install the application on your server.
Download the latest Webmin repository script.
Run the script using Bash.
Install Webmin with all recommended packages.
View the Webmin system service and verify that it's running.
Output:
The Webmin control panel is accessible on port 10000 by default with HTTP. To secure Webmin, change the default port if needed and encrypt all connections with HTTPS using trusted Let's Encrypt SSL certificates. Follow the steps below to generate and apply the certificates.
Allow the HTTP connections through the default firewall to enable Let's Encrypt validations.
Install the Certbot Let’s Encrypt client application.
Generate a new SSL certificate using your Webmin domain. Replace webmin.example.com with your actual domain and webmin@example.com with your email address.
When the certificate request is successful, your output should look like the one below:
Based on the above output, Certbot saved the SSL certificate and private key files to the /etc/letsencrypt/live/webmin.example.com/ directory.
Run the following command to merge the SSL certificate and private key into a single .pem file. For example, webmin.pem.
Replace webmin.example.com with your actual domain.
Move the new certificate file to the Webmin configurations directory.
Open the main Webmin configuration file using a text editor such as Nano.
Find and replace the keyfile value with your SSL certificate file location.
Restart Webmin to apply the new SSL configuration changes.
UFW is active by default on Ubuntu 22.04. Follow the steps in this section to configure the firewall to allow connections to the Webmin interface on port 10000 and enable HTTPS connections.
Allow the Webmin port 10000.
Allow the HTTPS network connections.
Deny insecure HTTP connections on the server.
Reload UFW to apply the firewall changes.
View the UFW status to verify all available connection rules.
Your output should look like the one below.
Access your Webmin domain on port 10000 using a web browser such as Chrome.
Enter your sudo user account details and click Sign In to log in and access the Webmin control panel.
All users with login privileges can access Webmin, but only sudo users can perform administrative tasks.
Verify server system info (CPU, memory, disk space, processes) in the Webmin dashboard.
Navigate to System > Software Package Updates to check for packages needing updates.
Review and select packages for updates, then click Update Selected Packages.
Click Install Now to update the selected packages on your server.
Click Tools and select File Manager to manage files on your server.
Navigate to Tools and select Terminal to open a new terminal shell on your server.
You have installed Webmin on your Ubuntu 22.04 server, secured the control panel with trusted SSL certificates, and accessed it to perform basic server administration tasks. The control panel allows you to keep your server packages up to date, manage the filesystem, and handle other system components such as users and processes. For more information and configuration options, please visit the Webmin documentation.
0 Comments
Be the first to comment and share your perspective with the community.