Showing posts with label centos | redhat | fedora. Show all posts
Showing posts with label centos | redhat | fedora. Show all posts

Wednesday, September 10, 2014

Enable repo on Centos

Source :

  1. http://www.binarytides.com/setup-remi-repository-centos-fedora/

  2. http://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/

  3. http://blog.famillecollet.com/pages/Config-en

  4. https://webtatic.com/packages/php53/

  5. http://anandarajpandey.com/2014/04/21/virtualmin-upgrate-php-5-3-to-php-5-4-php-5-5-or-higher-version-from-yum/

  6. http://www.rackspace.com/knowledge_center/article/how-to-installupgrade-php-53-for-centos-5x


 

Detail Repository info :

EPEL 
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$ba
search
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$b
asearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

 

Webtatic
[webtatic]
name=Webtatic Repository EL6 - $basearch
#baseurl=http://repo.webtatic.com/yum/el6/$basearch/
mirrorlist=http://mirror.webtatic.com/yum/el6/$basearch/mirrorlist
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-andy

[webtatic-debuginfo]
name=Webtatic Repository EL6 - $basearch - Debug
#baseurl=http://repo.webtatic.com/yum/el6/$basearch/debug/
mirrorlist=http://mirror.webtatic.com/yum/el6/$basearch/debug/mirrorlist
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-andy

[webtatic-source]
name=Webtatic Repository EL6 - $basearch - Source
#baseurl=http://repo.webtatic.com/yum/el6/SRPMS/
mirrorlist=http://mirror.webtatic.com/yum/el6/SRPMS/mirrorlist
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-andy

 

Remi
[remi]
name=Les RPM de remi pour Enterprise Linux 6 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirror
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

[remi-php55]
name=Les RPM de remi de PHP 5.5 pour Enterprise Linux 6 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/6/php55/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/6/php55/mirror
# WARNING: If you enable this repository, you must also enable "remi"
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

[remi-php56]
name=Les RPM de remi de PHP 5.6 pour Enterprise Linux 6 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/6/php56/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/6/php56/mirror
# WARNING: If you enable this repository, you must also enable "remi"
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

[remi-test]
name=Les RPM de remi en test pour Enterprise Linux 6 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/6/test/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/6/test/mirror
# WARNING: If you enable this repository, you must also enable "remi"
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

[remi-debuginfo]
name=Les RPM de remi pour Enterprise Linux 6 - $basearch - debuginfo
baseurl=http://rpms.famillecollet.com/enterprise/6/debug-remi/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

[remi-php55-debuginfo]
name=Les RPM de remi de PHP 5.5 pour Enterprise Linux 6 - $basearch - debuginfo
baseurl=http://rpms.famillecollet.com/enterprise/6/debug-php55/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

[remi-php56-debuginfo]
name=Les RPM de remi de PHP 5.6 pour Enterprise Linux 6 - $basearch - debuginfo
baseurl=http://rpms.famillecollet.com/enterprise/6/debug-php56/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

[remi-test-debuginfo]
name=Les RPM de remi en test pour Enterprise Linux 6 - $basearch - debuginfo
baseurl=http://rpms.famillecollet.com/enterprise/6/debug-test/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

Thursday, September 4, 2014

Installing php-mcrypt in CentOS 6

For x86_64:
#rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

For i386:
#rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

After install EPEL repo:
#yum install php-mcrypt

Check list of PHP add-on that install in server:

 #yum list installed | grep php | cut -d' ' -f1

Source :

http://blog.hostonnet.com/installing-php-mcrypt-in-centos-6

Tuesday, April 1, 2014

Tuesday, October 29, 2013

Wednesday, September 25, 2013

Error: Could not open command file ‘/var/nagios/rw/nagios.cmd’ for update!

Error:

Error: Could not open command file '/var/nagios/rw/nagios.cmd' for update!

The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions.

An error occurred while attempting to commit your command for processing.
Solutions:

#chmod 777 /var/nagios/rw/nagios.cmd

 

Thursday, June 20, 2013

How to install and configure SNMP on Ubuntu and Centos

1.Installation

  • Ubuntu - root@linux:~# sudo apt-get install snmpd

  • Centos - root@linux:~# yum install net-snmp net-snmp-utils

2. Configuration - /etc/snmp/snmpd.conf
Move existing /etc/snmp/snmpd.conf configuration file to /etc/snmp/snmpd.conf.org
mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.org
Create a new /etc/snmp/snmpd.conf file:
rocommunity public
syslocation "PDC, DataCenter"
syscontact abc@com.my

3. Configuration - 
/etc/default/snmpd(ubuntu)
/etc/sysconfig/snmpd(centos)

Make snmpd use the newly created file and make it listen to all interfaces:

Edit /etc/default/snmpd or /etc/sysconfig/snmpd

Change from:
# snmpd options (use syslog, close stdin/out/err).
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'
To:
# snmpd options (use syslog, close stdin/out/err).
#SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf'
and restart snmpd
/etc/init.d/snmpd restart

4. Test

Do a snmpwalk from another host against your newly configured host.
# snmpwalk -v 1 -c public -O e localhost

source :

Monday, November 12, 2012

Start Linux Centos in Text mode

Edit /etc/inittab and look for a line that begin with id:5.

Replace the 5 in that line by 3.

Brief description of runlevels here, but shortly:

Runlevel 0 and 6: halt and reboot the machine, respectively.
Runlevel 1: No services running, only root can login.
Runlevel 2: Users can login but no networking.
Runlevel 3: Networking and text-mode.
Runlevel 4: unused.
Runlevel 5: GUI.

Tuesday, December 27, 2011

Mod_evasive - Prevent DDOS Attack

Installing Modevasive
mod_evasive is an evasive maneuvers module for Apache to provide evasive action in the event of an HTTP DoS or DDoS attack or brute force attack. It is also designed to be a detection tool, and can be easily configured to talk to ipchains, firewalls, routers, and etcetera.

-> Execute the following commands to install it:

#wget http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz
#tar -xzvf mod_evasive_1.10.1.tar.gz
#cd mod_evasive
#/usr/sbin/apxs -cia mod_evasive20.c
#rm -rf /root/mod_evasive*

-> Test to make sure it was loaded:
#grep -i evasive /etc/httpd/conf/httpd.conf

Next, edit /etc/httpd/conf/httpd.conf and uncomment (remove the # in front of each line) the following:
<IfModule mod_evasive.c>
DOSHashTableSize 3097
DOSPageCount 5
DOSSiteCount 100
DOSPageInterval 2
DOSSiteInterval 2
DOSBlockingPeriod 600
</IfModule>

 

-> Restart Apache by executing the command

#/etc/init.d/httpd restart

Info
----

  • DOSHashTableSize: is the size of the table of URL and IP combined

  • DOSPageCount: is the number of same page requests from the same IP during an interval that will cause that IP to be added to the block list.

  • DOSSiteCount: is the number of pages requested of a site by the same IP during an interval which will cause the IP to be added to the block list.

  • DOSPageInterval: is the interval that the hash table for IPs and URLs is erased (in seconds)

  • DOSSiteInterval: is the intervale that the hash table of IPs is erased (in seconds)

  • DOSBlockingPeriod: is the time the IP is blacked (in seconds)

  • DOSEmailNotify: can be used to notify by sending an email everytime an IP is blocked

  • DOSSystemCommand: is the command used to execute a command when an IP is blocked. It can be used to add a block the user from a firewall or router.

  • DOSWhiteList: can be used to whitelist IPs such as 127.0.0.1


Although mod_dosevasive can be quite effective in some cases, in others it can cause more problems by blocking non-offending IPs. It is suggested you take a look at hardware solution if you.

 

Source : http://www.zdziarski.com/blog/?page_id=442

Source : http://sabarish4u.wordpress.com/2008/11/21/157/

Thursday, November 24, 2011

Install and configure SNMP on CentOS

This guide describe howto install and do a basic configure of SNMP on a RedHat Enterprise Linux or CentOS.

1. Installation

Run command yum install net-snmp-utils

[root@dull etc]# yum install -y net-snmp net-snmp-utils

2. Configure

do a backup of the snmpd config file.

[root@dull ~]# mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.old

Create a new config file.

[root@dull ~]# vi /etc/snmp/snmpd.conf

  • rocommunity  public

  • syslocation  "PDC, Peters DataCenter"

  • syscontact  peter@it-slav.net

Start the snmpd service

[root@dull ~]# /etc/init.d/snmpd start

Do a snmpwalk to make sure it is working

[root@dull ~]# snmpwalk -v 1 -c public -O e 127.0.0.1
SNMPv2-MIB::sysDescr.0 = STRING: Linux dull 2.6.18-92.1.17.el5 #1 SMP Tue Nov 4 13:45:01 EST 2008 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (16748) 0:02:47.48
SNMPv2-MIB::sysContact.0 = STRING: peter@it-slav.net
SNMPv2-MIB::sysName.0 = STRING: dull
SNMPv2-MIB::sysLocation.0 = STRING: "PDC, Peters DataCentral"
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (1) 0:00:00.01

...

Yes, it is working

And finally, make sure snmpd starts next time you restart your machine.

[root@dull ~]# chkconfig snmpd on

Friday, February 25, 2011

Tomcat and Java on Centos


  • http://www.satollo.net/how-to-install-tomcat-and-java-6-on-centos-5-2

  • http://www.kernelhardware.org/install-java-tomcat-apache-centos-5/

  • http://linux-sxs.org/internet_serving/c516.html


OpenDS + SSO + Liferay

  • http://liferayintegrator.blogspot.com/2010/02/liferay-opends-and-cas-integration.html

  • http://www.satyakomatineni.com/akc/display?url=displaynoteimpurl&ownerUserId=satya&reportId=1942

Friday, February 11, 2011

Monday, February 7, 2011

Install Adobe Flash Player on CentOS 5.5 and Red Hat (RHEL) 5.5

Install Adobe YUM Repository RPM package
#rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
#yum check-update

CentOS and Red Hat 32-bit version (i386)
#yum install flash-plugin nspluginwrapper curl

Wednesday, June 10, 2009

389 Directory Server

The enterprise-class Open Source LDAP server for Linux. It is hardened by real-world use, is full-featured, supports multi-master replication, and already handles many of the largest LDAP deployments in the world. The 389 Directory Server can be downloaded for free and set up in less than an hour using the graphical console.

For more : 389 Directory Server

Tuesday, May 6, 2008

Thursday, November 15, 2007

Saturday, June 2, 2007

Fedora 7 now available



Fedora is a Linux-based operating system that showcases the latest in free and open source software. Fedora is always free for anyone to use, modify, and distribute. It is built by people across the globe who work together as a community:

Screen capture :



The big innovations touted for this release are:

  • Revisor tool - a graphical appliation built on top of Fedora's other build tools that gives flexibility to build an ISO, a live CD, etc. Mike Spevack, Fedora's project leader, feels this is Fedora's crown jewel. Customized versions of Fedora are now possible to an extent that was not available previously.



  • Live CD - first time for Fedora, (however not an industry shake-up here).



  • Kernel-based Virtual Machine (KVM) technology has been integrated with the Fedora graphical virtualization manager tool. KVM provides a full virtualization solution, and users have a choice between KVM and Xen, along with Qemu, in this release.


Get it now: