Archive for June, 2008

Install and Configure FTP Server in Amazon EC2 instance

For many users, running FTP Sever in Amazon EC2 instance is headache at the first time. You need to experiment before being able to transfer data. The main problems are Ingress firewall in Amazon environment and NAT traversal.

Here I’m using vsftp (vsfptd) Server, which is one of the most popular and easy to configure. The instance is running from base Fedora 4 AMI but the setup should be identical to other Red Hat based distros.

Install vsftpd FTP server, if not installed earlier:

$ yum install vsftpd

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.

svn: Not authorized to open root of edit operation

I got this error from subversion running as daemon while trying to checkout the repository:
# svn co svn://192.168.0.1/nomanager --username svnadmin
Authentication realm: Nomanager Repository
Password for ‘svnadmin’:
svn: Not authorized to open root of edit operation

To solve this issue, you need to update the svnserve.conf file of that repository:
# vi /svn/nomanager/conf/svnserve.conf
Change the line non-access = read to anon-access = none and try again.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes