source: main/waeup.odoo/trunk/README.txt @ 13474

Last change on this file since 13474 was 12626, checked in by Henrik Bettermann, 10 years ago

Update README.txt.

File size: 3.1 KB
Line 
1waeup.odoo
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                         git \
33                         python-simplejson \
34                         python-dateutil \
35                         python-psycopg2 \
36                         python-werkzeug \
37                         python-decorator \
38                         python-yaml \
39                         python-unittest2 \
40                         python-reportlab \
41                         python-mako \
42                         python-pychart \
43                         python-psutil \
44                         python-requests \
45                         python-jinja2 \
46                         python-openid \
47                         python-pyPDF \
48
49
50
51Configuring Odoo User on Postgres
52---------------------------------
53
54Create a new database user. This is so Odoo has access rights to connect
55to PostgreSQL and to create and drop databases. Remember what your choice
56of password is here; you will need it later on::
57
58  $ sudo su - postgres
59  $ createuser --createdb --username postgres --no-createrole --pwprompt odoo
60  $ exit
61
62
63Preparing Odoo System User and Home Folder
64------------------------------------------
65
66  $ sudo adduser --system --group --shell /bin/bash --home /odoo odoo
67
68Login as Odoo user::
69
70  $ sudo bash
71  $ su odoo
72  $ cd ~
73
74
75Predefining the ``eggs`` folder
76-------------------------------
77
78Create ``~/.buildout/default.cfg`` with the
79following contents::
80
81  [buildout]
82  eggs-directory = /odoo/eggs
83
84
85Bootstrapping the Buildout
86--------------------------
87
88Install local sandbox::
89
90  $ virtualenv --no-site-packages py27
91
92Activate local sandbox::
93
94  $ source py27/bin/activate
95
96Checkout ``waeup.odoo``::
97
98  (py27)$ svn co https://svn.waeup.org/repos/main/waeup.odoo/trunk myodoo
99
100Finally, perform the bootstrap with the virtualenv's Python::
101
102  (py27)$ cd myodoo
103  (py27)$ python bootstrap.py
104
105
106Running the Build
107-----------------
108
109Just run::
110
111  $ bin/buildout
112
113Starting Odoo
114-------------
115
116Run
117
118  $ parts/odoo/openerp-server
119
120to start in foreground or
121
122  nohup parts/odoo/openerp-server &
123
124to start in background. The scripts in bin/ are broken.
Note: See TracBrowser for help on using the repository browser.