How to Install Webmin on Ubuntu
Step 1: Update Your System
Before installing any new software, it's essential to update your system. Open a terminal and run the following commands:
sudo apt update
sudo apt upgrade -y
Step 2: Install Required Dependencies
Webmin requires several dependencies. Install them by running the following command:
sudo apt install -y software-properties-common apt-transport-https wget
Step 3: Add the Webmin Repository
Webmin is not available in the default Ubuntu repositories. Add the Webmin repository by executing these commands:
wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] http://download.webmin.com/download/repository sarge contrib"
Step 4: Install Webmin
Now that the Webmin repository is added, install Webmin with the following commands:
sudo apt update
sudo apt install webmin -y
Step 5: Start and Enable Webmin
After installation, start the Webmin service and enable it to start automatically on boot:
sudo systemctl start webmin
sudo systemctl enable webmin
Step 6: Firewall Configuration
If you have a firewall enabled, you must allow access to Webmin. Open port 10000 for Webmin by running these commands:
sudo ufw allow 10000/tcp
sudo ufw reload
Step 7: Access Webmin
Access the Webmin web interface by opening a web browser and going to:
https://your_server_ip:10000
Replace your_server_ip
with your server's IP address. You may see a security warning in your browser due to Webmin's self-signed SSL certificate. Proceed to the login page by accepting the certificate.
Step 8: Log in to Webmin
Log in to the Webmin interface using your Ubuntu server's root credentials or a user with sudo privileges. After logging in, you can begin managing your server through the Webmin web interface.
Congratulations! You've successfully installed Webmin on your Ubuntu server, simplifying system administration tasks with its user-friendly web interface.