Sunday 20 September 2015

Install Odoo (Open ERP v8) on Ubuntu 12.04 from launchpad. | OpenERP

  1. Open Terminal and execute below commands
  2. Update apt source list
    1
    sudo apt-get update
  3. Download and Install Updates
    1
    sudo apt-get upgrade
  4. Install required packages for Odoo (Open ERP v8)
    1
    2
    3
    4
    5
    6
    7
    sudo apt-get install graphviz ghostscript postgresql-client \
    python-dateutil python-feedparser python-matplotlib \
    python-ldap python-libxslt1 python-lxml python-mako \
    python-openid python-psycopg2 python-pybabel python-pychart \
    python-pydot python-pyparsing python-reportlab python-simplejson \
    python-tz python-vatnumber python-vobject python-webdav \
    python-werkzeug python-xlwt python-yaml python-imaging
  5. Install supporting packages for Odoo (Open ERP v8)
    1
    2
    3
    4
    5
    sudo apt-get install gcc python-dev mc bzr python-setuptools python-babel \
    python-feedparser python-reportlab-accel python-zsi python-openssl \
    python-egenix-mxdatetime python-jinja2 python-unittest2 python-mock \
    python-docutils lptools make python-psutil python-paramiko poppler-utils \
    python-pdftools antiword postgresql
  6. Install gdata client
    1
    2
    3
    4
    wget http://gdata-python-client.googlecode.com/files/gdata-2.0.17.tar.gz
    tar zxvf gdata-2.0.17.tar.gz
    cd gdata-2.0.17/
    sudo python setup.py install
  7. Create a new Odoo system user for Odoo an other related process . This step will ask you password and other details. Please provide correct and remember that for future reference
    1
    sudo adduser odoo --home /opt/odoo
  8. Create database user for Odoo
    1
    2
    cd ..
    sudo -u postgres createuser -s odoo
  9. Move to the install directory
    1
    2
    3
    sudo su odoo
    mkdir /opt/odoo/v8
    cd /opt/odoo/v8
  10. Run the bazaar to download Web part Odoo (Open ERP v8) saas 4 version from launchpad
    1
    bzr branch lp:~openerp/openerp-web/saas-4 web
  11. Run the bazaar to download Server part of Odoo (Open ERP v8) saas 4 version from launchpad
    1
    bzr branch lp:~openerp/openobject-server/saas-4 server
  12. Run the bazaar to download addons part of Odoo (Open ERP v8) saas 4 version from launchpad
    1
    bzr branch lp:~openerp/openobject-addons/saas-4 addons
  13. Exit from openerp user shell
    1
    exit
  14. Copy Odoo configuration file to /etc
    1
    sudo cp /opt/odoo/v8/server/install/openerp-server.conf /etc/openerp-server.conf
  15. Edit the configuration file
    1
    sudo nano /etc/openerp-server.conf
  16. Configure file as below
    01
    02
    03
    04
    05
    06
    07
    08
    09
    10
    11
    [options]
    ; This is the password that allows database operations:
    admin_passwd = PASSWORD
    db_host = False
    db_port = False
    db_user = odoo
    db_password = False
    addons_path = /opt/odoo/v8/addons,/opt/odoo/v8/web/addons
    ;Log settings
    logfile = /var/log/openerp/openerp-server.log
    log_level = error
  17. Change the file permission and file ownership to the odoo user
    1
    2
    sudo chown odoo: /etc/openerp-server.conf
    sudo chmod 640 /etc/openerp-server.conf
  18. Create log directory for odoo
    1
    2
    sudo mkdir /var/log/openerp
    sudo chown odoo:root /var/log/openerp
  19. Copy Logrotate file from source to /etc/logrotate.d folder
    1
    2
    sudo cp /opt/odoo/v8/server/install/openerp-server.logrotate /etc/logrotate.d/openerp-server
    sudo chmod 755 /etc/logrotate.d/openerp-server
  20. Run the server
    1
    2
    3
    sudo su odoo
    cd /opt/odoo/v8/server/
    ./openerp-server -c /etc/openerp-server.conf &


    Now you can start your odoo in browser with http://localhost:8069. Thank you !!

No comments:

Post a Comment