This blog will demonstrate the procedure of installing Odoo 15 on Ubuntu 22.04. Let’s get started.
For the purpose of installing Odoo 15 on Ubuntu 22.04, follow the given instructions.
Step 1: Update system packages
First of all, hit “CTRL+ALT+T” and update the system packages:
All packages are updated:
Step 2: Install dependencies
In the next step, run the provided command for the installation of essential dependencies:
Wait for some minutes to let the installation complete:
After installing the mentioned packages, we will move ahead to install the database.
Step 3: PostgreSQL installation
PostgreSQL is utilized by the Odoo 15 users as backend database:
Step 4: Create PostgreSQL user
Write out the provided command for creating PostgreSQL user named “odoo15”:
“odoo15” user will be created within a few mini seconds:
Step 5: Create Odoo 15 system user
We will now create Odoo 15 system user:
After creating the system user, move ahead to the next step.
Step 6: Install libssl1.1
Next, install the libssl1.1 on your system. To do so, firstly, add the “impish-security-main” to the source list:
Then, install the “libssl1.1” package with the help of the given command:
Step 7: Download and install wkhtmltox
Next download the “wkhtmltox” package that comprises “wkhtmltopdf” tool used for rendering HTML into pdf:
Make the downloaded “wkhtmltox” deb package executable:
Install “wkhtmltox” by executing the following command in Ubuntu 22.04 terminal:
Step 8: Create symlink
Create a symlink for “wkhtmltox”:
Step 9: Check wkhtmltox version
Lastly, verify if the “wkhtmltox” installation is successful by checking its version:
Step 10: Switch to odoo15 user
Switch to odoo15 user using the “su” command:
Step 11: Download Odoo 15
For the purpose of downloading Odoo15, type the below-given command in Ubuntu 22.04 terminal:
Step 12: Move to odoo directory
Move to the “/opt/odoo” directory:
Step 13: Create and activate virtual environment
Next, create a virtual environment “myodoo15-venv”:
Then, activate the created “myodoo15-venv” virtual environment:
Step 14: Wheel installation
Before installing Odoo 15 dependencies, it is essential to have python module named “wheel” on your system:
Step 15: Install python modules
This step is about the installation of dependencies that are specified in the “odoo/requirements.txt” document:
Then deactivate the created environment.
Step 16: Deactivate virtual environment
Deactivate the “myodoo15-venv” virtual environment after installing the required Odoo 15 dependencies:
Step 15: Make directory for custom addons
We will now execute the provided command for creating a directory for custom addons:
Step 16: Logout as Odoo15 user
Next, log out as Odoo15 user using terminal:
Step 17: Create Odoo15 configuration file
Open “nano” editor for creating “odoo15.conf” file:
Add the following lines while specifying the “admin_passwd” according to your preferences and hit “CTRL+O” to save the content of Odoo 15 configuration file:
After doing so, make a log directory.
Step 18: Make log directory
Utilize the below-given command for creating a log directory:
Then, specify “odoo15” as the owner of the created log directory:
Step 19: Create Odoo15 service
In the next step, we will create a Odoo 15 systemd unit file using the “nano” editor:
Add the following lines in the opened file, specify user and group in the “Service” section, and hit “CTRL+O” to save the added content:
Description=Odoo15
Requires=postgresql.service
After=network.target postgresql.service
[Service]
Type=simple
SyslogIdentifier=odoo15
PermissionsStartOnly=true
User=odoo15
Group=odoo15
ExecStart=/opt/odoo15/myodoo15-venv/bin/python3 /opt/odoo15/odoo/odoo-bin -c >
StandardOutput=journal+console
[Install]
WantedBy=multi-user.target
Save the added content and move to the next step.
Step 20: Reload systemd daemon
After making the required changes, reload the systemd daemon:
Step 21: Enable Odoo15 service
Next, enable the Odoo15 service with the help of the following command:
Step 22: Check Odoo15 status
After enabling the Odoo15 service, check if it is running on your Ubuntu 22.04 system or not:
The given output indicates that odoo15 is currently active:
Step 23: Access Odoo15 on Browser
In order to access Odoo15, browse http://localhost:8069/ on your favorite browser:
In order to remove Odoo15 from Ubuntu 22.04, firstly remove the “/opt/odoo15” directory:
Then, execute the below-given command to remove the Odoo 15 server configuration file “odoo15-server.conf”:
In the next step, remove the Odoo15 configuration file “odoo15.conf” that is utilized for configuring the database:
Lastly, remove the “/etc/init.d/odoo15-server” directory that assists in starting Odoo15 service at system boot:
We have compiled the easiest method to install Odoo 15 on Ubuntu 22.04.
To install Odoo 15 on Ubuntu 22.04, firstly, install the required dependencies. Then, install and configure PostgreSQL Database, create a system user, and install wkhtmltox package. After that, install, configure Odoo15 and its dependencies, and access it on http://localhost:8069/ browser. This blog demonstrated the method of installing Odoo 15 on Ubuntu 22.04.
One of the most critical gaps in traditional Large Language Models (LLMs) is that they…
Canonical is continuously hiring new talent. Being a remote- first company, Canonical’s new joiners receive…
What is patching automation? With increasing numbers of vulnerabilities, there is a growing risk of…
Wouldn’t it be wonderful to wake up one day with a desire to explore AI…
Ubuntu and Ubuntu Pro supports Microsoft’s Azure Cobalt 100 Virtual Machines (VMs), powered by their…
Welcome to the Ubuntu Weekly Newsletter, Issue 870 for the week of December 8 –…