AMP AMP

How to install Webmin on Debian 12

To Install Webmin on Debian 12

Introduction

Webmin is an open-source web-based system configuration tool for Linux system administration. By using this tool, we can manage internal system configurations such as user accounts, disk quotas, Apache, DNS, PHP, MySQL, file sharing, and many others.

Procedure

Step 1: Check the OS version by using the below command

root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm

Step 2: Next update the repository by using the below command

root@linuxhelp:~# sudo apt update && sudo apt upgrade
Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
Hit:2 http://deb.debian.org/debian bookworm InRelease
Get:3 http://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]
Fetched 52.1 kB in 1s (45.3 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  linux-image-6.1.0-10-amd64
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Step 3: Add the GPG key signed by webmin by using the below command

root@linuxhelp:~# wget -qO - http://www.webmin.com/jcameron-key.asc | sudo apt-key add -
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK

Step 4: Add the Integrate Webmin repository by using the below command

root@linuxhelp:~# sudo sh -c 'echo "deb http://download.webmin.com/download/repository sarge contrib" > \
/etc/apt/sources.list.d/webmin.list'

Step 5: Again update the repository by using the below command

root@linuxhelp:~# apt-get update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease
Hit:3 http://security.debian.org/debian-security bookworm-security InRelease
Ign:4 http://download.webmin.com/download/repository sarge InRelease
Get:5 http://download.webmin.com/download/repository sarge Release [16.9 kB]
Get:6 http://download.webmin.com/download/repository sarge Release.gpg [181 B]
Get:7 http://download.webmin.com/download/repository sarge/contrib amd64 Packages [1,469 B]
Fetched 18.5 kB in 2s (10.4 kB/s)
Reading package lists... Done
W: http://download.webmin.com/download/repository/dists/sarge/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

Step 6: Once the repository is added, install the Webmin by using the below command.

root@linuxhelp:~# sudo apt install webmin
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  linux-image-6.1.0-10-amd64
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  libalgorithm-c3-perl libauthen-pam-perl libb-hooks-endofscope-perl
  libb-hooks-op-check-perl libclass-c3-perl libclass-c3-xs-perl
  libclass-data-inheritable-perl libclass-inspector-perl libclass-method-modifiers-perl

0 upgraded, 50 newly installed, 0 to remove and 0 not upgraded.
Need to get 37.9 MB of archives.
After this operation, 220 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian bookworm/main amd64 libauthen-pam-perl amd64 0.16-5+b1 [25.4 kB]
Setting up libnamespace-clean-perl (0.27-2) ...
Setting up libnamespace-autoclean-perl (0.29-2) ...
Setting up libdatetime-locale-perl (1:1.37-1) ...
Setting up libdatetime-timezone-perl (1:2.60-1+2023c) ...
Setting up libdatetime-perl (2:1.59-1) ...
Processing triggers for man-db (2.11.2-2) ...

Step 7: Start the webmin services by running the below command.

root@linuxhelp:~# systemctl start webmin

Step 8: Check the status from webmin services by using the below command.

root@linuxhelp:~# systemctl status webmin
● webmin.service - Webmin server daemon
     Loaded: loaded (/lib/systemd/system/webmin.service; enabled; preset: enabled)
     Active: active (running) since Tue 2023-10-24 03:14:15 IST; 17s ago
    Process: 5473 ExecStart=/usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf (code>
   Main PID: 5474 (miniserv.pl)
      Tasks: 1 (limit: 3408)
     Memory: 160.0M
        CPU: 7.991s
     CGroup: /system.slice/webmin.service
             └─5474 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf

Oct 24 03:14:12 linuxhelp systemd[1]: Starting webmin.service - Webmin server daemon...
Oct 24 03:14:12 linuxhelp perl[5473]: pam_unix(webmin:auth): authentication failure; logn>
Oct 24 03:14:14 linuxhelp webmin[5473]: Webmin starting
Oct 24 03:14:15 linuxhelp systemd[1]: Started webmin.service - Webmin server daemon.
server daemon.

Step 9: Next Go to the browser Search your system IP with webmin default port on browser as shown in the below image.

Step 11: click on the ‘Advanced’ tab and Accept the risk and Continue as shown in the below image

Step 12: Login Webmin using the root credentials as shown in the below image

Step 13: This is the Dashboard page of Webmin

Step 14: In the left pane, click on the Tools open Command Shell. Here you can run any command to your Linux server.

Step 15: Next, Click on the Tools open File Manager. You should see the File Manager on the following page:

Step 16: Click on the Networking open Network Configuration and you can set up a static IP address, default gateway, hostname, and DNS.

Step 17: Next, Click on the Hardware open the Partitions and Local Disks. Here you can able create and edit your hard disk partitions.

Conclusion:

We have reached the end of this article. In this guide, we have walked you through the steps required to install Webmin on Debian 12. Your feedback is much welcome.

FAQ
Q
How will Webmin affect the existing configuration files?
A
Webmin will not alter any configuration files during installation. When we start using Webmin, only the config files associated with the changes you make will be modified. For example, using the Apache Webserver module would not affect the Send mail configuration.
Q
What is the default login for Webmin?
A
The login name (default admin) is the username that you will use to log in to Webmin. Admin is the traditional username, but anything can be used.
Q
Is Webmin a TCP or UDP?
A
General description. Webmin is largely based on Perl, running as its own process and web server. It defaults to TCP port 10000 for communicating and can be configured to use SSL if OpenSSL is installed with additional required Perl Modules.
Q
What is Webmin default port number Linux?
A
By default Webmin runs on port 10000, so we need to open the Webmin port on our firewall to access it. The easiest way to open the port on the firewall is by using the following commands.
Q
What is Webmin?
A
Webmin is an open-source web-based system configuration tool for Linux system administration.