← alfresco

Installation

Prelaminaries

This article provides some tips and hints to install an Alfresco system on openSUSE with following components:

All steps are done as user root.

  1. Install openSUSE with Java, MySQL, OpenOffice and ImageMagick
  2. Check and/or correct the JAVA_HOME environment setting
    # echo $JAVA_HOME
    /usr/lib/jvm/java
    # $JAVA_HOME/bin/java -version
    java version "1.6.0_05"
    Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
    Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode)
  3. Just to have some files and a glance in Alfrescos way to do it I've installed a out-of-the-box Alfresco system to /usr/share/alfresco. I used the file AlfrescoCommunity-2.9.0B-Linux-x86-Install.
  4. Setup MySQL as a demon (with YaST - Runlevel Editor or the chkconfig command)
  5. Setup MySQL Databases using the scripts served by Alfresco. Relating to step 3. you'll find these files in /usr/share/alfresco/extras/databases/mysql
    # cd /usr/share/alfresco/extras/databases/mysql
    # mysql -u root -p < db_setup.sql
  6. Install JBoss. My JBoss home directory is /usr/share/jboss-4.2.2.GA but thats no matter. This destination folder is called JBOSS_HOME from now on.
  7. Install the MySQL JDBC connector for JBoss (it's provided by MySQL)
    • get the driver from MySQL
    • extract it and copy the contained .jar file to JBOSS_HOME/server/default/lib
  8. Deploy Alfresco
    • get alfresco-community-war-2.9.0B from Alfresco download area
    • extract it and thereafter extract the contained alfresco.war as a folder called JBOSS_HOME/server/default/deploy/alfresco.war.
  9. Refer to
  10. Create/manage start/stop scripts for JBoss and OOo in /usr/share/alfresco (the default scripts delivered by Alfresco dont work because of a hard link to openoffice and a nonresolved variable @@ALFRESCO@@ - it took me days to research in the internet what kind of syntax that is… obviously it is a special Alfresco thing that should be replaced by the install routine but it didn't)
    • create a script start_oo.sh in /usr/share/alfresco with
      #!/bin/sh
      # ---------------------------------------------------------------------------
      # Start script for the OpenOffice transform service
      # ---------------------------------------------------------------------------
       
      echo "Starting OpenOffice service..."
       
      soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file:///usr/share/alfresco/oouser" -nologo -headless -nofirststartwizard &
    • create a script alfresco.sh in /usr/share/alfresco with
      #!/bin/sh
      # Start or stop Alfresco server
      # Set the following to where Tomcat is installed
      #
      if [ "$1" = "start" ]; then
        /usr/share/jboss-4.2.2.GA/bin/jboss_init_suse.sh start
        /usr/share/alfresco/start_oo.sh
      elif [ "$1" = "stop" ]; then
        /usr/share/jboss-4.2.2.GA/bin/jboss_init_suse.sh stop
        killall soffice.bin
      fi

β€”- FIXME For a production environment there should:

β€” Andreas Hartmann 16.05.2008 15:43