Introduction
Odoo is an open-source ERP (Enterprise Resource Planning) software suite that includes various business applications. This guide will walk you through the process of installing Odoo 16 on Debian 12.
Prerequisites
Before you begin, ensure you have:
- A Debian 12 server or desktop system
- Root or sudo privileges
Step 1: Install PostgreSQL
Odoo requires PostgreSQL as its database backend. Install PostgreSQL by running the following command:
sudo apt update
sudo apt install -y postgresql
Step 2: Create PostgreSQL User
Create a PostgreSQL user for Odoo:
sudo su - postgres
createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo
exit
Step 3: Install Odoo Dependencies
Install dependencies required by Odoo:
sudo apt install -y python3-pip python3-dev build-essential libxml2-dev libxslt1-dev zlib1g-dev libldap2-dev libsasl2-dev node-less libjpeg-dev gdebi libssl-dev
Step 4: Install Wkhtmltopdf
Odoo requires Wkhtmltopdf for PDF report generation. Download and install the Wkhtmltopdf package:
sudo apt install -y wget fontconfig fontconfig-config libfontconfig1 libxrender1 xfonts-75dpi xfonts-base
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb
sudo dpkg -i wkhtmltox_0.12.6-1.buster_amd64.deb
sudo apt install -f
Step 5: Install Odoo
Install Odoo using pip:
sudo pip3 install odoo
Step 6: Configure Odoo
Create a configuration file for Odoo:
sudo nano /etc/odoo.conf
Add the following configuration to the file:
[options]
admin_passwd = your_admin_password
db_host = False
db_port = False
db_user = odoo
db_password = your_odoo_db_password
addons_path = /usr/local/lib/python3.X/dist-packages/odoo/addons
Replace your_admin_password
and your_odoo_db_password
with your desired passwords.
Step 7: Start Odoo
Start Odoo using the following command:
odoo --config=/etc/odoo.conf
Odoo should now be running and accessible via your web browser at http://localhost:8069.
Conclusion
Congratulations! You have successfully installed Odoo 16 ERP software on Debian 12. You can now start configuring and using Odoo for your business needs.