Odoo Installation

From here: http://www.theopensourcerer.com/2012/12/how-to-install-openerp-7-0-on-ubuntu-12-04-lts/

After basic Ubuntu server installation:

1. Ensure the following are installed:

sudo apt-get install openssh-server denyhosts

2. Create the OpenERP user that will own and run the application

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

3. Install and configure the database server, PostgreSQL

sudo apt-get install postgresql

3a: configure the OpenERP user in postgres:

sudo su - postgres

createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp

Password = openerp

3b: Finally exit from the postgres user account:

exit

4: Install the necessary Python libraries for the server

sudo apt-get install python-dateutil python-docutils python-feedparser python-gdata \ python-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid \ python-psycopg2 python-psutil python-pybabel python-pychart python-pydot python-pyparsing \ python-reportlab python-simplejson python-tz python-unittest2 python-vatnumber python-vobject \ python-webdav python-werkzeug python-xlwt python-yaml python-zsi

5: Install the OpenERP server

wget http://nightly.openerp.com/7.0/nightly/src/openerp-7.0-latest.tar.gz

cd /opt/openerp sudo tar xvf ~/openerp-7.0-latest.tar.gz

Change the ownership of all the the files to the OpenERP user and group we created earlier.

sudo chown -R openerp: *

finally, the way I have done this is to copy the server directory to something with a simpler name so that the configuration files and boot scripts don’t need constant editing (I called it, rather unimaginatively, server). I started out using a symlink solution, but I found that when it comes to upgrading, it seems to make more sense to me to just keep a copy of the files in place and then overwrite them with the new code. This way you keep any custom or user-installed modules and reports etc. all in the right place.

sudo cp -a openerp-7.0-name-of-nightly-source server

6: Configuring the OpenERP application

sudo cp /opt/openerp/server/install/openerp-server.conf /etc/ sudo chown openerp: /etc/openerp-server.conf sudo chmod 640 /etc/openerp-server.conf

Edit the following file:

nano /etc/openerp-server.conf

Find and alter the following line:

db_password = False

Change false to the password selected earlier:

db_password = openerp

To the same file add the following:

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

Check the openerp server will run: