---
# System prepended metadata

title: Install Odoo15 Ubuntu 22
tags: [Odoo]

---

###### tags: `Odoo`
# Install Odoo15 Ubuntu 22

```cmd!
sudo adduser --system --group --home=/opt/odoo --shell=/bin/bash odoo  ; sudo apt update -y && sudo apt upgrade -y && sudo apt install 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 -y && sudo npm install -g rtlcss && sudo apt install postgresql -y && sudo mkdir /var/log/odoo && sudo chown odoo:odoo /var/log/odoo && sudo chmod 777 /var/log/odoo && sudo mkdir /opt/odoo/d4e-common-def && sudo chown odoo:odoo /opt/odoo && sudo chmod 777 /opt/odoo && sudo chown odoo:odoo /opt/odoo/d4e-common-def && sudo chmod 777 /opt/odoo/d4e-common-def && wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb && sudo dpkg -i wkhtmltox_0.12.6.1-2.jammy_amd64.deb && sudo su - postgres -c "createuser -s odoo" && cd /opt/odoo && git clone https://github.com/odoo/odoo.git --depth 1 --branch 15.0 --single-branch odoo-15 && sudo chown -R odoo:odoo /opt/odoo/odoo-15 && cd /opt/odoo/odoo-15 && sudo mkdir /etc/odoo && sudo chown odoo:odoo /etc/odoo && sudo chmod 777 /etc/odoo && sudo chown odoo:odoo /etc/odoo/odoo-server.conf && sudo chmod 777 /etc/odoo/odoo-server.conf && sudo chmod 777 -R /opt/odoo
```
```cmd!
python3 -m venv venv
```
```cmd!
source venv/bin/activate
```
```cmd!
pip3 install wheel 
```
```cmd!
pip3 install -r requirements.txt
```
```cmd!
deactivate
```

```cmd!
sudo nano /etc/odoo/odoo-server.conf
```

```conf
[options]
db_user = odoo
addons_path = /opt/odoo/odoo-15/addons,/opt/odoo/d4e-common-def
logfile = /var/log/odoo/odoo-server.log
log_level  = debug
proxy_mode = True
workers = 3
```

```cmd!
sudo nano /etc/systemd/system/odoo.service
```
```conf
[Unit]
Description=Odoo 15.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-15/venv/bin/python3 /opt/odoo/odoo-15/odoo-bin -c /etc/odoo/odoo-server.conf
StandardOutput=journal+console
 
[Install]
WantedBy=multi-user.target
```

```cmd!
systemctl daemon-reload && systemctl enable --now odoo.service && systemctl status odoo.service
```
```cmd!
systemctl status odoo.service
```
```cmd!
systemctl restart odoo.service
```