Odoo 12 Install – Installation guide on How to install Odoo 12 on Ubuntu

Odoo 12 Install – Odoo 12 is released in this blog post we will cover how to install odoo 12 on ubuntu, we offered you with Simple step by step guide for installation of Odoo 12 on Ubuntu. The reason to put up this blog post on Odoo 12 installation is to ensure that new user can install the latest version and can start playing with the standard Odoo 12 Apps . Hope this post and simple steps on Odoo 12 installation guide will help you with successful installation of Odoo 12 on your server supporting Ubuntu. This step is for installing Odoo 12 community edition. Odoo 12 install odoo 12, install odoo 12 on ubuntu, how to install odoo 12, odoo version 12 installation, odoo 12 installation

For Odoo 12 enterprise edition installation you can connect with us on [email protected]

Odoo – 12 Installation step on Ubuntu-18.04

Step-1:

Before we get into the Odoo 12 installation process, you should definitely update and upgrade Ubuntu.

Open a terminal window and issue the commands:

sudo apt-get update

sudo apt-get -y upgrade

image1.png

Odoo 12 installation on ubuntuOdoo 12 installation on ubuntu

image2.png

Step-2:

Install Python 3 and dependencies for Odoo.

sudo apt-get install python3-pip

Odoo 12 installation on ubuntu

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

image4.png

Step-3:

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

Step-4:

sudo apt-get install python-software-properties  OR  sudo apt-get install software-properties-common

Install Postgresql Latest Version

sudo gedit /etc/apt/sources.list/dgpg.list

add a line for the repository:

deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main

wget –quiet -O – https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo  apt-key  add –

sudo apt-get update

sudo apt-get  install postgresql-9.6

If the Above command for Odoo 12 install not worked or not installing the Postgresql 9.6 Then you can use below code to install the Postgresql.

sudo add-apt-repository “deb https://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main”

sudo apt-get update

sudo apt-get install postgresql-9.4

To set Postgres Password:

ubuntu@:~$ sudo passwd postgres

Enter new UNIX password:****

Retype new UNIX password:****

passwd: password updated successfully

Step-5:

Create Database User For Odoo:

sudo su postgres

createuser -s odoo

createuser -s ubuntu_user_name

exit(Ctrl + d)

Step-6:

Create Odoo User and Group:

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

Step-7:

install Gdata

cd /opt/

sudo wget https://pypi.python.org/packages/a8/70/bd554151443fe9e89d9a934a7891aaffc63b9cb5c7d608972919a002c03c/gdata-2.0.18.tar.gz

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 setup.py install

exit

Step-8:

Odoo-12 Download from GITHUB

cd /opt

sudo apt-get install git

sudo chown -R odoo: /opt

sudo su – odoo -s /bin/bash

git clone https://www.github.com/odoo/odoo –depth 1 –branch 12.0 –single-branch

exit

Step-9:

Install the necessary Python packages for the Odoo-12

cd opt/odoo

sudo pip3 install -r requirements.txt

Notes:-if any of the Python Packages is not istalling then find and remove from the requirements.txt files. And again run the same above command for further installation. Once done with the installation then those which are are installed, install them forcefully from terminal.

Install pypdf2 python Library for odoo

apt-get install python3-pypdf2

Step-10:

Create Odoo-log Folder and Files:

sudo mkdir /var/log/odoo

cd var/log/odoo

sudo touch odoo-server.log

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

Step-11:

Edit odoo configuration Files:

sudo gedit /etc/odoo.conf

#Copy This lines and Paste into File and then change user and password if any

[options]

;  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

sudo chown odoo: /etc/odoo.conf

Step-12:

Install WKHTMLTOPDF

sudo wget https://builds.wkhtmltopdf.org/0.12.1.3/wkhtmltox_0.12.1.3-1~bionic_amd64.deb

sudo dpkg -i wkhtmltox_0.12.1.3-1~bionic_amd64.deb

sudo apt-get install -f

sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin

sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin

Step-13:

Createodoo serverfilerun odoo service

nano /etc/init.d/odoo12

Odoo 12 installation on ubuntu

COPY PASTE THE BEOLWE CONTENT IN odoo12 file on terminal.

Makes the necessary changes for the Files like, DAEMON=(ODOO-BIN PATH); CONFIGFILE=(ODOO CONFIG FILE PATH) ETC.

#!/bin/sh

### BEGIN INIT INFO

# Provides:             odoo-server

# Required-Start:       $remote_fs $syslog

# Required-Stop:        $remote_fs $syslog

# Should-Start:         $network

# Should-Stop:          $network

# Default-Start:        2 3 4 5

# Default-Stop:         0 1 6

# Short-Description:    Complete Business Application software

# Description:          Odoo is a complete suite of business tools.

### END INIT INFO

PATH=/bin:/sbin:/usr/bin

DAEMON=/opt/odoo/odoo-bin

NAME=odoo-bin

DESC=odoo-bin

# Specify the user name (Default: odoo).

USER=odoo

# Specify an alternate config file (Default: /etc/odoo.conf).

CONFIGFILE=”/etc/odoo.conf”

# pidfile

PIDFILE=/var/run/$NAME.pid

Additional options that are passed to the Daemon.

DAEMON_OPTS=”-c $CONFIGFILE”

[ -x $DAEMON ] || exit 0

[ -f $CONFIGFILE ] || exit 0

checkpid() {

[ -f $PIDFILE ] || return 1

pid=`cat $PIDFILE`

[ -d /proc/$pid ] && return 0

return 1

}

case “${1}” in

start)

echo -n “Starting ${DESC}: ”

start-stop-daemon –start –quiet –pidfile ${PIDFILE} \

–chuid ${USER} –background –make-pidfile \

–exec ${DAEMON} — ${DAEMON_OPTS}

echo “${NAME}.”

;;

stop)

echo -n “Stopping ${DESC}: ”

start-stop-daemon –stop –quiet –pidfile ${PIDFILE} \

echo “${NAME}.”

;;

restart|force-reload)

echo -n “Restarting ${DESC}: ”

start-stop-daemon –stop –quiet –pidfile ${PIDFILE} \

–oknodo

sleep 1

start-stop-daemon –start –quiet –pidfile ${PIDFILE} \

–chuid ${USER} –background –make-pidfile \

–exec ${DAEMON} — ${DAEMON_OPTS}

echo “${NAME}.”

;;

*)

N=/etc/init.d/${NAME}

echo “Usage: ${NAME} {start|stop|restart|force-reload}”>&2

exit 1

;;

esac

exit 0

STEP-14:

Now Run Odoo Server from the opt/odoo folder by odoo-bin

cd opt/odoo

(By default the PORT is 8069)

./odoo-bin

odoo 12 install

if You want to Run on another port then

./odoo-bin –xmlrpc-port=5069 (Your PORT number-any)

Check the log on terminal that all python packages working properly or any python package(library( installation issue is there.If any lib issue then copy that sentance and paste in the Google to install the proper library for python.

The another method for run

You can run odoo service;

sudo su (root user)

etc/init.d/odoo12 start

There is options for odoo service

etc/init.d/odoo12 start/stop/restart

If there is anything related to the User permission, You can provide the proper User persmission.

To Go odoo user terminal

sudo su – odoo -s /bin/bash

Step-15:

Open Browser on and type :

localhost:8069

To check the Odoo log

tail -f /var/log/odoo/odoo-server.log

Step-16:

Find the Running Process for odoo and other

ps ax|grep odoo

image17.png

netstat -tlnp

How Globalteckz can help you with Odoo 12 Install & Implementation with Development ?

Out Team at Globalteckz are official Odoo partners and have been working with OpenERP (Odoo) since the release of version 5 and have successfully completed Implementation for OpenERP 6, 7, 8,9,10 as well version 11. We can offer you the cost effective Odoo help including as Odoo Installation, Odoo customization and 3rd party integration – You can contact our team on  [email protected] or simply filling up the Inquiry form

Our Articles related to Odoo 

Article Tags – install odoo 12, install odoo 12 on ubuntu, how to install odoo 12, odoo version 12 installation, odoo 12 installation