1 | waeup.odoo |
---|
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 | In 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 | 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 | |
---|
51 | Configuring Odoo User on Postgres |
---|
52 | --------------------------------- |
---|
53 | |
---|
54 | Create a new database user. This is so Odoo has access rights to connect |
---|
55 | to PostgreSQL and to create and drop databases. Remember what your choice |
---|
56 | of 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 | |
---|
63 | Preparing Odoo System User and Home Folder |
---|
64 | ------------------------------------------ |
---|
65 | |
---|
66 | $ sudo adduser --system --group --shell /bin/bash --home /odoo odoo |
---|
67 | |
---|
68 | Login as Odoo user:: |
---|
69 | |
---|
70 | $ sudo bash |
---|
71 | $ su odoo |
---|
72 | $ cd ~ |
---|
73 | |
---|
74 | |
---|
75 | Predefining the ``eggs`` folder |
---|
76 | ------------------------------- |
---|
77 | |
---|
78 | Create ``~/.buildout/default.cfg`` with the |
---|
79 | following contents:: |
---|
80 | |
---|
81 | [buildout] |
---|
82 | eggs-directory = /odoo/eggs |
---|
83 | |
---|
84 | |
---|
85 | Bootstrapping the Buildout |
---|
86 | -------------------------- |
---|
87 | |
---|
88 | Install local sandbox:: |
---|
89 | |
---|
90 | $ virtualenv --no-site-packages py27 |
---|
91 | |
---|
92 | Activate local sandbox:: |
---|
93 | |
---|
94 | $ source py27/bin/activate |
---|
95 | |
---|
96 | Checkout ``waeup.odoo``:: |
---|
97 | |
---|
98 | (py27)$ svn co https://svn.waeup.org/repos/main/waeup.odoo/trunk myodoo |
---|
99 | |
---|
100 | Finally, perform the bootstrap with the virtualenv's Python:: |
---|
101 | |
---|
102 | (py27)$ cd myodoo |
---|
103 | (py27)$ python bootstrap.py |
---|
104 | |
---|
105 | |
---|
106 | Running the Build |
---|
107 | ----------------- |
---|
108 | |
---|
109 | Just run:: |
---|
110 | |
---|
111 | $ bin/buildout |
---|
112 | |
---|
113 | Starting Odoo |
---|
114 | ------------- |
---|
115 | |
---|
116 | Run |
---|
117 | |
---|
118 | $ parts/odoo/openerp-server |
---|
119 | |
---|
120 | to start in foreground or |
---|
121 | |
---|
122 | nohup parts/odoo/openerp-server & |
---|
123 | |
---|
124 | to start in background. The scripts in bin/ are broken. |
---|