Introduction: Odoo, an open-source suite of integrated business applications, is renowned for its versatility and scalability. It encompasses modules for CRM, e-commerce, accounting, inventory management, and more, making it a comprehensive solution for businesses of all sizes. If you’re looking to deploy Odoo 17 on Ubuntu 22.04, this guide will walk you through the installation process step by step.
Prerequisites:
Before diving into the installation process, ensure you have the following prerequisites:
- A server or virtual machine running Ubuntu 22.04.
- SSH access to your Ubuntu server with sudo privileges.
- Basic familiarity with the Linux command line.
Commands
# apt install build-essential wget git python3.11-dev python3.11-venv \
libfreetype-dev libxml2-dev libzip-dev libsasl2-dev \
node-less libjpeg-dev zlib1g-dev libpq-dev \
libxslt1-dev libldap2-dev libtiff5-dev libopenjp2-7-dev libcap-dev
# /usr/sbin/adduser \
–system \
–shell /bin/bash \
–gecos ‘Odoo user’ \
–group \
–home /opt/odoo17 \
odoo17
# apt install postgresql
# su – postgres -c “createuser -s odoo17”
# apt install wkhtmltopdf
# su – odoo17
$ git clone https://www.github.com/odoo/odoo –depth 1 –branch 17.0 odoo17
$ python3.11 -m venv odoo17-venv
$ source odoo17-venv/bin/activate
pip3 install wheel setuptools pip –upgrade
pip3 install -r odoo17/requirements.txt
mkdir /opt/odoo17/odoo17/custom-addons
nano /etc/odoo17.conf
============================================================================
[options] admin_passwd = m0d1fyth15 db_host = False db_port = False db_user = odoo17 db_password = False addons_path = /opt/odoo17/odoo17/addons,/opt/odoo17/odoo17/custom-addons ==================================================================================
nano /etc/systemd/system/odoo17.service ==================================================================================
[Unit] Description=odoo17 Requires=postgresql.service After=network.target postgresql.service [Service] Type=simple SyslogIdentifier=odoo17 PermissionsStartOnly=true User=odoo17 Group=odoo17 ExecStart=/opt/odoo17/odoo17-venv/bin/python3 /opt/odoo17/odoo17/odoo-bin -c /etc/odoo17.conf StandardOutput=journal+console [Install] WantedBy=multi-user.target ===================================================================================
# systemctl daemon-reload # systemctl enable --now odoo17
# systemctl status odoo17