
Odoo is an open-source, self-hosted ERP business suite with modules for accounting, CRM, sales, purchasing, Point of Sale, E-Commerce, project management, inventory, and more. This guide explains how to install Odoo on Ubuntu 20.04.
Connect to your server as the non-root example_user account via SSH.
Update the system packages.
Install Git.
Install Pip.
Install other required dependencies.
Create a new odoo user.
Download and add PostgreSQL Repositories.
Install PostgreSQL.
Start the database server.
Enable the database server to start automatically on system boot.
Change the default PostgreSQL password.
Switch to the postgres user.
Create a database user named odoo.
Go to the PostgreSQL interactive shell.
Give the database user odoo permission to create databases.
Exit the interactive shell.
Return to the non-root example_user account.
Wkhtmltopdf is a group of open-source command-line tools for rendering HTML pages into PDF and other image formats. It enables Odoo to print PDF reports.
Download Wkhtmltopdf from GitHub.
Install Wkhtmltopdf.
At the time of this writing, Odoo 14 is the latest version.
Create a directory for Odoo and set the owner to the Odoo user.
Switch to the odoo user account.
Clone the Odoo 14 source code from GitHub to /opt/odoo/odoo directory.
Create a new Python virtual environment for Odoo.
Activate the virtual environment.
Install all required Python modules with pip3.
Deactivate the environment.
Create a new directory for 3rd party add-ons.
Switch back to your non-root example_user account.
Create a configuration file.
Add the following code to the file. Change StrongMasterPassword to a unique password.
Close and save the file.
Create a service unit file called odoo.service.
Add the following code to the file. Close and save the file.
Reload system daemon for changes to take effect.
Start the Odoo service.
Enable the service to start on system boot.
Check the service status.
To access the Odoo web interface, navigate to your server's IP address at port 8069 in your web browser. For example, http://192.0.2.11:8069. You should see the database setup screen:
/etc/odoo.conf for the Master Password field.You have installed Odoo. You can now access the Dashboard and configure it to begin managing your business.
To learn more about Odoo, go to the official documentation page.
0 Comments
Be the first to comment and share your perspective with the community.