Webmin is a powerful and user-friendly web-based interface that simplifies the management of Linux servers. In this tutorial, we will walk you through the process of installing Webmin on Debian 12. Follow the steps below to set up Webmin and enhance your server management experience.

Step 1: Create the Repository

Begin by opening your terminal and creating the Webmin repository file.


sudo nano /etc/apt/sources.list.d/webmin.list

Paste the following code into the file. Ensure it’s a single line to avoid errors.


deb [signed-by=/usr/share/keyrings/jcameron-key.gpg] https://download.webmin.com/download/repository sarge contrib

Save and exit the editor.

Step 2: Install the GPG Key

Switch to the root user and download the GPG key.


su -
cd /root
wget https://download.webmin.com/jcameron-key.asc

Install the key.


cat jcameron-key.asc | gpg --dearmor >/etc/apt/trusted.gpg.d/jcameron-key.gpg

Step 3: Install Dependencies

Ensure you have the required dependencies by running the following commands.


sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python unzip shared-mime-info

Step 4: Install Webmin

Install the necessary packages and update the package list.


apt-get install apt-transport-https
apt-get update
apt-get install webmin

The installation is now concluded, and Webmin is ready to use.

Conclusion:

By following these simple steps, you’ve successfully installed Webmin on Debian 12. With Webmin’s intuitive web interface, server management becomes more accessible, allowing you to efficiently handle various administrative tasks. Take advantage of Webmin’s features to streamline your server management workflow.