How to Setup Webmin 1.620 using YUM repository on CentOS 6.4 VPS

webminThis post will brief you on how to setup Webmin 1.620 using yum repository in CentOS 6.4 virtual private server (VPS). Webmin is an open source system administration and system configuration tool which provide you web-based interface to manage, administer and configure your CentOS VPS or dedicated server through web browser. It’s provide graphical interface remote administration instead of manually edit the configuration using command line from putty or console.

1. Enabling Yum repository for Webmin. Create the /etc/yum.repos.d/webmin.repo file containing :

[root@centos64 ~]# vi /etc/yum.repos.d/webmin.repo
[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1

2. Fetch and install my GPG key :

[root@centos64 ~]# wget http://www.webmin.com/jcameron-key.asc
[root@centos64 ~]# rpm --import jcameron-key.asc

3. Run “yum install” command to install all required dependencies :

[root@centos64 ~]# yum install webmin -y

Example :

[root@centos64 ~]# yum install webmin -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * Webmin: download.webmin.com
 * base: mirrors.hostemo.com
 * extras: mirrors.hostemo.com
 * updates: mirrors.hostemo.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package webmin.noarch 0:1.620-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                Arch                   Version                 Repository              Size
====================================================================================================
Installing:
 webmin                 noarch                 1.620-1                 Webmin                  21 M

Transaction Summary
====================================================================================================
Install       1 Package(s)

Total download size: 21 M
Installed size: 21 M
Downloading Packages:
webmin-1.620-1.noarch.rpm                                                    |  21 MB     04:09
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : webmin-1.620-1.noarch                                                            1/1
Operating system is CentOS Linux
Webmin install complete. You can now login to http://centos64.ehowstuff.local:10000/
as root with your root password.
  Verifying  : webmin-1.620-1.noarch                                                            1/1

Installed:
  webmin.noarch 0:1.620-1

Complete!

4. By default Webmin runs on port 10000, therefore port 10000 need to be open in order to allow you to access web base interface remotely.

[root@centos64 ~]# vi /etc/sysconfig/iptables

Add the following rule to existing iptables firewall :

-A INPUT -m state --state NEW -m tcp -p tcp --dport 10000 -j ACCEPT

Restart IPtables :

[root@centos64 ~]# service iptables restart

5. Access and login to Webmin using URL http://serveripaddress:10000/

How to Install Webmin 1.600 on Linux CentOS 6.3 Using RPM

webminWebmin is a open source web-based system administration tool and system configuration tool for Unix servers and services. It’s useful for linux administrator especially the Linux newbies as it can avoid misconfiguration and avoid doing mistake. Webmin can administer other services and server configuration using a web browser remotely. You can setup user accounts, Apache, MySQL, FTP. DNS, file sharing and Etc. Follow below steps to install Webmin 1.600 on Linux CentOS 6.3 Using RPM package.

1. Download required RPM file :

http://download.webmin.com/download/yum/

[root@centos63 ~]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.600-1.noarch.rpm

2. Add the GPG Key:

[root@centos63 ~]# rpm --import http://www.webmin.com/jcameron-key.asc

3. Install RPM version of Webmin as below :

[root@centos63 ~]# rpm -Uvh webmin-1.600-1.noarch.rpm
Preparing...                ########################################### [100%]
Operating system is CentOS Linux
   1:webmin                 ########################################### [100%]
Webmin install complete. You can now login to http://centos63.ehowstuff.local:10000/
as root with your root password.

4. Start, Stop and Restart Webmin service :

To start :

[root@centos63 ~]# /etc/rc.d/init.d/webmin start

To Stop :

[root@centos63 ~]# /etc/rc.d/init.d/webmin stop
Stopping Webmin server in /usr/libexec/webmin

To Restart :

[root@centos63 ~]# /etc/rc.d/init.d/webmin restart
Stopping Webmin server in /usr/libexec/webmin
Starting Webmin server in /usr/libexec/webmin
Pre-loaded WebminCore

How to Install Webmin 1.580 on Fedora 16 Using RPM

Webmin is a freeware program that provide web-based interface for system administration and system configuration tool for administrators. With Webmin you can setup user accounts, DNS, file sharing and etc. In this post, i will show how to install Webmin on Fedora 16 server using RPM version. This steps may also working on other versions such as Fedora 14 and fedora 15.

Download required RPM file here (http://download.webmin.com/download/yum/)

[root@fedora16 ~]# wget http://download.webmin.com/download/yum/webmin-1.580-1.noarch.rpm
--2012-04-07 21:45:46--  http://download.webmin.com/download/yum/webmin-1.580-1.noarch.rpm
Resolving download.webmin.com... 67.228.198.100
Connecting to download.webmin.com|67.228.198.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17112780 (16M) [application/x-rpm]
Saving to: âwebmin-1.580-1.noarch.rpmâ

100%[==========================================================>] 17,112,780  62.8K/s   in 3m 3s

2012-04-07 21:48:51 (91.1 KB/s) - âwebmin-1.580-1.noarch.rpmâ

Install RPM version of Webmin as below :

[root@fedora16 ~]# rpm -Uvh webmin-1.580-1.noarch.rpm
warning: webmin-1.580-1.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 11f63c51: NOKEY
Preparing...                ########################################### [100%]
Operating system is Fedora Linux
   1:webmin                 ########################################### [100%]
Webmin install complete. You can now login to https://fedora16.ehowstuff.local:10000/
as root with your root password.

Start Webmin service :

[root@fedora16 ~]# service webmin start

https://fedora16.ehowstuff.local:10000/

How to Install Webmin 1.580 on RHEL 6/CentOS 6 Using tar.gz File

Webmin is a freeware program that provide web-based interface for system administration and system configuration tool for administrators. With Webmin you can setup user accounts, DNS, file sharing and etc. In this post, i will show how to install Webmin on Redhat Enterprise Linux 6 (RHEL 6) server using tar.gz File. This steps may also working on other versions such as CentOS 5.1, CentOS 5.2, CentOS 5.3, CentOS 5.4, CentOS 5.5, CentOS 5.6, CentOS 5.7, CentOS 6.x, RHEL 5.x and RHEL 6.x.

[root@centos62 tmp]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580.tar.gz
[root@centos62 ~]# cd /tmp
[root@centos62 tmp]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580.tar.gz
--2012-03-25 22:33:04--  http://prdownloads.sourceforge.net/webadmin/webmin-1.580.tar.gz
Resolving prdownloads.sourceforge.net... 216.34.181.59
Connecting to prdownloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580.tar.gz [following]
--2012-03-25 22:33:05--  http://downloads.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580.tar.gz
Resolving downloads.sourceforge.net... 216.34.181.59
Reusing existing connection to prdownloads.sourceforge.net:80.
HTTP request sent, awaiting response... 302 Found
Location: http://cdnetworks-kr-1.dl.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580.tar.gz [following]
--2012-03-25 22:33:06--  http://cdnetworks-kr-1.dl.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580.tar.gz
Resolving cdnetworks-kr-1.dl.sourceforge.net... 211.39.135.162
Connecting to cdnetworks-kr-1.dl.sourceforge.net|211.39.135.162|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16081299 (15M) [application/x-gzip]
Saving to: âwebmin-1.580.tar.gzâ

100%[==========================================================>] 16,081,299  68.2K/s   in 4m 14s

2012-03-25 22:37:21 (61.8 KB/s) - âwebmin-1.580.tar.gzâ

When unpacked, the distribution creates a subdirectory called webmin-1.580 :

[root@centos62 tmp]# tar -xzvf webmin-1.580.tar.gz
[root@centos62 tmp]# cd webmin-1.580
[root@centos62 webmin-1.580]# pwd
/tmp/webmin-1.580

When the setup.sh script is run, it will ask the following questions :

  • The Webmin configuration directory
  • The Webmin log directory
  • The full path to perl on your system
  • Your Operating system type
  • Web server port
  • Web server login and password
  • Web server hostname
  • Use SSL
  • Start Webmin at boot time
[root@centos62 webmin-1.580]# ./setup.sh
***********************************************************************
*            Welcome to the Webmin setup script, version 1.580        *
***********************************************************************
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.

Installing Webmin in /tmp/webmin-1.580 ...

***********************************************************************
Webmin uses separate directories for configuration files and log files.
Unless you want to run multiple versions of Webmin at the same time
you can just accept the defaults.

Config file directory [/etc/webmin]:
Log file directory [/var/webmin]:

***********************************************************************
Webmin is written entirely in Perl. Please enter the full path to the
Perl 5 interpreter on your system.

Full path to perl (default /usr/bin/perl):

Testing Perl ...
Perl seems to be installed ok

***********************************************************************
Operating system name:    CentOS Linux
Operating system version: 6.2

***********************************************************************
Webmin uses its own password protected web server to provide access
to the administration programs. The setup script needs to know :
 - What port to run the web server on. There must not be another
   web server already using this port.
 - The login name required to access the web server.
 - The password required to access the web server.
 - If the webserver should use SSL (if your system supports it).
 - Whether to start webmin at boot time.

Web server port (default 10000):
Login name (default admin):
Login password:
Password again:
The Perl SSLeay library is not installed. SSL not available.
Start Webmin at boot time (y/n): y
***********************************************************************
Creating web server config files..
..done

Creating access control file..
..done

Inserting path to perl into scripts..
..done

Creating start and stop scripts..
..done

Copying config files..
..done

Configuring Webmin to start at boot time..
Created init script /etc/rc.d/init.d/webmin
..done

Creating uninstall script /etc/webmin/uninstall.sh ..
..done

Changing ownership and permissions ..
..done

Running postinstall scripts ..
PID file /var/webmin/miniserv.pid does not exist
..done

Enabling background status collection ..
PID file /var/webmin/miniserv.pid does not exist
..done

Attempting to start Webmin mini web server..
Starting Webmin server in /tmp/webmin-1.580
Pre-loaded WebminCore
..done

***********************************************************************
Webmin has been installed and started successfully. Use your web
browser to go to

  http://centos62.ehowstuff.local:10000/

and login with the name and password you entered previously.

Stop Iptables :

[root@centos62 webmin-1.580]# service iptables stop
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Unloading modules:                               [  OK  ]

To access Webmin administration console through web interface, navigate the server URL to your web browser :
http://serveripaddress:10000/

How to Install Webmin 1.580 on RHEL 6/CentOS 6 Using RPM

Webmin is a freeware program that provide web-based interface for system administration and system configuration tool for administrators. With Webmin you can setup user accounts, DNS, file sharing and etc. In this post, i will show how to install Webmin on Redhat Enterprise Linux 6 (RHEL 6) server using RPM version. This steps may also working on other versions such as CentOS 5.1, CentOS 5.2, CentOS 5.3, CentOS 5.4, CentOS 5.5, CentOS 5.6, CentOS 5.7, CentOS 6.x, RHEL 5.x and RHEL 6.x.

1. Download required RPM file here (http://download.webmin.com/download/yum/)

[root@rhel6 ~]# wget http://download.webmin.com/download/yum/webmin-1.580-1.noarch.rpm

or

[root@rhel6 ~]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580-1.noarch.rpm
[root@rhel6 ~]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580-1.noarch.rpm
--2012-03-25 20:03:28--  http://prdownloads.sourceforge.net/webadmin/webmin-1.580-1.noarch.rpm
Resolving prdownloads.sourceforge.net... 216.34.181.59
Connecting to prdownloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580-1.noarch.rpm [following]
--2012-03-25 20:03:34--  http://downloads.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580-1.noarch.rpm
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://cdnetworks-kr-1.dl.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580-1.noarch.rpm [following]
--2012-03-25 20:03:45--  http://cdnetworks-kr-1.dl.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580-1.noarch.rpm
Resolving cdnetworks-kr-1.dl.sourceforge.net... 211.39.135.162
Connecting to cdnetworks-kr-1.dl.sourceforge.net|211.39.135.162|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17112780 (16M) [application/x-rpm]
Saving to: âwebmin-1.580-1.noarch.rpmâ

100%[==========================================================>] 17,112,780  49.4K/s   in 20m 53s

2012-03-25 20:24:43 (13.3 KB/s) - âwebmin-1.580-1.noarch.rpmâ

Install RPM version of Webmin as below :

[root@rhel6 ~]# rpm -Uvh webmin-1.580-1.noarch.rpm
warning: webmin-1.580-1.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 11f63c51: NOKEY
Preparing...                ########################################### [100%]
Operating system is Redhat Enterprise Linux
   1:webmin                 ########################################### [100%]
Webmin install complete. You can now login to http://rhel6:10000/
as root with your root password.

Start Webmin :

[root@rhel6 ~]# /etc/rc.d/init.d/webmin start

To login Webmin :
You must enter a username and password to login to the Webmin server
http://serveripaddress:10000/