Tuesday, August 10, 2010

[PERL CPAN] Missing Perl Module... install by CPAN

it's an old thing still several users are unaware, so a quickie howto for all of them

[PERL CPAN] whenever any perl module found missing

CPAN is Comprehensive Perl Archive Network, a cool place to install Perl Modules instead of keep searching
---------------------------------------------------

you can simple install it as
"perl -MCPAN -e "install "
e.g.
#perl -MCPAN -e "install Net::CIDR"

if it's giving error and asking a force install, most probably a depending module isn't present
so install that first, or if you still wanna install it do a FORCE install
e.g.
#perl -MCPAN -e "CPAN::Shell->force(qw(install Net::CIDR))"

Tuesday, August 3, 2010

{Deploy} Installing RED5 Server on CentOS, Fedora, RedHat

Installing RED5 Server on CentOS, Fedora, RedHat

it's an Open Source Flash Server written in Java for Multimedia Streaming Web/Network Application

[] it requires Java 1.6 to be pre-installed
#yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel
#yum -y install java-1.6.0-openjdk-javadoc java-1.6.0-openjdk-src

[] Setup 'Apache ANT', required to build Red5
#cd /usr/src
#wget http://apache.sunsite.ualberta.ca/ant/binaries/apache-ant-1.8.1-bin.tar.bz2
#tar jxvf apache-ant-1.8.1-bin.tar.bz2
#mv apache-ant-* /usr/local/ant

[] Settimg up ENV variables as per required
#export ANT_HOME=/usr/local/ant
#export JAVA_HOME=/usr/lib/jvm/java
#export PATH=$PATH:/usr/local/ant/bin

[] Download & Install RED5
#cd /usr/src
#svn co http://red5.googlecode.com/svn/java/server/trunk red5server
#mv red5server /usr/local/
#cd /usr/local/red5server
#ant prepare
#ant dist
#cp -r dist/conf ./
#./red5.sh

[] To use RED5 Server
- checking if it works
    browse 'http://RED5-Server-IP:5080/'
- to install your RED5 Server based applications
    copy them to dir '/usr/local/red5server/webappz'
    suppose you copy them to '/usr/local/red5server/webappz/myFlash'
    so they will be accessible at 'http://RED5-Server-IP:5080/myFlash/'
- to make it run at port 80 like any HTTP Server
    edit '/usr/local/red5/conf/red5-origin.xml' and '/usr/local/red5/conf/red5.properties'
    by replacing all instances of Port# 5080 by simply Port# 80

{RPM} unRAR in CentOS, Fedora, RedHat

i found CentOS was a bit rude to UnRAR the rar files, and even in 'yum' installing the unrar {at least for me}... so here is rpm way for it... if you are also facing same problem

[] Downloading the suitable RPM {you can download from any location}
wget http://dag.wieers.com/packages/unrar/unrar-3.6.2-1.el4.rf.i386.rpm

[] Installing RPM
rpm -Uvh unrar-3.6.2-1.el4.rf.i386.rpm


[] Using
- to extract RAR files in current dir
unrar e rarfile.rar

- to extract RAR files with Pathname
unrar x rarfile.rar