Want to install Odoo in Ubuntu 18.04? this article help you to install in just few easy steps.
Open terminal.
1. Update and Upgrade APT
Update APT package list and upgrade package to latest version.
sudo apt-get update && sudo apt-get upgrade
2. Install Prerequisite Dependencies
Install required packages to build Odoo dependencies like git, pip3 and other.
3. Install PostgreSQL and pgAdmin3
Odoo use PostgreSQL database so let's install PostgreSQL.
If you want GUI for PostgreSQL you can install pgAdmin3. (You can skip this)
4. Configure PostgreSQL
When the installations of the required software are done, you must create a PostgreSQL user. Odoo will use this user to connect to PostgreSQL.
The default superuser for PostgreSQL is called postgres. You may need to login as this user first.
Now create PostgreSQL user jigar using the following command:
Make this new user a superuser. jigar is the new user created in PostgreSQL for Odoo. This user is the owner of all the tables created by Odoo.
Now check the list of tables created in PostgreSQL using following command:
You can find the table template1, run the following command to use this table:
To apply access rights to the role jigar for the database which will be created from Odoo, use the following command:
5. Configure pgAdmin3
(Skip this step if you have not installed pgAdmin3 in previous step)
Open pgAdmin3.
Goto File > Add Server. It open dialog to enter credentials.
Enter following details in dialog:
- Name: localhost
- Host: localhost
- Username: jigar (as per above postgres config)
- Password: postgres (as per above postgres config)
6. Download Odoo Source
Navigate into directory where you want to download Odoo source code. You can download it from Github.
7. Install Require Python Packages
After download source, go to source directory. Here you see requirement.txt file which contains python packages. Use pip3 to install Python packages.
8. Start Odoo Server
9. Access Odoo
Go to your favourite web browser to access Odoo. Open URL http://localhost:8069 in browser.
Enjoy :)