So you want to use Odoo v8?


But how do you install this beast onto your new and fresh Ubuntu 14.04 LTS.

This article will describe the steps to follow to accomplish this.

1. Update to the latest!

First after you have freshly installed your Ubuntu 14.04 LTS server. You have to make sure it’s up to date.

So enter the following commands on the command line:

sudo apt-get update && upgrade -y

2. Install all requirements and „nice to have libraries”

sudo apt-get install git vim python-dev python-nltk build-essential python-setuptools postgresql bzr graphviz ghostscript postgresql-client python-dateutil python-feedparser python-gdata python-ldap python-libxslt1 python-lxml python-mako python-openid python-psycopg2 python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-imaging python-matplotlib python-docutils python-unittest2 python-mock python-jinja2 python-requests python-decorator -y

3. Create Openerp/Odoo user

sudo useradd openerp -m -s /bin/bash

4. Create OpenERP/Odoo User for Postgresql

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

5. Checkout OpenERP/Odoo from Source Repository

cd /home/openerp
sudo su openerp
git clone -b 8.0 https://github.com/odoo/odoo.git

6. Setup Odoo/OpenERP Configuration Parameters

once checkout is complete, you need to generate configuration file for your OpenERP.

su openerp
cd /home/openerp/odoo
./openerp-server --addons-path=addons -s
hit CTRL-C

This will start openerp server and create a configuration file in your home directory as .openerp_serverrc

sudo mv /home/openerp/.openerp_serverrc /etc/openerp-server.conf

To edit this file and change parameters like db_user, db_passord, admin_password, logfile path

sudo vim /etc/openerp-server.conf

you can set

logfile = /var/log/openerp-server.log

 

7. Making OpenERP/Odoo As A Service

sudo cp /home/openerp/odoo/debian/openerp.init /etc/init.d/openerp
sudo vim /etc/init.d/openerp

change

DAEMON=/usr/bin/openerp-server

to

DAEMON=/home/openerp/odoo/openerp-server

save the file and exit

8. Putting OpenERP/Odoo As A Service

sudo update-rc.d -f openerp start 20 2 3 4 5 

That’s it, just start your openerp server by

sudo service openerp start

9. Command Lessc is missing.

If you encounter some strange behavior after switching templates in het website part of odoo. It’s properly due to the fact that your ubuntu 14.04 LTS didn’t have the lessc command.

Install this by entering the following commands on the command line. This will make sure you will install the latest version of the node-less package on Ubuntu 14.04.

sudo apt-get install npm
sudo npm install -g less

Because the command name of the node.js is nodejs, you have to change the first line of the program to reflect these change.

After installing go to:

/Usr/local/bin/lessc with your favorite text editor and change the first line.

1
2
3
4
5
6
7
8
--- lessc.old   2013-05-21 13:50:00 +0300
+++ lessc   2013-05-21 13:51:00 +0300
@@ -1,4 +1,4 @@
-#!/usr/bin/env node
+#!/usr/bin/env nodejs

var path = require('path'),
fs = require('fs'),

This will install the needed less program globally on your server and Odoo will be able to use it.

Now you ready to go.

Reboot your server and enjoy Odoo v8.!

Advertenties

Een gedachte over “So you want to use Odoo v8?

  1. Pingback: odoo - blog

Geef een reactie

Vul je gegevens in of klik op een icoon om in te loggen.

WordPress.com logo

Je reageert onder je WordPress.com account. Log uit / Bijwerken )

Twitter-afbeelding

Je reageert onder je Twitter account. Log uit / Bijwerken )

Facebook foto

Je reageert onder je Facebook account. Log uit / Bijwerken )

Google+ photo

Je reageert onder je Google+ account. Log uit / Bijwerken )

Verbinden met %s