There is a new version of this tutorial available for Debian 12 (Bookworm).

How to Install Webmin on Debian 11

Managing and administering Linux servers from the command line is very difficult for any beginner Linux user. In this case, you can use Webmin to manage your Linux server from the web-based interface. Webmin is a free and open-source application platform that provides a graphical user interface to manage and control the Linux server. Using Webmin, you can create user accounts, set up Apache, DNS, and FTP server, share files, configure firewalls, and more.

In this article, I will show you how to install Webmin Linux admin panel on Debian 11.

Prerequisites

  • A server running Debian 11.
  • A root password is configured on the server.

Getting Started

Before starting, it is recommended to update your system's package cache to the latest version. You can update it using the following command:

apt-get update -y

After updating the package cache, install other required dependencies using the following command:

apt-get install gnupg2 curl -y

Once all the required dependencies are installed, you can proceed to the next step.

Install Webmin

By default, the Webmin package is not included in the Debian 11 default repository. So you will need to add the Webmin repository to the APT.

First, download and add the GPG key with the following command:

wget -qO - http://www.webmin.com/jcameron-key.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/jcameron-key.gpg

Next, add the Webmin repository to the APT using the following command:

sh -c 'echo "deb http://download.webmin.com/download/repository sarge contrib" > /etc/apt/sources.list.d/webmin.list'

Once the repository is added, update the repository and install the Webmin with the following command:

apt-get update -y
apt-get install webmin -y

Once the Webmin is installed, you can proceed to the next step.

Manage Webmin Service

You can start, stop, restart and check the status of the Webmin easily from the init service.

To start the Webmin service, run the following command:

service webmin start

To restart the Webmin service, run the following command:

service webmin restart

To stop the Webmin service, run the following command:

service webmin stop

To check the status of the Webmin service, run the following command:

service webmin status

By default, Webmin listens on port 100000. You can check it using the following command:

ss -antpl | grep 10000

You should see the following output:

LISTEN 0      4096         0.0.0.0:10000      0.0.0.0:*    users:(("miniserv.pl",pid=4073,fd=5))

Configure Firewall for Webmin

It is also recommended to secure your server with a UFW firewall. To do so, install the UFW firewall with the following command:

apt-get install ufw -y

Once the UFW firewall is installed, allow ports 22 and 10000 with the following command:

ufw allow 22
ufw allow 10000

Next, enable the UFW firewall using the command below:

ufw enable

Next, verify the firewall with the following command:

ufw status

You should get the following output:

Status: active

To                         Action      From
--                         ------      ----
22                         ALLOW       Anywhere                  
10000                      ALLOW       Anywhere                  
22 (v6)                    ALLOW       Anywhere (v6)             
10000 (v6)                 ALLOW       Anywhere (v6)             

How to Use Webmin

At this point, Webmin is installed. You can now access it using the URL http://your-server-ip:10000. You will be redirected to the Webmin login page:

Webmin Login

Provide your root username, password and click on the Sign in button. You should see the Webmin dashboard on the following page:

Webmin Dashboard

In the left pane, click on the Tools => Command Shell. You should see the Linux terminal on the following page:

Webmin shell

From here, you can run any command to your Linux server.

Click on the Tools => File Manager. You should see the File Manager on the following page:

Webmin file manager

From here, you can create a file, directory, and manage the entire file system.

Click on the Tools => Upload and Download. You should see the following page:

Webmin file upload

From here, you can upload and download any file to and from the server.

Click on the Networking => Linux Firewall. You should see the firewall interface on the following page:

Webmin Firewall configuration

From here, you can open and close the specific ports for remote users.

Click on the Networking => Network Configuration. You should see the network configuration wizard:

webmin network configuration

From here, you can set up a static IP address, default gateway, hostname, and DNS.

Click on the Hardware => Partitions and Local Disks. You should see the Partition Manager on the following page:

Use Webmin to partition disks

From here, you can create and edit your hard disk partitions.

Remove Webmin

If you don't want Webmin then you can remove it using the following command:

apt-get remove webmin

Next, run the following command to clean the package cache and remove unwanted packages from your system.

apt-get autoremove -y
apt-get clean

Conclusion

Congratulations! you have successfully installed Webmin on Debian 11. I hope Webmin will help you to manage and control your Linux server from the web browser. Feel free to ask me if you have any questions.

Share this page:

2 Comment(s)