Odoo is an open-source and Enterprise version modular software to manage business processes, including various modules like CRM, Sales, Purchase, Manufacturing, Inventory Management, Project Management, HRMS, and other features that can help to manage any business. Odoo uses the PostgreSQL database management system to store the data.
This blog post will give you a step-by-step guide to installing Odoo 18 in Ubuntu, which covers the latest Python environment, PostgreSQL service, and Odoo service configuration.
Step 1: Update Your System
First things first, ensure your system is up to date. Open the terminal and type the following commands:
sudo apt update
sudo apt upgrade
Step 2: Install Python Dependencies
Odoo depends on Python packages, so you need to install them before proceeding by entering the following into your terminal:
sudo apt install python3-dev python3-pip python3-venv python3-wheel build-essential -y
Step 3: Create a System User
For security reasons, it’s preferable to run Odoo under a new system user. To create a new system user and group for Odoo, execute:
sudo adduser --system --home=/opt/odoo --group odoo
Step 4: Install PostgreSQL Database Server
Now you have to install the PostgreSQL Database Server. To install PostgreSQL, input the following command:
sudo apt install postgresql -y
Next, you have to create a PostgreSQL user. Keep the same name as your system user:
sudo su - postgres -c "createuser -s odoo"
Step 5: Download & Install Odoo
Now it’s time to get Odoo. Switch to the Odoo user and download the source code from the Odoo GitHub repository.
sudo su - odoo -s /bin/bash
wget https://github.com/odoo/odoo/archive/18.0.tar.gz
Extract the downloaded file and move it to the Odoo directory.
tar xvf 18.0.tar.gz
mv odoo-18.0/* ./
Step 6: Install Required Python Packages
To install the Python packages required by Odoo, you can use pip3:
pip3 install -r requirements.txt
Step 7: Configure Odoo
Now it's time to configure Odoo. Use the nano editor to open a new Odoo configuration file:
nano ~/odoo.conf
Then you can fill it out as shown here, with your own preferences:
[options]
; This is the password that allows database operations:
admin_passwd = admin
db_host = False
db_port = False
db_user = odoo
db_password = False
addons_path = /opt/odoo/addons
logfile = /var/log/odoo/odoo.log
Step 8: Start Your Odoo Server
Once all the above steps are done, you can start your Odoo server by running:
./odoo-bin -c ~/odoo.conf
Congratulations, you have successfully installed Odoo 18 on your Ubuntu 24.04 LTS server!
Conclusion
With this step-by-step guide, you can easily install Odoo in your Ubuntu system or server, and you can navigate the process smoothly and start using Odoo features for your business.
If you get stuck during installation, then you can connect to our technical support team.
Top comments (0)