What is Webmin?
Webmin is a web-based system administration tool for Unix-like systems. It allows you to manage your server through a modern web interface, handling tasks like user accounts, Apache, DNS, file sharing, and much more without needing to manually edit configuration files.
Prerequisites
Before you begin, ensure you have:
- A server running Ubuntu 22.04
- A non-root user with sudo privileges
- Basic familiarity with Linux command line
Step 1: Update Your System
First, ensure your system packages are up to date:
sudo apt update
sudo apt upgrade -y
Step 2: Add Webmin Repository
Add the Webmin repository to your system:
sudo sh -c 'echo "deb http://download.webmin.com/download/repository sarge contrib" > /etc/apt/sources.list.d/webmin.list'
wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add -
Step 3: Install Webmin
Update your package list and install Webmin:
sudo apt update
sudo apt install webmin -y
Step 4: Configure Firewall
If you're using UFW (Uncomplicated Firewall), allow access to Webmin's default port:
sudo ufw allow 10000/tcp
sudo ufw reload
Step 5: Access Webmin
Open your web browser and navigate to:
https://your_server_ip:10000
You'll receive a warning about the self-signed SSL certificate - this is normal. Add an exception and proceed.
Step 6: Login to Webmin
Log in with your system username and password (the same credentials you use for SSH access).
Step 7: Basic Configuration
After logging in, you should see the Webmin dashboard. Here are some initial configurations to consider:
- Change the Webmin theme: Go to Webmin > Webmin Configuration > Webmin Themes
- Configure backups: Go to System > Filesystem Backup
- Set up monitoring: Go to Others > System and Server Status
Conclusion
You've successfully installed and configured Webmin on your Ubuntu 22.04 server. Explore the interface to discover the many administrative tasks you can now perform through the web interface rather than the command line.