Download: pdf

Alfresco is a commercial grade document management software.

Setup in 10 minutes.

Keywords: manage your documents via, web, openoffice, microsoft office, ftp, webdav, Afresco

This document describes document management software, if what you need is a processing/workflow software then you might want to try this workflow software

Lets get started. Please watch the first 2 videos in the "Reference Section"

Install

Java

apt-get update
apt-get install sun-java6-jdk

Imagemagick

apt-get install imagemagick

xvfb

apt-get install xvfb xfonts-base

Xvfb :1 -screen 0 1024x768x24 -fbdir /usr/src &
or
Xvfb :1 -screen 0 800x600x16 -fbdir /usr/src &

OpenOffice

apt-get install openoffice.org

soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -nofirststartwizard -nologo -headless -display:1 &

Alfresco

tar -xzvf alfresco-labs-tomcat-3Stable.tar.gz

mkdir /opt/alfresco
cd /opt/alresco

mysql

* You should have mysql installed. If not install it

apt-get install mysql-server mysql-admin

Start Alfresco

export JAVA_HOME=/usr/lib/jvm/java-6-sun

./alfresco.sh start

Using CATALINA_BASE:   /home/lucas/tmp/alfresco/tomcat
Using CATALINA_HOME:   /home/lucas/tmp/alfresco/tomcat
Using CATALINA_TMPDIR: /home/lucas/tmp/alfresco/tomcat/temp
Using JRE_HOME:       /usr/lib/jvm/java-6-sun

tail -f ./alfresco.log

Alfresco Is ready for You

Alfresco_on_debian.png

Stop Alfresco

./alfresco.sh stop

Setup Mysql

ls extras/databases/mysql/
db_remove.sql  db_setup.sql  libmysqltcl.dll  libmysqltcl.so

mysql --user root -p < extras/databases/mysql/db_setup.sql

vi tomcat/shared/classes/alfresco/extension/custom-repository.properties

# Sample database connection properties
#
db.username=alfresco
db.password=alfresco
db.pool.initial=10
db.pool.max=100

and

db.driver=org.gjt.mm.mysql.Driver
db.url=jdbc:mysql://localhost/alfresco

'./alf_data'. 'dir.root' 

avm.rmi.service.port=50501
avmsync.rmi.service.port=50502
attribute.rmi.service.port=50503
authentication.rmi.service.port=50504
repo.rmi.service.port=50505
action.rmi.service.port=50506

vi tomcat/shared/classes/alfresco/extension/custom-hibernate-dialect.properties

You also need to download [mysql connector http://dev.mysql.com/downloads/connector/j/5.0.html] and place it in ${TOMCAT_HOME}/lib/

setup imagemagick

vi tomcat/webapps/alfresco/WEB-INF/classes/alfresco/repository.properties

img.root=/usr

swf.exe=/usr/local/bin/pdf2swf

setup samba

vi Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/file-servers.properties

setup init script

Alfresco Setup

Definitions

  1. Rules: "Rules are evaluated when certain events happen within the system. Typically, the events are inbound (content arrives into a space) or outbound (content leaves a space)." All the rules are evaluated, all conditions are met, and are acted on. For each event you have a condition (Items of a specified type or sub-type, filename), and action (Check in content, execute script, Send an email to specified users).

Alfresco important links

  1. Main site: http://localhost:8080/alfresco

  2. Alfresco Share: http://localhost:8080/share

  3. Alfresco Server configurations: http://wiki.alfresco.com/wiki/Server_Configuration

Enable File Server CIFS

#Standard Configuration
vi tomcat/webapps/alfresco/WEB-INF/classes/alfresco/file-servers.xml 

#Custom Settings
vi tomcat/shared/classes/alfresco/extension/file-servers-custom.xml

vi /etc/hosts
#Add a new line with your hostname_a, example:
127.0.1.1 delldebian delldebian_a

If you want to add folder, you can login to webinterface, click create then create space. alfresco_cifs_server.png

FTP Server

address: hostname_a
username: admin
password: admin

ftp myhostname_a
Connected to 192.168.xxx.xxx.
220 FTP server ready
Name (xxx.xxx.xxx.xxx:lucas): admin
331 User name okay, need password for admin
Password:
230 User logged in, proceed
Remote system type is UNIX.


ftp> ls
200 Port OK
150 File status okay, about to open data connection
drw-rw-rw-   1 user group 0 Dec 31  1969 Alfresco
drw-rw-rw-   1 user group 0 Dec 31  1969 AVM
226 Closing data connection


ftp> cd Alfresco
250 Requested file action OK

ftp> ls
200 Port OK
150 File status okay, about to open data connection
drw-rw-rw-   1 user group 0 Feb 13 01:03 Data Dictionary
drw-rw-rw-   1 user group 0 Feb 13 01:03 Guest Home
drw-rw-rw-   1 user group 0 Feb 13 01:03 User Homes
drw-rw-rw-   1 user group 0 Feb 13 01:03 Sites
drw-rw-rw-   1 user group 0 Feb 14 00:57 Documents
226 Closing data connection
ftp> quit

alfresco_ftp_server.png

Record/Documents Management

Image Management

Alfresco and Apache

<IfDefine PROXY>
   ProxyPass         /alfresco  http://127.0.0.1:8080/alfresco
   ProxyPassReverse  /alfresco  http://127.0.0.1:8080/alfresco
 </IfDefine>

Errors

The store ‘avm://sitestore’ has a duplicate root node entry

The store ‘avm://sitestore’ has a duplicate root node entry

Edit /alfresco_root/tomcat/shared/classes/alfresco/extension/customer-repository.properties file

dir.root=/opt/alfresco/alf_data
index.recovery.mode=AUTO

Port already in use: 50501

09:19:22,266  ERROR [web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.remoting.rmi.RmiServiceExporter' defined in class path resource [alfresco/emailserver/email-service-context.xml]: Invocation of init method failed; nested exception is java.rmi.server.ExportException: Port already in use: 50500; nested exception is:

mv ./tomcat/webapps/alfresco/WEB-INF/lib/commons-el.jar /tmp/

References

MyWiki: Alfresco (last edited 2009-09-06 02:49:23 by localhost)