• Welcome to Odoo Professional Consulting Agency
How To Install Odoo 15 On Ubuntu 20.04 LTS ?

How To Install Odoo 15 On Ubuntu 20.04 LTS ?

Steps To Install Odoo 15 On Ubuntu 20.04 


Odoo is the most popular all-in-one business software in the world.To Install Odoo 15 on Ubuntu 20.04 you just need to follow the below steps.

There are many ways to install Odoo depending on the requirements and the easy and quick way to install Odoo by using APT repositories.

If you want to work with running multiple Odoo versions on the same system then you can either use docker compose or docker Install Odoo in a virtual environment.

This blog is to provide steps for installation and configuration of Odoo for production environment using Git source and Python environment on an Ubuntu 20.04 system.

Odoo Installation For Free !!


To install Odoo 15 on Ubuntu 20.04 LTS you just follow the below steps.

Step 1 : Update Server

sudo apt-get update                    

sudo apt-get update


sudo apt-get upgrade -y

sudo apt-get upgrade -y

Step 2 : Create Odoo User in Ubuntu

                        
sudo adduser -system -home=/opt/odoo -group odoo
                    

sudo adduser -system -home=/opt/odoo -group odoo

Step 3 : Install PostgreSQL Server

                        
sudo apt-get install postgresql -y
                    

sudo apt-get install postgresql -y

Step 4 : Create Odoo user for postgreSQL

                        
sudo su - postgres -c "createuser -s odoo" 2> /dev/null || true
                    

sudo su - postgres -c "createuser -s odoo" 2> /dev/null || true

Step 5 : Install Python Dependencies

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

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

Get Free Installation Support


Step 6 : Install Python PIP Dependencies

                        
sudo apt-get install libpq-dev python-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libffi-dev
                    

sudo apt-get install libpq-dev python-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libffi-dev

Step 7 : Install other required packages

                        
sudo apt-get install nodejs npm -y
                    

sudo apt-get install nodejs npm -y

                        
sudo npm install -g rtlcss
                    

sudo npm install -g rtlcss

Step 8 : Install Wkhtmltopdf

                        
sudo apt-get install xfonts-75dpi
                    

sudo apt-get install xfonts-75dpi

                        
sudo wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb
                    

sudo wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb

                        
sudo dpkg -i wkhtmltox_0.12.6-1.bionic_amd64.deb
                    

sudo dpkg -i wkhtmltox_0.12.6-1.bionic_amd64.deb

                        
sudo cp /usr/local/bin/wkhtmltoimage  /usr/bin/wkhtmltoimage
                    

sudo cp /usr/local/bin/wkhtmltoimage /usr/bin/wkhtmltoimage

                        
sudo cp /usr/local/bin/wkhtmltopdf  /usr/bin/wkhtmltopdf

                    

sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf

Step 9 : Create Log directory

                        
sudo mkdir /var/log/odoo
                    

sudo mkdir /var/log/odoo

                        
 sudo chown odoo:odoo /var/log/odoo
                    

sudo chown odoo:odoo /var/log/odoo

Step 10 :Install Odoo

                        
sudo apt-get install git
                    

sudo apt-get install git

                        
sudo git clone --depth 1 --branch 15.0 https://www.github.com/odoo/odoo /odoo/odoo-server
                    

sudo git clone --depth 1 --branch 15.0 https://www.github.com/odoo/odoo /odoo/odoo-server

Step 11 : Setting permissions on home folder

                        
sudo chown -R odoo:odoo /odoo/*
                    

sudo chown -R odoo:odoo /odoo/*

Step 12 : Create server config file

                        
sudo touch /etc/odoo-server.conf
                    

sudo touch /etc/odoo-server.conf

                        
sudo su root -c "printf '[options] \n; This is the password that allows database operations:\n' >> /etc/odoo-server.conf"
                    

sudo su root -c "printf '[options] \n; This is the password that allows database operations:\n' >> /etc/odoo-server.conf"

                        
sudo su root -c "printf 'admin_passwd = admin\n' >> /etc/odoo-server.conf"
                    

sudo su root -c "printf 'admin_passwd = admin\n' >> /etc/odoo-server.conf"

                        
sudo su root -c "printf 'xmlrpc_port = 8069\n' >> /etc/odoo-server.conf"
                    

sudo su root -c "printf 'xmlrpc_port = 8069\n' >> /etc/odoo-server.conf"

                        
sudo su root -c "printf 'logfile = /var/log/odoo/odoo-server.log\n' >> /etc/odoo-server.conf"
                    

sudo su root -c "printf 'logfile = /var/log/odoo/odoo-server.log\n' >> /etc/odoo-server.conf"

                        
sudo su root -c "printf 'addons_path=/odoo/odoo-server/addons\n' >> /etc/odoo-server.conf"
                    

sudo su root -c "printf 'addons_path=/odoo/odoo-server/addons\n' >> /etc/odoo-server.conf"

                        
sudo chown odoo:odoo /etc/odoo-server.conf
                    

sudo chown odoo:odoo /etc/odoo-server.conf

                        
sudo chmod 640 /etc/odoo-server.conf
                    

sudo chmod 640 /etc/odoo-server.conf

Step 13 : Now Start Odoo

                        
sudo su - odoo -s /bin/bash
                    

sudo su - odoo -s /bin/bash

                        
cd /odoo/odoo-server
                    

cd /odoo/odoo-server

                        
./odoo-bin -c /etc/odoo-server.conf
                    

./odoo-bin -c /etc/odoo-server.conf

Now your odoo instance is up and running. 

Go to web browser and access your odoo at localhost:8069

Check Steps For Installation On MAC OS

14 comments

Protected by reCAPTCHA, Privacy Policy & Terms of Service apply.
Avatar
Qhodjo
April 2023

How do I make odoo to run on startup without having to manually start it up every time I reboot?

Protected by reCAPTCHA, Privacy Policy & Terms of Service apply.
Avatar
Ruben Isla
April 2023

how could i to stop odoo services to make changes on my custom addon?

Protected by reCAPTCHA, Privacy Policy & Terms of Service apply.
Avatar
adil
April 2023

./odoo-bin -c /etc/odoo-server.conf when i run this command show the error "ModuleNotFoundError: No module named 'PyPDF2' " "

Protected by reCAPTCHA, Privacy Policy & Terms of Service apply.
Protected by reCAPTCHA, Privacy Policy & Terms of Service apply.
Avatar
ryhan
February 2023

blob:https://web.whatsapp.com/dd64f523-f871-449b-8248-40f85d65c98b

Protected by reCAPTCHA, Privacy Policy & Terms of Service apply.
Avatar
salma sameh
February 2023

IN terminal ask for odoo password, could you tell me what is the password ? Because I entered "admin" but it's wrong pass

Protected by reCAPTCHA, Privacy Policy & Terms of Service apply.
Avatar
ayed
March 2023

Try "sudo passwd odoo" set a new password for odoo user

Avatar
Patrick
November 2022

The Python packages are not installed, nor is a venv created sudo su - postgres -c "createuser -s odoo" 2> /dev/null || true --> just doesn't give any errors, because all errors are thrown into the trash sudo su root -c "printf '[options] \n; This is the password that allows database operations:\n' >> /etc/odoo-server.conf" --> just appends text to the config file. Use an editor Sorry, but this article is just bad. It lacks explanation, has errors and just seems like it was compiled in 3 Minutes while installing odoo on some new server, that already has some prerequesites installed. Things like creating a service for this aren't even mentioned If you want to install odoo on another ubuntu server, crosscheck some other articles. This one is just not sufficient

Protected by reCAPTCHA, Privacy Policy & Terms of Service apply.
Avatar
Beni kiala
November 2022

Execut this command : sudo pip3 install -r /opt/odoo/requirements.txt

Protected by reCAPTCHA, Privacy Policy & Terms of Service apply.
Protected by reCAPTCHA, Privacy Policy & Terms of Service apply.
Avatar
boukar.ousman
September 2022

Hello. I follow till the end. the last command gave me an error odoo@odoo:/odoo/odoo-server$ ./odoo-bin -c /etc/odoo-server.conf Traceback (most recent call last): File "./odoo-bin", line 5, in <module> import odoo File "/odoo/odoo-server/odoo/__init__.py", line 75, in <module> import PyPDF2 ModuleNotFoundError: No module named 'PyPDF2' odoo@odoo:/odoo/odoo-server$

Protected by reCAPTCHA, Privacy Policy & Terms of Service apply.
Avatar
lana
October 2022

i found the same problem, and i think you can solve that with install python library by using this command "sudo pip3 install PyPDF2". but there is more problem, after you successfully installed that library, odoo wants you to install another library, and it's going on and on. and i don't know what should i do either.

Protected by reCAPTCHA, Privacy Policy & Terms of Service apply.
Avatar
owen
September 2022

didnt work for me

Protected by reCAPTCHA, Privacy Policy & Terms of Service apply.
Avatar
John Dateme
September 2022

followed through to the end, it didn't work

Protected by reCAPTCHA, Privacy Policy & Terms of Service apply.
Avatar
Dancun Gerald
August 2022

I've been following these instructions but I accidentally set the password to something I'm not aware of. Do you mind explaining which part of this code I'm supposed to replace with the actual odoo admin password?

Protected by reCAPTCHA, Privacy Policy & Terms of Service apply.
Avatar
hanbing
August 2022

same to me

How To Install Odoo 15 In Ubuntu 18.04 LTS ?