Odoo - OpenERP - How to Setup Odoo OpenERP on Ubuntu 15.04 ?

| 2 1 2
Asked on 9/9/15, 4:06 PM

Setup Ubuntu 15.04 Server with Prerequisites

First of all we will prepare the ubuntu server with its latest updates and required packages necessary to setup Odoo 8 (OpenERP). Let’s login to your server, open its command line terminal and run the below command to update your system with latest packages and security updates.

root@ubuntu-15:~# apt-get update

Before proceeding to the installation of Odoo, ensure that you are using a freshly installed Ubuntu machine. Odoo requires Python 2.7+ and PostgreSQL 9. In Ubuntu 15.04 server, Python 2.7+ is installed by default so we have to install PostgreSQL with Apache Web server and other Python supporting packages for Odoo.

1) Installing Python Liberaries

Odoo installation depends upon number of Puthon Liberaries, so run the following command to install its required Python libraries.

root@ubuntu-15:~# apt-get install -y python-decorator python-docutils python-feedparser python-imaging python-ldap python-libxslt1 python-mako python-mock python-openid python-passlib python-psutil python-pybabel

You might get the below indication while installing the Python liberaries to correct some unmet dependencies.

You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
python-docutils : Depends: python-roman but it is not going to be installed
Depends: docutils-common (= 0.12+dfsg-1) but it is not going to be installed
Recommends: python-pil but it is not going to be installed
Recommends: python-pygments but it is not going to be installed
Recommends: docutils-doc (= 0.12+dfsg-1) but it is not going to be installed
python-imaging : Depends: python-pil but it is not going to be installed
python-libxslt1 : Depends: python-libxml2 but it is not going to be installed
python-mako : Depends: python-markupsafe but it is not going to be installed
python-pybabel : Depends: python-babel but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

As mentioned above let's run the command below to fix the unmet dependencies and to install the list of dependent packages.

root@ubuntu-15:~# apt-get -f install

python libraries

2) Installing PostgreSQL

To install PostgreSQL we will use Tasksel utility as it’s easier and straight-forward. Type the following command and select PostgreSQL server for installation:

Run the below command to install tasksel utility if its not already installed.

root@ubuntu-15:~# apt-get install tasksel

tasksel utility

Then run the tasksel and choose the packages that you want to install including the PostgreSQL database as shown below.

root@ubuntu-15:~# tasksel

Tasksel PostgreSQL

3) Installing Webserver

Odoo OpenERP is a web based application so you must have any web server installed and running on your server. If its not already installed on your system let's run the below command to install Apache Web server and start its services.

root@ubuntu-15:~# apt-get install apache2
root@ubuntu-15:~# service apache2 status

apache2 service

You can test the successful installation of your web server by opening the below link with your servers IP address, and make sure that the the default port of Apache Webserver is allowed in the firewall.


apache page

Installing Odoo (OpenERP)

Now we will proceed to Odoo installation. We have to download Odoo installation file first using the following command to download version 8 of Odoo for Linux or visit www.odoo.com/page/download and enter your details to download the package in your localhos by choosing the required version for your OS.

root@ubuntu-15:~# wget http://nightly.odoo.com/8.0/nightly/deb/odoo_8.0.latest_all.deb

Odoo Package

Run the dpkg command to install the dowloaded debian package of Odoo.

root@ubuntu-15:~# dpkg -i odoo_8.0.latest_all.deb

Odoo Install

Configuring the Odoo OpenERP application

The default configuration file for the server is located at (/etc/odoo/openerp-server.conf) , Open this with your installed editor and configure your database password.

root@ubuntu-15:~# vim /etc/odoo/openerp-server.conf

; This is the password that allows database operations:
; admin_passwd = admin
db_host = False
db_port = False
db_user = odoo
db_password = odoo123
addons_path = /usr/lib/python2.7/dist-packages/openerp/addons


After making configuration changes restart Odoo service services and then check its status to be sure that its working active and working fine.

root@ubuntu-15:~# service odoo restart
root@ubuntu-15:~# service odoo status

odoo status

| 2 1 2
Answered on 9/9/15, 4:08 PM

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Keep Informed

About This Forum

This forum is for HiTechnologia Employees & just Odoo general knowledge purpose only.

Read Guidelines

Question tools

3 follower(s)


Asked: 9/9/15, 4:06 PM
Seen: 2515 times
Last updated: 9/9/15, 4:08 PM