Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo V8 Installation Ubuntu 14.04 x64 from source. Complete Working Guide. Step by step.

on 1/24/15, 6:31 PM 5,879 views


Below a step by step guide to installing Odoo V8 latest from source on a clean fresh install of Ubuntu 14.04 x64 server 



sudo apt-get update
sudo apt-get upgrade

sudo apt-get install python-dateutil python-decorator python-docutils python-feedparser \
python-gdata python-gevent python-imaging python-jinja2 python-ldap python-libxslt1 python-lxml \
python-mako python-mock python-openid python-passlib python-psutil python-psycopg2 python-pybabel \
python-pychart python-pydot python-pyparsing python-pypdf python-reportlab python-requests \
python-simplejson python-tz python-unittest2 python-vatnumber python-vobject python-werkzeug \
python-xlwt python-yaml python-matplotlib python-pychart python-webdav \
graphviz ghostscript postgresql-client 

sudo apt-get install gcc python-dev mc bzr python-setuptools python-babel \
python-reportlab-accel python-zsi python-openssl python-egenix-mxdatetime \
lptools make python-psutil python-paramiko poppler-utils \
python-pdftools antiword postgresql

sudo wget http://sourceforge.net/projects/wkhtmltopdf/files/archive/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb             
ln -s /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf
ln -s  /usr/local/bin/wkhtmltoimage /usr/bin/wkhtmltoimage


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

sudo su - postgres

createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo
(this will ask for password. It will be for odoo user to conect to postgres. )


cd /opt/ 

sudo wget http://nightly.odoo.com/8.0/nightly/src/odoo_8.0.latest.tar.gz   
sudo tar -xvzf odoo_8.0.latest.tar.gz
ls   (see name of uncompressed folder)
sudo mv odoo-8.0-(change date folder you se above)/* odoo

cd /opt/odoo
sudo mkdir /addons
sudo python setup.py install

nano /etc/odoo-server.conf 


admin_passwd = admin
db_host = localhost
db_port = 5432
db_user = odoo
db_password = your postgres pass from step #3
addons_path = /opt/odoo/openerp/addons,/opt/odoo/addons
logfile = /var/log/odoo/odoo-server.log
(ctrl +x   then  y  press enter)
sudo chown odoo:root /etc/odoo-server.conf
sudo chmod 640 /etc/odoo-server.conf

su - odoo -s /bin/bash

(If everything good), good to go.
(ctrl) c

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


# Provides:             odoo-server
# Required-Start:       $remote_fs $syslog
# Required-Stop:        $remote_fs $syslog
# Should-Start:         $network
# Should-Stop:          $network
# Default-Start:        2 3 4 5
# Default-Stop:         0 1 6
# Short-Description:    Complete Business Application software
# Description:          Odoo is a complete suite of business tools.


# Specify the user name (Default: odoo).

# Specify an alternate config file (Default: /etc/odoo-server.conf).

# pidfile

# Additional options that are passed to the Daemon.

[ -x $DAEMON ] || exit 0
[ -f $CONFIGFILE ] || exit 0

checkpid() {
    [ -f $PIDFILE ] || return 1
    pid=`cat $PIDFILE`
    [ -d /proc/$pid ] && return 0
    return 1

case "${1}" in
                echo -n "Starting ${DESC}: "

                start-stop-daemon --start --quiet --pidfile ${PIDFILE} \
                        --chuid ${USER} --background --make-pidfile \
                        --exec ${DAEMON} -- ${DAEMON_OPTS}

                echo "${NAME}."

                echo -n "Stopping ${DESC}: "

                start-stop-daemon --stop --quiet --pidfile ${PIDFILE} \

                echo "${NAME}."

                echo -n "Restarting ${DESC}: "

                start-stop-daemon --stop --quiet --pidfile ${PIDFILE} \
                sleep 1

                start-stop-daemon --start --quiet --pidfile ${PIDFILE} \
                        --chuid ${USER} --background --make-pidfile \
                        --exec ${DAEMON} -- ${DAEMON_OPTS}

                echo "${NAME}."

                echo "Usage: ${NAME} {start|stop|restart|force-reload}" >&2
                exit 1

exit 0

(Ctrl = x to exit) y  press enter

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

mkdir -pv /var/log/odoo/
touch /var/log/odoo/odoo-server.log
chown -R odoo:root /var/log/odoo/


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

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

sudo update-rc.d odoo-server defaults

reboot again

Thank you for taking the time to document this. Have you considered creating a blog and documenting the process in Spanish? You could explain each step in more details. There is very little documentation in Spanish available.

Stephen Mack
on 1/25/15, 7:25 AM

Thanks for writing this guide out JA. Its always nice to see newcomers contributing! On a sidenote, if you ever want to use an automated install script have a look at this: https://github.com/aschenkels-ictstudio/openerp-install-scripts/blob/master/odoo-v8/ubuntu-14-04/odoo_install.sh

on 1/25/15, 1:09 PM

sirocoba@SIROCOHPLAP:/opt/odoo$ sudo chown odoo:root /etc/odoo-server.con sudo: /etc/sudoers is world writable sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin sirocoba@SIROCOHPLAP:/opt/odoo$

on 2/18/15, 11:48 PM

Hi Ja.....After Completing 6th step I tried to follow last step that is is sudo chown odoo:root /etc/odoo-server.conf ,then I got stuck

on 2/18/15, 11:51 PM

Once you paste info on odoo-server.conf, you have to exit nano. with ctrl + x. After that just follow along by changing folder permisions. Let me know if this helps.

on 2/20/15, 9:12 AM

Ermin Trevisan

--Ermin Trevisan--
| 6 3 7
Walchwil, Switzerland
--Ermin Trevisan--

Ermin Trevisan
On 1/26/15, 2:35 AM

In order to use the new website themes, the installation of npm, nodjs and less should be included too.

The new website themes are here: https://apps.odoo.com/apps/themes

Up to now I was not able to install npm, nodejs and less successfully on a AWS EC2 Server with Canonical Ubuntu 14.04 LTS :-(

There are so many installation variants to find in the internet, but so far none of them worked for me.


Meanwhile  I have found a method which works: https://www.odoo.com/forum/help-1/question/ubuntu-server-14-04-howto-install-nodejs-npm-and-less-82575

I couldnt comment before. How to install npm,nodjs and less? Which are the new website themes? Thanks.

on 2/4/15, 9:38 AM

@JA: I have amended my answer.

Ermin Trevisan
on 2/4/15, 9:49 AM


| 5 4 8
Kochi, India
ODOO technical and functional

        I like learning new thing, especially technical thing. I am a quick learner, I can learn technical things very fast. I have good logical skill,  I have immense interest in programming.

e-mail id : baijuks@hotmail.com

On 1/25/15, 11:38 PM
Nate Foster
On 4/1/15, 1:27 AM

This is a great installation guide.  Now, I just need to secure my server.  Any thoughts on SSL support?

use some reverse proxy like apache or nginx , setup ssl and/or user cert auth methods...

on 8/6/15, 2:18 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

3 follower(s)


Asked: 1/24/15, 6:31 PM
Seen: 5879 times
Last updated: 8/6/15, 1:52 AM