[11533] | 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. |
---|
[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 \ |
---|
[11628] | 30 | libxslt1-dev libxml2-dev \ |
---|
[11533] | 31 | python-virtualenv |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | Configuring OpenERP User on Postgres |
---|
| 35 | ------------------------------------ |
---|
| 36 | |
---|
| 37 | Create a new database user. This is so OpenERP has access rights to connect |
---|
| 38 | to PostgreSQL and to create and drop databases. Remember what your choice |
---|
| 39 | of password is here; you will need it later on:: |
---|
| 40 | |
---|
| 41 | $ sudo su - postgres |
---|
| 42 | $ createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp |
---|
| 43 | $ exit |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | Preparing OpenERP System User and Home Folder |
---|
| 47 | --------------------------------------------- |
---|
| 48 | |
---|
| 49 | $ sudo adduser --system --group --shell /bin/bash --home /openerp openerp |
---|
| 50 | |
---|
| 51 | Login as OpenERP user:: |
---|
| 52 | |
---|
| 53 | $ sudo bash |
---|
| 54 | $ su openerp |
---|
| 55 | $ cd ~ |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | Predefining the ``eggs`` folder |
---|
| 59 | ------------------------------- |
---|
| 60 | |
---|
| 61 | Create ``~/.buildout/default.cfg`` with the |
---|
| 62 | following contents:: |
---|
| 63 | |
---|
| 64 | [buildout] |
---|
| 65 | eggs-directory = /openerp/eggs |
---|
| 66 | |
---|
| 67 | |
---|
| 68 | Bootstrapping the Buildout |
---|
| 69 | -------------------------- |
---|
| 70 | |
---|
| 71 | Install local sandbox:: |
---|
| 72 | |
---|
| 73 | $ virtualenv --no-site-packages py27 |
---|
| 74 | |
---|
| 75 | Activate local sandbox:: |
---|
| 76 | |
---|
| 77 | $ source py27/bin/activate |
---|
| 78 | |
---|
| 79 | Uninstall local setuptools and pip:: |
---|
| 80 | |
---|
| 81 | (py27)$ pip uninstall setuptools pip |
---|
| 82 | |
---|
| 83 | Checkout ``waeup.openerp``:: |
---|
| 84 | |
---|
| 85 | (py27)$ svn co https://svn.waeup.org/repos/main/waeup.openerp/trunk myopenerp |
---|
| 86 | |
---|
| 87 | Finally, perform the bootstrap with the virtualenv's Python:: |
---|
| 88 | |
---|
| 89 | (py27)$ cd myopenerp |
---|
| 90 | (py27)$ python bootstrap.py |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | Running the Build |
---|
| 94 | ----------------- |
---|
| 95 | |
---|
[11628] | 96 | Just run:: |
---|
[11533] | 97 | |
---|
| 98 | $ bin/buildout |
---|
| 99 | |
---|
| 100 | Starting OpenERP |
---|
| 101 | ---------------- |
---|
| 102 | |
---|
[11628] | 103 | Run |
---|
[11533] | 104 | |
---|
[11628] | 105 | $ bin/start_openerp |
---|
| 106 | |
---|
| 107 | to start in foreground or |
---|
| 108 | |
---|
| 109 | & nohup bin/start_openerp & |
---|
| 110 | |
---|
| 111 | to start in background. |
---|