O doo 10 is released on 5th Oct 2016, this page will guide you to install Odoo 10 in ubuntu 16.04 LTS. There can be many blogs and several ways to install the odoo, this page will help you to install odoo manually.

Prepare Ubuntu

Make sure you have sudo access or logged in as root. to log in as a root you need to run below command and provide the system password.

We will update the ubuntu with the latest version of the packages and perform the function of the upgrade. below command will do that for you.

Add system user

Now you need to create a system user to run the odoo server below command will add the user “odoo”, creates the home path

The user should also be added to the sudo’ers group.

Install & Prepare Postgres

Odoo uses Postgres as the database layer, below command will install Postgres (version 9.5.4 is default in ubuntu 16.04)

After installing Postgres check the version of the Postgres using

Now depending on the version you need to install postgresql-server-dev, if your version is 9.5.3 then 9.5 and if 9.4.0 then 9.4, run the below command

After installing odoo we will create user “odoo” in Postgres, for that you need to log into Postgres first using

and after that create Postgres user for odoo 10, it will prompt for the password of the new user.

Install required packages

In order to run the Odoo, you need several packages & python libs installed in ubuntu.

Now we will install the python libs which is required by the odoo 10. for that we will fetch the requirement.txt file from the GitHub odoo 10 branch raw source and install using the pip(python package management system). below command will do that for you.

Install wkhtmltopdf

wkhtmltopdf is required in odoo to print the reports. depending on your OS bit you can install wkhtmltopdf for odoo 10.

How do I check if I have a 32-bit or a 64-bit OS?

if you get i386 or i586, i.e OS is 32 bit
if you get x86_64, i.e OS is 64 bit

For 64 bit architecture

For 32 bit architecture

Get Odoo 10 source

Now we will fetch the odoo source using GitHub. or you can also get the nightly source(https://nightly.odoo.com/10.0/nightly/src/)
below command will clone the git odoo 10 source code in /opt/odoo directory

After getting the source change the permission for the odoo source using

Configure Odoo 10

Default configuration file for the odoo 10 will be under /opt/odoo/debian/openerp-server.conf, we will copy that file and put that under /etc/odoo/
below command will do that for you.

we will edit the odoo 10 configureation file using

and change the parameters according to your system

For more info : See Odoo configuration parameters

Now we will provide proper permission to the odoo 10 config file using below command

Place init script

Init script is used to start and stop the odoo server with proper configuration. we will copy the init file place it into /etc/init.d/ using

Now we will edit the file and change the DEMON path from the file to /opt/odoo/odoo-bin using

and change the path of a demon from


and will provide proper permission to the file using

We will create log file based on init file using below command

and will provide proper permission to the odoo 10 server log file

Test Odoo server

now it’s time to get the result of hard work! to start the odoo 10 server type

and you can check the log using

press ctrl + c to exit

and if the server is local type the in the browser or your server’s public_ip:8069

for the first time, you will see database manager to create your first database.

Now stop the server using

And check the log file again to make sure odoo has stopped properly.

Automize Odoo Service

If everything working well we can do an entry of odoo-server in update-rc.d which will automatically start & stops the odoo server along with ubuntu

reboot your server and check for the odoo service using ps -ax | grep odoo.

you can also configure odoo with Nginx or apache to make it work with your domain.

Give me a comment if you stuck at any point, I will be happy to help you & revert back to you as soon as possible.

Join the discussion 7 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.