How to install Odoo 17.0 in Ubuntu
Odoo 17, most recent stable iteration of odoo presents a plethora of functionalities ranging from customer and product management to sales, inventory, accounting, project oversight, and order handling, thereby catering to vital aspects of business operations. Notably, Odoo 17 utilizes a PostgreSQL database to store its data, a component seam-lessly integrated during the installation process.
In this tutorial, we'll walk you through the process of setting up and configuring Odoo 17 on an Ubuntu 22.04 system.
Prerequisites: Before we begin, make sure you have the following:
- Ubuntu 22.04 OS and at least 2GB of RAM with Python version 3.10 or higher.
- A user account with 'sudo' privileges.
Note: It's advisable to perform these steps using a user with sudo privileges rather than the root user for security reasons.
Step1:
Update
Packages
Ensure your Ubuntu packages are up to date by running the following commands:
Step 2. Install Required Python Libraries
Install the necessary dependencies for Odoo 17 on Ubuntu 22.04 with the commands:
python3-pip: The Python package installer is needed to install Python dependencies.
libxml2-dev, libxslt-dev, libldap2-dev, libsasl2-dev, libssl-dev: These development libraries are required for certain Python packages used by Odoo.
build-essential: This package includes essential tools like gcc and make, which are necessary for compiling certain Python packages.
Step 3: Set up PostgreSQL:
PostgreSQL: Odoo uses PostgreSQL as its database backend, Ensure that you have PostgreSQL installed on your system.
Install PostgreSQL and its dependencies:
PostgreSQL will be automatically started after installation, check the status of the PostgreSQL service by running:
Step 4. Install NPM and CSS plugins
Step 5:
Install Wkhtmltopdf
Wkhtmltopdf:
Odoo uses Wkhtmltopdf for generating PDF reports. Odoo 17 typically
requires a specific version of Wkhtmltopdf, so check the
compatibility requirements.
Installing Wkhtmltopdf:
Step 6: Clone odoo-17 from github
Create and activate virtualenv:
Navigate to the directory where you want to create virtualenv, for example creating a virtual environment named ‘venv’:
Install Requirements.txt
for odoo:
Step 7: Prepare for Add-ons:
Step 8: Configure Odoo:
Navigate to the directory where you want to store the odoo.conf file. Here i have chosen, odoo.conf from debian folder,
Inside the odoo.conf file, you'll define various settings for your Odoo instance. Here's a basic example:
Step 9:Test the Installation
Visit
http://<your_domain_or_IP_address>:8069
in your web browser to verify that Odoo 17 is installed
correctly. You should see the Odoo 17 start page.
Once the server runs you need to create the database from Odoo database manager, and remember the email and password.
Congratulations! You've successfully installed Odoo 17 on Ubuntu 22.04.