Install Webmin on Ubuntu 20.04

Webmin is an open-source web application for managing Linux systems. Webmin provides dashboard which is accessible to the user from a web browser. It allows to update packages, manage users and groups, configure services, and more.

This tutorial demonstrates how to install Webmin on Ubuntu 20.04.

Install Webmin

Download GPG key:

sudo wget -qO /etc/apt/trusted.gpg.d/jcameron-key.asc https://download.webmin.com/jcameron-key.asc

Add the Webmin repository:

echo "deb https://download.webmin.com/download/repository sarge contrib" | sudo tee /etc/apt/sources.list.d/webmin.list

Run the following command to update the package lists:

sudo apt update

Install Webmin:

sudo apt install -y webmin

You can check whether Webmin service is running with command:

sudo service webmin status

We can also stop, start or restart the service:

sudo service webmin stop
sudo service webmin start
sudo service webmin restart

Testing Webmin

Open a browser and type URL address https://<IP_ADDRESS>:10000, where <IP_ADDRESS> is IP address of your machine. The browser will inform that certificate is not valid. By default, an untrusted self-signed SSL certificate is used by Webmin. Login to the Webmin dashboard using credentials of root or user with sudo privileges.

Webmin dashboard on Ubuntu

Uninstall Webmin

If you decided to completely remove Webmin and related dependencies, execute the following command:

sudo apt purge --autoremove -y webmin

Remove GPG key and repository:

sudo rm -rf /etc/apt/trusted.gpg.d/jcameron-key.asc
sudo rm -rf /etc/apt/sources.list.d/webmin.list

You can also remove directories and files that related with Webmin:

sudo rm -rf /usr/share/webmin
sudo rm -rf /webmin-setup.out
rm -rf ~/.tmp

Leave a Comment

Your email address will not be published. Required fields are marked *