How to Install Odoo 18 on Ubuntu | Step-by-Step Guide

  Рет қаралды 711

Adil Akbar (Programmer)

Adil Akbar (Programmer)

Күн бұрын

In this video, I will walk you through the entire process of installing Odoo 18 on an Ubuntu system. Whether you are a beginner or experienced with Odoo, this guide will help you get your Odoo instance up and running quickly. Learn how to set up dependencies, configure your database, and successfully install Odoo 18 in Ubuntu. Stay tuned for troubleshooting tips and essential configurations to ensure smooth deployment!
Update the package list to ensure you are installing the latest versions of the packages.
sudo apt-get update
Upgrade installed packages to their latest versions.
sudo apt-get upgrade
Install Python 3 pip and other essential Python development libraries.
sudo apt-get install -y python3-pipsudo apt-get install -y python3-dev libxml2-dev libxslt1-dev zlib1g-dev libsasl2-dev libldap2-dev build-essential libssl-dev libffi-dev libmysqlclient-dev libjpeg-dev libpq-dev libjpeg8-dev liblcms2-dev libblas-dev libatlas-base-dev
Create a symbolic link for Node.js and install Less and Less plugins.
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo npm install -g less less-plugin-clean-css
sudo apt-get install -y node-less
Install PostgreSQL (the database used by Odoo) and create a new user for Odoo 18.
sudo apt-get install -y postgresql
sudo su - postgres
createuser --createdb --username postgres --no-createrole --superuser --pwprompt odoo18
exit
Create a system user for Odoo 18 and install Git to clone the Odoo source code.
sudo adduser --system --home=/opt/odoo18 --group odoo18
sudo apt-get install -y git
sudo su - odoo18 -s /bin/bash
git clone www.github.com... --depth 1 --branch master --single-branch .
exit
Install Python virtual environment and set up the Odoo environment.
sudo apt install -y python3-venv
sudo python3 -m venv /opt/odoo18/venv
Switch to root, navigate to the Odoo directory, activate the virtual environment, and install required Python packages.
sudo -s
cd /opt/odoo18/
source venv/bin/activate
pip install -r requirements.txt
Install wkhtmltopdf (used for printing PDF reports in Odoo) and resolve any missing dependencies.
sudo wget github.com/wkh...
sudo wget archive.ubuntu....
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
sudo apt-get install -y xfonts-75dpi
sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb
sudo apt install -f
deactivate
Configure the Odoo instance by copying the default config file and editing it to suit your needs.
sudo cp /opt/odoo18/debian/odoo.conf /etc/odoo18.conf
sudo nano /etc/odoo18.conf
Odoo configuration file settings, including database connection and log file location.
[options]
; This is the password that allows database operations:
; admin_passwd = admin
db_host = localhost
db_port = 5432
db_user = odoo18
db_password = 123456
addons_path = /opt/odoo18/addons
default_productivity_apps = True
logfile = /var/log/odoo/odoo18.log
Set correct permissions on the Odoo configuration file to ensure security.
sudo chown odoo18: /etc/odoo18.conf
sudo chmod 640 /etc/odoo18.conf
Create a directory for Odoo log files and set appropriate ownership.
sudo mkdir /var/log/odoo
sudo chown odoo18:root /var/log/odoo
Create a systemd service file for Odoo 18 to manage it as a service.
sudo nano /etc/systemd/system/odoo18.service
Odoo systemd service configuration.
[Unit]
Description=Odoo18
Documentation=www.odoo.com
[Service]
Ubuntu/Debian convention:
Type=simple
User=odoo18
ExecStart=/opt/odoo18/venv/bin/python3.12 /opt/odoo18/odoo-bin -c /etc/odoo18.conf
[Install]
WantedBy=default.target
Set permissions and ownership on the systemd service file.
sudo chmod 755 /etc/systemd/system/odoo18.service
sudo chown root: /etc/systemd/system/odoo18.service
Start the Odoo 18 service and access Odoo from the browser.
sudo systemctl start odoo18.serviceyour_IP_address:8069
Odoo Documentation: www.odoo.com/d...
🔗 Other helpful Odoo Videos:
Odoo Custom Development: • Odoo Development
Odoo Website Development: • Odoo Website Development
Odoo Custom Modules: • Odoo Custom Modules
#Odoo18 #OdooInstallation #Ubuntu #UbuntuGuide #OdooTutorial #OdooERP #Linux #ERPSystem #TechTutorial #OpenSourceERP

Пікірлер: 6
@muhammadhammadkhan9850
@muhammadhammadkhan9850 5 күн бұрын
thank u brother . its worked.
@aadil-programmer
@aadil-programmer 5 күн бұрын
I'm glad it helped :)
@NabilaShahin-t1o
@NabilaShahin-t1o 13 күн бұрын
Excellent
@aadil-programmer
@aadil-programmer 13 күн бұрын
I am glad that it helped you ☺️
@ErickBlanco-c9f
@ErickBlanco-c9f 12 күн бұрын
instalado y probado, gracias bro
@aadil-programmer
@aadil-programmer 11 күн бұрын
gracias por confirmar
Что такое ERP ODOO и для чего она нужна
26:29
Модуль CRM в ERP Odoo. Базовые возможности
22:52
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 59 МЛН
Mom had to stand up for the whole family!❤️😍😁
00:39
DaMus
Рет қаралды 1,4 МЛН
How to Install Odoo 18 with Pycharm || Odoo 18 Development
14:13
Odoo Mates
Рет қаралды 1,6 М.
How to install Odoo 17 for Production in Ubuntu 22 04
15:53
SoftIQ Technologies
Рет қаралды 258
Is Our World Broken?
11:15
Kurzgesagt – In a Nutshell
Рет қаралды 2 МЛН
Run ALL Your AI Locally in Minutes (LLMs, RAG, and more)
20:19
Cole Medin
Рет қаралды 139 М.
How to install Odoo 17 for Development on Ubuntu 23.10
20:43
SoftIQ Technologies
Рет қаралды 1,5 М.
bulletproof❌ Nokia✅
0:17
AGENT43
Рет қаралды 51 МЛН
Apple designers updating the iPhone design 😂
0:13
Createwithfid
Рет қаралды 1,3 МЛН
Внутри коробки iPhone 3G 📱
0:36
serg1us
Рет қаралды 357 М.
iPhone теперь БЕСПОЛЕЗНО воровать 🛠
0:25
How to connect electrical wires with good contact #short
0:29
Tuan CT
Рет қаралды 22 МЛН
iPhone or Samsung?
0:28
Kan Andrey
Рет қаралды 2,2 МЛН