OpenSource For You

Important notes on EPEL

-

1. EPEL stands for Extra Packages for Enterprise Linux. 2. EPEL is not a part of RHEL but provides a lot of open

source packages for major Linux distributi­ons. 3. EPEL packages are maintained by the Fedora team and are fully open source, with no core duplicate packages and no compatibil­ity issues. They are to be installed using the YUM utility. The link to download the EPEL release for RHEL 6 (32-bit) is: http://download.fedoraproj­ect.org/pub/epel/6/i386/epelreleas­e-6-8.noarch.rpm And for 64 bit, it is: http://download.fedoraproj­ect.org/pub/epel/6/x86_64/epelreleas­e-6-8.noarch.rpm Here, epel-release-6-8.noarch.rpm is kept at /opt: Go to the / opt directory and change the permission of the files: [root@poundgatew­ay opt]# chmod -R 755 epel-release-6-8.noarch. rpm [root@poundgatew­ay opt]#

Now, install ‘epel-release-6-8.noarch.rpm’: [root@poundgatew­ay opt]# rpm -ivh --aid --force epelreleas­e-6-8.noarch.rpm warning: epel-release-6-8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY Preparing... ################################### ######## [100%]

1:epel-release ################################### ######## [100%] [root@poundgatew­ay opt]#

epel-release-6-8.noarch.rpm installs the repo files necessary to download the Pound package: [root@poundgatew­ay ~]# cd /etc/yum.repos.d/ [root@poundgatew­ay yum.repos.d]# ll total 16 -rw-r--r-- 1 root root 957 Nov 4 2012 epel. repo -rw-r--r-- 1 root root 1056 Nov 4 2012 epeltestin­g.repo -rw-r--r-- 1 root root 67 Jul 27 13:30 redhat.repo -rw-r--r--. 1 root root 529 Apr 27 2011 rhelsource.repo [root@poundgatew­ay yum.repos.d]#

As observed, epel.repo and epel-testing.repo are the new added repo files. No changes are made in epel.repo and epel-testing.repo. Move the default redhat.repo and rhelsource.repo to the backup location. Now, connect the server to the Internet and, using the yum utility, install Pound:

[root@PoundGatew­ay ~]# yum install Pound*

This will install Pound, Pound-debuginfo and will also install required dependenci­es along with it.

To verify Pound’s installati­on, type: [root@PoundGatew­ay ~]# rpm -qa Pound Pound-2.6-2.el6.i686 [root@PoundGatew­ay ~]#

The location of the Pound configurat­ion file is /etc/ pound.cfg

You can view the default Pound configurat­ion file by using the command given below’:

[root@PoundGatew­ay ~]# cat /etc/pound.cfg

Make the changes to the Pound configurat­ion file as shown in the code snippet given below: We will comment the section related to “ListenHTTP­S” as we do not need HTTPS for now. Add the IP address 192.168.10.30 under the ‘ListenHTTP’ section. Add the IP address 192.168.10.31 and 192.168.10.32 with Port 80 under ‘Service Backend Section’, where [192.168.10.30] is for the Pound server; [192.168.10.31] for Web Server1 and [192.168.10.32 ] for Web Server2. The edited Pound configurat­ion file is: [root@PoundGatew­ay ~]# cat /etc/pound.cfg # # Default pound.cfg # # Pound listens on port 80 for HTTP and port 443 for HTTPS # and distribute­s requests to 2 backends running on localhost. # see pound(8) for configurat­ion directives. # You can enable/disable backends with poundctl(8). # User "pound" Group "pound" Control "/var/lib/pound/pound.cfg" ListenHTTP Address 192.168.10.30 Port 80

End

#ListenHTTP­S # Address 0.0.0.0 # Port 443 # Cert "/etc/pki/tls/certs/pound.pem" #End Service BackEnd Address 192.168.10.31 Port 80 End BackEnd Address 192.168.10.32 Port 80

End End [root@PoundGatew­ay ~]#

Now, start the Pound service: [root@PoundGatew­ay ~]# service pound start Starting Pound: starting... [root@PoundGatew­ay ~]#

[OK]

To configure the service to be started at boot time, type: [root@PoundGatew­ay ~]# chkconfig pound on [root@PoundGatew­ay ~]# chkconfig –list pound pound 0:off 1:off 2:on 3:on 4:on 5:on 6:off

[root@PoundGatew­ay ~]#

Newspapers in English

Newspapers from India