In this article, we will have explained the necessary steps to install and configure Odoo on Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with
sudo privileges. All the commands in this tutorial should be run as a non-root user.
Odoo is a most extensive open-source ERP that provides all business related application. It includes a wide range of applications such as CRM, e-Commerce, website builder, billing, accounting, manufacturing, warehouse, project management, inventory, and much more, all seamlessly integrated.
Install Odoo on Ubuntu 20.04
Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.
Step 2. Install Odoo dependencies.
Run the following command to install all required dependency:
Step 3. Creating a System User.
We’ll create a new system user and group with a home directory
/opt/meilana that will run the Odoo service:
Step 4. Install PostgreSQL.
Run the following command to install PostgreSQL on the Ubuntu system:
Then, create a PostgreSQL user with the same name as the previously created system user:
sudosu-postgres-c"createuser -s meilana"
Step 5. Install wkhtmltopdf.
Download and install the Wkhtmltopdf package. The recommended version is 0.12.5 and is available on the wkhtmltopdf download page, in the archive section:
Step 6. Install Odoo on Ubuntu system:
First, change to user “ramona”:
Then, clone the Odoo 14 source code from the GitHub repository:
gitclonehttps://www.github.com/odoo/odoo --depth 1 --branch 14.0 /opt/odoo14/odoo
Once the download is complete, create a new Python virtual environment for Odoo:
After that, install all required Python modules with pip3:
Once successful, deactivate the environment by typing:
Then, We’ll create a new directory that will hold the 3rd party addons:
In the next steps we create a configuration file with the following content:
Step 7. Creating Systemd Unit File Odoo.
Open a nano text editor and create a service unit file called
odoo14.service with the following content:
Finally, start the Odoo service and enabled it to start on boot by running:
Step 8. Accessing Odoo 14.
To access Odoo 14, go to the following URL and create a new database:
That’s all you need to do to install Odoo on Ubuntu 20.04 LTS Focal Fossa. I hope you find this quick tip helpful. For further reading on Odoo, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.