How To Install Openbravo ERP On Debian Lenny

Version 1.0
Author: Falko Timme

This document describes how to set up Openbravo ERP (enterprise management system) on Debian Lenny. Openbravo is an open source ERP solution designed specifically for the SME (small to midsize firm). Developed in a web based environment, it includes many robust functionalities which are considered part of the extended ERP: procurement and warehouse management, project and service management, production management, and financial management.

A list of Openbravo ERP features can be found on

I do not issue any guarantee that this will work for you!


1 Preliminary Note

In this tutorial I use the hostname with the IP address These settings might differ for you, so you have to replace them where appropriate.


2 Installing Openbravo Dependencies

2.1 PostgreSQL

Install PostgreSQL:

apt-get install postgresql-8.3

Afterwards we have to set the PostgreSQL admin password:

sed -i 's/ident sameuser$/trust/' /etc/postgresql/8.3/main/pg_hba.conf
/etc/init.d/postgresql-8.3 restart

Open a PostgreSQL shell...

psql -U postgres

... and set the password:

alter role postgres with password 'yourrootsqlpassword';

(Replace yourrootsqlpassword with a password of your choice.)

sed -i 's/trust$/md5/' /etc/postgresql/8.3/main/pg_hba.conf
/etc/init.d/postgresql-8.3 reload


2.2 Java JDK

The Sun Java JDK is available in the Debian Lenny non-free repository, therefore we must open /etc/apt/sources.list...

vi /etc/apt/sources.list

... and add non-free to the Debian Lenny repositories:

deb lenny main non-free
deb-src lenny main non-free

deb lenny/updates main non-free
deb-src lenny/updates main non-free


apt-get update


Install the Java JDK as follows:

apt-get install sun-java6-jdk

Afterwards make it available systemwide:

update-java-alternatives -s java-6-sun
echo 'JAVA_HOME="/usr/lib/jvm/java-6-sun"' | tee -a /etc/environment

After that log out and in again for the changes to take effect.


2.3 Apache Tomcat

Install Tomcat as follows:

apt-get install tomcat5.5 tomcat5.5-admin tomcat5.5-webapps

Afterwards we have to configure it:

vi /etc/init.d/tomcat5.5

Change TOMCAT5_SECURITY from yes to no:

# Use the Java security manager? (yes/no)

Restart Tomcat:

/etc/init.d/tomcat5.5 restart

Now let's look if all went well:

netstat -tap | grep jsvc

Tomcat should be listening on port 8180:

server1:~# netstat -tap | grep jsvc
tcp6       0      0 [::]:8009               [::]:*                  LISTEN      6879/jsvc
tcp6       0      0 [::]:8180               [::]:*                  LISTEN      6879/jsvc

Next we need to set a few environment variables:

echo 'CATALINA_HOME="/usr/share/tomcat5.5"' | tee -a /etc/environment
echo 'CATALINA_BASE="/var/lib/tomcat5.5"' | tee -a /etc/environment
echo 'CATALINA_OPTS="-server -Xms384M -Xmx512M"' | tee -a /etc/environment

After that log out and in again for the changes to take effect.


2.4 Apache Ant

Apache ant has already been installed as dependency in the previous step - so all we have to do is set another environment variable:

echo 'ANT_HOME="/usr/share/ant"' | tee -a /etc/environment

After that log out and in again for the changes to take effect.

Share this page:

0 Comment(s)

Add comment


From: falko