SlideShare una empresa de Scribd logo
1 de 12
Descargar para leer sin conexión
Openbravo ERP Tutorial

     Ubuntu Installation

           As a Part of
Wirabumi Software Managed Service


               July 2011


            Wirabumi Software
    CV. Wirabumi Openbravo Indonesia
        www.wirabumisoftware.com
Tutorial instalasi-en - 06/18/11   2/12
Table of Contents
Objective....................................................................................................................................................3
Change Log................................................................................................................................................4
   1 Install PostgreSQL............................................................................................................................5
   2 Install Sun JDK.................................................................................................................................5
   3 Install Apache Tomcat.......................................................................................................................6
   4 Install Ant..........................................................................................................................................7
   5 Openbravo.properties Configuration.................................................................................................7
   6 Compile Source Openbravo..............................................................................................................9
   7 Backup/Restore Openbravo.............................................................................................................11




Tutorial instalasi-en - 06/18/11                                                                                                                    3/12
Objective
The objective of this document is guide you to install Openbravo ERP on the top of ubuntu server
operating system.
After studying this tutorial, you will be able to:
   •   Preparing Openbravo ERP environment on Ubuntu
   •   Install all required dependencies:
       ◦ OpenJDK JDK and OpenJDK JRE
       ◦ PostgreSQL
       ◦ Apache Tomcat
       ◦ Ant
   •   install Openbravo ERP from source




Tutorial instalasi-en - 06/18/11                                                          4/12
Change Log
Version Revision date        PIC     Description
1         05/07/2011         Zaien   Start
2         07/11/2011         Zaien   Add correction to setup environment variable
                                     Add new content for backup/restore using snapshot.xml
3         01/08/2012         Zaien   Update to PostgreSQL 9.1
                                     Remove snapshot.xml and replace it using pg_dump and
                                     zip
                                     Upgrade Openbravo ERP source to 2.50MP43




Tutorial instalasi-en - 06/18/11                                                      5/12
1 Install PostgreSQL
PostgreSQL is a server database used by Openbravo. Minimum required version is 8.3.5. Beside
PostgreSQL server, you need also contrib module to install pl/pgsql and UUID.
Install PostgreSQL using Ubuntu APT:
       sudo apt-get install postgresql postgresql-contrib


By default, Postgresql installation come with default user Ubuntu, but without password. Change the
password using command below:
       sudo /etc/init.d/postgresql start
       sudo su - postgres -c psql

       alter role postgres with password 'new_password';
       q




2 Install Sun JDK
Java Development Kit used when compile source of Openbravo ERP. You must add an APT repository
line deb http://ppa.launchpad.net/pitti/postgresql/ubuntu lucid main, to enable you install OpenJDK
JDK and OpenJDK JRE on your Ubuntu.
Add ubuntu repository line to install PostgreSQL by editing source.list:
       sudo nano /etc/apt/source.list


Add new line in the bottom part of source.list:
       deb http://ppa.launchpad.net/pitti/postgresql/ubuntu lucid main


Save source.list, then install OpenJDK JDK and OpenJDK JRE using ATPT:
       sudo apt-get install openjdk-6-jdk openjdk-6-jre


Set OpenJDK as default JDK:
       sudo update-java-alternatives -s java-1.6.0-openjdk-amd64


Add environment variable for JAVA_HOME:
       echo 'JAVA_HOME="/usr/lib/jvm/java-1.6.0-openjdk-amd64"' | sudo tee -a
       /etc/environment


Add environment variable for JAVA_OPTS:
       echo 'JAVA_OPTS="-Djava.awt.headless=true -Xms384m -Xmx1024m
             -XX:PermSize=128m -XX:MaxPermSize=256m"' | sudo tee -a /etc/environment



Tutorial instalasi-en - 06/18/11                                                            6/12
Apply your new environment variable in your session:
       source /etc/environment



3 Install Apache Tomcat
Apache Tomcat is a web container, used as a web server where Openbravo hosted.
Install tomcat using APT:
       sudo apt-get install tomcat6 tomcat6-admin

Start tomcat:
       sudo /etc/init.d/tomcat6 start

Make sure your installation is correct by access your tomcat at http://localhost:8080
Add environment variable CATALINA_HOME, CATALINA_BASE, and CATALINA_OPTS
       echo 'CATALINA_HOME="/usr/share/tomcat6"' | sudo tee -a /etc/environment
       echo 'CATALINA_BASE="/var/lib/tomcat6"' | sudo tee -a /etc/environment
       echo 'CATALINA_OPTS="-Djava.awt.headless=true -Xms384m -Xmx1024m
             -XX:PermSize=128m -XX:MaxPermSize=256m"


Edit file /usr/share/tomcat6/bin/catalina.sh, add line after comment at the top of this file:
       echo 'CATALINA_HOME="/usr/share/tomcat6"' | sudo tee -a /etc/environment
       echo 'CATALINA_BASE="/var/lib/tomcat6"' | sudo tee -a /etc/environment
       echo 'CATALINA_OPTS="-Djava.awt.headless=true -Xms384m -Xmx1024m
             -XX:PermSize=128m -XX:MaxPermSize=256m"'


Apply your new environment variable in your session:
       source /etc/environment


Edit file /var/lib/tomcat6/conf/tomcat-users.xml to add manager user:
       <?xml version='1.0' encoding='utf-8'?>
       <tomcat-users>
         <role rolename="manager"/>
         <user username="admin" password="admin" roles="manager"/>
       </tomcat-users>

Restart apache tomcat:
       sudo service tomcat6 restart


Make sure your configuration              is   correct   by    access    your    tomcat     manager      at
http://localhost:8080:/manager/html
username: admin, password: admin

Tutorial instalasi-en - 06/18/11                                                                  7/12
4 Install Ant
Ant is a java build tool, used when build Openbravo ERP. Install ant using APT:
       sudo apt-get install ant ant-optional


Create environment variable for ANT_HOME and ANT_OPTS:
       echo 'ANT_HOME="/usr/share/ant"' | sudo tee -a /etc/environment
       echo 'ANT_OPTS="-Xmx1024M -XX:MaxPermSize=128M"' | sudo tee
             -a /etc/environment

Apply your new environment variable in your session:
       source /etc/environment

5 Openbravo.properties Configuration
Parameters inside Openbravo.properties will be used when you compile source Openbravo. Fill
required data with correct information. Extract source Openbravo on desired folder. For next step, we
will call this folder as OPENBRAVO_HOME. Openbravo Source can be downloaded at:
http://dl.dropbox.com/u/17925381/OpenbravoERP-2.50MP43.obx.
Using command line terminal, go to OPENBRAVO_HOME, download openbravo configuration
wizard:
       ant setup


go to folder config, add executable permission on configuration wizard file:
       chmod +x setup-properties-linux.bin


Run configuration wizard file:
       ./setup-properties-linux.bin




Tutorial instalasi-en - 06/18/11                                                              8/12
1. Date time option: [self explanation].
    2. Stack configuration:
           1. attachment directory: select your attachment folder. For example of an attachment is
              print out result of an invoice, a picture, PDF, etc. Fill it using:
              OPENBRAVO_HOME/attachment.
           2. context name: application name that registered on tomcat, leave it default.
           3. web URL: web address of openbravo on tomcat, leave it default.
           4. context URL: web parent address of openbravo, leave it default.
    3. development parameter: used for openbravo development purpose, leave if default.
    4. Server database: select PostgreSQL.
    5. Parameter on PostgreSQL:
            1. DB name: database name of openbravo. Fill it : openbravo.
            2. admin role: super user name of server database PostgreSQL. Fill it: postgres.
            3. admin role password: password of super user. Fill it regarding your password supplied as
               explanation on 1st chapter.
            4. DB role: user on server PostgreSQL who will access Openbravo database. Fill it: tad.

Tutorial instalasi-en - 06/18/11                                                                9/12
5. DB role password: password of user on server PostgreSQL who will access Openbravo
             database. Fill it: tad.
          6. DB server address: server address of postgresql. Fill it: localhost.
          7. DB server port: port of PostgreSQL. Leave it default (5432).
    6. Tomcat configuration:
          1. tomcat manager URL: Application address of manager tomcat, leave it default.
          2. tomcat admin username: user name of tomcat manager, fill it: admin.
          3. tomcat admin password: password of user name of tomcat manager, fill it: admin.
    7. Pentaho server: not applied for now, leave it blank.
Finish process by click forward.

6 Compile Source Openbravo
If your command line terminal that you use in previous chapter, please close it and open again to refesh
your session with your new environment variable. Now Openbravo ERP is ready for compile process.
Go to OPENBRAVO_HOME folder using this command line terminal, compile openbravo using
command below:
       ant install.source




Be patient, this process may take several minutes, depend on your machine, but average on dual core
PC is about 30 minutes.
After compile process finished successfully, restart your tomcat:
       sudo service tomcat6 restart


Wait for a moment (about 1 minute), tomcat is now deploying openbravo. Open your openbravo using
web browser (Internet explorer, Mozilla Firefox, etc) on address: http://localhost:8080/openbravo. You

Tutorial instalasi-en - 06/18/11                                                                 10/12
will get a login page of Openbravo. Please login with default user/password: username: Openbravo,
password: openbravo. This username/password is case sensitive.




Tutorial instalasi-en - 06/18/11                                                           11/12
7 Backup/Restore Openbravo
To backup openbravo, there are 2 part you need to backup:
   1. database
   2. source file in OPENBRAVO_HOME
To backup your database, backup it using pg_dump:
       pg_dump -U postgres -h localhost -p 5432 -F c -v openbravo >
       openbravo.backup
those command will produce a file named openbravo.backup, containing all your database information
of openbravo DB, located in your current folder.
To backup your OPENBRAVO_HOME you can zip all file into single zip file. Go to
OPENBRAVO_HOME, run command below:
       zip Openbravo.zip -r .
those command will produce a file named Openbravo.zip, containing all your OPENBRAVO_HOME
files, located in OPENBRAVO_HOME.
To restore database, go to the folder that contain your DB backup, create a new database (drop it first if
exists):
       dropdb -U postgres -h localhost -p 5432 openbravo
       createdb -U postgres -h localhost -p 5432 openbravo
       pg_restore -U postgres -h localhost -p 5432 -F c -v -d openbravo <
       openbravo.backup
To restore OPENBRAVO_HOME, remove all file inside OPENBRAVO_HOME, copy your backup
(zip file) to your OPENBRAVO_HOME, then extract your backup zip file:
       unzip     Openbravo.zip -d .
Compile new restored backup:
       ant smartbuild
After process finished successfully, restart tomcat, and wait for a moment (about 1 minute), tomcat is
now deploying openbravo. Open your openbravo using web browser (Internet explorer, Mozilla
Firefox, etc) on address: http://localhost:8080/openbravo.




Tutorial instalasi-en - 06/18/11                                                                   12/12

Más contenido relacionado

La actualidad más candente

[OpenStack 하반기 스터디] Docker를 이용한 OpenStack 가상화
[OpenStack 하반기 스터디] Docker를 이용한 OpenStack 가상화[OpenStack 하반기 스터디] Docker를 이용한 OpenStack 가상화
[OpenStack 하반기 스터디] Docker를 이용한 OpenStack 가상화
OpenStack Korea Community
 
오픈소스 모니터링비교
오픈소스 모니터링비교오픈소스 모니터링비교
오픈소스 모니터링비교
sprdd
 

La actualidad más candente (20)

Interactive Realtime Dashboards on Data Streams using Kafka, Druid and Superset
Interactive Realtime Dashboards on Data Streams using Kafka, Druid and SupersetInteractive Realtime Dashboards on Data Streams using Kafka, Druid and Superset
Interactive Realtime Dashboards on Data Streams using Kafka, Druid and Superset
 
Scaling Apache Spark on Kubernetes at Lyft
Scaling Apache Spark on Kubernetes at LyftScaling Apache Spark on Kubernetes at Lyft
Scaling Apache Spark on Kubernetes at Lyft
 
[OpenStack 하반기 스터디] Docker를 이용한 OpenStack 가상화
[OpenStack 하반기 스터디] Docker를 이용한 OpenStack 가상화[OpenStack 하반기 스터디] Docker를 이용한 OpenStack 가상화
[OpenStack 하반기 스터디] Docker를 이용한 OpenStack 가상화
 
Docker and CloudStack
Docker and CloudStackDocker and CloudStack
Docker and CloudStack
 
Developing ML-enabled Data Pipelines on Databricks using IDE & CI/CD at Runta...
Developing ML-enabled Data Pipelines on Databricks using IDE & CI/CD at Runta...Developing ML-enabled Data Pipelines on Databricks using IDE & CI/CD at Runta...
Developing ML-enabled Data Pipelines on Databricks using IDE & CI/CD at Runta...
 
오픈소스 모니터링비교
오픈소스 모니터링비교오픈소스 모니터링비교
오픈소스 모니터링비교
 
Julien Maitrehenry - Docker, ça mange quoi au printemps
Julien Maitrehenry - Docker, ça mange quoi au printempsJulien Maitrehenry - Docker, ça mange quoi au printemps
Julien Maitrehenry - Docker, ça mange quoi au printemps
 
Apache Spark Crash Course
Apache Spark Crash CourseApache Spark Crash Course
Apache Spark Crash Course
 
Securing data in hybrid environments using Apache Ranger
Securing data in hybrid environments using Apache RangerSecuring data in hybrid environments using Apache Ranger
Securing data in hybrid environments using Apache Ranger
 
Issues of OpenStack multi-region mode
Issues of OpenStack multi-region modeIssues of OpenStack multi-region mode
Issues of OpenStack multi-region mode
 
[네이버오픈소스세미나] Maglev Hashing Scheduler in IPVS, Linux Kernel - 송인주
[네이버오픈소스세미나] Maglev Hashing Scheduler in IPVS, Linux Kernel - 송인주[네이버오픈소스세미나] Maglev Hashing Scheduler in IPVS, Linux Kernel - 송인주
[네이버오픈소스세미나] Maglev Hashing Scheduler in IPVS, Linux Kernel - 송인주
 
Polyglot persistence @ netflix (CDE Meetup)
Polyglot persistence @ netflix (CDE Meetup) Polyglot persistence @ netflix (CDE Meetup)
Polyglot persistence @ netflix (CDE Meetup)
 
Rancher 2.0 Technical Deep Dive
Rancher 2.0 Technical Deep DiveRancher 2.0 Technical Deep Dive
Rancher 2.0 Technical Deep Dive
 
How IBM's Massive POWER9 UNIX Servers Benefit from InfluxDB and Grafana Techn...
How IBM's Massive POWER9 UNIX Servers Benefit from InfluxDB and Grafana Techn...How IBM's Massive POWER9 UNIX Servers Benefit from InfluxDB and Grafana Techn...
How IBM's Massive POWER9 UNIX Servers Benefit from InfluxDB and Grafana Techn...
 
Introduction to OpenFaas
Introduction to OpenFaasIntroduction to OpenFaas
Introduction to OpenFaas
 
CI/CD Templates: Continuous Delivery of ML-Enabled Data Pipelines on Databricks
CI/CD Templates: Continuous Delivery of ML-Enabled Data Pipelines on DatabricksCI/CD Templates: Continuous Delivery of ML-Enabled Data Pipelines on Databricks
CI/CD Templates: Continuous Delivery of ML-Enabled Data Pipelines on Databricks
 
Ansible Automation - Enterprise Use Cases | Juncheng Anthony Lin
Ansible Automation - Enterprise Use Cases | Juncheng Anthony LinAnsible Automation - Enterprise Use Cases | Juncheng Anthony Lin
Ansible Automation - Enterprise Use Cases | Juncheng Anthony Lin
 
Hadoop Strata Talk - Uber, your hadoop has arrived
Hadoop Strata Talk - Uber, your hadoop has arrived Hadoop Strata Talk - Uber, your hadoop has arrived
Hadoop Strata Talk - Uber, your hadoop has arrived
 
Ceph Object Storage Performance Secrets and Ceph Data Lake Solution
Ceph Object Storage Performance Secrets and Ceph Data Lake SolutionCeph Object Storage Performance Secrets and Ceph Data Lake Solution
Ceph Object Storage Performance Secrets and Ceph Data Lake Solution
 
Apache Airflow
Apache AirflowApache Airflow
Apache Airflow
 

Destacado

Autonomous colleges a critique
Autonomous colleges   a critiqueAutonomous colleges   a critique
Autonomous colleges a critique
Srirangam Mathew
 
Présentation dolibarr & google apps
Présentation dolibarr & google appsPrésentation dolibarr & google apps
Présentation dolibarr & google apps
AgileaSoft
 
Academic freedom ppt
Academic freedom pptAcademic freedom ppt
Academic freedom ppt
Penn State
 

Destacado (20)

Mauricio.mortera.slides
Mauricio.mortera.slidesMauricio.mortera.slides
Mauricio.mortera.slides
 
National Policy on Teacher Development in Relation to Autonomous Education U...
National Policy on Teacher Development in Relation to Autonomous Education U...National Policy on Teacher Development in Relation to Autonomous Education U...
National Policy on Teacher Development in Relation to Autonomous Education U...
 
Developing quality in autonomous college - Part 1
Developing quality in autonomous college - Part 1Developing quality in autonomous college - Part 1
Developing quality in autonomous college - Part 1
 
Dolibarr
DolibarrDolibarr
Dolibarr
 
Autonomous colleges a critique
Autonomous colleges   a critiqueAutonomous colleges   a critique
Autonomous colleges a critique
 
Presentation forum php 2010
Presentation forum php 2010Presentation forum php 2010
Presentation forum php 2010
 
Presentación ERP & CRM Dolibarr
Presentación ERP & CRM DolibarrPresentación ERP & CRM Dolibarr
Presentación ERP & CRM Dolibarr
 
Système E-commerce avec Dolibarr ERP/CRM
Système E-commerce avec Dolibarr ERP/CRMSystème E-commerce avec Dolibarr ERP/CRM
Système E-commerce avec Dolibarr ERP/CRM
 
Dolibarr
DolibarrDolibarr
Dolibarr
 
Support de cours Dolibarr crm debutant hodei
Support de cours Dolibarr crm debutant hodeiSupport de cours Dolibarr crm debutant hodei
Support de cours Dolibarr crm debutant hodei
 
Dolibarr - What's new 3.9 and 4.0 (english)
Dolibarr - What's new 3.9 and 4.0 (english)Dolibarr - What's new 3.9 and 4.0 (english)
Dolibarr - What's new 3.9 and 4.0 (english)
 
Openbravo ERP Overview
Openbravo ERP OverviewOpenbravo ERP Overview
Openbravo ERP Overview
 
Openbravo ERP
Openbravo ERPOpenbravo ERP
Openbravo ERP
 
Dolibarr the future - Christmas devcamp in Valence
Dolibarr the future - Christmas devcamp in ValenceDolibarr the future - Christmas devcamp in Valence
Dolibarr the future - Christmas devcamp in Valence
 
Présentation dolibarr & google apps
Présentation dolibarr & google appsPrésentation dolibarr & google apps
Présentation dolibarr & google apps
 
Dolibarr ERP CRM - What's new in 5.0
Dolibarr ERP CRM -  What's new in 5.0Dolibarr ERP CRM -  What's new in 5.0
Dolibarr ERP CRM - What's new in 5.0
 
dolibarr SSIT Maroc
dolibarr SSIT Marocdolibarr SSIT Maroc
dolibarr SSIT Maroc
 
RTOS APPLICATIONS
RTOS  APPLICATIONSRTOS  APPLICATIONS
RTOS APPLICATIONS
 
Academic Freedom
Academic FreedomAcademic Freedom
Academic Freedom
 
Academic freedom ppt
Academic freedom pptAcademic freedom ppt
Academic freedom ppt
 

Similar a How To Install Openbravo ERP 2.50 MP43 in Ubuntu

Open erp on ubuntu
Open erp on ubuntuOpen erp on ubuntu
Open erp on ubuntu
Iker Coranti
 
[MathWorks] Versioning Infrastructure
[MathWorks] Versioning Infrastructure[MathWorks] Versioning Infrastructure
[MathWorks] Versioning Infrastructure
Perforce
 
Node.js basics
Node.js basicsNode.js basics
Node.js basics
Ben Lin
 
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
maclean liu
 

Similar a How To Install Openbravo ERP 2.50 MP43 in Ubuntu (20)

Erp 2.50 openbravo environment installation openbravo-wiki
Erp 2.50 openbravo environment installation   openbravo-wikiErp 2.50 openbravo environment installation   openbravo-wiki
Erp 2.50 openbravo environment installation openbravo-wiki
 
linux installation.pdf
linux installation.pdflinux installation.pdf
linux installation.pdf
 
Open erp on ubuntu
Open erp on ubuntuOpen erp on ubuntu
Open erp on ubuntu
 
How to install and configure LEMP stack
How to install and configure LEMP stackHow to install and configure LEMP stack
How to install and configure LEMP stack
 
Performance all teh things
Performance all teh thingsPerformance all teh things
Performance all teh things
 
Newgenlib Installation on Ubuntu 12.04
Newgenlib Installation on Ubuntu 12.04Newgenlib Installation on Ubuntu 12.04
Newgenlib Installation on Ubuntu 12.04
 
Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9
 
PuppetConf 2016: An Introduction to Measuring and Tuning PE Performance – Cha...
PuppetConf 2016: An Introduction to Measuring and Tuning PE Performance – Cha...PuppetConf 2016: An Introduction to Measuring and Tuning PE Performance – Cha...
PuppetConf 2016: An Introduction to Measuring and Tuning PE Performance – Cha...
 
Oracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupOracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard Setup
 
Apache - Quick reference guide
Apache - Quick reference guideApache - Quick reference guide
Apache - Quick reference guide
 
[MathWorks] Versioning Infrastructure
[MathWorks] Versioning Infrastructure[MathWorks] Versioning Infrastructure
[MathWorks] Versioning Infrastructure
 
Oracle api gateway installation as cluster and single node
Oracle api gateway installation as cluster and single nodeOracle api gateway installation as cluster and single node
Oracle api gateway installation as cluster and single node
 
How To Install OpenFire in CentOS 7
How To Install OpenFire in CentOS 7How To Install OpenFire in CentOS 7
How To Install OpenFire in CentOS 7
 
How to install Open Atrium over LAMP stack
How to install Open Atrium over LAMP stackHow to install Open Atrium over LAMP stack
How to install Open Atrium over LAMP stack
 
Node.js basics
Node.js basicsNode.js basics
Node.js basics
 
L.A.M.P Installation Note --- CentOS 6.5
L.A.M.P Installation Note --- CentOS 6.5L.A.M.P Installation Note --- CentOS 6.5
L.A.M.P Installation Note --- CentOS 6.5
 
Apache
ApacheApache
Apache
 
Apache
ApacheApache
Apache
 
Installing php 7.4 Nginx Laravel 7.x on Centos 8
Installing php 7.4 Nginx Laravel 7.x on Centos 8Installing php 7.4 Nginx Laravel 7.x on Centos 8
Installing php 7.4 Nginx Laravel 7.x on Centos 8
 
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
 

Más de Wirabumi Software

Más de Wirabumi Software (12)

Air sumber kehidupan, Metode Firtrasi AIRO Water - PT. Rofis Jaya Perkasa
Air sumber kehidupan, Metode Firtrasi AIRO Water - PT. Rofis Jaya PerkasaAir sumber kehidupan, Metode Firtrasi AIRO Water - PT. Rofis Jaya Perkasa
Air sumber kehidupan, Metode Firtrasi AIRO Water - PT. Rofis Jaya Perkasa
 
Memperkenalkan AIRO Water - PT. Rofis Jaya Perkasa
Memperkenalkan AIRO Water - PT. Rofis Jaya PerkasaMemperkenalkan AIRO Water - PT. Rofis Jaya Perkasa
Memperkenalkan AIRO Water - PT. Rofis Jaya Perkasa
 
Infinite pos
Infinite posInfinite pos
Infinite pos
 
Infinite BI
Infinite BIInfinite BI
Infinite BI
 
Virtual cube on pentaho
Virtual cube on pentahoVirtual cube on pentaho
Virtual cube on pentaho
 
Virtual cube di pentaho
Virtual cube di pentahoVirtual cube di pentaho
Virtual cube di pentaho
 
Flexible erp with openbravo
Flexible erp with openbravoFlexible erp with openbravo
Flexible erp with openbravo
 
Data warehousing with pentaho
Data warehousing with pentahoData warehousing with pentaho
Data warehousing with pentaho
 
Dasar dasar akuntansi
Dasar dasar akuntansiDasar dasar akuntansi
Dasar dasar akuntansi
 
Introduction to openbravo
Introduction to openbravoIntroduction to openbravo
Introduction to openbravo
 
Cara Install Openbravo 2.50 MP 43 di Ubuntu
Cara Install Openbravo 2.50 MP 43 di UbuntuCara Install Openbravo 2.50 MP 43 di Ubuntu
Cara Install Openbravo 2.50 MP 43 di Ubuntu
 
Openbravo ERP Tutorial - Saldo Awal
Openbravo ERP Tutorial - Saldo AwalOpenbravo ERP Tutorial - Saldo Awal
Openbravo ERP Tutorial - Saldo Awal
 

Último

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 

How To Install Openbravo ERP 2.50 MP43 in Ubuntu

  • 1. Openbravo ERP Tutorial Ubuntu Installation As a Part of Wirabumi Software Managed Service July 2011 Wirabumi Software CV. Wirabumi Openbravo Indonesia www.wirabumisoftware.com
  • 2. Tutorial instalasi-en - 06/18/11 2/12
  • 3. Table of Contents Objective....................................................................................................................................................3 Change Log................................................................................................................................................4 1 Install PostgreSQL............................................................................................................................5 2 Install Sun JDK.................................................................................................................................5 3 Install Apache Tomcat.......................................................................................................................6 4 Install Ant..........................................................................................................................................7 5 Openbravo.properties Configuration.................................................................................................7 6 Compile Source Openbravo..............................................................................................................9 7 Backup/Restore Openbravo.............................................................................................................11 Tutorial instalasi-en - 06/18/11 3/12
  • 4. Objective The objective of this document is guide you to install Openbravo ERP on the top of ubuntu server operating system. After studying this tutorial, you will be able to: • Preparing Openbravo ERP environment on Ubuntu • Install all required dependencies: ◦ OpenJDK JDK and OpenJDK JRE ◦ PostgreSQL ◦ Apache Tomcat ◦ Ant • install Openbravo ERP from source Tutorial instalasi-en - 06/18/11 4/12
  • 5. Change Log Version Revision date PIC Description 1 05/07/2011 Zaien Start 2 07/11/2011 Zaien Add correction to setup environment variable Add new content for backup/restore using snapshot.xml 3 01/08/2012 Zaien Update to PostgreSQL 9.1 Remove snapshot.xml and replace it using pg_dump and zip Upgrade Openbravo ERP source to 2.50MP43 Tutorial instalasi-en - 06/18/11 5/12
  • 6. 1 Install PostgreSQL PostgreSQL is a server database used by Openbravo. Minimum required version is 8.3.5. Beside PostgreSQL server, you need also contrib module to install pl/pgsql and UUID. Install PostgreSQL using Ubuntu APT: sudo apt-get install postgresql postgresql-contrib By default, Postgresql installation come with default user Ubuntu, but without password. Change the password using command below: sudo /etc/init.d/postgresql start sudo su - postgres -c psql alter role postgres with password 'new_password'; q 2 Install Sun JDK Java Development Kit used when compile source of Openbravo ERP. You must add an APT repository line deb http://ppa.launchpad.net/pitti/postgresql/ubuntu lucid main, to enable you install OpenJDK JDK and OpenJDK JRE on your Ubuntu. Add ubuntu repository line to install PostgreSQL by editing source.list: sudo nano /etc/apt/source.list Add new line in the bottom part of source.list: deb http://ppa.launchpad.net/pitti/postgresql/ubuntu lucid main Save source.list, then install OpenJDK JDK and OpenJDK JRE using ATPT: sudo apt-get install openjdk-6-jdk openjdk-6-jre Set OpenJDK as default JDK: sudo update-java-alternatives -s java-1.6.0-openjdk-amd64 Add environment variable for JAVA_HOME: echo 'JAVA_HOME="/usr/lib/jvm/java-1.6.0-openjdk-amd64"' | sudo tee -a /etc/environment Add environment variable for JAVA_OPTS: echo 'JAVA_OPTS="-Djava.awt.headless=true -Xms384m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m"' | sudo tee -a /etc/environment Tutorial instalasi-en - 06/18/11 6/12
  • 7. Apply your new environment variable in your session: source /etc/environment 3 Install Apache Tomcat Apache Tomcat is a web container, used as a web server where Openbravo hosted. Install tomcat using APT: sudo apt-get install tomcat6 tomcat6-admin Start tomcat: sudo /etc/init.d/tomcat6 start Make sure your installation is correct by access your tomcat at http://localhost:8080 Add environment variable CATALINA_HOME, CATALINA_BASE, and CATALINA_OPTS echo 'CATALINA_HOME="/usr/share/tomcat6"' | sudo tee -a /etc/environment echo 'CATALINA_BASE="/var/lib/tomcat6"' | sudo tee -a /etc/environment echo 'CATALINA_OPTS="-Djava.awt.headless=true -Xms384m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m" Edit file /usr/share/tomcat6/bin/catalina.sh, add line after comment at the top of this file: echo 'CATALINA_HOME="/usr/share/tomcat6"' | sudo tee -a /etc/environment echo 'CATALINA_BASE="/var/lib/tomcat6"' | sudo tee -a /etc/environment echo 'CATALINA_OPTS="-Djava.awt.headless=true -Xms384m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m"' Apply your new environment variable in your session: source /etc/environment Edit file /var/lib/tomcat6/conf/tomcat-users.xml to add manager user: <?xml version='1.0' encoding='utf-8'?> <tomcat-users> <role rolename="manager"/> <user username="admin" password="admin" roles="manager"/> </tomcat-users> Restart apache tomcat: sudo service tomcat6 restart Make sure your configuration is correct by access your tomcat manager at http://localhost:8080:/manager/html username: admin, password: admin Tutorial instalasi-en - 06/18/11 7/12
  • 8. 4 Install Ant Ant is a java build tool, used when build Openbravo ERP. Install ant using APT: sudo apt-get install ant ant-optional Create environment variable for ANT_HOME and ANT_OPTS: echo 'ANT_HOME="/usr/share/ant"' | sudo tee -a /etc/environment echo 'ANT_OPTS="-Xmx1024M -XX:MaxPermSize=128M"' | sudo tee -a /etc/environment Apply your new environment variable in your session: source /etc/environment 5 Openbravo.properties Configuration Parameters inside Openbravo.properties will be used when you compile source Openbravo. Fill required data with correct information. Extract source Openbravo on desired folder. For next step, we will call this folder as OPENBRAVO_HOME. Openbravo Source can be downloaded at: http://dl.dropbox.com/u/17925381/OpenbravoERP-2.50MP43.obx. Using command line terminal, go to OPENBRAVO_HOME, download openbravo configuration wizard: ant setup go to folder config, add executable permission on configuration wizard file: chmod +x setup-properties-linux.bin Run configuration wizard file: ./setup-properties-linux.bin Tutorial instalasi-en - 06/18/11 8/12
  • 9. 1. Date time option: [self explanation]. 2. Stack configuration: 1. attachment directory: select your attachment folder. For example of an attachment is print out result of an invoice, a picture, PDF, etc. Fill it using: OPENBRAVO_HOME/attachment. 2. context name: application name that registered on tomcat, leave it default. 3. web URL: web address of openbravo on tomcat, leave it default. 4. context URL: web parent address of openbravo, leave it default. 3. development parameter: used for openbravo development purpose, leave if default. 4. Server database: select PostgreSQL. 5. Parameter on PostgreSQL: 1. DB name: database name of openbravo. Fill it : openbravo. 2. admin role: super user name of server database PostgreSQL. Fill it: postgres. 3. admin role password: password of super user. Fill it regarding your password supplied as explanation on 1st chapter. 4. DB role: user on server PostgreSQL who will access Openbravo database. Fill it: tad. Tutorial instalasi-en - 06/18/11 9/12
  • 10. 5. DB role password: password of user on server PostgreSQL who will access Openbravo database. Fill it: tad. 6. DB server address: server address of postgresql. Fill it: localhost. 7. DB server port: port of PostgreSQL. Leave it default (5432). 6. Tomcat configuration: 1. tomcat manager URL: Application address of manager tomcat, leave it default. 2. tomcat admin username: user name of tomcat manager, fill it: admin. 3. tomcat admin password: password of user name of tomcat manager, fill it: admin. 7. Pentaho server: not applied for now, leave it blank. Finish process by click forward. 6 Compile Source Openbravo If your command line terminal that you use in previous chapter, please close it and open again to refesh your session with your new environment variable. Now Openbravo ERP is ready for compile process. Go to OPENBRAVO_HOME folder using this command line terminal, compile openbravo using command below: ant install.source Be patient, this process may take several minutes, depend on your machine, but average on dual core PC is about 30 minutes. After compile process finished successfully, restart your tomcat: sudo service tomcat6 restart Wait for a moment (about 1 minute), tomcat is now deploying openbravo. Open your openbravo using web browser (Internet explorer, Mozilla Firefox, etc) on address: http://localhost:8080/openbravo. You Tutorial instalasi-en - 06/18/11 10/12
  • 11. will get a login page of Openbravo. Please login with default user/password: username: Openbravo, password: openbravo. This username/password is case sensitive. Tutorial instalasi-en - 06/18/11 11/12
  • 12. 7 Backup/Restore Openbravo To backup openbravo, there are 2 part you need to backup: 1. database 2. source file in OPENBRAVO_HOME To backup your database, backup it using pg_dump: pg_dump -U postgres -h localhost -p 5432 -F c -v openbravo > openbravo.backup those command will produce a file named openbravo.backup, containing all your database information of openbravo DB, located in your current folder. To backup your OPENBRAVO_HOME you can zip all file into single zip file. Go to OPENBRAVO_HOME, run command below: zip Openbravo.zip -r . those command will produce a file named Openbravo.zip, containing all your OPENBRAVO_HOME files, located in OPENBRAVO_HOME. To restore database, go to the folder that contain your DB backup, create a new database (drop it first if exists): dropdb -U postgres -h localhost -p 5432 openbravo createdb -U postgres -h localhost -p 5432 openbravo pg_restore -U postgres -h localhost -p 5432 -F c -v -d openbravo < openbravo.backup To restore OPENBRAVO_HOME, remove all file inside OPENBRAVO_HOME, copy your backup (zip file) to your OPENBRAVO_HOME, then extract your backup zip file: unzip Openbravo.zip -d . Compile new restored backup: ant smartbuild After process finished successfully, restart tomcat, and wait for a moment (about 1 minute), tomcat is now deploying openbravo. Open your openbravo using web browser (Internet explorer, Mozilla Firefox, etc) on address: http://localhost:8080/openbravo. Tutorial instalasi-en - 06/18/11 12/12