How To Install Odoo 16 in
Ubuntu 20.4
Ubuntu is a popular and stable Linux-based operating system that
provides a secure platform for running Odoo. Installing Odoo 16 on
Ubuntu 20.4 involves a series of steps including updating the system,
installing required dependencies, setting up PostgreSQL, cloning the
Odoo 16 source code, creating a configuration file, creating a systemd
service file, and starting the Odoo 16 service.
1.Before installing odoo 16 we must ensure that our System
is Updated and Upgraded.
1.1. Update the System : sudo apt-get update
1.2. Upgrade the system : sudo apt-get upgrade
2. Odoo 16 Requires Python 3.8 and Postgres for the Database
Management System.
2.1. Install Python3 : sudo apt-get install -y
2.2. To Install necessary Packages for Python3:
sudo apt-get install python-dev python3-dev build-essential libjpeg-
dev libpq-dev libjpeg8-dev libxml2-dev libssl-dev libffi-dev
libmysqlclient-dev libxslt1-dev zlib1g-dev libsas
3. Install the 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 -y node-less
4 . Install the Wkhtmltopdf
If we require to print reports that are generated in odoo to install
Wkhtmltopdf.
● sudo wget
https://github.com/wkhtmltopdf/wkhtmltopdf/release/download/0.12.5/
wkhtmltox_0.12.5-1.bionic_amd64.deb
● sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb
● sudo apt install -f
5. Install PostgreSQL.
● sudo apt-get install postgresql
6. Create a Database User Role for handling Odoo
Databases.
● sudo su - postgres
● createuser –createdb –username postgres –no-createrole –no-
superuser –pwprompt odoo16
7.Make the Defined User a Superuser
● psql
● ALTER USER odoo16 WITH SUPERUSER;
● q
● exit
8. Download Odoo 16 Source Code
8.1. We can download Odoo 16 community source code directly from Odoo’s Github’s
repository.
8.2. Otherwise ,We can clone it from git. For that we have to install git.
For Cloning,we use this commands,
● sudo apt-get install git
● Git clone https://www.github.com/odoo/odoo –depth 1 –branch 16.0 –
single-branch odoo16
Installing Source Code Directly From Git
Check our company website
for related blogs and Odoo book.
Check our YouTube channel for
functional and technical videos in Odoo.

How To Install Odoo 16 in Ubuntu 20.4

  • 1.
    How To InstallOdoo 16 in Ubuntu 20.4
  • 2.
    Ubuntu is apopular and stable Linux-based operating system that provides a secure platform for running Odoo. Installing Odoo 16 on Ubuntu 20.4 involves a series of steps including updating the system, installing required dependencies, setting up PostgreSQL, cloning the Odoo 16 source code, creating a configuration file, creating a systemd service file, and starting the Odoo 16 service.
  • 3.
    1.Before installing odoo16 we must ensure that our System is Updated and Upgraded. 1.1. Update the System : sudo apt-get update 1.2. Upgrade the system : sudo apt-get upgrade
  • 6.
    2. Odoo 16Requires Python 3.8 and Postgres for the Database Management System. 2.1. Install Python3 : sudo apt-get install -y 2.2. To Install necessary Packages for Python3: sudo apt-get install python-dev python3-dev build-essential libjpeg- dev libpq-dev libjpeg8-dev libxml2-dev libssl-dev libffi-dev libmysqlclient-dev libxslt1-dev zlib1g-dev libsas
  • 7.
    3. Install theWeb 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 -y node-less
  • 8.
    4 . Installthe Wkhtmltopdf If we require to print reports that are generated in odoo to install Wkhtmltopdf. ● sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/release/download/0.12.5/ wkhtmltox_0.12.5-1.bionic_amd64.deb ● sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb ● sudo apt install -f
  • 9.
    5. Install PostgreSQL. ●sudo apt-get install postgresql
  • 10.
    6. Create aDatabase User Role for handling Odoo Databases. ● sudo su - postgres ● createuser –createdb –username postgres –no-createrole –no- superuser –pwprompt odoo16
  • 11.
    7.Make the DefinedUser a Superuser ● psql ● ALTER USER odoo16 WITH SUPERUSER; ● q ● exit
  • 12.
    8. Download Odoo16 Source Code 8.1. We can download Odoo 16 community source code directly from Odoo’s Github’s repository. 8.2. Otherwise ,We can clone it from git. For that we have to install git. For Cloning,we use this commands, ● sudo apt-get install git ● Git clone https://www.github.com/odoo/odoo –depth 1 –branch 16.0 – single-branch odoo16
  • 13.
    Installing Source CodeDirectly From Git
  • 14.
    Check our companywebsite for related blogs and Odoo book. Check our YouTube channel for functional and technical videos in Odoo.