Archive for the ‘Linux’ Category

Upgrade PHP5 under CentOS 5.0

Tuesday, June 16th, 2009
wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

yum --enablerepo=remi update php


Find 777 directory

Wednesday, April 29th, 2009

find / -perm 777 -print

Find files own by Apache

Wednesday, April 29th, 2009

find / home -user apache -print

Force mount Linux RAID md3

Wednesday, April 1st, 2009

mdadm -A /dev/md3 –force   # force to assembly the RAID
mdadm –detail /dev/md3 # show the details on the RAID configuration
mdadm /dev/md3 -a /dev/sdd1  #add in the additional partition into the RAID

How to see grub boot menu. XEN Guest OS

Tuesday, March 31st, 2009

xm create -c xen_1521

finding backup superblocks on ext2 and ext3 filesystems

Monday, January 5th, 2009

If you have a situation where your ext2 or ext3 filesystem’s primary superblock is corrupted, you need to pass one of the backup superblocks to fsck program. In this case you can find the backup superblocks by using mkfs program. All you have to do is, run mkfs with “-n” option, ere mkfs is run in dry mode. It will not destroy your filesystem, it only prints out what it will do on real mkfs procedure.By the way, you have to add the parameters if you have used when your filesystem originally created to get correct values.

eg. mke2fs -n /dev/sda1

and now you can pass your backup superblock number to fsck (fsck.ext2,fsck.ext3) with “-b” parameter.

originated: http://lserinol.blogspot.com/2008/11/finding-backup-superblocks-on-ext2-and.html

Install dependency for VMWare Server

Wednesday, September 24th, 2008

Install VMWare’s Dependency
Install VMWare’s Dependency

yum install libXrender -y
yum install libXtst -y

Disable Unwanted Service

Sunday, August 10th, 2008

chkconfig –level 3 yum-updatesd    off
chkconfig –level 3 xfs             off
chkconfig –level 3 sendmail        off
chkconfig –level 3 rpcidmapd       off
chkconfig –level 3 rpcgssd         off
chkconfig –level 3 portmap         off
chkconfig –level 3 pcscd           off
chkconfig –level 3 nfslock         off
chkconfig –level 3 netfs           off
chkconfig –level 3 kudzu           off
chkconfig –level 3 iptables        off
chkconfig –level 3 ip6tables       off
chkconfig –level 3 firstboot       off
chkconfig –level 3 gpm             off
chkconfig –level 3 bluetooth       off
chkconfig –level 3 cups            off
chkconfig –level 3 avahi-daemon    off
chkconfig –level 3 autofs          off

Reinstall grub for SDA

Sunday, March 2nd, 2008
Grub>device (hd0) /dev/sda
Grub>root (hd0,0)
Grub>setup (hd0)

How to increase RAID rebuilt speed

Sunday, March 2nd, 2008

echo -n 500000 > /proc/sys/dev/raid/speed_limit_max