On this article we will discuss how to install Webmin administration tools for Unix operating system on Ubuntu 20.04 LTS.
Webmin is a web-based interface for administering Unix operating system, this application is very useful for SysAdmin in doing their day-to-day task. Webmin enables removing manual job to be in the web browser. By using Webmin, sysadmin will have benefit to administer their system such like : user accounts, Apache, DNS, file sharing and much more. We can configure almost every aspect of the system through our web browser.
There will be several steps for installing Webmin on Ubuntu 20.04 LTS, it will be described deeply below :
- Installing Webmin on Ubuntu 20.04 LTS
- Adjust the Firewall
- Accessing Webmin
Before continuing Webimn installation, we have to prepare our Ubuntu 20.04 (Focal Fossa) environment first. Webmin installation requires a user with sudo either as root privileges, sufficient space and the last update system and good internet connection for downloading required package. In our environment we have all the necessary requirements.
Installing Webmin on Ubuntu 20.04 LTS
At this section, we will through step by step installing Webmin. Firstly, we have to enable the Webmin repository on Ubuntu because Webmin is not standard Ubuntu repositories. These steps can be done by submitting command lines below.
1. Update the packages list and install the dependencies
ramans@ubuntu:~$ sudo apt update ramans@ubuntu:~$ sudo apt install software-properties-common apt-transport-https wget
2. Import Webmin GPG key and add the Webmin repository
ramans@ubuntu:~$ wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add -
ramans@ubuntu:~$ sudo add-apt-repository "deb [arch=amd64] http://download.webmin.com/download/repository sarge contrib"
3. Install Webmin application
ramans@ubuntu:~$ sudo apt install webmin
Output will be as follow :
** initializing cache. This may take a while ** Setting up libpython2.7-stdlib:amd64 (2.7.18~rc1-2) ... Setting up libauthen-pam-perl (0.16-3build7) ... Setting up python2.7 (2.7.18~rc1-2) ... Setting up libpython2-stdlib:amd64 (2.7.17-2ubuntu4) ... Setting up python2 (2.7.17-2ubuntu4) ... Setting up python-is-python2 (2.7.17-4) ... Setting up webmin (1.941) ... Webmin install complete. You can now login to https://ubuntu:10000/ as root with your root password, or as any user who can use sudo to run commands as root. Processing triggers for mime-support (3.64ubuntu1) ... Processing triggers for gnome-menus (3.36.0-1ubuntu1) ... Processing triggers for systemd (245.4-4ubuntu3) ... Processing triggers for man-db (2.9.1-1) ... Processing triggers for desktop-file-utils (0.24-1ubuntu2) ...
So far, the Webmin installation was quite succesfully done. The next step is allowing connection to Webmin application by opening port on firewall.
Adjust the Firewall
Webmin is using port number 10000 as network interface, by default Webmin will listen at this port for connection from all network. For best practice, we have to open this port in our firewall to enable the Webmin could be accessible from the internet. For this purpose we use the command line below.
ramans@ubuntu:~$ sudo ufw allow 10000/tcp
The Webmin application has been ready to be used, we are using web browser for this purpose. We will try to log in to this web using existing system account.