source: main/waeup.openerp/trunk/README.txt @ 13599

Last change on this file since 13599 was 11628, checked in by Henrik Bettermann, 11 years ago

Explain how to start OpenERP in background.

File size: 2.5 KB
Line 
1waeup.openerp
2*************
3
4Install
5=======
6
7Please note, that **only Linux-based installs** are described and actively
8supported. We recommend use of Debian / Ubuntu.
9
10
11Preparing the System
12--------------------
13
14Necessary packages can be installed on Debian systems like this::
15
16  $ sudo apt-get install postgresql
17
18Occasionally, PostgreSQL 9.1 database server cannot be started.
19In order to resolve the error, you need to edit the postgresql.conf file
20(located in my /etc/postgresql/9.1/main directory).
21By default, the ssl is set to true and that is the reason which causes
22the “meaningful” error. You need to set it to false.
23[Source: http://www.jusuchyne.com/codingchyne/2010/04/postgres-could-not-load-private-key-file/]
24
25Restart postgresql and continue with package installation::
26
27  $ sudo apt-get install postgresql-server-dev-9.1 \
28                         python2.7 python2.7-dev build-essential \
29                         libldap2-dev libsasl2-dev libjpeg-dev \
30                         libxslt1-dev libxml2-dev \
31                         python-virtualenv
32
33
34Configuring OpenERP User on Postgres
35------------------------------------
36
37Create a new database user. This is so OpenERP has access rights to connect
38to PostgreSQL and to create and drop databases. Remember what your choice
39of password is here; you will need it later on::
40
41  $ sudo su - postgres
42  $ createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp
43  $ exit
44
45
46Preparing OpenERP System User and Home Folder
47---------------------------------------------
48
49  $ sudo adduser --system --group --shell /bin/bash --home /openerp openerp
50
51Login as OpenERP user::
52
53  $ sudo bash
54  $ su openerp
55  $ cd ~
56
57
58Predefining the ``eggs`` folder
59-------------------------------
60
61Create ``~/.buildout/default.cfg`` with the
62following contents::
63
64  [buildout]
65  eggs-directory = /openerp/eggs
66
67
68Bootstrapping the Buildout
69--------------------------
70
71Install local sandbox::
72
73  $ virtualenv --no-site-packages py27
74
75Activate local sandbox::
76
77  $ source py27/bin/activate
78
79Uninstall local setuptools and pip::
80
81  (py27)$ pip uninstall setuptools pip
82
83Checkout ``waeup.openerp``::
84
85  (py27)$ svn co https://svn.waeup.org/repos/main/waeup.openerp/trunk myopenerp
86
87Finally, perform the bootstrap with the virtualenv's Python::
88
89  (py27)$ cd myopenerp
90  (py27)$ python bootstrap.py
91
92
93Running the Build
94-----------------
95
96Just run::
97
98  $ bin/buildout
99
100Starting OpenERP
101----------------
102
103Run
104
105  $ bin/start_openerp
106
107to start in foreground or
108
109  & nohup bin/start_openerp &
110
111to start in background.
Note: See TracBrowser for help on using the repository browser.