Home » Home Server » How to install Webmin on Ubuntu and secure it?
Home Server

How to install Webmin on Ubuntu and secure it?

In this post, I am going to explain how to install Webmin on Ubuntu and secure it to prevent unauthorized break-ins. Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, explore files, setup cron jobs, DNS, file sharing and much more. Webmin removes the need to manually edit Unix configuration files, and lets you manage a system remotely. Several posts, such as, setting up MiniDLNA, backing up XBMC, and tracking a website’s social stats, published here take advantage of Webmin’s ease of use. Therefore, it is time we explain how to install Webmin on Ubuntu to help those of you who are not comfortable with commandline. Webmin Wiki is a very good place to visit if you have questions on any of the features in Webmin.

1. Install Required Packages

Webmin requires certain other packages to be present for it to run smoothly. While you may already have some of the packages, you can still issue the following command to install all the Webmin dependencies:

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

2. Download and Install Webmin on Ubuntu

You can download Webmin from its download page for any Linux distribution. Although there is nothing wrong with downloading and installing directly, we recommend you install Webmin on Ubuntu using the repositories as described below.

Recommended Reading:

Webmin installation from the repository has several advantages: 1) you are installing from a trusted source, 2) you will be notified of updates, and 3) keeping your Webmin up-to-date is much easier. To add the respository to your sources list, edit /etc/apt/sources.list:

sudo nano /etc/apt/sources.list

Add the following lines at the end of the file:

deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

Then, you will have to install the GPG key to access the repository. Use the following commands to achieve this:

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

Finally, update your packages list and install webmin:

sudo apt-get update
sudo apt-get install webmin

In case you have missing dependencies, they should be resolved automatically.

3. Accessing Webmin Interface

Webmin runs on port 10000 by default. So you can access the Webmin web itnerface by going to:

http://localhost:10000

If your Webmin server is on your internal network, you can also access it through its network IP address (see example below):

http://192.168.0.20:10000

If you have port forwarding enabled on your router and you have a domain name referring to your server running Webmin, you may also access it through the internet using your domain name:

http://domain.com:10000

For now, http://localhost:10000 should be enough. You will have to login using your system username and password.

Install Webmin on Ubuntu
Webmin Login

As soon as you login, you will be presented with the system information page that provides a summary of your server.

Webmin System Information Page
Webmin System Information Page

Continue to next page to finish installing Webmin on Ubuntu.

About the author

Anand

Anand is a self-learned computer enthusiast, a part-time blogger, and a Food Scientist by career. He has been blogging since 2010 on Linux, Ubuntu, Home/Media/File Servers, XBMC, and related HOW-TOs (read more).

Archives

Join the other 110,000 followers