Hi all,

I am Nagaraja. Here are the steps I followed to install Openbravo ERP in Lucid Lynx(Ubuntu 10.04).

We need the following packages to be installed in the system:

I choose PostgreSQL because Oracle needs licences.


Type the commands in terminal:

$ sudo apt-get install postgresql-8.4
$ sudo apt-get install postgresql-contrib-8.4

After that start the postgresql server by using the following command:

$ sudo /etc/init.d/postgresql-8.4 start

Start the postgresql:

$sudo su – postgres -c psql

then you will get the postgresql promt, change the password using the alter role command:

# alter role postgres with password 'new_password';
To quit from psql prompt:
# \q


First I tried installing the sun java using:

$sudo apt-get install sun-java6-jdk

but I got an error like,”E: Package sun-java6-jdk has no installation candidate”

so then i tried to add the sun-java6-jdk to source list. The following are the commands used adding the sun-java6-jdk to source list:

$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"

$ sudo apt-get update

After that we can give the same command,

$ sudo apt-get install sun-java6-jdk

Then its starts installing the java6 package.. Just thinking when oracle is going to change the package name to oracle-java6-jdk.. Ha ha ha not so far…

[optional] If u have already java installed, just set the current java6 alternatives to all the packages using:

$ sudo update-java-alternatives -s java-6-sun

Create an Environment variable and set the java path to it:
$ echo 'JAVA_HOME="/usr/lib/jvm/java-6-sun"' | sudo tee -a /etc/environment

To make this variable available in your current terminal run:

$ source /etc/environment

To make these variables available system wide, restart the user session.


Before starting the installation, i think installing this tomcat and configuring may be a tedious job, Let see…

To install tomcat, I use the following commands:

$ sudo apt-get install tomcat6 tomcat6-admin

Then remove the logs and start the Tomcat engine:

$  sudo rm /var/log/tomcat6/catalina.out

$ sudo /etc/init.d/tomcat6 start

Check whether the tomcat is running by typing:


in any web browser. If it works perfectly you will see a page showing ” It Works!”

Also alternatively we can check whether the port is open using nmap command:

<install nmap using $ sudo apt-get install nmap >
$ nmap localhost -p 8080

you can find the state is open..

$ echo 'CATALINA_HOME="/usr/share/tomcat6"' | sudo tee -a /etc/environment
$ echo 'CATALINA_BASE="/var/lib/tomcat6"' | sudo tee -a /etc/environment

Edit the /etc/default/tomcat6 file, and set the following line:-
#JAVA_OPTS="-Djava.awt.headless=true -Xms384M -Xmx512M -XX:MaxPermSize=256M"

To make this variable available in your current terminal run:
$ source /etc/environment

To make these variables available system wide, restart the user session.

Do the following in terminal:
$ sudo cp /usr/lib/jvm/java-6-sun/lib/tools.jar /var/lib/tomcat6/lib
$ sudo cp /usr/lib/jvm/java-6-sun/lib/tools.jar /usr/share/tomcat6/lib/

> In order to avoid Tomcat from auto-reloading itself, comment the WatchedResource line in /etc/tomcat6/context.

>  Configure a username and password for the Tomcat Manager, by replacing the /etc/tomcat6/tomcat-users.xml file with these contents, replacing password=”admin” with your chosen password:

<?xml version='1.0' encoding='utf-8'?>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="admin" password="admin" roles="admin,manager"/>

> Starting with 2.50, the modularity feature required the tomcat user to write in the main Openbravo ERP directory. So achieve this, edit the /etc/init.d/tomcat6 file, search for umask 022 and replace it with umask 002. Then restart Tomcat.

Important notes:

The security policy of Debian’s Tomcat package will prevent the Openbravo context from loading. You must either disable the security policy or create a rule to allow the Openbravo context to load.

  1. To create a rule for Openbravo you must create a .policy file. Use a command like:
     $ sudo gedit /etc/tomcat6/policy.d/20openbravo.policy
    to create a file called /etc/tomcat5.5/policy.d/20openbravo.policy.
  2. Open the file and add the following contents:
     // permissions for Openbravo ERP
    grant codeBase "file:${catalina.base}/webapps/openbravo/-" {
    permission java.security.AllPermission;
  3. Save the file.
  4. Restart tomcat to make the changes effective.
     $ sudo /etc/init.d/tomcat6 restart

APPA ,,,, successfully finished installing the tomcat,,, not so much tedious ,, but a bit time consuming.. COOL .. lets move on..


Install using the command:

$ sudo apt-get install ant ant-optional

  1. Set the ANT_HOME variable:
    $ echo 'ANT_HOME="/usr/share/ant"' | sudo tee -a /etc/environment
  2. Set the ANT_OPTS variable:
    $ echo 'ANT_OPTS="-Xmx1024M -XX:MaxPermSize=128M"' | sudo tee -a /etc/environment
  3. Make the ANT_HOME and ANT_OPTS variables available in your current terminal run:
    $ source /etc/environment
  4. To make the variables available system wide, restart the user session

Make sure that the ant is working by using the command:

$ ant -version

Operating system permissions for Tomcat

$ sudo groupadd tomcat
$ sudo groupadd openbravo

$ sudo gpasswd -a ais tomcat

$ sudo gpasswd -a ais openbravo

The prerequisites for Open bravo had been installed and configured successfully…


Openbravo ERP 2.50 Installation

Download the Open bravo from the following link:


Untar the file named: OpenbravoERP-2.50MP19

Then $ cd OpenbravoERP-2.50MP19

$ ant setup

After that move to /config directory: $ cd config

then type $ sudo ./setup-properties-linux.bin

You will see a API , give default values to all. It will create Openbravo.properties file and log4j.lcf , you can manually edit in case of any changes.

In Openbravo.properties file change the postgres password to ‘new_password’.(The password u specified during the configuration  of postgres)

> Next , $ cd ..

> you will set to openbravo home directory, type the following commands

$ ant install.source