QUICK INQUIRY !
Quick Contact
[contact-form-7 404 "Not Found"]
Home Odoo 16 Download and Installation on Ubuntu

Odoo 16 Download and Installation on Ubuntu



 

A quick guide for Odoo 16 download and installation on Ubuntu server with complete steps helps you to install community edition or enterprise edition. Odoo ERP 16 version has been launched recently with new functions. Since its a is a web-based suite of open-source business management applications. The platform includes various business solutions, such as CRM, warehouse management, accounting, billing, website building, etc.

Odoo Community edition is available for free with limited features, but one can easily switch to the Enterprise edition as needed. The main benefit you get by installing Odoo version 16 is that you can easily understand the functions available and can compare the older version to finalize with your Odoo project. Further by Odoo download and installation guide you can also decide on migration to the latest version.

Odoo 16 comes This tutorial provides steps on installing Odoo 16 on Ubuntu 22.04 in a Python virtual environment.

Prerequisites for Odoo 16 Installation

  • Access to the command line/terminal with sudo permissions.
  • Access to a browser.
  • Git installed.
  • Pip for Python 3 installed.
  • NodeJS installed.

Install Odoo version 16 on Ubuntu

After meeting all the prerequisites, follow the steps below to install Odoo 16 on Ubuntu in a Python virtual environment.

Installing Odoo 16 in a virtual environment creates an isolated system and allows the testing of different versions on the same machine.

Step 1: Update the Repository

Open the terminal and update the apt repository:

sudo apt update

Wait for the update to finish before proceeding to the next step.

Step 2: Install Odoo Dependencies

Install Odoo dependencies with the following command:

sudo apt install -y build-essential wget python3-dev python3-venv python3-wheel libfreetype6-dev libxml2-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less libjpeg-dev zlib1g-dev libpq-dev libxslt1-dev libldap2-dev libtiff5-dev libjpeg8-dev libopenjp2-7-dev liblcms2-dev libwebp-dev libharfbuzz-dev libfribidi-dev libxcb1-dev

Make sure there are no typos to avoid missing packages.

01 odoo-install-dependencies-terminal-output

 

The installation fetches all additional dependencies necessary for Odoo installation.

Step 3: Create Odoo User

Running Odoo as a root user poses a security risk. Create a new system user, group, and home directory named Odoo:

sudo useradd -m -d /opt/odoo -U -r -s /bin/bash odoo

The username can be different if it matches the PostgreSQL user and the configuration file information.

Step 4: Install and Configure PostgreSQL

Odoo uses PostgreSQL as the database. Install PostgreSQL from the official Ubuntu repositories with:

sudo apt install postgresql

04 install-wkhtmltopdf-terminal-output

Press Y when prompted to continue. Once the installation finishes, create a Postgres user with the same name from the previous step:

sudo su - postgres -c "createuser -s odoo"

The command creates a user named odoo to manage the database.

Step 5: Install wkhtmltopdf

The wkhtmltopdf set of open source tools helps render HTML pages into PDFs and images for generating reports in various formats.

To download the installer, run:

sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb

03 wkhtmltopdf-download-terminal-output

The command fetches the Debian package. To install the package, run:

sudo apt install ./wkhtmltox_0.12.5-1.bionic_amd64.deb

Press Y when asked to continue the installation. Wait for the process to complete before continuing.

Step 6: Install and Configure Odoo

To install Odoo, follow the steps below:

  • Switch to the odoo user with the sudo su command:

sudo su - odoo

05 sudo-su-odoo-terminal-output

  • Clone the Odoo 16 source code from the Git repository:

git clone https://www.github.com/odoo/odoo --depth 1 --branch 16.0 /opt/odoo16/odoo

06 git-clone-odoo-terminal-output

  • Navigate to the odoo directory and create a Python virtual environment for Odoo:

cd /opt/odoo

python3 -m venv odoo-venv

  • Activate the environment with:

source odoo-venv/bin/activate

07 python-venv-odoo-create-and-activate-terminal-output

The environment name shows in the terminal before the user.

  • Install the following requirements for Odoo:

pip3 install wheel

08 pip3-install-wheel-terminal-output

pip3 install -r odoo/requirements.txt

09 pip3-install-odoo-requirements-terminal-output

Wait for the installation to complete.

  • After this, Odoo requires additional setup and configuration. Deactivate the environment with:

deactivate

  • Create a separate directory for custom addons:

mkdir /opt/odoo/odoo-custom-addons

This directory defines where Odoo searches for modules.

  • Switch back to the sudo user with:

exit

10 custom-odoo-addons-directory-terminal-output

  • Create the odoo.conf file using the nano text editor:

sudo nano /etc/odoo.conf

Paste the following contents into the odoo.conf file:

[options]

; Database operations password:

admin_passwd = PASSWORD

db_host = False

db_port = False

db_user = odoo

db_password = False

addons_path = /opt/odoo/odoo/addons,/opt/odoo/odoo-custom-addons

11 odoo.conf-file-contents

Change the admin_password field to a secure password for the database. The addons_path field contains the paths to Odoo module locations. Save and close the file.

  • Create the odoo.service file with:

sudo nano /etc/systemd/system/odoo.service

Paste the following contents into the file:

[Unit]

Description=Odoo

Requires=postgresql.service

After=network.target postgresql.service

 

[Service]

Type=simple

SyslogIdentifier=odoo

PermissionsStartOnly=true

User=odoo

Group=odoo

ExecStart=/opt/odoo/odoo-venv/bin/python3 /opt/odoo/odoo/odoo-bin -c /etc/odoo.conf

StandardOutput=journal+console

 

[Install]

WantedBy=multi-user.target

12 odoo.service-file-contents

The service connects to Odoo through the Python virtual environment and uses the configuration file from the previous step. Save the changes and close the file.

  • Update the service list:

sudo systemctl daemon-reload

The Odoo service is now available.

Step 7: Start and Test Odoo

To start and test Odoo, do the following:

  1. Enable the Odoo service on system startup:

sudo systemctl enable --now odoo

  1. Check the service status with:

sudo systemctl status odoo

13 sudo-systemctl-status-odoo-active-running-terminal

The status shows as active (running).

  1. The journalctl file contains all the information about the running service:

sudo journalctl -u odoo

Use this file to check for any potential errors.

  1. Lastly, access Odoo from the browser on localhost port 8069:

http://localhost:8069

14 odoo-localhost-landing-page

The page shows the Odoo initial setup. Use the admin_password from the /etc/odoo.conf file as the master password.

Step 8: Enable Multiprocessing (Optional)

Odoo works in multithreading mode by default. Change the server to the multiprocessing mode before deployment to better use system resources and ensure stability.

The number of CPUs helps approximate the number of workers:

  • Maximum workers = (CPUs * 2) + 1. For 4 CPUs, the system would have a maximum of 9 workers.
  • One worker serves around six concurrent users theoretically. For 24 simultaneous users, the system requires at least four workers.
  • A cron worker requires one CPU.

Therefore, a system with 4 CPUs and 24 concurrent users needs at least six workers, plus an additional cron worker.

The number of workers and RAM distribution determine the total RAM Odoo needs:

  • Total RAM = Workers * ((Light worker ratio * Light worker RAM) + (Heavy worker ratio * Heavy worker RAM))

If there are around 80% light workers that use 100GB RAM and 20% heavy workers that use 1GB RAM, the calculation is:

Total RAM = 7 * ((100*0.8)+(1024*0.2)) = 1993.6

Odoo requires a total of 2GB RAM. Add the information to the /etc/odoo.conf file:

[options]

limit_memory_hard = 2684354560

limit_memory_soft = 2147483648

limit_request = 8192

limit_time_cpu = 600

limit_time_real = 1200

max_cron_threads = 1

workers = 6

To apply the changes, restart the Odoo service:

sudo systemctl restart odoo

The remaining system resources are available for the PostgreSQL database and any other services running on the system.

Step 9: Change Port Number (Optional)

By default, Odoo listens on port 8069. Changing the default port number is a good security practice.

Add the following lines to the /etc/odoo.conf file to have Odoo listen only on 127.0.0.1 port 1111:

xmlrpc_interface = 127.0.0.1

netrpc_interface = 127.0.0.1

xmlrpc_port = 1111

Restart the Odoo service to apply the changes:

sudo systemctl restart odoo

The changes apply immediately.

Conclusion towards Installation

After following the steps in this guide, you should have Odoo 16 on installed Ubuntu. The system is in a Python virtual environment, making it easy to test multiple versions before deploying.

Extra addons Odoo 16 provides you with:

Odoo 16 Provides you with various functionalities compare to the older version of Odoo ERP software one of the major reason through which the Odoo 16 official release initiated was “Speed” This latest version is very fast and you don’t need to await for loading screen. In the next blog post we will be covering Odoo functionalites that are newly added in this latest version of the software. Odoo is one of the largest selling ERP software that offers a Paid and Community version to its user. Implementing any ERP software is time consuming and require very powerful planning – Since Odoo is Modular in nature – there are more than 10K + modules you can choose from to implement in your business processes.

Globalteckz – Certified Odoo team and Official Odoo Partners

Globalteckz is one of the leading Odoo Partners and has been working and partnered with Odoo since 2013 and has contributed more than 100+ apps for various industries. Our team ensure best implementation method in order to make each project successful. We have already inititated 2 Projects for Odoo 16 development for a furniture based company in Mumbai and a Plastic Manufacturing Unit based in outskirts of Mumbai with a huge factory. Some of our services for Odoo include Implementation, development, customization, training & Odoo support. Our team experience in delivering excellent projects with extreme level module customizations and integration with 3rd party apps.

We have experience working on older version starting from version 6 till the latest version 16 – Till date we have implemented more than 150+ Odoo projects for our clients across the globe ranging from small to large Odoo implementations handling verticals such as Manufacturing, Trading, e-commerce, medical, and other industry-specific modules development. Last year our team worked on 45+ version 15 Implementations ranging from SME to large projects.

 

Based on our experience with Odoo development we have crafted a proven 10 steps Process for implementing Odoo ERP at a 100% successful rate.

 

Odoo implementation methodology

 

We Follow Agile development method preferable as well as waterfall software development method based on the project criticality to ensure smooth phases are rolled out.

A Note On Various Odoo version

Various versions of Odoo available such as Community, Enterprise Edition which further provides you with options to install odoo on your own premises (own server), Odoo.sh & Online to suit small to mid-sized companies’ needs. Odoo Implementation & Odoo Development helps you to enhance your business processes and productivity of your Organisation.

 

A high level of extra addons Odoo 16 offers you with:

Odoo 16 offers you with various extra functions compared to the older version of Odoo which released in prior years. Odoo 16 installation helps you with many benefits which we have covered in the following blog post. Odoo ERP is one of the largest selling ERP software that offers a Paid and Community version to its user. Implementing Odoo ERP software is quick to compare to other software available in the market. Odoo being a web-based ERP helps organizations with powerful module capabilities that one could look into ERP software.

official odoo partners - globalteckz

Globalteckz – Certified Odoo team and Official Odoo Partners

Globalteckz is working with odoo ERP software since 2013 and has contributed more than 100+ apps for various industries. At Globalteckz we offer our clients the best ERP implementation and e-commerce solution. Some of our services for Odoo include Implementation, development, customization, training & Odoo support. Our team experience in delivering excellent projects with extreme level module customizations and integration with 3rd party apps.

We have experience working on older version starting from version 6 till the latest version 16 – Till date we have implemented more than 100+ Odoo projects for our clients across the globe ranging from small to large Odoo implementations handling verticals such as Manufacturing, Trading, e-commerce, medical, and other industry-specific modules development.

Based on our experience with Odoo development we have crafted a  simple 10 steps Process for implementing Odoo ERP at a 100% successful rate.

odoo implementation methodology

We Follow Agile development method preferrable as well as waterfall software development method based on the project criticality to ensure smooth phases are rolled out.

Read more articles related to Odoo ERP Software:

 

Facebook Comments

Don’t miss these tips!