Sei sulla pagina 1di 4

How To Install Openbravo ERP On Debian Lenny

Version 1.0
Author: Falko Timme <ft [at] falkotimme [dot] com>
Last edited 02/10/2009

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


http://www.openbravo.com/product/product-features/.

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

1 Preliminary Note

In this tutorial I use the hostname server1.example.com with the IP address


192.168.0.100. 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';
\q

(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 http://ftp2.de.debian.org/debian/ lenny main non-free


deb-src http://ftp2.de.debian.org/debian/ lenny main non-free

deb http://security.debian.org/ lenny/updates main non-free


deb-src http://security.debian.org/ lenny/updates main non-free

Run

apt-get update

afterwards.

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)
#TOMCAT5_SECURITY=yes
TOMCAT5_SECURITY=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
server1:~#

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

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

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.

Potrebbero piacerti anche