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