Monday, November 22, 2010

Building thrift 0.5.0 on CentOS 5.3

You will need php 5.2 or above to successfully build thrift 0.5.0 or you will see the following error:

'zend_std_get_constructor' was not declared in this scope.

Download php 5.2.14 source from here and go through the usual "configure->make->sudo make install" cycle.

Friday, November 19, 2010

Display Chinese in Firefox on CentOS

1. sudo yum groupinstall chinese-support
2. Restart firefox

Thursday, November 4, 2010

Installing CentOS 4.4 using USB

Ok, I know this is an old version. But if for some reasons, your environment still calls for this kind of system.

1. Download the following from http://vault.centos.org/4.4/isos/i386
CentOS-4.4-i386-bin1of4.iso
CentOS-4.4-i386-bin2of4.iso
CentOS-4.4-i386-bin3of4.iso
CentOS-4.4-i386-bin4of4.iso


Windows

2. Use MagicDisc to mount the the ISOes to different drives. Open the the drives and copy all the files to a directory. Overwrite the files that have the same names.
Linux
2. Mount the iso
# mkdir /mnt/iso
# mount -o loop disk1.iso /mnt/iso
Copy all the files to a directory, e.g. centos44
# cp -r /mnt/iso/* centos44
Do the above for all the iso files.

3. Windows: Use MagicISO to write the files to an ISO; Linux:
# mkisofs -o centos44-i386.iso ./centos44

4. Use UNetbootin (http://unetbootin.sourceforge.net) to write the ISO to your USB drive

5. Boot from USB in your system that is to be installed. Select HTTP installation.
Site: vault.centos.org
Direcotry: 4.4/os/i386

The reason why we have to do this instead of using the CentOS-4.4.ServerCD-i386.iso file is that the
Server ISO does not match with the installation directory structure. The installation will not start.