Sunday, 19 June 2011

Install OpenKM on ubuntu 10.04 LTS

There’re several ways to install it, we use to install in Ubuntu but can be used any other Linux flavor.

Enable the partner repository:
sudo su
vi /etc/apt/sources.lst
Uncomment the following lines:
deb lucid partner
deb-src lucid partner
Install needed packages:

Execute on terminal the command
$ sudo aptitude install sun-java6-bin sun-java6-jdk sun-java6-jre imagemagick swftools tesseract-ocr
set the Java Home environment variable
vi /etc/environment
add this line at the end of the file:
Now update the environment variables:
# source /etc/environment
Install OpenKM

Download ( OpenKM 5.0.x + JBoss 4.2.3.GA bundle and uncompress on your file system disk (a good option is to uncompress under /opt/).

Execute on terminal the command
$ unzip
For document preview you need add these two entries in the OpenKM.cfg file:
You can configure OpenKM to use a remote server for OpenOffice document conversion:
Or you can configure listen port and a maximun conversion tasks:
Note that system.openoffice.tasks and system.openoffice.port have already a default value and is not needed to be set.

Enabling OCR

To enable OCR you must put the files system path of OCR engine:
Enable PS to SWF conversion

To enable postscript document preview, OpenKM need to convert PS files to SWF using the ps2pdf utility from Ghostscript:
Enable image preview

To enable image preview, you need to install que ImageMagick convert utility and configure:
Configuring chat service

By default chat and autologin are enabled. In order to enable or disable values can be "on" or "off".
Check for more information

First login

Execute the file /opt/jboss-4.2.3.GA/bin/ to run OpenKM + JBoss application server.

If you want your OpenKM installation to be accessed from other computers add the -b command line parameter (see Basic application knowledge)

Open on a client browser the URL http://localhost:8080/OpenKM/.

Autenticate to OpenKM using user "okmAdmin" with password "admin".

Note: From OpenKM 5.x there's a property definition in OpenKM.cfg to create automatically database. Once the tables are created, change the hibernate.hbm2ddl property from create to none. Do it after first time running, in other case all repository it'll be deleted and created in next OpenKM starting.

Please take a look at if you have any problem

Possibly Related Posts

1 comment:

  1. I want to install OpenKM on my laptop, thanks guide download, and install it.