Installing Alfresco Lab 3 Stable on Ubuntu 8.10

cancel
Showing results for 
Search instead for 
Did you mean: 

Installing Alfresco Lab 3 Stable on Ubuntu 8.10

resplin
Intermediate
0 0 2,309

Obsolete Pages{{Obsolete}}

The official documentation is at: http://docs.alfresco.com




Install Ubuntu


Lets just make sure everything is current

apt-get update

apt-get upgrade

Install packages


I have added MySQL as part of the Ubuntu setup.

sudo apt-get install imagemagick mysql-server 'openoffice.org-headless' xvfb swftools  sun-java6-jdk 
sun-java6-jre nfs-common portmap ia32-libs

Note: The ia32-libs package is only needed if installing in a 64-bit environment.

You will have accept the JAVA license.
You will have to enter a password for MySQL.

Install Alfresco Lab


Ensure you have downloaded Alfresco-Labs-3Stable-Linux-x86-Install.

Locate and download

Alfresco-Labs-3Stable-Linux-x86-Install
 
chmod 777 Alfresco-Labs-3Stable-Linux-x86-Install

./Alfresco-Labs-3Stable-Linux-x86-Install



The installer will ask you if you want to install Alfresco [n/Y]
The installer will ask you where you want to install Alfresco. The default is /opt/Alfresco.

[root@alfresco tmp]# ./Alfresco-Labs-3Stable-Linux-x86-Install
This will install Alfresco Labs on your computer.  Continue? [n/Y]
Where do you want to install Alfresco Labs? /opt/Alfresco
Installing Alfresco Labs...
Installing Program Files...
Installing Program Files Linux...
Installing Samples...
Installing WCM...
Installing WCM Linux...
Installation complete.
[root@alfresco tmp]#

Set up Alfresco Environment


cd /opt/Alfresco

Only have to change ALF_HOME and export JAVA_HOME

vi /opt/Alfresco/alfresco.sh

#!/bin/sh
# Start or stop Alfresco server
# Set the following to where Tomcat is installed
ALF_HOME=/opt/Alfresco
cd '$ALF_HOME'
APPSERVER='${ALF_HOME}/tomcat'
export JAVA_HOME='/usr/lib/jvm/java-6-sun-1.6.0.10/'
# Set any default JVM values
export JAVA_OPTS='-Xms128m -Xmx512m -XX:MaxPermSize=128m -server'
# Following only needed for Sun JVMs before to 1.5 update 8
#export JAVA_OPTS='${JAVA_OPTS}     -XX:CompileCommand=exclude,org/apache/lucene/index/IndexReader\$1,doBody -XX:CompileCommand=exclude,org/alfr
#esco/repo/search/impl/lucene/index/IndexInfo\$Merger,mergeIndexes -XX:CompileCommand=exclude,org/alfresco/repo/search/impl/lucene/index/Ind
#exInfo\$Merger,mergeDeletions'
#
if [ '$1' = 'start' ]; then
  '${APPSERVER}/bin/startup.sh'
#  if [ -r ./virtual_start.sh ]; then
#    sh ./virtual_start.sh
#  fi
#  if [ -r '$ALF_HOME'/start_oo.sh ]; then
#    sh '$ALF_HOME'/start_oo.sh
#  fi
elif [ '$1' = 'stop' ]; then
  '${APPSERVER}/bin/shutdown.sh'
#  if [ -r ./virtual_start.sh ]; then
#    sh ./virtual_stop.sh
#  fi
#  if [ -r '$ALF_HOME'/start_oo.sh ]; then
#    killall soffice.bin
#  fi
fi

Set up Virtual Alfresco Environment


Only have to change ALF_HOME and export JAVA_HOME

vi /opt/Alfresco/virtual_alf.sh

#!/bin/sh
# Start or stop Alfresco server
# Set the following to where Tomcat is installed
ALF_HOME=/opt/Alfresco
cd '$ALF_HOME'
APPSERVER='$ALF_HOME'/virtual-tomcat
export JAVA_HOME='/usr/lib/jvm/java-6-sun-1.6.0.10/'

# Start virtual-tomcat
#
if [ '$1' = 'start' ]; then
  '$APPSERVER'/bin/startup.sh
elif [ '$1' = 'stop' ]; then
  '$APPSERVER'/bin/shutdown.sh
fi




Change HSQL Database to MySQL Database


This process will wipe out all your data, be very very careful.

Test mysql is running:

mysql -u root -p

then exit:

mysql> exit;

Add Alfresco user etc to mysql

sudo mysql -p