Since there are many new features coming with the new 6.1 version of the OpenERP, I decided to move to new trunk version and start my implementation and localization for the new trunk version.
Below you can find the commands that I used to download the software from the launchpad and run it. I had Ubuntu 10.04 LTS on the server machine, since I had few errors with the required python modules and bzr version was old. Installing to a fresh Ubuntu 11.10 server seemed much easier.
Here are the steps:
 Download and install Ubuntu 11.10 Server to the server.
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install mc bzr python-setuptools
$ sudo apt-get install gcc python-dev
( mc, gcc and python-dev was not really necessary I just use them 🙂
Let install some required packages.
$ sudo apt-get install python-babel python-feedparser python-gdata python-lxml python-mako python-psycopg2 python-ldap
$ sudo apt-get install python-webdav python-yaml python-reportlab python-reportlab-accel python-simplejson python-vatnumber
$ sudo apt-get install python-vobject python-werkzeug python-zsi python-openssl python-egenix-mxdatetime python-tz
$ sudo apt-get install python-pydot
$ sudo apt-get install python-dateutil python-unittest2 python-mock python-pychart
$ sudo apt-get install lptools make
$ sudo apt-get install python-pychart python-openid
Let create user to run server
$ sudo adduser –home=/opt/openerp openerp
Install database application
$ sudo apt-get install postgresql

$ sudo su – postgres
Create database user and give a password to the database user
$ createuser –createdb –username postgres –no-createrole –no-superuser –pwprompt openerp
$ exit
let give a password to the openerp user and download source code from bazaar with the openerp user
$ sudo passwd openerp
$ su openerp
$ cd /opt/openerp
$ mkdir trunk
$ cd trunk
$ bzr cat -d lp:~openerp-dev/openerp-tools/trunk setup.sh | sh
It takes some time to download openerp-tools
now it is time to download server and addons with the make script in the openerp-tools
$make init-trunk
This takes quiet a while to download the trunk for server,web and addons.
copy the configuration file to the etc folder
$ exit
$ sudo cp ./server/trunk/install/openerp-server.conf /etc/openerp-server.conf
Edit the configuration file to add database connection information
$ sudo nano /etc/openerp-server.conf
I added admin_passwd, db_host,db_port and db_passwd and log settings to the file.
[options]
; This is the password that allows database operations:
; admin_passwd = YOUR_DB_OPERATION_PASSWORD
db_host = false
db_port = false
db_user = openerp
db_password = false
; Log settings
logfile = /opt/openerp/openerp-server.log
syslog = False
logrotate = True
log_level = info

$ sudo chown openerp:root /etc/openerp-server.conf
$ sudo chmod 640 /etc/openerp-server.conf

create a small init script
$ sudo nano /etc/init.d/openerp


#!/bin/sh
cd /opt/openerp/trunk
sudo -u openerp ./server/trunk/openerp-server -c /etc/openerp-server.conf –addons-path=addons/trunk,web/trunk/addons –test-disable &
Change the init scripts permissions
$ sudo chmod 755 /etc/init.d/openerp
$ sudo chown root: /etc/init.d/openerp
start it automatically with the system
$ sudo update-rc.d openerp defaults
 When it is ok you can connect to the server from:  http://youripaddress:8069

Note: I make this installation with help of this two articles: