Install the dependent applications:
Install the minimum Java platform version on your installation system. Go to http://java.sun.com/javase/downloads/index.jsp and download and install this version.
The default directory in which the JDK is installed is <jdk>=/usr/local/jdk<version>.
To install GlassFish, go to https://glassfish.dev.java.net/public/downloadsindex.html to download the current application.
glassfish-installer-v2ur1-b09d-linux.jar.JAVA_HOME variable to your JDK 6 directory, /usr/java/<jdk 1.6 directory>.java -Xmx256m -jar <filename>.jar.java -Xmx256m -jar glassfish-installer-v2ur1-b09d-linux.jar.glassfish directory is created by the jar file, change to that directory.cd glassfish.glassfish/lib/ant.set ANT_HOME=glassfish
chmod -R +x lib/ant/bin
lib/ant/bin/ant -f setup.xmlTo install PostgreSQL, perform the short version of the installation instructions at the PostgreSQL website. On the Documentation page, select the Manuals option, and then choose the appropriate version to read.
/usr/local/pqsql/bin.su - postgres
cd /usr/local/pgsql/bin
./createuser -lPE dvnAppno to the superuser prompt.yes to the create databases prompt.yes to the create new roles prompt.dvnApp) as the owner../createdb dvnDb --owner=dvnApp"dvnApp"./usr/local/pgsql/data/postgresql.conf.listen_addresses and port, and change the first line to listen_addresses='*'./usr/local/glassfish/bin/asadmin stop-domain domain1./usr/local/pgsql/bin/pg_ctl restart -D /usr/local/pgsql/data.<servername> 5432.To install the R packages:
http://cran.r-project.org/ or from a mirror. If the version recommended by the Project is no longer on CRAN, please contact the DVN team. Also, it is important to get the rpm that matches your architecture. Most of the tasks performed by R are CPU-intensive, and if you have 64-bit hardware, you will observe significant performance gains by using the native 64-bit version.R--x.x.i386.rpmR--x.x.i686.rpmR--x.x.x86_64.rpm or amd64rpm –ivh R-<version>-<subversion>.rpmtk-develtcl-develxorg-x11-devellibpng-develgcc-g77 (Fortran 77)up2date <build components>yum framework.cd /usr/local/VDC/R
./installR.sh/tmp/RINSTALL.<PID>.LOG. You probably will see a few warning messages about the following packages at the end of the debugging output: rgenoud, anchors, and MCMCpack. You can ignore these specific warnings. If, however, you see other warnings or errors, please report them to the DVN team.VDCutil package manually, because it is not availble through CRAN. An addendum README file that describes this installation is included in the SourceForge downloads.The following is the default directory in which the R packages are installed:
<R>=/usr/local/VDC/R
Download the RServe service from the following RServe web site:
http://www.rforge.net/Rserve/files/
Refer to the installation documentation at http://www.rforge.net/Rserve/doc.html for detailed information about how to install the service.
Note: RServe and the DSB component must be installed on the same server. Also, do not install RServe from CRAN by using the R install.packages command, because the version on CRAN often is out of date.
To install RServe:
Rserve_0.5-<version>.tar.gz package, place it in the current R directory and execute the following command as the root user:R CMD INSTALL Rserve_0.5-X.tar.gztemp directory and the DSB temp directory tree, /tmp/VDC.See the example RServe /etc/Rserv.conf configuration file.
The file /etc/Rserv.pwd stores the RServe access username and password. Note that these do not constitute a UNIX login username and password; these credentials are used by RServe only and cannot be used to open a shell on the system if compromised. An example /etc/Rserv.pwd file is:
<account> <password>
For more information on RServe configuration parameters, refer to the RServe documentation at http://www.rforge.net/Rserve/doc.html.
R CMD Rserveworkdir /tmp/Rserv pwdfile /etc/Rserv.pwd remote enable auth required plaintext disable fileio enable port <port number> maxinbuf 262144 maxsendbuf 0 uid 48
#! /bin/sh
# chkconfig: 2345 99 01
# description: Rserve, /etc/init.d/rserve
case "$1" in
start)
echo -n "Starting Rserve daemon: "
R CMD Rserve
echo "."
;;
stop)
echo -n "Stopping Rserve daemon: "
killall -s 9 Rserve
echo "."
;;
restart)
echo -n "Stopping Rserve daemon: "
killall -s 9 Rserve
echo "."
echo -n "Starting Rserve daemon: "
R CMD Rserve
echo "."
;;
*)
echo "Usage: /etc/init.d/rserve {start|stop|restart}"
exit 1
esac
exit 0