Install Openbravo in Ubuntu

Quoteed to:wiki.openbravo.com

Installation/Ubuntu

Openbravo has a native Ubuntu package available from Openbravo repository, which allows Ubuntu users to easily and quickly add the software to their Ubuntu server.

This part of the document explains the installation of Openbravo ERP in Ubuntu Lucid Lynx 10.04. It applies to a new Openbravo ERP installation only, NOT an upgrade of an existing installation.

Requirements

Hardware

  • In order to install Openbravo it is necessary to have at least 1.5GB of RAM.

Software

  • Ubuntu version 10.04 (Lucid Lynx)
  • Ubuntu version 11.04 (Natty Narwhal)
  • Ubuntu version 11.10 (Oneiric Ocelot)
  • Ubuntu version 12.04 (Precise Pangolin)
Bulbgraph.png Using the Ubuntu Precise Pangolin 12.04 package is recommended for production systems, it is a Long Term Support (LTS) release

Installation

Command line installation using PPA Repository

  • Install python-software-properties package
sudo apt-get install python-software-properties
  • Enable the openbravo-isv PPA Repository:
sudo add-apt-repository ppa:openbravo-isv/ppa
  • Update the package tree and perform the install:
$ sudo apt-get update
$ sudo apt-get install openbravo-3

Note: sudo command will ask for the user password.

Accessing Openbravo

  1. Type http://localhost/openbravo in your web browser’s address bar to log in into Openbravo.
  2. Use the following credentials to access the application:
  • username: Openbravo
  • password: openbravo

NOTE: The username is Openbravo, with an uppercase O. The password is openbravo, with a lowercase o. The system is case-sensitive, and you need to type both data elements correctly to access it.

Updating Ubuntu from 10.04 (Lucid) to 12.04 (Precise)

Updating Ubuntu major version will disable third party repositories, this means that Ubuntu will be updated and the third party applications can be broken. So after the update you have to re-enable third party repositories and update this applications.

Bulbgraph.png REMEMBER: Before start, do a BACKUP OR run it in a TESTING INSTANCE before do it in a production instance.

Pre-steps

  • After the update the tomcat of Openbravo will become unresponsible so it is recomended to stop it before the update:
sudo /etc/init.d/openbravo-tomcat stop

Update of Ubuntu

  • Run in a terminal:
sudo do-release-upgrade
Bulbgraph.png In the step that ask to REBOOT, say that NOT (N + ENTER + x to get to the command line). Don’t reboot till you finish the update of Openbravo and the post-steps.

Update of Openbravo

The update of Ubuntu will disable the third party repos, including Openbravo one, now needed to re-enable.

  • Re-enable openbravo ppa:
sudo add-apt-repository ppa:openbravo-isv/ppa
  • Update the package tree and perform the install:
sudo apt-get update
sudo apt-get install openbravo-3

Post-steps

  • After update ubuntu package you can reboot:
sudo reboot
Bulbgraph.png Next steps only apply to EC2. The update from lucid to precise will update the kernel and the devices names will change from a format /dev/sd to /dev/xvd , the most common side effect of this it is that probably in the next boot you lost the swap and the /mnt.

Option 1: EC2 /dev/xvd manual fix

In order to fix this first check that effectively you have this change:

ls /dev/sd*
ls /dev/xvd*

If you have this change you need to update your fstab file:

  • First create a backup
sudo cp /etc/fstab /etc/fstab.backup
  • Edit /etc/fstab and change /dev/sd entries with /dev/xvd . For example: /dev/sda to /dev/xvda.
sudo nano /etc/fstab
  • For example, these entries:
/dev/sda2	/mnt	auto	defaults,nobootwait,comment=cloudconfig	0	0
/dev/sda3	none	swap	sw,comment=cloudconfig	0	0

Should be changed to:

/dev/xvda2	/mnt	auto	defaults,nobootwait,comment=cloudconfig	0	0
/dev/xvda3	none	swap	sw,comment=cloudconfig	0	0
  • After this change you need to reboot:
sudo reboot

Option 2: EC2 /dev/xvd script to fix

  • In a terminal copy and execute these lines
if [ "$(ls /dev/sd*)" == "" ] && [ "$(ls /dev/xvd*)" != "" ] ; then 
  sudo cp /etc/fstab /etc/fstab.bak
  sudo sed -i 's#\(.*\)/dev/sd\(.*\)#\1/dev/xvd\2#' /etc/fstab
fi
  • Then restart the instance:
sudo reboot

Advanced topics

Advertisements
Posted in Tips and Tricks, Ubuntu

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

ABOUT AUTHOR
Rodel Sales is a freelance I.T Professional . Start blogging on May 2013 to share my technical skills to other I.T professionals, and collect imperative guide from the internet world.
Blog Archieve
June 2013
M T W T F S S
« May   Jul »
 12
3456789
10111213141516
17181920212223
24252627282930
%d bloggers like this: