How To Install Openbravo ERP 2.50 MP43 in Ubuntu
Upcoming SlideShare
Loading in...5
×
 

How To Install Openbravo ERP 2.50 MP43 in Ubuntu

on

  • 1,326 views

How To Install Openbravo ERP 2.50 MP43 in Ubuntu

How To Install Openbravo ERP 2.50 MP43 in Ubuntu

Statistics

Views

Total Views
1,326
Views on SlideShare
1,320
Embed Views
6

Actions

Likes
2
Downloads
41
Comments
0

1 Embed 6

http://www.slashdocs.com 6

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

How To Install Openbravo ERP 2.50 MP43 in Ubuntu How To Install Openbravo ERP 2.50 MP43 in Ubuntu Document Transcript

  • Openbravo ERP Tutorial Ubuntu Installation As a Part ofWirabumi Software Managed Service July 2011 Wirabumi Software CV. Wirabumi Openbravo Indonesia www.wirabumisoftware.com
  • Tutorial instalasi-en - 06/18/11 2/12
  • Table of ContentsObjective....................................................................................................................................................3Change 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.............................................................................................................11Tutorial instalasi-en - 06/18/11 3/12
  • ObjectiveThe objective of this document is guide you to install Openbravo ERP on the top of ubuntu serveroperating 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 sourceTutorial instalasi-en - 06/18/11 4/12
  • Change LogVersion Revision date PIC Description1 05/07/2011 Zaien Start2 07/11/2011 Zaien Add correction to setup environment variable Add new content for backup/restore using snapshot.xml3 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.50MP43Tutorial instalasi-en - 06/18/11 5/12
  • 1 Install PostgreSQLPostgreSQL is a server database used by Openbravo. Minimum required version is 8.3.5. BesidePostgreSQL server, you need also contrib module to install pl/pgsql and UUID.Install PostgreSQL using Ubuntu APT: sudo apt-get install postgresql postgresql-contribBy default, Postgresql installation come with default user Ubuntu, but without password. Change thepassword using command below: sudo /etc/init.d/postgresql start sudo su - postgres -c psql alter role postgres with password new_password; q2 Install Sun JDKJava Development Kit used when compile source of Openbravo ERP. You must add an APT repositoryline deb http://ppa.launchpad.net/pitti/postgresql/ubuntu lucid main, to enable you install OpenJDKJDK and OpenJDK JRE on your Ubuntu.Add ubuntu repository line to install PostgreSQL by editing source.list: sudo nano /etc/apt/source.listAdd new line in the bottom part of source.list: deb http://ppa.launchpad.net/pitti/postgresql/ubuntu lucid mainSave source.list, then install OpenJDK JDK and OpenJDK JRE using ATPT: sudo apt-get install openjdk-6-jdk openjdk-6-jreSet OpenJDK as default JDK: sudo update-java-alternatives -s java-1.6.0-openjdk-amd64Add environment variable for JAVA_HOME: echo JAVA_HOME="/usr/lib/jvm/java-1.6.0-openjdk-amd64" | sudo tee -a /etc/environmentAdd environment variable for JAVA_OPTS: echo JAVA_OPTS="-Djava.awt.headless=true -Xms384m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m" | sudo tee -a /etc/environmentTutorial instalasi-en - 06/18/11 6/12
  • Apply your new environment variable in your session: source /etc/environment3 Install Apache TomcatApache Tomcat is a web container, used as a web server where Openbravo hosted.Install tomcat using APT: sudo apt-get install tomcat6 tomcat6-adminStart tomcat: sudo /etc/init.d/tomcat6 startMake sure your installation is correct by access your tomcat at http://localhost:8080Add 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/environmentEdit 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 restartMake sure your configuration is correct by access your tomcat manager athttp://localhost:8080:/manager/htmlusername: admin, password: adminTutorial instalasi-en - 06/18/11 7/12
  • 4 Install AntAnt is a java build tool, used when build Openbravo ERP. Install ant using APT: sudo apt-get install ant ant-optionalCreate 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/environmentApply your new environment variable in your session: source /etc/environment5 Openbravo.properties ConfigurationParameters inside Openbravo.properties will be used when you compile source Openbravo. Fillrequired data with correct information. Extract source Openbravo on desired folder. For next step, wewill 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 configurationwizard: ant setupgo to folder config, add executable permission on configuration wizard file: chmod +x setup-properties-linux.binRun configuration wizard file: ./setup-properties-linux.binTutorial 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 OpenbravoIf your command line terminal that you use in previous chapter, please close it and open again to refeshyour 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 usingcommand below: ant install.sourceBe patient, this process may take several minutes, depend on your machine, but average on dual corePC is about 30 minutes.After compile process finished successfully, restart your tomcat: sudo service tomcat6 restartWait for a moment (about 1 minute), tomcat is now deploying openbravo. Open your openbravo usingweb browser (Internet explorer, Mozilla Firefox, etc) on address: http://localhost:8080/openbravo. YouTutorial 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 OpenbravoTo backup openbravo, there are 2 part you need to backup: 1. database 2. source file in OPENBRAVO_HOMETo backup your database, backup it using pg_dump: pg_dump -U postgres -h localhost -p 5432 -F c -v openbravo > openbravo.backupthose command will produce a file named openbravo.backup, containing all your database informationof openbravo DB, located in your current folder.To backup your OPENBRAVO_HOME you can zip all file into single zip file. Go toOPENBRAVO_HOME, run command below: zip Openbravo.zip -r .those command will produce a file named Openbravo.zip, containing all your OPENBRAVO_HOMEfiles, located in OPENBRAVO_HOME.To restore database, go to the folder that contain your DB backup, create a new database (drop it first ifexists): 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.backupTo 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 smartbuildAfter process finished successfully, restart tomcat, and wait for a moment (about 1 minute), tomcat isnow deploying openbravo. Open your openbravo using web browser (Internet explorer, MozillaFirefox, etc) on address: http://localhost:8080/openbravo.Tutorial instalasi-en - 06/18/11 12/12