Archive for the 'General' Category

Install and configure ejabberd jabber IM Server

ejabberd, as described in its home page:
” ejabberd is a distributed, fault-tolerant technology that allows the creation of large-scale instant messaging applications.The server can reliably support thousands of simultaneous users on a single node and has been designed to provide exceptional standards of fault tolerance. As an open source technology, based on industry-standards, ejabberd can be used to build bespoke solutions very cost effectively.”

Instructions to install and configure ejabberd in CentOS 5 are as follows:

SSH Port forwarding from remote to local machine



SSH has a wonderful feature called SSH Port Forwarding, also known as SSH Tunneling, which allows you to establish a secure SSH session and then tunnel arbitrary TCP connections through it. Tunnels can be created at any time, with almost no effort and no programming, which makes them very appealing.

Install perl Net::SFTP module in linux

When installing perl Net::SFTP module in CentOS 5 box:

# perl -MCPAN -e 'install Net::SSH::Perl'

It got stuck at:

t/01-compile.t…..ok
t/02-buffer.t……ok
t/03-packet.t……1/10

then I tried installation with force so that it can skip tests if any of them failed:

# perl -MCPAN -e 'force install Net::SSH::Perl'

The module seems installed ok but while using in a script, error occured:
Can’t locate Net/SSH/Perl/Buffer.pm in @INC …

that means, the module still not installed/configured properly. To get it done, I searched for rpms and found rpmforge repository http://dag.wieers.com/rpm/packages/rpmforge-release/ have all the sufficient rpms:

Install java plugin for firefox

You are running firefox and noticed that in a website there’s requirement of java runtime environment for proper viewing of site. Now firefox tries to install but in vain. Here are quick steps to install and configure java plugin for Firefox 3. These steps are tested in CentOS 5:

1. Download Java from here I have downloaded rpm in bin format.

2. Extract rpm from binary and then install it:

# ./jre-6u5-linux-i586-rpm.bin
# rpm -ivh jre-6u5-linux-i586.rpm

Missing Dependency: libFLAC.so.4 is needed by package libsndfile

In mood to listen some music on my CentOS 5 system, I found that mplayer is not installed.
I’ve followed instructions from http://wiki.centos.org/TipsAndTricks/MultimediaOnCentOS
but stuck with error:

Error: Missing Dependency: libFLAC.so.4 is needed by package libsndfile

I have then forcebly removed following:
# rpm -e --nodeps flac-1.1.2-27

and installed:
# wget ftp://rpmfind.net/linux/dag/redhat/el3/en/i386/dag/RPMS/flac-1.1.0-4.rhel3.dag.i386.rpm
# rpm -ivh flac-1.1.0-4.rhel3.dag.i386.rpm

This resolved the error and system is now happily playing music.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes