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

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

Update README.txt.

File size: 3.1 KB
RevLine 
[12626]1waeup.odoo
2**********
[11533]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.
[11628]19In order to resolve the error, you need to edit the postgresql.conf file
[11533]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 \
[12626]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 \
[11533]48
49
50
[12626]51Configuring Odoo User on Postgres
52---------------------------------
53
54Create a new database user. This is so Odoo has access rights to connect
[11533]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
[12626]59  $ createuser --createdb --username postgres --no-createrole --pwprompt odoo
[11533]60  $ exit
61
62
[12626]63Preparing Odoo System User and Home Folder
64------------------------------------------
[11533]65
[12626]66  $ sudo adduser --system --group --shell /bin/bash --home /odoo odoo
[11533]67
[12626]68Login as Odoo user::
[11533]69
70  $ sudo bash
[12626]71  $ su odoo
[11533]72  $ cd ~
73
74
75Predefining the ``eggs`` folder
76-------------------------------
77
78Create ``~/.buildout/default.cfg`` with the
79following contents::
80
81  [buildout]
[12626]82  eggs-directory = /odoo/eggs
[11533]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
[12626]96Checkout ``waeup.odoo``::
[11533]97
[12626]98  (py27)$ svn co https://svn.waeup.org/repos/main/waeup.odoo/trunk myodoo
[11533]99
100Finally, perform the bootstrap with the virtualenv's Python::
101
[12626]102  (py27)$ cd myodoo
[11533]103  (py27)$ python bootstrap.py
104
105
106Running the Build
107-----------------
108
[11628]109Just run::
[11533]110
111  $ bin/buildout
112
[12626]113Starting Odoo
114-------------
[11533]115
[11628]116Run
[11533]117
[12626]118  $ parts/odoo/openerp-server
[11628]119
120to start in foreground or
121
[12626]122  nohup parts/odoo/openerp-server &
[11628]123
[12626]124to start in background. The scripts in bin/ are broken.
Note: See TracBrowser for help on using the repository browser.