-
Notifications
You must be signed in to change notification settings - Fork 16
Alfresco
Please note there is now a TKLPatch for Alfresco 3.3g available from the TKL forums here.
I Daniel Serodio have started work on an Alfresco appliance. I'll be posting my installation notes here, and after I've reached a usable installation I plan on making a TKLPatch.
Since Turnkey Linux is based off Ubuntu 8.04.3 at this time, there's no Ubuntu (or Debian) package for Alfresco, so I'm doing a "manual" install from the Alfresco-Community-3.2r2-Linux-x86-Install package.
I thought using the Turnkey Tomcat Appliance would be a good start, but Alfresco 3.2 needs Tomcat 6, so I uninstalled Tomcat 5.5 from Turnkey and used the bundled Tomcat 6 from Alfresco.
First, I created a VM with 1024 MB RAM (Java is memory hungry) from Turnkey Linux Tomcat.
Then I installed gnupg (apparently needed to add the GPG key from byobu's PPA repository):
apt-get install gnupg
Then I installed byobu from its PPA repository. First, I created /etc/apt/sources.list.d/byobu.list with the following contents:
deb http://ppa.launchpad.net/byobu/ppa/ubuntu hardy main
deb-src http://ppa.launchpad.net/byobu/ppa/ubuntu hardy main
Then I installed the public key, then byobu itself
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F430BBA5
apt-get update
apt-get install byobu byobu-extra
I found that Alfresco 3.2 needs Tomcat 6, so I had to uninstall the ubuntu package
apt-get remove --purge tomcat5.5
I replaced Ubuntu's default GCJ with Sun's Java 6:
apt-get install sun-java6-sdk
update-alternatives --set java /usr/lib/jvm/java-6-sun/jre/bin/java
update-alternatives --set javac /usr/lib/jvm/java-6-sun/bin/javac
Installed MySQL to be used by Alfresco
apt-get install mysql-server
Installed OpenOffice, ImageMagick and pdf2swf
apt-get install openoffice.org-headless openoffice.org-java-common imagemagick swftools
Created /etc/init.d/openoffice.org with the following contents:
#!/bin/bash
# Boot open office so that Alfresco can do transforms.
#
# Based on http://wiki.alfresco.com/wiki/Runnin..._From_Terminal
# and adapted for Ubuntu Linux by Daniel Serodio
#
# chkconfig: 2345 55 25
# description: OpenOffice Headless
#
# processname: soffice
# source function library
. /lib/lsb/init-functions
RETVAL=0
SOFFICE_PATH='/usr/bin'
SOFFICE_ARGS1="-nofirststartwizard -nologo -headless "
SOFFICE_ARGS2='-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager'
SOFFICE_PIDFILE=/var/run/soffice.bin.pid
start() {
log_begin_msg "Starting OpenOffice.org"
$SOFFICE_PATH/soffice $SOFFICE_ARGS1 $SOFFICE_ARGS2 >/dev/null 2>&1 &
log_end_msg $?
pidof soffice.bin > $SOFFICE_PIDFILE
echo
}
stop() {
log_begin_msg "Stopping OpenOffice.org"
kill $(cat $SOFFICE_PIDFILE)
log_end_msg $?
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo $"Usage: $0 {start|stop|restart}"
esac
I unpacked the installation file in /opt and renamed the resulting directory from Alfresco to alfresco (lowercase folder names are easier to type).
Then I fixed Alfresco's shell scripts:
perl -pi -e "s|\@\@ALFRESCO_HOME\@\@|/opt/alfresco" /opt/alfresco/*.sh
perl -pi -e "s|\@\@JAVA_HOME\@\@|/usr/lib/jvm/java-6-sun" /opt/alfresco/*.sh
Then I changed the location of Alfresco's data files from /opt/alfresco/alt_data to /srv/alfresco and setup Imagemagick and pdf2swf install locations, by editing /opt/alfresco/tomcat/shared/classes/alfresco-global.properties:
perl -pi -e "s|^#?dir_root.*$|dir_root=/srv/alfresco|" /opt/alfresco/tomcat/shared/classes/alfresco-global.properties
perl -pi -e "s|^#?img_root.*$|img_root=/usr|" /opt/alfresco/tomcat/shared/classes/alfresco-global.properties
perl -pi -e "s|^#?swf.exe.*$|swf.exe=/usr/bin/swf2exe|" /opt/alfresco/tomcat/shared/classes/alfresco-global.properties