Webmin is a web-based control panel for managing Linux servers. It allows users to easily manage various system settings and services, such as users and groups, Apache web server, DNS, firewall, and more.
In this article, we will go over the steps for installing Webmin on a fresh installation of Debian 10. Before we begin, make sure you have a user that has sudo
privileges.
Add the Webmin repository
To start, we need to add the Webmin repository to our system. First, download and add the Webmin GPG key by running the following command:
wget -q <http://www.webmin.com/jcameron-key.asc> -O- | sudo apt-key add -
Next, add the Webmin repository to the /etc/apt/sources.list
file:
echo "deb <http://download.webmin.com/download/repository> sarge contrib" | sudo tee /etc/apt/sources.list.d/webmin.list
After adding the repository, update the package index by running the following command:
sudo apt-get update
Install Webmin
To install Webmin, run the following command:
sudo apt-get install -y webmin
During the installation, you will be prompted to select the web server that should be configured to run Webmin. Select Apache
and continue with the installation.
Access Webmin
After the installation is complete, you can access Webmin by visiting the URL https://your-server-ip:10000
in a web browser. You will be prompted for the username and password for the Webmin administrator account. The default username is admin
, and the password is the same as the password for the root
user on your system.
Once you are logged in, you will see the Webmin dashboard, which provides an overview of your system and allows you to manage various system settings and services.
Configure the firewall
If you have a firewall enabled on your system, you will need to allow access to the Webmin port (10000) in order to access it from a remote machine.
To do this, run the following commands to open port 10000 and reload the firewall rules:
sudo ufw allow 10000/tcp
sudo ufw reload
Conclusion
In this article, we went over the steps for installing Webmin on a fresh installation of Debian 10. We added the Webmin repository, installed Webmin, and accessed the Webmin dashboard. We also covered how to configure the firewall to allow access to Webmin.
I hope this tutorial has been helpful for you. Happy server management!