This article will explain to you how to setup Odoo development environment in Debian based distro.


I assume that you have installed a Debian-based Linux distribution on your PC. If you do not have I recommended you can install Ubuntu 16.04 LTS either alongside windows or in a virtual machine. you find many related links/videos for “install ubuntu alongside windows”.

Once you have the Ubuntu machine you can start installing libs/packages required to run Odoo.

before you start package installation run below command above

sudo apt-get update

command above will downloads the package lists from the repositories and “updates” them to get information on the newest versions of packages and their dependencies.

Install required packages

run the below command to install basic required packages for odoo

sudo apt-get install wget git python-pip python-dev gdebi-core \
node-clean-css node-less python-gevent libevent-dev gcc \
libxml2-dev libxslt-dev libldap2-dev libssl-dev libsasl

Install Python packages

To install python packages, we will grab the content of file in a temp directory and install using pip. I have concatenated the command in one line.

cd /tmp && wget \
&& sudo pip install -r requirements.txt

Note: if you wanted to install a different version of odoo you need to change the path of a requirement.txt file.

Install wkhtmltopdf

first, check if your Linux is 64 bit or 32 bit

uname -i

i386 or i586 means OS is 32 bit
x86_64 means OS is 64 bit

For 64-bit arch install, wkhtmltopdf using below command (for ubuntu 16.04LTS)

cd /tmp && wget \
&& sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb

For 32-bit arch install, wkhtmltopdf using below command (for ubuntu 16.04LTS)

cd /tmp && wget \
&& sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-i386.deb

Note: if you have a different version of the ubuntu you need to get the path from the Wkhtmltopdf download page.

Install & Configure PostgreSQL

Below command will install PostgreSQL

apt-get update postgresql -y

After installing Postgres check the version of the Postgres using

psql --version

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

sudo apt-get install postgresql-server-dev-9.5

now login to the Postgres user into the terminal using below command.

sudo su postgres

Create Postgres user same as system user.

createuser -d -S -R heliconia

now change the password of created user using psql. here is the psql query to change the password.

alter user heliconia with password 'mypassword';

Note: change the user and password to your system password in above command.

Now your PC is ready for the odoo development environment. you just need to clone the latest odoo code in your workspace and start odoo development in your favorite IDE.

Join the discussion One Comment

  • Hey! This is kind of off topic but I need some guidance from an established blog.

    Is it very difficult to set up your own blog? I’m not very
    techincal but I can figure things out pretty quick. I’m thinking about creating my
    own but I’m not sure where to begin. Do you have any points or suggestions?
    Many thanks

Leave a Reply

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