How To Install Odoo 16 on Ubuntu 22.04

Odoo is an open source software used as business purposes like crm, invoice, ecommerce, billing, accounting, project management and inventory management and more. Now I want to share how to install Odoo 16 on Ubuntu 22.04 server.

####################################

Operating System:

 Ubuntu22.04 LTS

IP Address :

 10.66.10.8

RAM :

 2GB

Disk :

 50GB

Service :

 Odoo

Host Name :

 odoo.technologyrss.local
####################################

Step : Must be server update and upgrade then run some dependency package.

root@odoo:~# lsb_release -a && ip r
root@odoo:~# apt update && sudo apt upgrade
root@odoo:~# sudo apt install -y git wget nodejs npm python3 build-essential libzip-dev python3-dev libxslt1-dev python3-pip libldap2-dev python3-wheel libsasl2-dev python3-venv python3-setuptools node-less libjpeg-dev xfonts-75dpi xfonts-base libpq-dev libffi-dev fontconfig
Sponsored

Install pdf generator package.

root@odoo:~# sudo npm install -g rtlcss
root@odoo:~# wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb
root@odoo:~# sudo dpkg -i wkhtmltox_0.12.6.1-2.jammy_amd64.deb

Step : Add user and install database postgresql.

root@odoo:~# sudo adduser --system --group --home=/opt/odoo --shell=/bin/bash odoo
root@odoo:~# sudo apt install postgresql -y
root@odoo:~# service postgresql start
root@odoo:~# service postgresql status
root@odoo:~# sudo su - postgres -c "createuser -s odoo"
root@odoo:~# cd /opt/odoo

Download odoo latest branch from below link.

root@odoo:/opt/odoo# git clone https://github.com/odoo/odoo.git --depth 1 --branch 16.0 --single-branch odoo-server

Setup permission and going to server location folder.

root@odoo:~# sudo chown -R odoo:odoo /opt/odoo/odoo-server
root@odoo:~# cd /opt/odoo/odoo-server

Active venv terminal

root@odoo:/opt/odoo/odoo-server# python3 -m venv venv
root@odoo:/opt/odoo/odoo-server# source venv/bin/activate
(venv) root@odoo:/opt/odoo/odoo-server# pip3 install wheel

Step : Install requirements.txt file.

(venv) root@odoo:/opt/odoo-odoo-server# pip3 install -r requirements.txt

Then exit venv terminal using below command.

(venv) root@odoo:/opt/odoo/odoo-server# deactivate

Setup odoo user permission.

Sponsored
root@odoo:~# sudo mkdir /var/log/odoo
root@odoo:~# sudo chown odoo:odoo /var/log/odoo
root@odoo:~# sudo chmod 777 /var/log/odoo

Step : Create odoo server conf file.

root@odoo:~# sudo nano /etc/odoo-server.conf

Then insert below all lines into this file. This file contain odoo master password its needed when create database from browser.

[options]
admin_passwd = P@ss$123
db_user = odoo
addons_path = /opt/odoo/odoo-server/addons
logfile = /var/log/odoo/odoo-server.log
log_level  = debug

Setup file user permission.

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

Create odoo service file.

root@odoo:~# sudo nano /etc/systemd/system/odoo.service

Then insert below all lines into this file.

[Unit]
Description=Odoo 16.0 Service
Requires=postgresql.service
After=network.target postgresql.service
 
[Service]
Type=simple
SyslogIdentifier=odoo
PermissionsStartOnly=true
User=odoo
Group=odoo
ExecStart=/opt/odoo/odoo-server/venv/bin/python3 /opt/odoo/odoo-server/odoo-bin -c /etc/odoo-server.conf
StandardOutput=journal+console
 
[Install]
WantedBy=multi-user.target

Now reload deamon.

root@odoo:~# sudo systemctl daemon-reload
root@odoo:~# sudo systemctl enable --now odoo.service
root@odoo:~# sudo systemctl status odoo.service

Now going to your server ip with port then create database and import demo data.

http://10.66.10.8:8069 See as like below image, Now input some info like master password, database name, email, account password, phone number, country etc. Then click check mark Demo data, then click Create database and wait 1 min for installation process done.

When installation process done then coming login page as like below.

If needed more help so please see my YouTube channel video for more details.

The post How To Install Odoo 16 on Ubuntu 22.04 appeared first on TechnologyRSS.

Ubuntu Server Admin

Recent Posts

Canonical Releases Ubuntu 25.04 Plucky Puffin

The latest interim release of Ubuntu introduces “devpacks” for popular frameworks like Spring, along with…

2 days ago

Ubuntu 25.04 (Plucky Puffin) Released

Ubuntu 25.04, codenamed “Plucky Puffin”, is here. This release continues Ubuntu’s proud tradition of integrating…

3 days ago

Extended Security Maintenance for Ubuntu 20.04 (Focal Fossa) begins May 29, 2025

Ubuntu released its 20.04 (Focal Fossa) release 5 years ago, on March 23, 2020. As…

3 days ago

Ubuntu 20.04 LTS End Of Life – activate ESM to keep your fleet of devices secure and operational

Focal Fossa will reach the End of Standard Support in May 2025, also known as…

4 days ago

Ubuntu MATE 25.04 Release Notes

Ubuntu MATE 25.04 is ready to soar! 🪽 Celebrating our 10th anniversary as an official…

5 days ago

Ubuntu Weekly Newsletter Issue 887

Welcome to the Ubuntu Weekly Newsletter, Issue 887 for the week of April 6 –…

6 days ago