How to install Odoo 13 on Linux

Odoo 13 installation In UBUNTU

Odoo v13 just come out, for now, to install Odoo 13 on Ubuntu 19.04 you just follow the below steps.


STEP 1: Update the apt source list.

sudo apt-get update -y

STEP 2: Create Odoo user and also group.

sudo adduser -system -home=/opt/odoo -group odoo

STEP3: For the smooth running of Odoo, Install the PostgreSQL database server and install it on the same host as Odoo is running.

sudo apt-get install -y postgresql

After the installation start to use the below commands to start the PostgreSQL database server

sudo service postgresql start

Then create a database user for Odoo

sudo su - postgres
createuser --createdb --username postgres --no-createrole –no-superuser --pwprompt odoo

STEP 4: Install python and depended on python packages on the server.

sudo apt-get install -y python3-pip

Install Python Dependencies for Odoo 12.

To switch into the Odoo user and then install the dependency packages.

install Babel decorator docutils ebaysdk feedparser gevent greenlet
html2text Jinja2 lxml Mako MarkupSafe mock num2words ofxparse passlib
Pillow psutil psycogreen psycopg2 pydot pyparsing PyPDF2 pyserial
python-dateutil python-openid pytz pyusb PyYAML qrcode reportlab
requests six suds-jurko vatnumber vobject Werkzeug XlsxWriter xlwt
xlrd polib


STEP 5: Odoo web dependencies

sudo apt-get install -y npm
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo npm install -g less less-plugin-clean-css
sudo apt-get install -y node-less
sudo python3 -m pip install libsass


STEP 6: Install Odoo 13 GA version from

Switch to Odoo user

sudo su - odoo -s /bin/bash

Download Odoo 13 latest zip file and finally unzip the file.


And then rename the directory name to Odoo. Also, copy Odoo file in the setup directory to main Odoo directory and rename it to Odoo-bin.


STEP 7: Create an Odoo configuration file

 sudo vim /etc/odoo.conf

Copy the below content into the configuration file.

; This is the password that allows database operations:
; admin_passwd = admin
db_host = False
db_port = False
db_user = odoo
db_password = False
logfile = /var/log/odoo/odoo-server.log
addons_path = /opt/odoo/odoo/addons


Change permission and also the user ownership of configuration file as bellow

sudo chown odoo: /etc/odoo.conf 
sudo chmod 640 /etc/odoo.conf


STEP 8: Create Odoo log file

sudo mkdir /var/log/odoo 
sudo chown odoo:root /var/log/odoo

STEP 9: You can copy and paste the script to this file.

sudo vim /etc/init.d/odoo

Then change ownership and permission

sudo chmod 755 /etc/init.d/odoo 
sudo chown root: /etc/init.d/odoo

STEP 10: Test the server running as service

To start the Odoo server

 sudo /etc/init.d/odoo start

Stop the Odoo server

sudo /etc/init.d/odoo stop


View the Odoo log files

 tailf /var/log/odoo/odoo-server.log

Now, if you want to add this service to begin on boot up run the bellow command

update-rc.d odoo defaults

STEP 11: Run Odoo locally

sudo su - odoo -s /bin/bash 
python3 /opt/odoo/odoo-bin

Then go to the web browser to access odoo12





To print PDF reports need to install right version of wkhtmltopdf.

sudo wget 
sudo apt install ./wkhtmltox_0.12.1.3-1~bionic_amd64.deb 
sudo cp /usr/local/bin/wkhtmltoimage /usr/bin/wkhtmltoimage 
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf

This instruction for development purposes, so once you install it totally works fine, but it needs to be a manual upgrade when Odoo have a patch, for production or for more support about Odoo 13 installation in Linux Ubuntu or Docker, contact our Odoo support team we will help you just plug & play.