Reading list Switch to dark mode

    Odoo 13 installation on Ubuntu 18.04

    Updated 13 July 2020

    The Odoo version 13 is officially rolled out and has already created a buzz among the users. You can visit GitHub to find the Source Code for Odoo Community Edition.

    This blog will explain how to install Odoo version 13 (Community Edition) on Ubuntu 18.04.

    Installation steps for previous Ubuntu version(s) till version Ubuntu 16 are similar. You can visit the blog for Odoo 11 installation on ubuntu 16.04 to know the step by step installation of the previous version.

    Ubuntu 18.04 comes preinstalled with Python 3.6 which is compatible with Odoo 13. You need to run some commands in terminal for Odoo 13 installation on Ubuntu.

    Steps for Odoo 13 installation on Ubuntu

    1) Update apt source-lists.

    sudo apt update

    2) Add a new system user name “Odoo” that will own and run the application.

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

    3) Install and configure database server PostgreSQL.

    sudo apt install -y postgresql
    sudo systemctl start postgresql

    4) Setup a new PostgreSQL user.  The “Odoo” user will be used by Odoo to interact with the database.

    sudo su - postgres
    createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo
    exit

    5) Clone the latest branch of Odoo, in our case it is 13.0 from Github:

    sudo su - odoo -s /bin/bash
    git clone https://github.com/odoo/odoo.git --depth 1 --branch 13.0 --single-branch .
    exit

    6) System dependencies

    sudo apt install wget git python-pip gdebi-core python3-dev libxml2-dev libxslt-dev libldap2-dev libsasl2-dev

    Wkhtmltopdf is also required

    Searching for an experienced
    Odoo Company ?
    Find out More
    wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.1.4-2/wkhtmltox_0.12.1.4-2.bionic_amd64.deb
    sudo dpkg -i wkhtmltox_0.12.1.4-2.bionic_amd64.deb

    Install Python3 dependencies for Odoo.

    cd /opt/odoo
    pip3 install -r requirements.txt

    7) Install Odoo Web dependencies.

    sudo apt install -y npm
    sudo npm install -g less less-plugin-clean-css
    sudo apt install -y node-less

    8) Create a directory to store Odoo logs and then change the ownership.

    sudo mkdir /var/log/odoo
    sudo chown odoo:root /var/log/odoo

    9) Create a configuration file for Odoo.

    sudo nano /etc/odoo-server.conf

    Sample Configuration might look like this:

    [options]
    ; This is the password that allows database operations:
    ; admin_passwd = admin
    db_host = localhost
    db_port = 5432
    db_user = odoo
    db_password = False #add your own password
    logfile = /var/log/odoo/odoo-server.log
    addons_path = /opt/odoo/addons,/opt/odoo/odoo/addons

    Now, set the ownership.

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

    10) Create a boot script for Odoo.

    Now, we need a script which will let us start/stop Odoo as a service automatically, with the correct user. Click here to see get the script.

    Now, create a new file.

    sudo nano /etc/init.d/odoo-server

    Now, set the ownership.

    sudo chmod 755 /etc/init.d/odoo-server
    sudo chown root: /etc/init.d/odoo-server

    11) Start the Odoo Server.

    sudo /etc/init.d/odoo-server start
    • Using ‘status’, we can find information about all running odoo daemon servers.
    • Using ‘force-stop/force-restart’, we can kill all running Odoo daemon forcefully and can start fresh odoo-server daemon.
    • ‘Start/Stop’ will not allow more than one process per daemon.

    You can check logs using:

    tail -f /var/log/odoo/odoo-server.log

    Optionally, You can start Odoo server manually for debugging.

    sudo su - odoo -s /bin/bash
    ./odoo-bin -c /etc/odoo.conf

    If the log file looks OK, you can check Odoo server running on your browser with URL:

    http://localhost:8069

    NEED HELP?

    Did you find the guide helpful? Please feel free to share your feedback in the comments below.

    If you still have any issues/queries regarding the module then please raise a ticket at https://webkul.uvdesk.com/en/customer/create-ticket/

    For any doubt contact us at [email protected].

    Thanks for paying attention!!

    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    4 comments

  • Besma
    • Gurneesh Chahal (Moderator)
  • John Roy A. Geralde
    • Gurneesh Chahal (Moderator)
  • Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home