How To Install Openbravo ERP On Debian Lenny - Page 2

3 Openbravo ERP Installation

Go to http://sourceforge.net/projects/openbravo/ and download the latest Openbravo ERP installer (select 02-openbravo-installers on the download page), e.g. as follows on an i386 system...

cd /tmp/
wget http://dfn.dl.sourceforge.net/sourceforge/openbravo/OpenbravoERP_2.40-linux-installer.bin

... and like this on an x86_64 system:

cd /tmp/
wget http://dfn.dl.sourceforge.net/sourceforge/openbravo/OpenbravoERP_2.40-linux-x64-installer.bin

Then make the installer executable...

i386:

chmod +x OpenbravoERP_2.40-linux-installer.bin

x86_64:

chmod +x OpenbravoERP_2.40-linux-x64-installer.bin

... and start the Openbravo ERP installation:

i386:

./OpenbravoERP_2.40-linux-installer.bin

x86_64:

./OpenbravoERP_2.40-linux-x64-installer.bin

A text based installer will guide you through the installation. First press a few times ENTER to read the single parts of the license agreement. Type in yes at the end if you agree with it:

Do you accept this license? [y/n]: <-- y

Before the installation begins you'll be asked a few questions - answer them as follows:

Please specify the directory where Openbravo ERP will be installed

[/opt/OpenbravoERP]: <-- ENTER

Please specify a directory for the Openbravo ERP attachments

[/opt/OpenbravoERP/AppsOpenbravo/attachments]: <-- ENTER

Installation mode

Please select the installation mode you wish to perform

[1] Complete
The database and the application server in the same computer
[2] Distributed
The database and the application server in different computers
Please choose an option [1] :
<-- ENTER

Please select the installation type you wish to perform

[1] Standard
Installs the database and sets up the application server.
Recommended.
[2] Development
Installs the database and and sets up the application server
through a compilation process.
Recommended for developers.
Please choose an option [1] :
<-- ENTER

Please specify the directory where the JDK is located

[/usr/lib/jvm/java-6-sun]: <-- ENTER

Please specify the location where the Ant executable is located

[/usr/share/ant/bin/ant]: <-- ENTER

Please specify the directory where Tomcat is located.
In case of having Tomcat split into 2 directories, select the one containing the webapps directory

[/var/lib/tomcat5.5]: <-- ENTER

Please select a database

[1] PostgreSQL
[2] Oracle
Please choose an option [1] :
<-- ENTER

Please specify the directory where the binaries of the PostgreSQL installation are located (psql, pg_restore, vacuumdb)

[/usr/bin]: <-- ENTER

Please enter the IP address of the PostgreSQL database

Database host [localhost]: <-- ENTER

Please enter the port of the PostgreSQL database

Database port [5432]: <-- ENTER

Enter the password for your "postgres" administrator user

Password : <-- yourrootsqlpassword
Retype password : <-- yourrootsqlpassword

Please enter the name of the PostgreSQL database

Database name [openbravo]: <-- ENTER

Please enter a username for the Openbravo ERP PostgreSQL database

Username [tad]: <-- ENTER

Please enter a password for the new database user

Password : <-- tadsqlpassword (a password of your choice)
Retype password : <-- tadsqlpassword

Enter a context name.

This is used in the URL to access Openbravo ERP:
http://<ip_address>:<port>/context_name

Context name [openbravo]: <-- ENTER

Please select the preferred date and time formats

Date format

Date format

[1] DD MM YYYY
[2] MM DD YYYY
[3] YYYY MM DD
Please choose an option [1] :
<-- ENTER

Date separator

[1] -
[2] /
[3] .
[4] :
Please choose an option [1] :
<-- ENTER

Time format

[1] 12h
[2] 24h
Please choose an option [2] :
<-- ENTER

Time separator

[1] :
[2] .
Please choose an option [1] :
<-- ENTER

Should the installer populate the database with demo data?

[Y/n]: <-- ENTER

Setup is now ready to begin installing Openbravo ERP on your computer.

Do you want to continue? [Y/n]: <-- ENTER

The installation will take a few minutes, so please be patient:

Please wait while Setup installs Openbravo ERP on your computer.

Installing
0% ______________ 50% ______________ 100%
#########################################

----------------------------------------------------------------------------
Setup has finished installing Openbravo ERP on your computer.

Afterwards you can access Openbravo at http://server1.example.com:8180/openbravo or http://192.168.0.100:8180/openbravo. Log in with the username Openbravo and the password openbravo.

 

Falko Timme

About Falko Timme

Falko Timme is an experienced Linux administrator and founder of Timme Hosting, a leading nginx business hosting company in Germany. He is one of the most active authors on HowtoForge since 2005 and one of the core developers of ISPConfig since 2000. He has also contributed to the O'Reilly book "Linux System Administration".

Share this page:

Suggested articles

4 Comment(s)

Add comment

Comments

By: Raymond

Instead of changing it in the start-up-script. Change it in /etc/default/tomcat5.5 P.S. great howto!

By: paper upgrade

This link should help if you run into other issues: http://wiki.openbravo.com/wiki/ERP/2.50/Openbravo_environment_installation

By: paper upgrade

Also, you should have at least 1.5GB RAM (probably 2 is better) and you'll need to change /etc/environment from: CATALINA_OPTS="-server -Xms384M -Xmx512M" TO CATALINA_OPTS="-server -Xms768M -Xmx1024M" THEN restart Tomcat OR ELSE YOU MAY GET THIS (ON MY 1GB Virtual Machine): BUILD FAILED /home/openbravo/OpenbravoERP-2.50MP23/build.xml:654: The following error occurred while executing this line: /home/openbravo/OpenbravoERP-2.50MP23/build.xml:1057: The following error occurred while executing this line: /home/openbravo/OpenbravoERP-2.50MP23/src/build.xml:128: org.openbravo.base.exception.OBException: java.lang.OutOfMemoryError: Java heap space

By: paper upgrade

In MP23 (at least), you'll need to add uuid support to postgres if not already installed: http://www.f15ijp.com/2010/10/03/postgresql-8-3-adding-uuid-ossp-on-debian/ The .bin no longer exists(!?) but you can install from source as explained here: http://wiki.openbravo.com/wiki/ERP/2.50/Openbravo_ERP_Installation/Custom_Installation That reasonably worked well, but since you are NOT supposed to run ant as root (I tried to do everything as root and received errors), I did need to do the following:

  • 1. create a new user called openbravo,
  • 2. su into that account,
  • 3. download and extract the source pages to /home/openbravo
  • 4. adjust the postgresl password in ( /home/openbravo/OpenbravoERP-2.50MP23/config/Openbravo.properties) to match password from page 1 of this howto
  • 5. run ant (without placing sudo first), as explained in the link above