1 | waeup.openerp |
---|
2 | ************* |
---|
3 | |
---|
4 | Install |
---|
5 | ======= |
---|
6 | |
---|
7 | Please note, that **only Linux-based installs** are described and actively |
---|
8 | supported. We recommend use of Debian / Ubuntu. |
---|
9 | |
---|
10 | |
---|
11 | Preparing the System |
---|
12 | -------------------- |
---|
13 | |
---|
14 | Necessary packages can be installed on Debian systems like this:: |
---|
15 | |
---|
16 | $ sudo apt-get install postgresql |
---|
17 | |
---|
18 | Occasionally, PostgreSQL 9.1 database server cannot be started. |
---|
19 | n order to resolve the error, you need to edit the postgresql.conf file |
---|
20 | (located in my /etc/postgresql/9.1/main directory). |
---|
21 | By default, the ssl is set to true and that is the reason which causes |
---|
22 | the “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 | |
---|
25 | Restart 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 | python-virtualenv |
---|
31 | |
---|
32 | |
---|
33 | Configuring OpenERP User on Postgres |
---|
34 | ------------------------------------ |
---|
35 | |
---|
36 | Create a new database user. This is so OpenERP has access rights to connect |
---|
37 | to PostgreSQL and to create and drop databases. Remember what your choice |
---|
38 | of password is here; you will need it later on:: |
---|
39 | |
---|
40 | $ sudo su - postgres |
---|
41 | $ createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp |
---|
42 | $ exit |
---|
43 | |
---|
44 | |
---|
45 | Preparing OpenERP System User and Home Folder |
---|
46 | --------------------------------------------- |
---|
47 | |
---|
48 | $ sudo adduser --system --group --shell /bin/bash --home /openerp openerp |
---|
49 | |
---|
50 | Login as OpenERP user:: |
---|
51 | |
---|
52 | $ sudo bash |
---|
53 | $ su openerp |
---|
54 | $ cd ~ |
---|
55 | |
---|
56 | |
---|
57 | Predefining the ``eggs`` folder |
---|
58 | ------------------------------- |
---|
59 | |
---|
60 | Create ``~/.buildout/default.cfg`` with the |
---|
61 | following contents:: |
---|
62 | |
---|
63 | [buildout] |
---|
64 | eggs-directory = /openerp/eggs |
---|
65 | |
---|
66 | |
---|
67 | Bootstrapping the Buildout |
---|
68 | -------------------------- |
---|
69 | |
---|
70 | Install local sandbox:: |
---|
71 | |
---|
72 | $ virtualenv --no-site-packages py27 |
---|
73 | |
---|
74 | Activate local sandbox:: |
---|
75 | |
---|
76 | $ source py27/bin/activate |
---|
77 | |
---|
78 | Uninstall local setuptools and pip:: |
---|
79 | |
---|
80 | (py27)$ pip uninstall setuptools pip |
---|
81 | |
---|
82 | Checkout ``waeup.openerp``:: |
---|
83 | |
---|
84 | (py27)$ svn co https://svn.waeup.org/repos/main/waeup.openerp/trunk myopenerp |
---|
85 | |
---|
86 | Finally, perform the bootstrap with the virtualenv's Python:: |
---|
87 | |
---|
88 | (py27)$ cd myopenerp |
---|
89 | (py27)$ python bootstrap.py |
---|
90 | |
---|
91 | |
---|
92 | Running the Build |
---|
93 | ----------------- |
---|
94 | |
---|
95 | Just run :: |
---|
96 | |
---|
97 | $ bin/buildout |
---|
98 | |
---|
99 | Starting OpenERP |
---|
100 | ---------------- |
---|
101 | |
---|
102 | Just run :: |
---|
103 | |
---|
104 | $ bin/start_openerp |
---|