How to install odoo 16 in Ubuntu
You
need first update and upgrate the packages for ubuntu:
Python: Odoo is written in Python, so you need to have Python installed on your system. Odoo 16 supports Python 3.x versions, check if it is installed in ubuntu.
Install Dependencies: Various Python libraries and development tools are required for Odoo to run smoothly, Some of the common ones include:
python3-pip: The Python package installer is needed to install Python dependencies.
libxml2-dev, libxslt-dev, libldap2-dev, libsasl2-dev, libssl-dev: These development libraries are required for certain Python packages used by Odoo.
build-essential: This package includes essential tools like gcc and make, which are necessary for compiling certain Python packages.
Node.js and Less: Odoo's web client requires Node.js and Less for asset management and compilation. Install Node.js and Less to ensure that the web client functions properly, if you want to use it.
You can install Node.js using a package manager like apt on Ubuntu:
You can install Less using npm, which comes bundled with Node.js:
PostgreSQL: Odoo uses PostgreSQL as its database backend, Ensure that you have PostgreSQL installed on your system.
Install PostgreSQL and its dependencies:
PostgreSQL will be automatically started after installation, check the status of the PostgreSQL service by running:
Create a PostgreSQL User:
Creates a PostgreSQL user named odoo with superuser privileges.
Create a System User for Odoo:
Create a system user for running the Odoo service.
Wkhtmltopdf:
Odoo uses Wkhtmltopdf for generating PDF reports. Odoo 16 typically
requires a specific version of Wkhtmltopdf, so check the
compatibility requirements.
Download Wkhtmltopdf for odoo 16 from here:
https://github.com/odoo/odoo/wiki/Wkhtmltopdf
According to supported version for os, for example using commnad:
Installing Wkhtmltopdf:
Clone odoo-16 from github:
Create virtualenv:
Navigate to the directory where you want to create virtualenv, for example creating a virtual environment named ‘venv’:
Activate virtualenv:
Install Requirements.txt for odoo:
Setting up Conf file:
Navigate to the directory where you want to store the odoo.conf file. Here i have chosen, odoo.conf from debian folder,
Inside the odoo.conf file, you'll define various settings for your Odoo instance. Here's a basic example:
Run odoo server using odoo conf command, within odoo directory:
this should be executed from the Odoo project directory after activating the virtual environment.
Ones the server runs you need to create the database from Odoo database manager, and remember the email and password.