Tutorial Install Odoo 9 di VPS Digital Ocean


INSTALL ODOO 9 ON UBUNTU 14.04 LTS

Odoo has been founded in 2005. After the success of Odoo 8 new features and interface, Odoo S.A launches Odoo version 9 with new enhanced interface with many advanced features. Here, today we tell you how to use Odoo v9 on your server. If you using Odoo 8 already then you don’t need to install all the dependency and postgresql , just install new web dependencies of odoo mentioned in Step 5. Newbies have to follow step to step for working Odoo 9.
Here is the EASIEST way to Install Odoo 9 on Ubuntu 14.04 from GitHub. You are few steps away from exploring Next Big Revolution: “Odoo 9″. Open the terminal and execute below commands step-by-step to achieve excellence.

STEP 1

Update apt source list
sudo apt-get update

STEP 2

Install Updates
sudo apt-get upgrade

STEP 3

Install Python Dependencies for Odoo 8
sudo apt-get install python-dateutil python-docutils python-feedparser python-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid python-psycopg2 python-psutil python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-unittest2 python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi poppler-utils python-pip python-pyPdf python-passlib python-decorator

STEP 4

Install supporting packages for Odoo
sudo apt-get install gcc python-dev mc bzr python-setuptools python-markupsafe python-reportlab-accel python-zsi python-yaml python-argparse python-openssl python-egenix-mxdatetime python-usb python-serial python-jinja2 python-unittest2 python-mock python-docutils lptools make python-pydot python-psutil python-paramiko poppler-utils python-pdftools antiword 

STEP 5

Odoo Web Dependencies
sudo apt-get install -y npm
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo npm install -g less less-plugin-clean-css

STEP 6

Install PostgreSQL
sudo apt-get install python-software-properties
sudo apt-get update
sudo apt-get install postgresql-9.3

STEP 7

Create Database user for Odoo
sudo su postgres
cd
createuser -s odoo
createuser -s system_name
exit

STEP 8

Create Odoo user and group
sudo adduser --system --home=/opt/odoo --group odoo

STEP 9

Download & Install Gdata
cd /opt/odoo
sudo wget http://gdata-python-client.googlecode.com/files/gdata-2.0.18.tar.gz
sudo tar zxvf gdata-2.0.18.tar.gz
sudo chown -R odoo: gdata-2.0.18
sudo -s
cd gdata-2.0.18/
python setup.py install
exit

STEP 10

Get lastest Odoo 9 from github repository. Download the Zip file from URL : “https://github.com/odoo/odoo/tree/9.0″ . Open Folder by command
sudo su nautilus /opt/odoo
Now copy the unzip downloaded folder in opened window
OR
clone direct to the system from GitHub Repository by command :
sudo apt-get install git
cd /opt/odoo
git clone https://www.github.com/odoo/odoo --depth 1 --branch 9.0 --single-branch
sudo chown -R odoo: odoo-9.0

STEP 11

Create folder for custom and test addons (OPTIONAL)
sudo mkdir custom-addons test-addons
sudo chown -R odoo: custom-addons
sudo chown -R odoo: test-addons

STEP 12

Create Odoo Log File
sudo mkdir /var/log/odoo
sudo chown -R odoo:root /var/log/odoo

STEP 13

Edit Odoo configuration file
sudo cp /opt/odoo/odoo-9.0/debian/openerp-server.conf /etc/openerp-server.conf
sudo chown odoo: /etc/openerp-server.conf
sudo gedit /etc/openerp-server.conf
#Copy and paste below content in config file , write correct addons paths
[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/odoo-9.0/addons
;Log settings
logfile = /var/log/odoo/openerp-server.log
log_level = error

STEP 14

Setup Odoo service file
sudo cp /opt/odoo/odoo-9.0/openerp-server /etc/init.d/openerp-server
sudo chmod 755 /etc/init.d/openerp-server
sudo chown root: /etc/init.d/openerp-server

STEP 15

WKHTMLTOPDF for OdooFollow the steps mention in below link and then return back for the next step.
https://www.getopenerp.com/wkhtmltopdf-for-odoo8/

STEP 16

Now Start Odoo Server
cd /opt/odoo/odoo-9.0
./openerp-server

STEP 17

Go to web browser to access Odoo 8
http://localhost:8069
YOU CAN NOW EXPLORE Odoo – 9 . “Open Source is for Open Minds”. If you need any help or support ,kindly contact on below mentioned details.

Source : https://www.getopenerp.com/install-odoo-9-on-ubuntu/