Home > Tutorial > OpenERP Installation on Linux(source)

OpenERP Installation on Linux(source)

Summary: OpenERP works as a structure of Server and Client(either GTK client or web client). Server has to be setup independently while clients are to be installed separately. Thus the over view of the tutorial is to cover both the installations.

System used: Pentium 4 Quad Core (x64 or i386)

Operating System: Ubuntu 9.10

Downloading Source:

The source code of OpenERP is available at Launchpad.net for the downloading of code from their server we need a software Bazaar. This would download the source for the all i.e. (server and clients)

  1. Visit Launchpad.net and register a new user. This will also require to set a Public key(SSH key) on the launchpad server.
    1. To make your own Public key, install openSSH. 'sudo apt-get install openssh-client'
    2. After installation write ‘ssh-keygen -t rsa', enter password and complete installation.
    3. Your key pair is stored in ~/.ssh/ as id_rsa.pub (public key) and id_rsa (private key)
    4. You have to copy the public key and paste it in 'SSH Keys' link of your Launchpad.net account.
  1. Now we have to install bazaar to downloading the source code.
    1. Visit 'https://launchpad.net/~bzr/+archive/ppa/+packages' and download the latest stable release. You have will have to click the name in the source column e.g. 'bzr – 2.0.4 1~bazaar1~karmic' and then download deb file for i386.
    2. Install the downloaded debian file.
    3. Write in terminal 'bzr launchpad-login [username]' ….The username should be the same as the Launchpad username saved on their server. You can check your username from your account, change details link.
    4. 'bzr branch lp:openerp ' …. To download the latest revision details.
    5. 'cd openerp '
    6. './bzr_set.py' run the python …. This will start downloading the source code, and would take a long while . It took me about 20mins to successfully download the full source.

Installation of OpenERP Server:

Prerequisite for running OpenERP server:

  • python
  • python-psycopg2
  • python-reportlab
  • python-pychart
  • python-pydot
  • python-egenix-mxdatetime
  • python-lxml
  • python-libxslt1
  • python-tz
  • python-imaging
  • python-vobject
  • postgreSQL

Installation command :

‘sudo apt-get install python python-psycopg2 python-reportlab python-egenix-mxdatetime python-tz python-pychart python-pydot python-lxml python-libxslt1 python-vobject ‘


‘sudo apt-get install postgresql’

  1. Creating dedicated user specifically user for OpenERP.
    1. In terminal write ‘sudo su – postgres’
    2. CREATEUSER myuser -P
    3. Enter password for the new role, set rights as
      • Supervisor – No
      • Create databases – Yes
      • Allow creation of new users(new roles) – No
    4. CREATEDB mydb“i kept the user name and user name same for less confusion as it is needed to login manually into psql, using command psql -U myuser”
    5. Configuration needed for Postgres to work for OpenERP
      • cd /etc/postgres/8.4./main
      • nano pg_hba.conf
      • Replace “Local all all ident” TO “Local all all md5”

Installation of OpenERP GTK Client:

Prerequisite for running OpenERP server:

  • python
  • python-gtk2
  • python-glade2
  • python-matplotlib
  • python-egenix-mxdatetime
  • python-tz
  • python-hippocanvas

Installation command:

sudo apt-get install python python-gtk2 python-glade2 python-matplotlib python-egenix-mxdatetime python-hippocanvas ‘

Installation of OpenERP Web Client:

You have to only edit the configuration file if you want to make some changes, else the webclient would work perfectly fine with default settings, you can access it on

Starting OpenERP Server:

One can only run the downloaded source for starting the server by

  • cd /home/[UbuntuUserName]/openerp/server/bin
  • ./openerp-server.py -r [Postgres User Name] -w [Postgres User Password] -d [Database Name]

Running of OpenERP GTK Client:

To start the GTK client

  • cd /home/[UbuntuUserName]/openerp/client/bin
  • ./openerp-client.py

Running of OpenERP Web Client:

To start the GTK client

  • cd /home/[UbuntuUserName]/openerp/web
  • ./openerp-webpy
Categories: Tutorial
  1. Mohsin
    February 12, 2010 at 9:53 am

    good work maddy

  2. Monchai
    October 19, 2010 at 3:00 pm

    I think it’s the typo “To start the GTK client”. it should be “web client”.
    Anyway, thank you.

  1. No trackbacks yet.

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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: