Friday, August 5, 2011

Cut First Character From Line

Cut First Character From Line
=======================

cat 12 |sed 's/.\(.*\)/\1/' ( 12 is the file name)


Removing the last three characters from every filename.

==============
$ cat files
apache-1.3.39.exe
==============
$ cat files | sed 's/\(.*\).../\1/'
apache-1.3.39
==============

Removing last character from each filename/strin.

==============
$ cat files |sed 's/\(.*\)./\1/'
apache-1.3.39.ex

==============

Tuesday, August 2, 2011

How to Install VirtualBox In Centos.5.5

How to Install VirtualBox In Centos.5.5
=================================

#cd /etc/yum.repos.d

#wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo

#yum --enablerepo rpmforge install dkms

#yum groupinstall "Development Tools"

#yum install kernel-devel

#yum install VirtualBox-4.0

# usermod -G vboxusers username

=================================



Monday, August 1, 2011

Install Openfire/Spark Server.

Install Openfire/Spark Server.
===================

1. Install java
===============
wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=33879

Rename the downloaded file and extract it with the following command::
mv jre* jre-install.bin
chmod +x jre-install.bin
./jre-install.bin
======
1. Install Openfire.

wget http://www.igniterealtime.org/downloads/download-landing.jsp?file=openfire/openfire-3.7.0-1.i386.rpm

rpm -ivh http://www.igniterealtime.org/downloads/download-landing.jsp?file=openfire/openfire-3.7.0-1.i386.rpm

===
To access Admin Console
127.0.0.1:9090
===
selet embeded databse
===
import user from existing server shold mention old server hostname
====