How to Setup Webmin 1.580 on CentOS 5.8

CentOS 5.8This quick post will show you the steps on installing webmin, the web-based system configuration and administration tool on linux CentOS 5.8 server. There are three alternative way to setup webmin which using RPM, YUM command and using Tar file. After setup webmin, you will be able to do linux system administration task using Graphical User Interface (GUI) which is good for linux newbie who not familiar with command line.

Option 1 : Setup Webmin using RPM

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

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

or

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

Example :

[root@centos58 ~]# wget http://download.webmin.com/download/yum/webmin-1.580-1.noarch.rpm
--2012-06-08 05:34:12--  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   118K/s   in 3m 2s

2012-06-08 05:37:15 (91.9 KB/s) - `webmin-1.580-1.noarch.rpm' saved [17112780/17112780]

2. Download and import my GPG key with which the packages are signed, with the commands :

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

3. Install RPM version of Webmin as below :

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

Option 2 : Setup Webmin using YUM

1. Login to your CentOS server with root privileges.
2. Download and import my GPG key with which the packages are signed, with the commands :

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

3. To install and update Webmin via RPM through yum, you have to create webmin.repo on /etc/yum.repos.d directory as below:

[root@centos58 ~]# 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

4. Install with yum command :

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

Example :

[root@centos58 ~]# yum install webmin -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * Webmin: download.webmin.com
 * base: mirror.nus.edu.sg
 * epel: mirror.nus.edu.sg
 * extras: mirror.nus.edu.sg
 * rpmforge: mirror.oscc.org.my
 * updates: mirror.as24220.net
Webmin                                                                       |  951 B     00:00
Webmin/primary                                                               |  13 kB     00:00
Webmin                                                                                      102/102
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package webmin.noarch 0:1.580-1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                Arch                   Version                 Repository              Size
====================================================================================================
Installing:
 webmin                 noarch                 1.580-1                 Webmin                  16 M

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

Total download size: 16 M
Downloading Packages:
webmin-1.580-1.noarch.rpm                                                    |  16 MB     02:39
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Operating system is CentOS Linux
  Installing     : webmin                                                                       1/1
Webmin install complete. You can now login to http://centos58.ehowtuff.local:10000/
as root with your root password.

Installed:
  webmin.noarch 0:1.580-1

Complete!

Option 3 : Setup Webmin using Tar File

Before downloading Webmin, please make sure that Perl 5 has been installed on your CentOS 5.8.
1. Download and extract the tar file :

[root@centos58 ~]# cd /tmp
[root@centos58 tmp]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580.tar.gz
[root@centos58 tmp]# tar xzf webmin-1.580.tar.gz

2. Run ./setup.sh to install the webmin on /usr/local/webmin.

[root@centos58 tmp]# cd webmin-1.580
[root@centos58 webmin-1.580]# ./setup.sh /usr/local/webmin

This is just an example and the default admin was admin and the password is password.

[root@centos58 webmin-1.580]# ./setup.sh /usr/local/webmin
***********************************************************************
*            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 from /tmp/webmin-1.580 to /usr/local/webmin ...

***********************************************************************
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: 5.8

***********************************************************************
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
***********************************************************************
Copying files to /usr/local/webmin ..
..done

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
Subroutine setup_ca redefined at /usr/local/webmin/webmin/webmin-lib.pl line 72.
Subroutine install_webmin_module redefined at /usr/local/webmin/webmin/webmin-lib.pl line 122.
Subroutine grant_user_module redefined at /usr/local/webmin/webmin/webmin-lib.pl line 419.
Subroutine delete_webmin_module redefined at /usr/local/webmin/webmin/webmin-lib.pl line 460.
Subroutine file_basename redefined at /usr/local/webmin/webmin/webmin-lib.pl line 569.
Subroutine gnupg_setup redefined at /usr/local/webmin/webmin/webmin-lib.pl line 583.
Subroutine list_standard_modules redefined at /usr/local/webmin/webmin/webmin-lib.pl line 611.
Subroutine standard_chooser_button redefined at /usr/local/webmin/webmin/webmin-lib.pl line 643.
Subroutine list_third_modules redefined at /usr/local/webmin/webmin/webmin-lib.pl line 656.
Subroutine third_chooser_button redefined at /usr/local/webmin/webmin/webmin-lib.pl line 688.
Subroutine get_webmin_base_version redefined at /usr/local/webmin/webmin/webmin-lib.pl line 699.
Subroutine base_version redefined at /usr/local/webmin/webmin/webmin-lib.pl line 709.
Subroutine get_newmodule_users redefined at /usr/local/webmin/webmin/webmin-lib.pl line 720.
Subroutine save_newmodule_users redefined at /usr/local/webmin/webmin/webmin-lib.pl line 742.
Subroutine get_miniserv_sockets redefined at /usr/local/webmin/webmin/webmin-lib.pl line 766.
Subroutine fetch_updates redefined at /usr/local/webmin/webmin/webmin-lib.pl line 814.
Subroutine check_update_signature redefined at /usr/local/webmin/webmin/webmin-lib.pl line 881.
Subroutine find_cron_job redefined at /usr/local/webmin/webmin/webmin-lib.pl line 912.
Subroutine get_ipkeys redefined at /usr/local/webmin/webmin/webmin-lib.pl line 924.
Subroutine save_ipkeys redefined at /usr/local/webmin/webmin/webmin-lib.pl line 945.
Subroutine validate_key_cert redefined at /usr/local/webmin/webmin/webmin-lib.pl line 977.
Subroutine detect_operating_system redefined at /usr/local/webmin/webmin/webmin-lib.pl line 998.
Subroutine show_webmin_notifications redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1033.
Subroutine get_webmin_notifications redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1049.
Subroutine get_system_uptime redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1238.
Subroutine list_operating_systems redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1285.
Subroutine shared_root_directory redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1310.
Subroutine submit_os_info redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1347.
Subroutine get_webmin_id redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1375.
Subroutine ip_match redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1391.
Subroutine prefix_to_mask redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1477.
Subroutine valid_allow redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1491.
Subroutine get_preloads redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1536.
Subroutine save_preloads redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1548.
Subroutine get_tempdirs redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1559.
Subroutine save_tempdirs redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1576.
Subroutine get_module_install_type redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1595.
Subroutine get_install_type redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1612.
Subroutine list_cached_files redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1642.
Subroutine show_restart_page redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1661.
Subroutine cert_info redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1679.
Subroutine cert_pem_data redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1720.
Subroutine cert_pkcs12_data redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1735.
Subroutine get_blocked_users_hosts redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1761.
Subroutine show_ssl_key_form redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1789.
Subroutine parse_ssl_key_form redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1833.
Subroutine build_installed_modules redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1906.
Subroutine get_latest_webmin_version redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1948.
Subroutine filter_updates redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1981.
Subroutine list_keys redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 23.
Subroutine list_keys_sorted redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 74.
Subroutine list_secret_keys redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 82.
Subroutine key_fingerprint redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 88.
Subroutine get_passphrase redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 105.
Subroutine put_passphrase redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 116.
Subroutine encrypt_data redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 128.
Subroutine decrypt_data redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 167.
Subroutine sign_data redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 224.
Subroutine verify_data redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 283.
Subroutine read_entire_file redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 327.
Subroutine write_entire_file redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 339.
Subroutine get_trust_level redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 349.
Subroutine delete_key redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 371.
Subroutine default_email_address redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 398.
Subroutine fetch_gpg_key redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 415.
Subroutine search_gpg_keys redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 442.
..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 /usr/local/webmin
Pre-loaded WebminCore
..done

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

  http://centos58.ehowtuff.local:10000/

and login with the name and password you entered previously.

How to start webmin :

[root@centos58 ~]# service webmin start

or

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

How to stop webmin :

[root@centos58 ~]# service webmin stop
Stopping Webmin server in /usr/local/webmin

or

[root@centos58 ~]# /etc/init.d/webmin stop
Stopping Webmin server in /usr/local/webmin

How to check webmin status :

[root@centos58 ~]# /etc/init.d/webmin status
webmin (pid 5070) is running

or

[root@centos58 ~]# service webmin status
webmin (pid 4834) is running

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *