Author Topic: Alfresco by a dummy  (Read 10089 times)

stuartiannaylor

  • Guest
Alfresco by a dummy
« on: August 22, 2011, 08:10:03 pm »
Fresh install of zentyal updated to core 2.0.22

All modules selected apart from
Layer-7 Filter     2.0     
Printer Sharing     2.0.3     
RADIUS     2.0     
Traffic Shaping     2.0.3     
VoIP     2.0.1

This is my usual setup of zentyal running zarafa and hey it gets quicker every time.
Washed up, vacuumed the front room and configured zentyal in an hour!
Can I have a gold star for that?

Follow http://www.howtoforge.com/how-to-install-alfresco-community-3.3-on-ubuntu-server-10.04-lucid-lynx

Ignore :-
2. Update firewall rules to allow access to Alfresco CIFS shares.

root@dms:~# iptables -t nat -A PREROUTING -p tcp -m tcp --dport 445 -j REDIRECT --to-ports 1445
root@dms:~# iptables -t nat -A PREROUTING -p tcp -m tcp --dport 139 -j REDIRECT --to-ports 1139
root@dms:~# iptables -t nat -A PREROUTING -p udp -m udp --dport 137 -j REDIRECT --to-ports 1137
root@dms:~# iptables -t nat -A PREROUTING -p udp -m udp --dport 138 -j REDIRECT --to-ports 1138

In services create a service Alfresco
add the following ports to the service
1445
1137
1138
1139
In the firewall enable the service internally

Thats my first part of Alfresco playing
user:password admin:admin
« Last Edit: August 23, 2011, 12:45:46 am by stuartiannaylor »

robb

  • Guest
Re: Alfresco by a dummy
« Reply #1 on: August 22, 2011, 10:58:04 pm »
I am going to try this for sure. Big thumbs up stuart! and a karma +1 from me.. ;)
« Last Edit: August 23, 2011, 08:37:29 am by robb »

stuartiannaylor

  • Guest
Re: Alfresco by a dummy
« Reply #2 on: August 22, 2011, 11:31:17 pm »
First install, and the community version is at 3.4, the sourceforge example was 3.3.

Just trying things out at the moment.

The web dms and web share work. The \\servername\share cif connection seems to have problems with vista and win7. That is all the SMB2 probs that are generally documented with vista and win7. I am going to look at that after.

Currently trying to configure LDAP and will write up results.

The base install of alfresco is a doddle though


stuartiannaylor

  • Guest
Re: Alfresco by a dummy
« Reply #3 on: August 23, 2011, 12:43:13 am »
http://www.zarafa.com/integrations/alfresco-integration

The plugin for Zarafa works with ease of install

stuartiannaylor

  • Guest
Re: Alfresco by a dummy
« Reply #4 on: August 23, 2011, 08:49:13 pm »
Found a much better install.

installs tomcat in default ubuntu config and as a service
Also current ver 3.4d
http://forums.alfresco.com/en/viewtopic.php?f=14&t=39341&p=115259#p115259
 
Quote
have experienced that running Alfresco 3.4d from the install binaries on a system running other services and servers is most unreliable and buggy. (Not to mention that the whole install runs as root!)

Doing a clean install from the WAR using a Postgresql database is much more stable and efficient. (and it runs as a non-privelidged user)

Here is how on a 64bit Zentyal server (Ubuntu 10.04 based)

Thanks to:
http://blog.mycroes.nl/2010/04/installing-alfresco-33-on-ubuntu-lucid.html
from which this guide is expanded from.

Install additional apps
Code: Select allsudo apt-get install imagemagick swftools sun-java6-jre postgresql

I have had endless trouble with OpenOffice "breaking" and being unable to convert docs for preview. I find Libreoffice is much more reliable, besides the log error it throws regarding not being able to find the openoffice version. So:

Code: Select allsudo apt-get purge openoffice.org ure
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update
sudo apt-get install libreoffice

Install Tomcat6 from the Ubuntu repo
Code: Select allsudo apt-get install tomcat6
Install Tomcat native libraries
Code: Select allsudo apt-get install libtcnative-1

Download the Alfresco WAR from
http://process.alfresco.com/ccdl/?file=release/community/build-3370/alfresco-community-3.4.d.zip
and unzip into
~Downloads/alfresco


Code: Select allsudo service tomcat6 stop

Copy the following:
Code: Select allsudo cp -r ~/Downloads/alfresco/web-server/shared /var/lib/tomcat6
sudo cp -r ~/Downloads/alfresco/web-server/webapps /var/lib/tomcat6
sudo cp -r ~/Downloads/alfresco/web-server/lib /var/lib/tomcat6/shared/lib
sudo cp -r ~/Downloads/alfresco/bin /var/lib/tomcat6/bin
sudo cp -r ~/Downloads/alfresco/licenses /var/lib/tomcat6/licenses
sudo cp -r ~/Downloads/alfresco/README.txt /var/lib/tomcat6/README.txt
sudo rm /var/lib/tomcat6/shared/lib/mysql-connector-java-5.1.13-bin.jar

Download the JDBC drivers for Postgresql from
http://jdbc.postgresql.org/download.html
to ~/Downloads and
Code: Select allsudo cp ~/Downloads/postgresql-9.0-801.jdbc3.jar /var/lib/tomcat6/shared/lib/postgresql-9.0-801.jdbc3.jar
sudo su

Then

Code: Select allmv /var/lib/tomcat6/shared/classes/alfresco-global.properties.sample /var/lib/tomcat6/shared/classes/alfresco-global.properties
mv /var/lib/tomcat6/shared/classes/alfresco/web-extension/share-config-custom.xml.sample /var/lib/tomcat6/shared/classes/alfresco/web-extension/share-config-custom.xml

Code: Select allnano /var/lib/tomcat6/conf/catalina.properties
and change the "shared.loader=" line to
shared.loader=${catalina.home}/shared/classes,${catalina.home}/shared/*.jar,/var/lib/tomcat6/shared/classes,/var/lib/tomcat6/shared/lib/*.jar

Java does not handle memory for Alfresco suitably "out of the box" and you have to configure it in this file:

Code: Select allnano /etc/default/tomcat6

The following needs to be set:
JAVA_HOME=/usr/lib/jvm/java-6-sun
JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=512m -Xms128m -Xmx768m -Dalfresco.home=/opt/alfresco -Dcom.sun.management.jmxremote"


If you have a single CPU with one or dual cores:

JAVA_OPTS="${JAVA_OPTS} -XX:+CMSIncrementalMode" (note the typo of missing brackets in the default file)

These can vary to suite your needs and resources and more can be read here:
http://www.alfresco.com/help/34/community/all/
under "Tuning the JVM"

Create a Postgresql database of UTF8 called "alfresco"
Create a directory for your data in a place of your choosing, eg

Code: Select allmkdir -p /srv/www/alfresco/alf_data

Ensure the user you are running Tomcat as has the correct access permissions:
Code: Select allchown -R tomcat6:tomcat6 /var/lib/tomcat6 /srv/www/alfresco

Set the Alfresco properties to suite your system:

Code: Select allnano /var/lib/tomcat6/shared/classes/alfresco-global.properties

eg.
web.application.context.url=http://127.0.0.1:<yourport>/alfresco

ooo.exe=/usr/lib/libreoffice/program/soffice
ooo.enabled=true
jodconverter.officeHome=/usr/lib/libreoffice       
jodconverter.portNumbers=8101
jodconverter.enabled=true
img.root=/usr/lib/ImageMagick-6.5.7
img.exe=/usr/bin/convert
swf.exe=/usr/bin/pdf2swf

db.driver=org.postgresql.Driver
db.url=jdbc:postgresql://localhost:5432/alfresco



IF YOU NEED TO CHANGE THE DEFAULT PORTS:

The default port is 8080. There are a number of places you need to change this if, for eg. you need to use 8180.
Find and replace :8080 to :8180 in the following places:
/etc/tomcat6/server.xml
/var/lib/tomcat6/shared/classes/alfresco-global.properties
/var/lib/tomcat6/shared/classes/alfresco/web-extension/share-config-custom.xml
 
In share-config-custom.xml be sure to uncomment the "example port config used to access remote Alfresco server" section at the bottom and revise your port number.

You should now be good to go!
Code: Select allservice tomcat6 start
Browse to:
http://<yourip>:<yourport>/share (it will take a few minutes to start up)
Default user and password is:
admin admin

You can find your log files in:
/var/lib/tomcat6/alfresco.log
/var/lib/tomcat6/log/catalina.out