1. The document provides instructions for installing ODOO v8.0 on an Ubuntu 14.04 LTS system, including creating a system user, installing PostgreSQL and dependencies, cloning the ODOO code from GitHub, configuring the database and ODOO settings, and setting up a boot script to start ODOO on startup.
2. Steps include creating a PostgreSQL user, editing the PostgreSQL configuration files to allow remote connections, installing dependencies like Python modules, cloning the ODOO code, editing the ODOO configuration file, and creating an init script to start ODOO as a service.
3. The instructions conclude by noting that automatic startup and shutdown can be enabled, and that an installation
1 of 10
More Related Content
Installing odoo v8 from github
1. Install ODOO v8.0 from Github | Ubuntu 14.04 LTS | formerly
OpenERP
1. Create a user for the ODOO application
sudo adduser --system --quiet --shell=/bin/bash --home=/opt/odoo --gecos
'ODOO' --group odoo
2. Install PostgreSQL database and add odoo as a
postgres superuser
? sudo apt-get install postgresql –y
3. Login to postgres database and create odoo
user with superuser preveleges
? sudo su postgres
? psql template1
? CREATE ROLE odoo WITH SUPERUSER;
? ALTER ROLE odoo WITH PASSWORD ‘XXXXX’;
2. 4. To check the postgres db users follow this command
du
5. Change the postgesql.conf file to accept connections
on all interfaces (development use only)
sudo vim /etc/postgresql/9.3/main/postgresql.conf
6. Find the listen parameter and remove the # and
listen to adress *
listen_address = '*’
7. Change the pg_hba.conf file to change the way
authentication takes place
sudo vi /etc/postgresql/9.3/main/pg_hba.conf
3. 8. Find the following line
? local all all peer
? hosts all all 127.0.0.1/32 md5
9. Change to:
? local all all md5
? hosts all all 127.0.0.1/32 md5
10. Install the required dependencies for ODOO
sudo apt-get install python-dateutil python-feedparser 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
python-mock python-unittest2 python-jinja2 python-pypdf python-decorator
python-requests python-passlib -y
4. 11. Install latest gdata-python-client
from http://code.google.com/p/gdata-python-client/
downloads/list
? get 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
12.Install github
– sudo apt-get install git
5. 13. Install ODOO 8.0 from Github
? sudo su - odoo
? git clone https://www.github.com/odoo/odoo --branch 8.0
? chown -R odoo: *
? exit
14. Configure the ODOO
sudo cp /opt/odoo/odoo/debian/openerp-server.conf /etc/odoo-server.conf
sudo chown odoo: /etc/odoo-server.conf
sudo chmod 640 /etc/odoo-server.conf
In the /etc/odoo-server.conf file you need to
following lines.
sudo vim /etc/odoo-server.conf
change the line: (in vim use i to start editing)
? db_user = openerp
? db_password = false
with:
? db_user = odoo db_password = XXXXXX
6. ? (the password setup with the ALTER ROLE command)
? addons_path = /opt/odoo/odoo/addons
? logfile = /var/log/odoo/odoo-server.log
Save the file (ESC :x)
Create a dir for the log file and give the correct
permissions
? sudo mkdir /var/log/odoo
? sudo chown odoo:root /var/log/odoo
Check if the server works
? sudo su odoo
? cd /opt/odoo/odoo
? ./openerp-server
? Go to your brouser and in type http://[ip or dns name of server]:8069
? In the linux command line press Control + C to quit
7. Installing a boot script (if you want a boot script)
? sudo vim /etc/init.d/odoo-server
? Press i to start editing
Copy and paste the following
#!/bin/sh
### BEGIN INIT INFO
# Provides: odoo-server
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Business Applications
# Description: ODOO Business Applications.
### END INIT INFO
PATH=/bin:/sbin:/usr/bin
DAEMON=/opt/odoo/odoo/openerp-server
NAME=odoo-server
DESC=odoo-server
# Specify the user name (Default: openerp).
USER=odoo
# Specify an alternate config file (Default: /etc/odoo-server.conf).
CONFIGFILE="/etc/odoo-server.conf"
# pidfile
PIDFILE=/var/run/$NAME.pid
# Additional options that are passed to the Daemon.
DAEMON_OPTS="-c $CONFIGFILE"
[ -x $DAEMON ] || exit 0
[ -f $CONFIGFILE ] || exit 0
checkpid() {
9. ? Save the file (ESC :x)
Check if the server works
? sudo chmod 755 /etc/init.d/odoo-server
? sudo chown root: /etc/init.d/odoo-server
? sudo /etc/init.d/odoo-server start
You should now be able to view the logfile and see that
the server has started
? less /var/log/odoo/odoo-server.log
10. and check it using your brwoser and go to: http://[ip or dns name of
server]:8069 You should see the login screen or database creation of
OpenERP Change the (super)admin password of openerp. Click on Manage
Databases (perhaps you’re already here). Change the password. It adds the
password in plain text in the /etc/odoo-server.conf file, that’s why we changed the
permissions on this file!
Stop the server
? sudo /etc/init.d/odoo-server stop
Automatic Startup and Shutdown
? sudo update-rc.d odoo-server defaults
If you reboot the server everything should be working.
? If you are searching for an easier way of provisioning your server you could use
my ODOO v8 Install Script.