Install CentOS 5.3 in text mode without any server application options.
Update and harden CentOS 5.3
Applications you need to install after server installation.
Download Sun Java JDK and Install (Choose Java SE Development Kit (JDK))
Download Sun JDK (Version I used jdk-6u16-linux-i586-rpm.bin)
Copy Java JDK to Server and Install
More Applications you need to install.
Startup MySQL Server and set password
Download Alfresco and copy to server
Download Alfresco Community Free Addition (Version I used Alfresco-Community-3.2-Linux-x86-install)
Once downloaded copy to server and make executable.
Run below to Install
./Alfresco-Community-3.2-Linux-x86-Install
When installing Alfresco it wouldn't install database, Uncheck database option and do below:
If you mess up the MySQL database you can use theses commands to clean out MySQL
Edit this file to add proper paths to installed applications.
vi /opt/Alfresco/tomcat/shared/classes/alfresco-global.properties
To Start or Stop Alfresco
To Access Alfresco after that
Now the work really starts.
Init script for OpenOffice
vi /etc/init.d/openoffice (Add the information below starting with #!/bin/bash)
chmod +x /etc/init.d/openoffice
chkconfig openoffice on
#!/bin/bash
#
# Boot open office so that Alfresco can do transforms.
# chkconfig: 2345 55 25
# description: OpenOffice Headless
#
# processname: soffice
# source function library
. /etc/rc.d/init.d/functions
RETVAL=0
VDISPLAY='99'
SOFFICE_PATH='/usr/lib/openoffice.org/program'
SOFFICE_ARGS1="-nologo -headless -display :$VDISPLAY "
SOFFICE_ARGS2='-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager'
SOFFICE_PIDFILE=/var/run/soffice.bin.pid
XVFB=/usr/bin/Xvfb
XVFB_ARGS=":$VDISPLAY -screen 0 800x600x8 -fbdir /var/run"
XVFB_PIDFILE=/var/run/xvfb.pid
start_soffice() {
echo -n $"Starting OpenOffice"
$SOFFICE_PATH/soffice $SOFFICE_ARGS1 $SOFFICE_ARGS2 >/dev/null 2>&1 &
[ $? -eq 0 ] && echo_success || echo_failure
pidof soffice.bin > $SOFFICE_PIDFILE
echo
}
start_xvfb() {
echo -n $"Starting Xvfb"
$XVFB $XVFB_ARGS >/dev/null 2>&1 &
[ $? -eq 0 ] && success || failure
pidofproc Xvfb > $XVFB_PIDFILE
echo
}
start() {
start_xvfb
sleep 3
start_soffice
}
stop() {
echo -n $"Stopping OpenOffice"
killproc soffice.bin
echo
echo -n $"Stopping Xvfb"
killproc Xvfb
echo
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo $"Usage: $0 {start|stop|restart}"
esac