How to Install Webmin on Ubuntu 18.04 LTS (Bionic Beaver)

0

Webmin is a web-based OS system configuration tool for Unix-like systems such as  Solaris, Linux (Red Hat in particular) and FreeBSD. It is released under BSD 3-clause “New” or “Revised” License.

Webmin helps system administrator to manage the operating system’s internal such as changing passwords, disk quotas, file system, process, scheduled jobs,  software packages, system logs, and much more.

With Webmin, you can also manage/configure open source applications such as DNS, DHCP, MySQL server, PostgreSQL, Apache HTTPD server and other networking services.

This post guides you to install Webmin on Ubuntu 18.04.

Webmin is by default available in Ubuntu repository. The package version available in Ubuntu repository may be a bit older than the official release, so we will install Webmin using its official repository.

Install Webmin

Install dependencies for Webmin.

sudo apt install -y perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python apt-transport-https

Add Webmin package repository to the system.

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

Download Webmin’s GPG key.

wget http://www.webmin.com/jcameron-key.asc

Import Webmin’s GPG key into the system.

sudo apt-key add jcameron-key.asc

Update the repository index.

sudo apt update

Install Webmin package using the apt command.

sudo apt install -y webmin

Output:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  webmin
0 upgraded, 1 newly installed, 0 to remove and 281 not upgraded.
Need to get 15.6 MB of archives.
After this operation, 172 MB of additional disk space will be used.
Get:1 http://download.webmin.com/download/repository sarge/contrib amd64 webmin all 1.890 [15.6 MB]
Fetched 15.6 MB in 39s (400 kB/s)
Selecting previously unselected package webmin.
(Reading database ... 128605 files and directories currently installed.)
Preparing to unpack .../archives/webmin_1.890_all.deb ...
Unpacking webmin (1.890) ...
Processing triggers for ureadahead (0.100.0-20) ...
Setting up webmin (1.890) ...
Webmin install complete. You can now login to https://desktop:10000/
as root with your root password, or as any user who can use sudo
to run commands as root.
Processing triggers for systemd (237-3ubuntu10) ...
Processing triggers for ureadahead (0.100.0-20) ...

Control Webmin

To start the Webmin, run:

sudo systemctl start webmin

To stop the Webmin, run:

sudo systemctl stop webmin

To restart the Webmin, run:

sudo systemctl restart webmin

To view the status of Webmin service, run:

sudo systemctl status webmin

Access Webmin Interface

Now open up a browser and visit

https://your-ip-addr-ess:10000
Webmin uses a self-signed SSL certificate for secure communication. So, you need to add an exception in your browser to access the Webmin.
Install Webmin on Ubuntu 18.04 - Add SSL Exception
Install Webmin on Ubuntu 18.04 – Add SSL Exception
Log in as root or any user who has sudo privileges when the Webmin prompts you for username and password.
Install Webmin on Ubuntu 18.04 - Login to Webmin
Install Webmin on Ubuntu 18.04 – Login to Webmin

Once you logged in, Webmin may redirect you to its dashboard where you can get basic information about your system.

Install Webmin on Ubuntu 18.04 - Webmin DashboardTo manage or configure any service or application, choose the desired one from the left pane.

Install Webmin on Ubuntu 18.04 - Webmin Left Pane
Install Webmin on Ubuntu 18.04 – Webmin Left Pane

One important feature of Webmin is that it has a built-in web-based ssh terminal. You can start the terminal by clicking the below icon or use the keyboard combination “Alt+k”.

Install Webmin on Ubuntu 18.04 - Webmin Web SSH Terminal
Install Webmin on Ubuntu 18.04 – Webmin Web SSH Terminal

Web-based SSH terminal:

Install Webmin on Ubuntu 18.04 - Web SSH
Install Webmin on Ubuntu 18.04 – Web SSH

That’s All.

You might also like