Odoo - How To Install Odoo from Github on Ubuntu 14.04 For Testing Purposes Only (ie. not for production) ?

Zarshed Ali
Zarshed Ali
5000
| 2 1 2
Asked on 2/17/15, 6:24 AM
0
vote
4250 Views

Due to recent changes in the base module structure this step by step guide is now out of date. I'd recommend doing the following at a terminal:

wget https://raw.githubusercontent.com/lukebranch/openerp-install-scripts/master/odoo-saas4/ubuntu-14-04/odoo_install.sh
sudo sh odoo_install.sh

this will run a script (forked from Andre Schenkel's original script here - https://github.com/aschenkels-ictstudio/openerp-install-scripts) that will run the process for you. I will update the step by step instructions below when I can find time.

I have found the following steps to work for installing Odoo v8 from the github repository:

https://github.com/odoo/odoo

1) Install Ubuntu 14.04
2) open a terminal 
3) sudo apt-get update
4) sudo apt-get install git
5) apt-get install postgresql
6) sudo su - postgres -c "createuser -s openerp" 2> /dev/null || true
7) sudo apt-get install python-dateutil python-feedparser python-gdata 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-zsi python-docutils \ python-psutil wget python-unittest2 python-mock python-jinja2
8) sudo apt-get install python-dev libpq-dev
9) sudo apt-get install poppler-utils
10) sudo apt-get install python-pdftools
11) sudo apt-get install antiword
12) sudo mkdir /opt/odoo
13) cd /opt/odoo
14) sudo git clone https://github.com/odoo/odoo.git
15) cd ~/
16) wget http://gdata-python-client.googlecode.com/files/gdata-2.0.18.tar.gz
17) tar zxvf gdata-2.0.18.tar.gz
18) cd gdata-2.0.18/
19) sudo python setup.py install
20) cd /opt/odoo
21) sudo apt-get install python-setuptools python-pybabel
22) sudo python setup.py install
23) sudo cp /opt/odoo/install/openerp-server.conf /etc/openerp-server.conf
24) sudo pico -w /etc/openerp-server.conf

delete default settings and add the following:

[options]
; This is the password that allows database operations:
; admin_passwd = admin
; db_host = False
; db_port = False
; db_user = postgres
; db_password = admin

[options]
## Server startup config - Common options
# Admin password for creating, restoring and backing up databases
admin_passwd = admin
# specify additional addons paths (separated by commas)
addons_path = /opt/odoo/addons
## XML-RPC / HTTP - XML-RPC Configuration
# disable the XML-RPC protocol
xmlrpc = True
# Specify the TCP IP address for the XML-RPC protocol. The empty string binds to all interfaces.
xmlrpc_interface = 127.0.0.1
# specify the TCP port for the XML-RPC protocol
xmlrpc_port = 8069
# Enable correct behavior when behind a reverse proxy
proxy_mode = True
## XML-RPC / HTTPS - XML-RPC Secure Configuration
# disable the XML-RPC Secure protocol
xmlrpcs = True
# Specify the TCP IP address for the XML-RPC Secure protocol. The empty string binds to all interfaces.
xmlrpcs_interface = 
# specify the TCP port for the XML-RPC Secure protocol
xmlrpcs_port = 8071
# specify the certificate file for the SSL connection
secure_cert_file = server.cert
# specify the private key file for the SSL connection
secure_pkey_file = server.pkey
## NET-RPC - NET-RPC Configuration
# enable the NETRPC protocol
netrpc = False
# specify the TCP IP address for the NETRPC protocol
netrpc_interface = 127.0.0.1
# specify the TCP port for the NETRPC protocol
netrpc_port = 8070
## WEB - Web interface Configuration
# Filter listed database REGEXP
dbfilter = .*
## Static HTTP - Static HTTP service
# enable static HTTP service for serving plain HTML files
static_http_enable = False 
# specify the directory containing your static HTML files (e.g '/var/www/')
static_http_document_root = None
# specify the URL root prefix where you want web browsers to access your static HTML files (e.g '/')
static_http_url_prefix = None
## Testing Group - Testing Configuration
# Launch a YML test file.
test_file = False
# If set, will save sample of all reports in this directory.
test_report_directory = False
# Enable YAML and unit tests.
test_disable = False
# Commit database changes performed by YAML or XML tests.
test_commit = False
## Logging Group - Logging Configuration
# file where the server log will be stored (default = None)
logfile = /var/log/openerp/openerp-server.log
# do not rotate the logfile
logrotate = True
# Send the log to the syslog server
syslog = False
# setup a handler at LEVEL for a given PREFIX. An empty PREFIX indicates the root logger. This option can be repeated. Example: "openerp.orm:DEBUG" or "werkzeug:CRITICAL" (default: ":INFO")
log_handler = ["[':INFO']"]
# specify the level of the logging. Accepted values: info, debug_rpc, warn, test, critical, debug_sql, error, debug, debug_rpc_answer, notset
#log_level = debug
log_level = info

25) sudo su postgres -c "createuser -s <your_ubuntu_username_here>"    Please simply insert your own ubuntu username in place of <your_ubuntu_username_here>
26) sudo ufw allow 80
27) sudo ufw allow 8072
28) sudo ufw allow 8069
29) cd /opt/odoo
30) ./openerp-gevent -c /etc/openerp-server.conf
31) Go to your browser and type in 127.0.0.1:8072 (this will run in 'Gevent' mode and allow you to use the live chat functionality)
32) Go back to terminal and type ifconfig to find your ubuntu install's IP address on the local network
33) Go to another computer and open a browser to the following page: http://<your-ubuntu-install's-ip-address-here>:8072

Zarshed Ali
Zarshed Ali
5000
| 2 1 2
Answered on 2/17/15, 6:25 AM
0
vote

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Keep Informed

About This Forum

This forum is for HiTechnologia Employees & just Odoo general knowledge purpose only.

Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 2/17/15, 6:24 AM
Seen: 4250 times
Last updated: 2/17/15, 6:25 AM