Tuesday, June 2, 2020

How to Install Webmin on Ubuntu

Webmin is a web based system administration tools that’s make easy the administration of linux system. Using this tool we can access our linux system from any browser. Any configuration like “user management”, “server configuration”, “database configuration” and so on, we can perform so easily even without having command line knowledge. In this tutorial, we are going to install this tool on our linux system. 

First of all we have to install some package that is required for webmin installation. To install these package from repository, please execute the following command.

apt-get  –y  install python  apt-show-versions  libapt-pkg-perl  libauthen-pam-perl  libio-pty-perl  libnet-ssleay-perl

After installation these prerequisites, please go to your location where you want to keep your downloaded file, just like your download folder. If you want you can keep your downloaded file in your current directory. There is no problem indeed. In this tutorial we are changing our location to “/usr/src” directory, because I have selected this as my download folder. Means if we download any file from internet, then that file should be saved in this location. To change our current directory to “/usr/src”, please execute the below command:-

cd  /usr/src

Now download your webmin package. To download this package please run this command:-

curl  -L -O  http://www.webmin.com/download/deb/webmin-current.deb

After finishing the download, you can check the download file. To view the file list of your current directory, please execute the below command.

ls 

The file list should be appeared now and you can see that "webmin-current.deb" file into the list. Now we have to install it. For installing, the command will be:-

dpkg  -i  webmin-current.deb

Everything is done. Now you can access this system from your local network using any web browser. Just open up your browser and type your linux system IP address followed by 10000 port number. Because webmin uses this port number for HTTP access. This will be looks like as follows:-

http://192.168.1.1:10000

If you want, you can change this default port number. For that, we have to edit the configuration file. Please open the file using following command.

vi  /etc/webmin/miniserv.conf

Now change the value for “port” and “listen” option. If you want you can filter the IP address. Just add the below line to the end of this file.

allow  =  127.0.0.1 10.0.0.0/24

From now on, webmin access is available only for 10.0.0.0/24 network and from the local system. Now we have to restart the webmin service to take effect this change. To restart this, the command will be:-

systemctl restart webmin

We are done.

No comments:

Post a Comment