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 https://github.com/odoo/odoo/blob/10.0/requirements.txt file in a temp directory and install using pip. I have concatenated the command in one line.
cd /tmp && wget https://raw.githubusercontent.com/odoo/odoo/10.0/requirements.txt \ && 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.
first, check if your Linux is 64 bit or 32 bit
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 http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb \ && 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 http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-i386.deb \ && 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
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.