Archive for June, 2009

Create bootable USB drive with Fedora 11

Here are quick steps on CentOS 5.3 box (should be identical on any RH based distro) to create a bootable USB stick of latest Fedora 11 distrubution:

1. Check whether required tools are already installed or not:

# rpm -q livecd
<no output>

2. Install tools:

# yum install livecd-tools

3. Insert your USB stick in one of USB port, it should get automatically detected and mounted. Make sure your stick has atleast 1 GB free space. Jump to step #7 as it’s absolutely not necessary to format it, but if there’s no worthy data in and you are willing to clean it completely before moving forward, here is the way to proceed after unmounting it:

Quickly install ffmpeg-php library in CentOS

ffmpeg-php is a PHP extension that adds functions for accessing and retrieving information from movies and audio files.

Here’s quick steps which worked for me and you can try to install this library in a RedHat based distro (I’ve checked in a fresh CentOS 5).

Step 1. Install standard ffmpeg and its dependencies using yum:

# yum install ffmpeg ffmpeg-devel php-devel

Step 2. Download and install ffmpeg-php:

# cd /usr/src
# wget http://biznetnetworks.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.6.0.tbz2
# tar xjf ffmpeg-php-0.6.0.tbz2
# cd ffmpeg-php-0.6.0
# phpize
# ./configure –enable-shared –prefix=/usr
# make
# make install

Apache url rewriting with masking

I got an assignment where I’ve to move some apps from a server (due to immense load) to different server without changing URLs. Main software app should remains in first server and all other smaller apps should be moved to another server but because all apps are integrated (for seamless login etc) with each other, URL on the browser should not change when browing the main app or any of its subordinate apps residing on different server.

The quick solution is to update httpd.conf in your main server to redirect traffic for certain apps to different server (or domain). Apache will work like a proxy when accessing other apps. for example, here are sample URLs:

Get Adobe Flash playerPlugin by wpburn.com wordpress themes