How to install Odoo15 on Debian 11.3
- 00:28 lsb_release -a
- 00:50 systemctl status postgresql
- 01:11 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 vim gdebi
- 01:39 sudo apt-get update
- 01:57 sudo apt install gnupg2
- 02:15 wget https://nightly.odoo.com/odoo.key
- 02:40 cat odoo.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/odoo.gpg >/dev/null
- 03:15 echo "deb http://nightly.odoo.com/15.0/nightly/deb/ ./" | sudo tee /etc/apt/sources.list.d/odoo.list
- 03:16 sudo apt-get update
- 03:29 sudo apt install odoo
- 04:03 systemctl status odoo
- 04:16 sudo systemctl enable --now odoo
- 04:38 ss -tunelp | grep 8069
To Install Odoo15 On Debian 11.3
Introduction:
Odoo is an all-in-one business software such as CRM, website/e-commerce, billing, accounting, manufacturing, warehouse - and project management, inventory, and many more. This tutorial covers the installation of Odoo 15 on Debian 11.3.
Requirements for Odoo.
Python and its modules
PostgreSQL.
Installation of Procedure:
Step 1: Check the OS Version by using the below command.
[root@linuxhelp: ~#] lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
Step 2: Check the status PostgreSQL by using the below command.
[root@linuxhelp: ~#] systemctl status postgresql
● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)
Active: active (exited) since Wed 2022-09-14 00:23:52 IST; 3 weeks 6 days ago
Main PID: 65758 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 3450)
Memory: 0B
CPU: 0
CGroup: /system.slice/postgresql.service
Sep 14 00:23:52 linuxhelp systemd[1]: Starting PostgreSQL RDBMS...
Sep 14 00:23:52 linuxhelp systemd[1]: Finished PostgreSQL RDBMS.
Step 3: Install the necessary Python libraries and the tools required to build Odoo dependencies by using the below command.
[root@linuxhelp: ~#] 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 vim gdebi
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libxslt1-dev' instead of 'libxslt-dev'
build-essential is already the newest version (12.9).
build-essential set to manually installed.
libldap2-dev is already the newest version (2.4.57+dfsg-3+deb11u1).
vim is already the newest version (2:8.2.2434-3+deb11u1).
wget is already the newest version (1.21-1+deb11u1).
The following additional packages will be installed:
diffstat gdebi-core git-man gnome-icon-theme libaliased-perl libapt-pkg-perl libb-hooks-endofscope-perl
Setting up lintian (2.104.0) ...
Processing triggers for mailcap (3.69) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for gnome-menus (3.36.0-1) ...
Processing triggers for libc-bin (2.31-13+deb11u3) ...
Processing triggers for man-db (2.9.4-2) ...
Step 4: Next, update the system package by using the below command.
[root@linuxhelp: ~#] sudo apt-get update
Hit:1 http://repo.mysql.com/apt/debian bullseye InRelease
Hit:2 http://security.debian.org/debian-security bullseye-security InRelease
Hit:3 http://deb.debian.org/debian bullseye InRelease
Hit:4 https://packages.sury.org/php bullseye InRelease
Hit:5 http://deb.debian.org/debian bullseye-updates InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
159 packages can be upgraded.
Step 5: Before installing Odoo we need to add Odoo apt repository by using the below command.
[root@linuxhelp: ~#] sudo apt install gnupg2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
gnupg2
0 upgraded, 1 newly installed, 0 to remove and 159 not upgraded.
Need to get 434 kB of archives.
After this operation, 453 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 gnupg2 all 2.2.27-2+deb11u2 [434 kB]
Fetched 434 kB in 0s (1,333 kB/s)
Selecting previously unselected package gnupg2.
(Reading database ... 171203 files and directories currently installed.)
Preparing to unpack .../gnupg2_2.2.27-2+deb11u2_all.deb ...
Unpacking gnupg2 (2.2.27-2+deb11u2) ...
Setting up gnupg2 (2.2.27-2+deb11u2) ...
Processing triggers for man-db (2.9.4-2) ...
[root@linuxhelp: ~#] wget https://nightly.odoo.com/odoo.key
--2022-10-11 22:18:46-- https://nightly.odoo.com/odoo.key
Resolving nightly.odoo.com (nightly.odoo.com)... 35.240.72.178
Connecting to nightly.odoo.com (nightly.odoo.com)|35.240.72.178|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3112 (3.0K) [application/octet-stream]
Saving to: ‘odoo.key’
odoo.key 100%[=================================================>] 3.04K --.-KB/s in 0s
2022-10-11 22:18:47 (83.6 MB/s) - ‘odoo.key’ saved [3112/3112]
[root@linuxhelp: ~#] cat odoo.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/odoo.gpg >/dev/null
Step 6: Add the Odoo repository to our system by using the below command.
[root@linuxhelp: ~#]echo "deb http://nightly.odoo.com/15.0/nightly/deb/ ./" | sudo tee /etc/apt/sources.list.d/odoo.list
deb http://nightly.odoo.com/15.0/nightly/deb/ ./
Step 7: Once the repository is added, update your Apt cache by using the below command.
[root@linuxhelp: ~#] sudo apt-get update
Hit:1 http://repo.mysql.com/apt/debian bullseye InRelease
Hit:2 http://security.debian.org/debian-security bullseye-security InRelease
Hit:3 http://deb.debian.org/debian bullseye InRelease
Hit:4 http://deb.debian.org/debian bullseye-updates InRelease
Hit:5 https://packages.sury.org/php bullseye InRelease
Ign:6 http://nightly.odoo.com/15.0/nightly/deb ./ InRelease
Get:7 http://nightly.odoo.com/15.0/nightly/deb ./ Release [1,188 B]
Get:8 http://nightly.odoo.com/15.0/nightly/deb ./ Release.gpg [833 B]
Get:9 http://nightly.odoo.com/15.0/nightly/deb ./ Packages [2,098 B]
Fetched 4,119 B in 2s (2,277 B/s)
Reading package lists... Done
Step 8: Then install Odoo by using the below command.
[root@linuxhelp: ~#] sudo apt install odoo
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
docutils-common fonts-font-awesome fonts-inconsolata fonts-roboto-unhinted libev4 libimagequant0 libsass1
python-babel-localedata python3-appdirs python3-attr python3-babel python3-bs4 python3-cached-property
python3-cffi-backend python3-cryptography python3-dateutil python3-decorator python3-defusedxml python3-docopt
python3-docutils python3-freezegun python3-gevent python3-greenlet python3-html5lib python3-isodate python3-jinja2
update-alternatives: using /usr/share/docutils/scripts/python3/rst2xml to provide /usr/bin/rst2xml (rst2xml) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python3/rstpep2html to provide /usr/bin/rstpep2html (rstpep2html) in auto mode
Setting up odoo (15.0.20221011) ...
Created symlink /etc/systemd/system/multi-user.target.wants/odoo.service → /lib/systemd/system/odoo.service.
Step 9: After the installation of Odoo check the service by using the below command.
[root@linuxhelp: ~#] systemctl status odoo
● odoo.service - Odoo Open Source ERP and CRM
Loaded: loaded (/lib/systemd/system/odoo.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2022-10-11 22:21:56 IST; 5s ago
Main PID: 79651 (odoo)
Tasks: 4 (limit: 3450)
Memory: 78.2M
CPU: 601ms
CGroup: /system.slice/odoo.service
└─79651 /usr/bin/python3 /usr/bin/odoo --config /etc/odoo/odoo.conf --logfile /var/log/odoo/odoo-server.log
Oct 11 22:21:56 linuxhelp systemd[1]: Started Odoo Open Source ERP and CRM.
Step 10: Next enable the Odoo service by using the below command.
[root@linuxhelp: ~#] sudo systemctl enable --now odoo
Synchronizing state of odoo.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable odoo
Step 11: Now check the Odoo service should bind to TCP port 8069 once started.
[root@linuxhelp: ~#] ss -tunelp | grep 8069
tcp LISTEN 0 128 0.0.0.0:8069 0.0.0.0:* users:(("odoo",pid=79651,fd=4)) uid:119 ino:199328 sk:12 cgroup:/system.slice/odoo.service <->
Step 12: Go to browser browse and enter the IP address and port number.

Step 13: Create your database credentials as shown in the below image.

Step 14: This is the Dashboard Page for Odoo.

Conclusion:
We have reached the end of this article. In this guide, we have walked you through the steps required to installation of Odoo15 on Debian 11.3 . Your feedback is much welcome.
Comments ( 0 )
No comments available