Install Odoo 12 on Ubuntu 18.04

Hello , we are here again with our most awaited post i.e Easiest installation guide of odoo 12.  Hurry up ! Install Odoo 12 on your Ubuntu 18.04. EXPLORE AMAZING NEW FEATURES OF “Odoo 12″. Click Here

Step 1

Update apt source list

sudo apt-get update

Step 2

Install Updates

sudo apt-get -y upgrade
The -y flag will confirm that we are agreeing for all items to be installed.

Step 3

Install Python Dependencies for Odoo 12

sudo apt install git python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less

pip3 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

Step 4

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 node-less
sudo python3 -m pip install libsass

Step 5

Install PostgreSQL 9.6+

sudo apt-get install python3-software-properties
sudo vim /etc/apt/sources.list.d/pgdg.list
Add a line for the repository
deb xenial-pgdg main
wget --quiet -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-9.6
Now system will ask you to select the timezone for PostgreSQL Installation completion. Once you setup the timezone then continue with next step.

Step 6

Create Database user for Odoo

sudo su postgres
createuser -s odoo
createuser -s ubuntu_user_name

Step 7

Create Odoo user and group

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

Step 8

Install Gdata

cd /opt/odoo
sudo wget
sudo tar zxvf gdata-2.0.18.tar.gz
sudo chown -R odoo: gdata-2.0.18
sudo -s
cd gdata-2.0.18/
python install

Step 9

Odoo 12 Download from GitHub

Get lastest Odoo 12 from github repository. Download the Zip file from URL : “″ . Transfer the same file to /opt/odoo directory on server through ftp. Otherwise follow the below steps
cd /opt/odoo
sudo su - odoo -s /bin/bash
git clone --depth 1 --branch 12.0 --single-branch

Step 10

Create Odoo Log File

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

Step 11

Edit Odoo configuration file

sudo vim /etc/odoo.conf
#Copy and paste below content in config file , write correct addons paths
; 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/addons,/opt/odoo/odoo/addons

Save and Exit the file. Now run the below command on terminal to grant ownership.

sudo chown odoo: /etc/odoo.conf

Step 12

WKHTMLTOPDF ( Supported Version 0.12.1 ) for Odoo

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

Step 13

Now Start Odoo Server

cd /opt/odoo/odoo

Step 14

Go to web browser to access Odoo 12


Your Feedback will be Appreciated. Thanks


Any error related to libfontconfig, libxrender not found then.

sudo apt-get -f install libxrender1 libjpeg-turbo8 libfontconfig1 fonts-dejavu-core ttf-bitstream-vera fonts-freefont-ttf gsfonts libfontenc1 libxfont1 x11-common xfonts-encodings xfonts-utils gsfonts-x11 fontconfig-config libfontconfig1 fontconfig

Recent Posts

Leave a Comment

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

Not readable? Change text. captcha txt
odoo 11 Features