Archive for August, 2009

Upgrade to PHP 5.3 at CentOS 5.3

Monday, August 31st, 2009

rpm --import http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy

cd /etc/yum.repos.d/
wget http://repo.webtatic.com/yum/webtatic.repo

yum --enablerepo=webtatic update php


heartbeat tool - hb_gui

Saturday, August 22nd, 2009

Very Good!


Mount DVD as YUM Repo

Thursday, August 20th, 2009

We need several packages to create yum repository, you can install them from CD/DVD disks or ISO images.

# yum install createrepo wget

# cd /mnt # createrepo .
Mount your CD/DVD or ISO images
DVD Disk or DVD ISO image

* If you have DVD disk, please mount dvd-rom first, and then create yum repository:

# mkdir /mnt/dvd/
# mount /dev/cdrom /mnt/dvd/

* If you use DVD iso, please copy it to the system, and then create yum repository:

# mkdir /mnt/dvd/
# mount -o loop /root/rhel5.1-dvd.iso /mnt/dvd

CD images

If you have multiple CD image files, you should mount all iso images and then create yum repository.

* Mount all iso images:

# mkdir -p /mnt/{1,2,3,4,5}
# mount -o loop rhel5.1-disc1.iso /mnt/1
# mount -o loop rhel5.1-disc2.iso /mnt/2
# mount -o loop rhel5.1-disc3.iso /mnt/3
# mount -o loop rhel5.1-disc4.iso /mnt/4
# mount -o loop rhel5.1-disc5.iso /mnt/5

Install necessary package

* Find and install ‘createrepo’ package in /mnt directory:

# find /mnt -iname ‘createrepo*’
/mnt/dvd/Server/createrepo-0.4.11-3.el5.noarch.rpm

# rpm -ivh /mnt/dvd/Server/createrepo-0.4.11-3.el5.noarch.rpm

Create yum repository
Create metadata

* Create yum repository:

# cd /mnt/
# createrepo .

Define yum repository

Create yum repository define file /etc/yum.repos.d/dvdiso.repo:

[MailRepo]
name=MailRepo
baseurl=file:///mnt/
enabled=1
gpgcheck=0

Test it

# yum clean all
# yum list




Install FreeType Support for DirectAdmin

Thursday, August 20th, 2009
# install freetype-devel
yum install freetype-devel -y

# patch the build script
cp -f /usr/local/directadmin/customapache/build /usr/local/directadmin/customapache/build.bak
cat /usr/local/directadmin/customapache/build.bak | sed "s/without-freetype/with-freetype/g" > /usr/local/directadmin/customapache/build
chmod 755 /usr/local/directadmin/customapache/build

cd /usr/local/directadmin/customapache
./build gd -y

POST Install X Windows

Thursday, August 20th, 2009

yum groupinstall “groupname” yum groupinstall “X Window System” “GNOME Desktop Environment”

 

 

 


How to get Linux to re-read partition without Reboot

Thursday, August 20th, 2009

Run this command

partprobe