How to Install Odoo on Ubuntu 18.04

Install Odoo on Ubuntu 18.04

In this article, we will have explained the necessary steps to install and configure Odoo on Ubuntu 18.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. Such as Accounting, CRM, Sales, Purchase, Project, Point of Sale, E-Commerce and many more.

Install Odoo on Ubuntu

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. Intsall Odoo dependencies.

 You have to install Git, Python 3 pip, and other required packages to build Odoo dependencies:

Step 3. Creating System User.

Create a system user that will run Odoo, named ramona with home directory /opt/ramona:

Step 4. Install PostgreSQL.

To install PostgreSQL run the following command:

Next, create a PostgreSQL user with the same name as the previously created system user:

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.

First, change to user “ramona”:

Next, clone the Odoo 13 source code from the GitHub repository:

Once the download is complete, create a new Python virtual environment for Odoo:

Install all required Python modules with pip3:

Once done, deactivate the environment by typing:

Then, We’ll create a new directory that will hold the 3rd party addons:

Next, Create a configuration file with the following content:

Step 7. Creating Systemd Unit File Odoo.

Open nano text editor and create a service unit file called odoo 13.service with the following content:

Start the Odoo service and enabled it to start on boot by running:

Step 8. Accessing Odoo.

To access Odoo 13, go to the following URL and create a new database:

That’s all you need to do to install Odoo on Ubuntu 18.04 LTS. I hope you find this quick tip helpful. If you have questions or suggestions, feel free to leave a comment below.