How To Install Webmin Tool In Linux System

Webmin is a web-based interface for system administration to manage Linux/Unix server . Using compatible web browser, you can configure your server with web GUI e.g you can setup user accounts, Apache, DNS, file sharing and much more. Webmin removes the need to manually edit Unix/Linux configuration files like /etc/passwd, and lets you manage a system from the console or remotely.

How To Install Webmin

Webmin is easy to install and setup. You can either download the distro specific package or tar file to install Webmin tool. In it official website you can download installable file for debian,Redhat,Solaris base system. Below I have explained all methods to install webmin tool

Redhat

Method 1:

1: Download the latest version of webmin RPM package from official repository here or here . Use below command to download the package from terminal.

$ wget http://prdownloads.sourceforge.net/webadmin/webmin-1.962-1.noarch.rpm

2: Satisfy the dependencies by executing below command

$ sudo yum -y install perl perl-Net-SSLeay openssl perl-IO-Tty perl-Encode-Detect

3: Then run below command to install the downloaded package

$ sudo rpm -U webmin-1.962-1.noarch.rpm

Method 2:

If you dont want to repeat the process of manually installing the package after every update then you can configure the repo in /etc/yum.repo.d/webmin.repo . In this way you will get latest pacakge auto installed everytime you update your system. Follow below process to create a repo for webmin tool.

1: Create a repo file with any text editor

$ sudo vim /etc/yum.repo.d/webmin.repo

2: Add below lines in the repo file then save and exit.

[Webmin]
name=Webmin Distribution Neutral
#baseurl=https://download.webmin.com/download/yum
mirrorlist=https://download.webmin.com/download/yum/mirrorlist
enabled=1

3: Install GPG key with which the packages are signed, provided by the Webmin

$ wget https://download.webmin.com/jcameron-key.asc
$ rpm --import jcameron-key.asc

4: Now run system update

$ sudo yum update

Ubuntu

Method 1:

1: Download the package from official repository or from sourcefroge. Download from browser or via terminal windows

$ wget http://prdownloads.sourceforge.net/webadmin/webmin_1.962_all.deb

2: Run below command to satisfy the dependencies

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

Method 2:

1: You can install webmin package via APT package manager, just add below line in /etc/apt/source.list file

deb https://download.webmin.com/download/repository sarge contrib

2: Add GPG signature file to verify the packages

$ cd /root
$ wget https://download.webmin.com/jcameron-key.asc
$ apt-key add jcameron-key.asc

3: Then run below command

$ apt-get install apt-transport-https
$ apt-get update
$ apt-get install webmin

Note: If you are installing on Ubuntu and the apt-get command reports that some of the packages cannot be found, edit /etc/apt/sources.list and make sure the lines ending with universe are not commented out

Using Tar File

1: Webmin tool is written in perl programming language . So you may need to install perl first in order to install webmin. Run below command to install perl

$ sudo yum install perl

OR

$ sudo apt install perl

2: Download the tar file from the repository , use below command to download

$ cd /tmp $ wget http://prdownloads.sourceforge.net/webadmin/webmin-1.962.tar.gz

2: Extract the tar file and get inside the directory.

$ tar -xzf webmin-1.962.tar.gz
$ cd webmin-1.962/

3: Run the setup.sh script to install and configure webmin tool, you can specify the path where you want to install the package

$ ./setup.sh /usr/local/webmin

4: While running the installation script, you will be prompted to configure and setup the webmin, If you are using first time , you can choose default options by pressing enter key.

5: To access webmin from browser , you can use either the hostname or IP address of your server machine. In case you enabled SSL then your browser will ask to to allow the website. click the advance option on same page and allow/add SSL certificate.

That's all , you have to do to install webmin tool in Linux system

Post a Comment

0 Comments