Install Odoo 13 in Ubuntu 18.04 LTS

Easy steps to install Odoo in Ubuntu

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
                        
sudo apt-get update && sudo apt-get upgrade

2. Install Prerequisite Dependencies

Install required packages to build Odoo dependencies like git, pip3 and other.

                            
sudo apt install git python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less
                        
sudo apt install git python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less

3. Install PostgreSQL and pgAdmin3

Odoo use PostgreSQL database so let's install PostgreSQL.

                            
sudo apt-get install postgresql -y
                        
sudo apt-get install postgresql -y

If you want GUI for PostgreSQL you can install pgAdmin3. (You can skip this)

                            
sudo apt-get install pgadmin3
                        
sudo apt-get install pgadmin3

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.

Note This user must be the same as your system user.  

The default superuser for PostgreSQL is called postgres. You may need to login as this user first.

                            
jigar@droggol:~$ sudo su postgres
password: XXXXXXXXXX
                        
jigar@droggol:~$ sudo su postgres password: XXXXXXXXXX

Now create PostgreSQL user jigar using the following command:

                            
postgres@droggol:/$ createuser jigar
Shall the new role be a superuser? (y/n) y
                        
postgres@droggol:/$ createuser jigar Shall the new role be a superuser? (y/n) y

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:

                            
postgres@droggol:/$ psql -l
                        
postgres@droggol:/$ psql -l

You can find the table template1, run the following command to use this table:

                            
postgres@droggol:/$ psql template1
                        
postgres@droggol:/$ psql template1

To apply access rights to the role jigar for the database which will be created from Odoo, use the following command:

                            
template1=# alter role jigar with password 'postgres';
ALTER ROLE
                        
template1=# alter role jigar with password 'postgres'; ALTER ROLE

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)
Odoo • A picture with a caption

6. Download Odoo Source

Navigate into directory where you want to download Odoo source code. You can download it from Github.

                            
jigar@droggol:~$ cd /home/jigar/odoo
jigar@droggol:~/odoo$ git clone https://www.github.com/odoo/odoo --depth 1 --branch 13.0 --single-branch
                        
jigar@droggol:~$ cd /home/jigar/odoo jigar@droggol:~/odoo$ git clone https://www.github.com/odoo/odoo --depth 1 --branch 13.0 --single-branch

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.

                            
cd /13.0
sudo pip3 install -r requirements.txt
                        
cd /13.0 sudo pip3 install -r requirements.txt

8. Start Odoo Server

                            
./odoo-bin
                        
./odoo-bin

9. Access Odoo

Go to your favourite web browser to access Odoo. Open URL http://localhost:8069 in browser.

Enjoy :)

6 things to check before implementing Odoo.
Here are a few things that you need to take care before start implementing Odoo.