Sunday, April 12, 2009

Openbravo ERP 2.40 Appliance using Postgres 8.3 appliance with OpenSolaris OVF

Few days ago I talked about a Postgres 8.3 Appliance based on OpenSolaris. Today lets look at how to use that appliance image to get an Openbravo ERP 2.40 appliance based on OpenSolaris in VirtualBox.


Download the Postgres 8.3 Appliance OVF image and unzip the two files. Fire up VirtualBox 2.2 and use File->Import Appliance and point it to the .ovf file  from the zip file. Change the networking from NAT to "Bridged Network" and start the VM and soon you get "postgresdb login:" screen.  Use root/opensolaris to login into the system and verify that postgres instance is already running as follows:


# svcs -a |grep postgres
disabled       19:08:00 svc:/application/database/postgresql_83:default_64bit
online         19:08:23 svc:/application/database/postgresql_83:default_32bit


The default options of postgresql.conf are pretty low so bump them up slightly


# vi /var/postgres/8.3/data/postgresql.conf


shared_buffers=128MB

wal_buffers=128kB

checkpoint_segments=16

listen_addresses='*'

# svcadm restart svc:/application/database/postgresql_83:default_32bit


 Now import other required dependencies for Openbravo ERP 2.40



# pkg install SUNWj6dev SUNWant SUNWtcat
DOWNLOAD                                    PKGS       FILES     XFER (MB)
SUNWj6dev                                    0/4     25/4756    1.08/84.90


Make sure that your newly installed tomcat setup has a valid server.xml file or copy it from an example file included. 

# cp /var/apache/tomcat/conf/server.xml-example /var/apache/tomcat/conf/server.xml

 Now download Openbravo ERP 2.40 installer as follows:


# pkg install SUNWwget


# wget "http://voxel.dl.sourceforge.net/sourceforge/openbravo/OpenbravoERP_2.40-solaris-intel-installer.bin"


# chmod a+x OpenbravoERP_2.40-solaris-intel-installer.bin


# ./OpenbravoERP_2.40-solaris-intel-installer.bin


 And use the following options:




  • /opt/OpenbravoERP | /var/OpenbravoERP/AppsOpenbravo/attachments

  • Complete |Standard | /usr/jdk/latest | /usr/bin/ant 

  • /var/apache/tomcat

  • PostgreSQL

  • /usr/postgres/8.3/bin

  • localhost     5432

  • (Enter password for postgres user as "postgres" twice)

  • openbravo    tad     (Enter password for tad user  twice)

  • Context name: openbravo

  • Date format: DD MM YYYY, Date Separator -, Time format 24h, Time Separator :

  • Demo data: Y or N depending on your preferences


After the information the installation GUI takes quite a bit of time
to complete specially if you select to load the demo data. (Hope you
made changes to PostgreSQL before to tune this loading.)


Once the installation completes  start tomcat as follows

# /usr/apache/tomcat/bin/startup.sh

Now from any other machine (or host machine) fire a browser and enter the IP address of the VM with port 8080 and uri openbravo and you now have a virtual VM with Openbravo running


http://myVMipaddress:8080/openbravo


The login screen for Openbravo should appear. Use
Openbravo as username and openbravo (all lower case) as password to
login and set it up for your business.







No comments: