Openbravo installation on Ubuntu 9.04

Due to an error in the upgrade process of Drupal we've lost all images in this post. We apologise. but this kind of things hapen even in the best families. :-)

One of the most successful articles at moixo.com was the one than explains how to install Openbravo on Ubuntu. I allways have in mind to write a new post showing this process for new versions of the software, since now I had no time to do it. Finally I installed the latest version of Openbravo on the newest Ubuntu, the 9.04 release. The process is described in detail in this article.

Prerrequisites
At first and after install Ubuntu 9.04, open a session on the console and run the command to install all the software needed by Openbravo.

sudo aptitude install sun-java6-jdk postgresql tomcat6 ant pgadmin3

Configure Ubuntu to run Java 1.6 as the default Java VM.

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

Tomcat configuration
At this point it is necessary to change Tomcat congiguration to run also de Java 1.6 VM, so edit the configuration file.

sudo vi /etc/default/tomcat6

Look for the line "JAVA_HOME= ..." and change it to

JAVA_HOME=/usr/lib/jvm/java-6-sun

Next change some environment variables needed to run Tomcat on Ubuntu.

sudo vi /etc/environmen

add the following lines at the end of the file

CATALINA_HOME=/usr/share/tomcat6
CATALINA_BASE=/var/lib/tomcat6
CATALINA_OPTS=-server -Xms384M -Xmx512M
ANT_HOME=/usr/share/ant

The last step in Tomcat configuration is to edit the init script for the service.

sudo vi /etc/init.d/tomcat6

and change the following variable to NO

TOMCAT_SECURITY=NO 

Now the service must be stoped and started again.

sudo /etc/init.d/tomcat6 restart

PostgreSQL configuration

Change "postgres" user password

sudo passwd postgres

Connect to the default databaes to change also the password for the database user

sudo -c postgres -c "psql template1"

Once on the SQL promt type the following SQL command

ALTER USER postgres WITH PASSWORD 'postgres';

Now the data base is ready to begin the Openbravo installation.

Openbravo installation

Firts download the latest version from Openbravo site, in this exemple I use the file named OpenbravoERP_2.40-linux-installer.bin.

Go to the directory where the file is located and give it execution permission.

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

Finally run the file as super-user

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

The installation wizard begins. I give you the screenshots to show the steps I follow.

Now it is possible to run the application just opening the browser and pointing to the URL http://localhost:8080/openbravo. The default user is Openbravo, first one in uppercase and the password openbravo all in lowercase.

Hope you find this article useful, leave you comments, they will be wellcome. You can also read the previous article hear.

Comentarios

Thanks

Thank you for this guide it helped out a lot.
A small change; Instead of:

sudo -c postgres -c "psql template1"
I had to use:
sudo -u postgres psql template1

Although this guide was helpful when testing. I installed open bravo on Ubuntu 9.04 Server edition and ended up installing by:

sudo apt-get install openbravo-erp

as recommended by http://wiki.openbravo.com/wiki/Virtual_appliances#Ubuntu_Installation. This should allow updates via apt-get and removed most of the pre-installation steps.

-Kenn

Thank you for the

Thank you for the installation guide David.

I just found 2 small mistakes:

Next change some environment variables needed to run Tomcat on Ubuntu.

instead of: sudo vi /etc/environmen
sudo vi /etc/environment

and

The line to change in: 'sudo vi /etc/init.d/tomcat6' where you have to set the variable to NO is

TOMCAT6_SECURITY=no

instead of TOMCAT_SECURITY=no

Enviar un comentario nuevo