• Welcome to Odoo Professional Consulting Agency


How to Install Odoo 13 in Ubuntu 18.04 ?

How to Install Odoo 13 in Ubuntu 18.04 ?

There are several ways to install Odoo depending on the required use case. The easiest and quickest way to install Odoo is by using their official APT repositories.If you want to have more flexibility such as running multiple Odoo versions on the same system then you can either use docker and docker compose or install Odoo in a virtual environment.
This guide covers the steps necessary for installing and configuring Odoo for production using Git source and Python virtual environment on an Ubuntu 18.04 system.

To install Odoo 13 on Ubuntu 18.04 you just follow the below steps.

Step 1 : Update Server

sudo add-apt-repository universe

sudo apt-get update

sudo apt-get upgrade -y

Step 2 : Create Odoo User in Ubuntu

sudo adduser --system --quiet --shell=/bin/bash --home=/home/odoo --gecos 'ODOO' --group odoo

Step 3 : Install PostgreSQL Server

sudo apt-get install postgresql -y

Step 4 : Create odoo user for postgreSQL

sudo su - postgres -c "createuser -s odoo" 2> /dev/null || true

Step 5 : Install Wkhtmltopdf


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

Differences Between Odoo 13 Community and Enterprise

Step 6: Install Python Dependencies

sudo apt-get install python3 python3-pip python3-suds -y

sudo apt-get install wget git bzr python-pip gdebi-core -y

sudo apt-get install libxml2-dev libxslt1-dev zlib1g-dev -y

sudo apt-get install libsasl2-dev libldap2-dev libssl-dev -y

sudo apt-get install python-pypdf2 python-dateutil python-feedparser python-ldap python-libxslt1 python-lxml python-mako python-openid python-psycopg2 python-babel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi python-docutils python-psutil python-mock python-unittest2 python-jinja2 python-pypdf python-decorator python-requests python-passlib python-pil -y

Step 7 : Install Python PIP Dependencies

sudo pip3 install Babel==2.3.4  chardet==3.0.4 decorator==4.0.10  docutils==0.12 ebaysdk==2.1.5 feedparser==5.2.1 gevent==1.3.4  greenlet==0.4.13 html2text==2016.9.19 Jinja2==2.10.1 libsass==0.12.3  lxml==4.2.3 Mako==1.0.4 MarkupSafe==0.23 mock==2.0.0 num2words==0.5.6  ofxparse==0.16 passlib==1.6.5 Pillow==4.0.0 polib==1.1.0 psutil==4.3.1 psycopg2==  pydot==1.2.3 pyparsing==2.1.10 PyPDF2==1.26.0 pyserial==3.1.1 python-dateutil==2.5.3 pytz==2016.7  pyusb==1.0.0 qrcode==5.3 reportlab==3.3.0 requests==2.20.0 zeep==3.1.0 vatnumber==1.2 vobject==0.9.3  Werkzeug==0.14.1 XlsxWriter==0.9.3 xlwt==1.3.* xlrd==1.0.0

Step 8 : Install other required packages

sudo apt-get install node-clean-css -y

sudo apt-get install node-less -y

sudo apt-get install python-gevent -y

Step 9 : Create Log directory

sudo mkdir /var/log/odoo

sudo chown odoo:odoo /var/log/odoo

Step 10 :Install ODOO

sudo apt-get install git

sudo git clone --depth 1 --branch 13.0 https://www.github.com/odoo/odoo-server

Step 11 : Setting permissions on home folder

sudo chown -R odoo:odoo /odoo/*

Step 12 : Create server config file

sudo touch /etc/odoo-server.conf

sudo su root -c "printf '[options] \n; This is the password that allows database operations:\n' >> /etc/odoo-server.conf"

sudo su root -c "printf 'admin_passwd = admin\n' >> /etc/odoo-server.conf"

sudo su root -c "printf 'xmlrpc_port = 8069\n' >> /etc/odoo-server.conf"

sudo su root -c "printf 'logfile = /var/log/odoo/odoo-server.log\n' >> /etc/odoo-server.conf"

sudo su root -c "printf 'addons_path=/odoo/odoo-server/addons\n' >> /etc/odoo-server.conf"

sudo chown odoo:odoo /etc/odoo-server.conf

sudo chmod 640 /etc/odoo-server.conf

Step 13 : Now Start Odoo

cd /odoo/odoo-server 

./odoo-bin -c /etc/odoo-server.conf 

Your odoo instance is up and running. 

Go to browser and access your odoo at localhost:8069


Step 13 : Want to Start in Cloud ? Follow below step

If you have any questions, do not hesitate to contact us at info@candidroot.com


Get In Touch With Us 
Odoo • A picture with a caption
There are no comments for now.