Skip to Content

Installation Guideline To Odoo17

✅ Steps to Install Odoo on Ubuntu 22.04



🔧 1. Create Workspace Directories


1:-   mkdir -p ~/workspace/server


2:-  cd ~/workspace/server

📦 2. Clone Odoo from GitHub

1:-   git clone https://github.com/odoo/odoo --depth 1 --branch 17.0 --single-branch

📝 3. Rename Odoo Folder


Rename the cloned odoo directory to match the version, e.g., 17.0C or 18.0C:-


1:-  mv odoo 18.0C

🌐 4. Setup Virtual Environment


Step into the workspace:-


1:-  cd ~/workspace

2:- mkdir virtual

3:- cd virtual

Run these commands after setup the virtual environment for setting up virtual env for Python 3.10:-


1:-  wget https://bootstrap.pypa.io/get-pip.py

2:- python3.10 get-pip.py

3:- pip3.10 install virtualenv

4:- python3.10 -m virtualenv 17.0

5:- source 17.0/bin/activate

6:- deactivate

📥 5. Install Required System Packages


1:- sudo apt-get update


2:- sudo 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 libtiff-dev libopenjp2-7 libwebp-dev \ npm node-less xfonts-75dpi


3:- sudo ln -s /usr/bin/nodejs /usr/bin/node


4:- sudo npm install -g less less-plugin-clean-css

🗃️ 6. PostgreSQL Setup


1:- sudo apt-get install -y postgresql


2:- sudo su - postgres


Run this command inside PostgreSQL shell:-


1:- createuser --createdb --username postgres --no-createrole --superuser --pwprompt <SystemUser>


2:- exit

🔁 7. Activate Virtual Environment & Install Requirements


1:- source ~/workspace/virtual/17.0/bin/activate

2:- cd ~/workspace/server/17.0C

3;- pip3.10 install wheel

4;- pip3.10 install -r requirements.txt

📄 8. Install wkhtmltopdf Dependencies


1:- sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/

wkhtmltox_0.12.5-1.bionic_amd64.deb


2:- sudo wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb


3:- sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb


4:- sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb


5:- sudo apt install -f

⚙️ 9. Create Configuration File


Inside server/17.0C/, create a config file:-


Step 1:-

nano odoo17.conf


After run the step 1 command then add this basic conf template:-


[options]

admin_passwd = admin

db_host = False

db_port = False

db_user = <SystemUser>

db_password = False

addons_path = addons

logfile = odoo.log

🚀 10. Run the Odoo Server


From 17.0C directory:-


1:-  ./odoo-bin -c odoo17.conf


Result:-


Odoo 17 should now be running at:-


1:-    http://<localhost:8069>