How To Install Webmin on Ubuntu 18.04 LTS

PC: Webmin
Webmin is an open source web control panel for system administration for Linux/UNIX. Webmin allows you to manage users, groups, disk quotas as well as configure most popular services including web, FTP, email and database servers.This blog post  will show you how to install Webmin on an Ubuntu 18.04 server. The same instructions apply for Ubuntu 16.04.Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges.The easiest and recommended way to install Webmin on Ubuntu machines is to enable the Webmin repository and install the Webmin package through the command line.

Perform the following steps to install Webmin on Ubuntu:

Step.1: Start by updating the packages list and installing the dependencies:

sudo apt update

sudo apt install software-properties-common apt-transport-https wget

Step.2: Import the Webmin GPG key using the following wget command:

wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add -

And enable the Webmin repository by :

sudo add-apt-repository "deb [arch=amd64] http://download.webmin.com/download/repository sarge contrib"

Step3: Install the latest version of Webmin by :

sudo apt install webmin

Webmin installation completed. You can now login to https://your_server_ip_or_hostname:10000/
as root with your root password, or as any user who can use sudo to run commands as root.

The Webmin service will start automatically.

That’s it! At this point, you have successfully installed Webmin on your Ubuntu 18.04 server.

Adjust the Firewall

By default Webmin listens for connections on port 10000 on all network interfaces.

If your server runs an UFW firewall, you’ll need to open the Webmin port.

To allow traffic on port 10000 run the following command:

sudo ufw allow 10000/tcp 

Accessing Webmin Web Interface

https://your_server_ip_or_hostname:10000/

The browser will complain about the certificate being not valid because by default Webmin uses untrusted self-signed certificate.

Login to the Webmin web interface using your root or sudo user credentials:

If you forget password run this command

sudo /usr/share/webmin/changepass.pl /etc/webmin root YourNewPassword  

(replace it with your password)

Reference:
https://linuxize.com/post/how-to-install-webmin-on-ubuntu-18-04/

0 Komentar