Installing Alfresco on Ubuntu 8.04

From AlfrescoWiki

Jump to: navigation, search

If you came from the Installing Alfresco on Ubuntu 7.10 page then go straight back! All the excellent instructions there worked for me on 8.04 except running Open Office.

[edit] Starting Open Office 2.3 and above

In the init script section look for the start_openoffice function and replace it with the following. OO no longer needs xvfb to run.

#
# start_openoffice
#
start_openoffice(){
	sudo -H -u alfresco /usr/lib/openoffice/program/soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -nologo  -headless -nofirststartwizard &
}

The documentation I found mentioned that you need to install the "headless RPM" for this to work. On my system it worked without any additional apt-get's.

See also: [1]

[edit] JAVA_HOME

If you have issues with a missing Java Home.. you should create a setenv.sh in the /opt/alfresco/tomcat/bin folder with export of the java home there.

#
# setenv.sh
#
export JAVA_HOME="/usr/lib/jvm/java-6-sun"

[edit] JAVA_OPTS

I found I was getting "java.lang.OutOfMemoryError: Java heap space" errors in the logs and the Bootsrap process repeatedly failed. This turned out to be because the JAVA_OPTS environment variable was being exported in the /etc/init.d/alfresco script and was not being seen when starting the JVM. I added this to /opt/alfresco/tomcat/bin/setenv.sh as follows:

#
# setenv.sh
#
export JAVA_HOME="/usr/lib/jvm/java-6-sun"
export JAVA_OPTS='-Xms128m -Xmx512m -server -Djava.io.tmpdir=/var/lib/alfresco/tmp'