Alfresco Debian chroot in a hurry
# The following instructions help create a chrooted
# alfresco (www.alfresco.com) installation in a hurry.
# Make sure your host computer doesn't run Postgres or Tomcat
# And the ports 5432, 8080, 8009 are free. You should also have
# debootstrap (in debian - included ubuntu- you can accomplish it by
# typing : aptitude install debootstrap
# First create a fresh debian distro
sudo debootstrap lenny chroot_debian
#After it finishes, chroot to it and mount proc
sudo chroot chroot_debian
export LANG=C
export HOME=/root
mount /proc
#Now, install postgres
aptitude install postgresql
#Create cluster
pg_createcluster 8.3 main
#Login as postgres
su - postgres
pg_ctlcluster 8.3 main start
#Create database and user
su - postgres
psql
CREATE USER alfresco WITH ENCRYPTED PASSWORD 'alfresco';
CREATE DATABASE alfresco WITH OWNER=alfresco;
exit
#Download and install tomcat
#I installed it to /usr/local/alfresco/apache-tomcat-5.5.27
#Download and install the postgres jdbc driver to common/lib in tomcat
#Install xorg
aptitude install xorg
#Download and install Openoffice
cd /usr/local/alfresco
wget http://openoffice.mirror.wrpn.net/stable/3.1.0/OOo_3.1.0_LinuxIntel_install_en-US_deb.tar.gz
tar xvfz OOo_3.1.0_LinuxIntel_install_en-US_deb.tar.gz
cd OOO310_m11_native_packed-4_en-US.9399
dpkg -i DEBS/*.deb
rm -rf OOO310_m11_native_packed-4_en-US.9399
rm -rf OOo_3.1.0_LinuxIntel_install_en-US_deb.tar.gz
#Install imagemagick
aptitude install imagemagick
#Download and install alfresco war
#The file is alfresco-enterprise-war-3.1.tar.gz
mkdir tmp
cd tmp
tar xvfz ../alfresco-enterprise-war-3.1.tar.gz
cp alfresco.war share.war /usr/local/alfresco/apache-tomcat-5.5.27/webapps
#Alfresco looks for the extensions in the shared/classes/alfresco folder if you
#use tomcat as your app-server
cp extensions/* /usr/local/alfresco/apache-tomcat-5.5.27/shared/classes/alfresco
#Configure alfresco database connectivity by editing
# custom-hibernate-dialect.properties which is in the extensions folder
# making sure you uncomment the Postgres database properties and
# leave commented the rest of them
#You configure alfresco by means of those properties files. If you copy the
#property.sample file to a property file in the folder, it overrides the settings
#inside the war WEB-INF folder. One file you will want to copy is the
#custom-repository.properties
#Leave it as follows:
#==============================
dir.root=/var/lib/alfresco/alf_data
db.username=alfresco
db.password=THE PASSWORD YOU LEFT IN THE POSTGRES DATABASE
ooo.exe=/opt/openoffice.org3/program/soffice
img.root=/usr
swf.exe=/usr/bin/pdf2swf
db.driver=org.postgresql.Driver
db.url=jdbc:postgresql://localhost:5432/alfresco
#==============================
#Configure the permgen in Java
export JAVA_OPTS="-server -Xss1024K -Xms1G -Xmx2G -XX:NewSize=512m -XX:MaxPermSize=128M"
#Make sure JAVA_OPTS are active when you start tomcat
#install libglut
aptitude install libglut
#install libgif
aptitude install libgif4
#install pdf2swf
#download and compile it from http://www.swftools.org/
#I compiled it outside chroot and then copied the binary to /usr/bin in the
#chroot. In various distributions there is a package called swftools
#which can be installed via yum or aptitude.
#Start tomcat
cd /usr/local/apache-tomcat-5.5.27
bin/startup.sh
#Go to http://localhost:8080/alfresco with a browser
#Log in as admin with password admin
#Change the admin password in the administration console (first icon in the
#top right panel)
#On the other hand, you should give a look at www.orfeogpl.org.
#PHP tool for enterprise collaboration .
# alfresco (www.alfresco.com) installation in a hurry.
# Make sure your host computer doesn't run Postgres or Tomcat
# And the ports 5432, 8080, 8009 are free. You should also have
# debootstrap (in debian - included ubuntu- you can accomplish it by
# typing : aptitude install debootstrap
# First create a fresh debian distro
sudo debootstrap lenny chroot_debian
#After it finishes, chroot to it and mount proc
sudo chroot chroot_debian
export LANG=C
export HOME=/root
mount /proc
#Now, install postgres
aptitude install postgresql
#Create cluster
pg_createcluster 8.3 main
#Login as postgres
su - postgres
pg_ctlcluster 8.3 main start
#Create database and user
su - postgres
psql
CREATE USER alfresco WITH ENCRYPTED PASSWORD 'alfresco';
CREATE DATABASE alfresco WITH OWNER=alfresco;
exit
#Download and install tomcat
#I installed it to /usr/local/alfresco/apache-tomcat-5.5.27
#Download and install the postgres jdbc driver to common/lib in tomcat
#Install xorg
aptitude install xorg
#Download and install Openoffice
cd /usr/local/alfresco
wget http://openoffice.mirror.wrpn.net/stable/3.1.0/OOo_3.1.0_LinuxIntel_install_en-US_deb.tar.gz
tar xvfz OOo_3.1.0_LinuxIntel_install_en-US_deb.tar.gz
cd OOO310_m11_native_packed-4_en-US.9399
dpkg -i DEBS/*.deb
rm -rf OOO310_m11_native_packed-4_en-US.9399
rm -rf OOo_3.1.0_LinuxIntel_install_en-US_deb.tar.gz
#Install imagemagick
aptitude install imagemagick
#Download and install alfresco war
#The file is alfresco-enterprise-war-3.1.tar.gz
mkdir tmp
cd tmp
tar xvfz ../alfresco-enterprise-war-3.1.tar.gz
cp alfresco.war share.war /usr/local/alfresco/apache-tomcat-5.5.27/webapps
#Alfresco looks for the extensions in the shared/classes/alfresco folder if you
#use tomcat as your app-server
cp extensions/* /usr/local/alfresco/apache-tomcat-5.5.27/shared/classes/alfresco
#Configure alfresco database connectivity by editing
# custom-hibernate-dialect.properties which is in the extensions folder
# making sure you uncomment the Postgres database properties and
# leave commented the rest of them
#You configure alfresco by means of those properties files. If you copy the
#property.sample file to a property file in the folder, it overrides the settings
#inside the war WEB-INF folder. One file you will want to copy is the
#custom-repository.properties
#Leave it as follows:
#==============================
dir.root=/var/lib/alfresco/alf_data
db.username=alfresco
db.password=THE PASSWORD YOU LEFT IN THE POSTGRES DATABASE
ooo.exe=/opt/openoffice.org3/program/soffice
img.root=/usr
swf.exe=/usr/bin/pdf2swf
db.driver=org.postgresql.Driver
db.url=jdbc:postgresql://localhost:5432/alfresco
#==============================
#Configure the permgen in Java
export JAVA_OPTS="-server -Xss1024K -Xms1G -Xmx2G -XX:NewSize=512m -XX:MaxPermSize=128M"
#Make sure JAVA_OPTS are active when you start tomcat
#install libglut
aptitude install libglut
#install libgif
aptitude install libgif4
#install pdf2swf
#download and compile it from http://www.swftools.org/
#I compiled it outside chroot and then copied the binary to /usr/bin in the
#chroot. In various distributions there is a package called swftools
#which can be installed via yum or aptitude.
#Start tomcat
cd /usr/local/apache-tomcat-5.5.27
bin/startup.sh
#Go to http://localhost:8080/alfresco with a browser
#Log in as admin with password admin
#Change the admin password in the administration console (first icon in the
#top right panel)
#On the other hand, you should give a look at www.orfeogpl.org.
#PHP tool for enterprise collaboration .