How to Install Webmin on Debian 12

Estimated reading: 3 minutes 545 views

Introduction

This guide provides a clear and detailed walkthrough on how to deploy a VPS and install Webmin on Debian 12. It is designed for beginners and can be followed step by step to set up and manage a server using a web-based interface.


Step 1: Create a VPS Instance

1.1 Access Your Cloud Dashboard

Log in to your VPS provider account. After logging in, open the main dashboard and click the Create or Deploy Instance button. Then choose Virtual Machine or Instance to begin the setup process. You will be redirected to the instance creation page.


1.2 Select Server Location

Locate the region or location section. Choose a data center such as New York, Amsterdam, or Tokyo. It is recommended to select a location that is closest to your target users in order to reduce latency and improve performance.


1.3 Choose Operating System

Find the operating system selection section and choose Debian 12. Confirm your selection to continue. Debian is recommended because it is stable and widely supported.


1.4 Configure Server Plan

Select your server specifications, including CPU, RAM, and storage. After that, choose your authentication method. You can either use an SSH key for better security or a root password for easier setup. Once everything is configured, click Create or Deploy to launch your server.


1.5 Get Server IP Address

Wait until your server status changes to Running. Then open the instance details page and copy the public IP address. This IP will be used to connect to your server.


Step 2: Connect to Your Server

2.1 Open SSH Client

Open a terminal application if you are using Linux or macOS. If you are using Windows, open PuTTY or Windows Terminal.


2.2 Connect to Server

Run the following command in your terminal:

ssh root@your-server-ip

Replace your-server-ip with your actual server IP address.


2.3 First Login

When connecting for the first time, type yes to confirm the connection. Then enter your root password. After successful login, you will see the command line interface of your server.


Step 3: Update System

Run the following command to update package lists:

apt update -y

Step 4: Install Required Packages

Run the following command to install required dependencies:

apt install gnupg2 curl -y

Step 5: Install Webmin

5.1 Download Repository Script

Run the following commands:

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

5.2 Run the Script

Execute the script to add the Webmin repository:

sh setup-repos.sh

5.3 Install Webmin

Run the following commands:

apt update -y
apt install webmin --install-recommends -y

Step 6: Start and Verify Webmin

Start the Webmin service:

service webmin start

Check the service status:

service webmin status

6.1 Verify Port 10000

Run the following command to confirm Webmin is running:

ss -antpl | grep 10000

Step 7: Configure Firewall

7.1 Install UFW

Run the following command:

apt install ufw -y

7.2 Allow Required Ports

Run the following commands:

ufw allow 22
ufw allow 10000
ufw allow ssh

7.3 Enable Firewall

Run the following command and confirm when prompted:

ufw enable

7.4 Check Firewall Status

Run the following command:

ufw status

Step 8: Access Webmin

Open your web browser and enter the following URL:

https://your-server-ip:10000

8.1 Login

Enter your root username and password to log in. If your browser shows a security warning due to a self-signed certificate, you can proceed safely.


Conclusion

You have successfully deployed a VPS and installed Webmin on Debian 12. Webmin allows you to manage your server through a web-based interface, making administration simpler and more efficient. For improved security, it is recommended to use SSH keys and keep your system regularly updated.

Share this Doc

How to Install Webmin on Debian 12

Or copy link

CONTENTS