How to install Webmin on Debian 12

Endrit Qerreti

Endrit Qerreti

Webmin is a web based Linux system administration tool which you can use to manage your Linux servers easily with no hassle.

The cool thing about Webmin is that it is a web based tool, which means you can manage your servers from any device, without having to be in front of your computer only.

In this tutorial, you will learn how to install Webmin on Debian 12. There are different ways to install Webmin on Debian 12. However, in this tutorial, we'll be installing Webmin from the official repository of Webmin.

Step 1 - Update your Server

If the server where you are going to install Webmin, has outdated packages, then update them using the command below

sudo apt update

Step 2 - Add Webmin Repository

Once you have updated your server, you can now proceed to add Webmin repository on your server.

To do so, Webmin provides a shell script that you can use to setup Webmin repository on your server, this is an automatic process so all you have to do is download and execute the script.

1) Download Webmin script

curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh

💡
Note: curl must be installed on your system, if you don't have curl installed on your server, you can easily install it with sudo apt install curl

2) Make Webmin script executable

chmod +x setup-repos.sh

3) Execute Webmin script to add webmin repository on your server

sudo ./setup-repos.sh

Once you execute Webmin script, you will be asked to authenticate, when you do so, then you will need to Press Y key to confirm setting up the repository

Step 4 - Install Webmin

Now you should be able to install Webmin, by simply running the command below.

apt-get install webmin --install-recommends

Conclusion

In this tutorial, we installed Webmin on Debian 12, by using the official Webmin repository.