Installation/Ubuntu
![]() | Installation from Ubuntu ppa is NOT recommended.
|
Languages: |
Ubuntu
|
Contents |
Introduction
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 in Ubuntu Lucid Lynx 10.04. It applies to a new Openbravo 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 12.04 (Precise Pangolin)
![]() | 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
- Type http://localhost/openbravo in your web browser's address bar to log in into Openbravo.
- 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.
![]() | 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
![]() | 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
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
Navigate to the advanced topics guide to discover more details.