Odooblogs

How To Install Odoo 11 In Ubuntu?

Odoo 11 is all released with much promises and functionalities, this article helps you with how to install Odoo version 11 (Community Edition) on Ubuntu 16.04, same steps can also work for previous Ubuntu version(s) till version 14.

If Python is already installed, make sure it 3.5 or above. Earlier versions are not compatible with Odoo11.

Open the terminal and execute commands step-by-step to achieve the desired result.

Next is to install Odoo Web Dependencies:sudo apt-get install -y npmsudo ln -s /usr/bin/nodejs /usr/bin/nodesudo npm install -g less less-plugin-clean-csssudo apt-get install -y node-less
Once all the packages are installed we are ready to proceed with installing Odoo server.

Step 6:

Installing ODOO version 11 Community Edition hosted on GITHUB.
Make sure you have GIT installed on your system and if not then install with the simple command:
sudo apt-get install -y git

Switch to the Odoo user:sudo su – odoo -s /bin/bash

Clone the latest branch of Odoo, in our case it is 11.0 from Github:git clone https://www.github.com/odoo/odoo –depth 1 –branch 11.0 –single-branch .
(This might take a little while depending on the speed of your Internet connection.)

Finally exit from the Odoo user account:exit

Step 7:

Next step is to create a configuration file for Odoo. But before doing so we’ll first create the directory for storing logs of Odoo server and assigning proper ownership to the directory:

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

Next is to create the configuration file for odoo server. Odoo application will use these configuration to run so fill in the configuration as per your requirements.

sudo nano /etc/odoo-server.conf

A sample configuration file will look like this:[options]; This is the password that allows database operations:; admin_passwd = admindb_host = Falsedb_port = Falsedb_user = odoodb_password = Falselogfile = /var/log/odoo/odoo-server.log
addons_path = /opt/odoo/addons,/opt/odoo/odoo/addons
(* You need to use the same password you used back in step 3.)
Once the configuration file is created we will set the ownership rightssudo chown odoo: /etc/odoo-server.confsudo chmod 640 /etc/odoo-server.conf

Step 8:

Installing the boot script

For the final step, we need to install a script which will be used to start-up & shut-down the Odoo server automatically, with the correct user.sudo nano /etc/init.d/odoo-server

Paste the same contents of this script to this file. Once it is in the right place you will need to make it executable and owned by root:sudo chmod 755 /etc/init.d/odoo-serversudo chown root: /etc/init.d/odoo-server

Good Writings need to engrave in the right place. Odoo blogs serve as a missionary platform for the strategic thinkers and Odoo experts to share the technicalities and functionalities in Odoo forums.
For any queries or your submission contact admin@odooblogs.com