Live DSpace in 1-2-3

Just download the following softwares :
apache-maven-2.2.1.tar.gz
dspace-1.6.1-src-release.tar.gz
apache-ant-1.8.1.tar.gz
apache-tomcat-6.0.26.tar.gz
and place the script given below in the same folder and then execute it.Dspace will be /*LIVE*/ within some minutes.
#!/bin/sh
#This script is intended to be run on the bourne shell in the Linux Environment (Preferable Deb Based Linux Distribution)
# This is a comment!

touch dspace_log ;

set `pwd`

#all logs for research Repository Installation are logged here.

echo "=======Log for Apache Maven Inflation start here========"  | tee -a $1/dspace_log  ;
echo | tee -a $1/dspace_log  ;

tar -xvf apache-maven-2.2.1.tar.gz | tee -a $1/dspace_log  ;
#Extract the Apache maven tool setup into the existing directory under the same Directory.Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.This is used for compilation and Installation management of the DSpace "The Resaerch repository ."

#Discription of the flags are as follow
# -x : Extract file from the archieve
# -v : Verbously , i.e. Interactively list all the files that are extracted
# -f : Tell the file name.
echo "=======Log for Apache Maven Inflation ends here========"  | tee -a $1/dspace_log  ;
echo | tee -a $1/dspace_log  ;

echo "=======Log for DSpace Inflation start here========"  | tee -a $1/dspace_log  ;
echo | tee -a $1/dspace_log  ;
tar -xvf  dspace-1.6.1-src-release.tar.gz | tee -a $1/dspace_log  ;

#Extract the Dspace source code in the working directory within the Directory named : dspace-[version]-src-release

# Discription of the flags are as follow
# -x : Extract file from the archieve
# -v : Verbously , i.e. Interactively list all the files that are extracted
# -f : Tell the file name.
echo "=======Log for DSpace Inflation ends here========"  | tee -a $1/dspace_log  ;
echo | tee -a $1/dspace_log  ;

echo "=======Log for Apache Tomcat start here========"  | tee -a $1/dspace_log  ;
echo | tee -a $1/dspace_log  ;
tar -xvf  apache-tomcat-6.0.26.tar.gz    | tee -a $1/dspace_log  ;

#Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies. The Java Servlet and JavaServer Pages specifications are developed under the Java Community Process.

# Discription of the flags are as follow
# -x : Extract file from the archieve
# -v : Verbously , i.e. Interactively list all the files that are extracted
# -f : Tell the file name.
echo "=======Log for Apache Tomcat ends here========"  | tee -a $1/dspace_log  ;
echo | tee -a $1/dspace_log  ;

echo "=======Log for Apache Ant Start here========"  | tee -a $1/dspace_log  ;
echo | tee -a $1/dspace_log  ;
tar -xvf o | tee -a $1/dspace_log  ;

#Ant is a Java library and command-line tool. Ant's mission is to drive processes described in build files as targets and extension points dependent upon each other. The main known usage of Ant is the build of Java applications.

echo "=======Log for Apache Tomcat ends here========"  | tee -a $1/dspace_log  ;
echo | tee -a $1/dspace_log  ;

echo "Do the General Configurations of the DSpace [Press enter to continue]" ;
echo "1.JSPUI & XMLUI Configurations" ;
echo "2.JSPUI Specific Configurations" ;
echo "3.XMLUI Specific Configurations" ;
echo "4.OAI-PMH Specific Configurations" ;
echo "5.SWORD Specific Configurations" ;
echo "6.OAI Harvesting Configurations" ;
echo "7.SOLR Statistics Configurations" ;

wget http://www.java.net/download/jdk7/binaries/jdk-7-ea-bin-b109-linux-i586-09_sep_2010.bin ;
chmod +x jdk-7-ea-bin-b109-linux-i586-09_sep_2010.bin ;
jdk-7-ea-bin-b109-linux-i586-09_sep_2010.bin ;
echo "Please Export Java_Home variable and add it to the System or tell us the place of Java Install we will do that for you , Apache service will do all these things while starting"
read java_home ;
echo JAVA_HOME=$java_home | tee -a /etc/init.d/apache2 ;

echo "Use the following as te target Directory"

read garbage ;
#Wait for the user input.

#This will output the path where the dspace will be installed , for default script to work please use the following as Dspace home in the Dspace.cfg file.

set `pwd`

echo $1/dspace_install/  ;
#This will tell the actual path where the dspace installatiion has to be done.

read garbage ;
#Wait for the user input.

vim  dspace-1.6.1-src-release/dspace/config/dspace.cfg ;

cd dspace-1.6.1-src-release/dspace ;
#This will tell the path where to install the Dspace

../../apache-maven-2.2.1/bin/mvn package | tee -a $1/dspace_log ;
#This will run the Maven tool which will built the project for you , and download the third party API's

cd ../../
#Move to the parent Directory

cd dspace-1.6.1-src-release/dspace/target/dspace-1.6.1-build.dir
# This directory will be created after running the Maven.

../../../../apache-ant-1.8.1/bin/ant fresh_install  | tee -a $1/dspace_log
#Now run the Ant Script which will do the fresh install fo the system i.e DSpace .

cd ../../../../
#Again Move to the Parent Directory

cp -fr dspace_install/webapps/*  apache-tomcat-6.0.26/webapps | tee -a $1/dspace_log
#This will copy all the websbased files to the tomcat webapps home.

read garbage ;
#Wait for the user input.

chmod +x apache-tomcat-6.0.26/bin/* | tee -a $1/dspace_log
#change the file permission so that these files can execute.

read garbage ;
#Wait for the user input.

apache-tomcat-6.0.26/bin/startup.sh | tee -a $1/dspace_log
#this will satrt the apache now go to http://[server addresses] : port number /jspui

# $1/apache-tomcat-6.0.26/bin/startup.sh | tee -a /etc/init.d/apache2 ;
#This will add the entry to start the apache tomcat each time the apache is started.

#These are some utilities which will be run first time when you install the Dspace.
dspace_install/bin/checker | tee -a $1/dspace_log
dspace_install/bin/cleanup| tee -a $1/dspace_log
dspace_install/bin/log-reporter| tee -a $1/dspace_log
dspace_install/bin/stat-initial | tee -a $1/dspace_log
dspace_install/bin/stat-report-initial | tee -a $1/dspace_log
dspace_install/bin/index-init | tee -a $1/dspace_log
dspace_install/bin/create-administrator | tee -a $1/dspace_log