Install Odoo 10 on Ubuntu 16.04 LTS
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
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 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 lptools make python-pydot python-psutil python-paramiko poppler-utils python-pdftools antiword python-requests python-xlsxwriter python-suds python-psycogreen python-ofxparse python-gevent Step 4
Odoo Web Dependencies
sudo apt-get install -y npmsudo ln -s /usr/bin/nodejs /usr/bin/nodesudo npm install -g less less-plugin-clean-css Step 5
Install PostgreSQL
add a line for the repository
sudo apt-get install python-software-propertiessudo vim /etc/apt/sources.list.d/pgdg.listadd a line for the repository
deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -sudo apt-get updatesudo apt-get install postgresql-9.6 Step 6
Create Database user for Odoo
sudo su postgrescreateuser -s odoocreateuser -s ubuntu_user_nameexit Step 7
Create Odoo user and group
sudo adduser --system --home=/opt/odoo --group odoo Step 9
Odoo 10 Download from GitHub
Get lastest Odoo 10 from github repository. Download the Zip file from URL :
“https://github.com/odoo/odoo/tree/10.0″ .
Transfer the same file to /opt/odoo directory on server through ftp. Otherwise Follow the below Step
Git Clone Odoo
Get lastest Odoo 10 from github repository. Download the Zip file from URL :
“https://github.com/odoo/odoo/tree/10.0″ .
Transfer the same file to /opt/odoo directory on server through ftp. Otherwise Follow the below Step
cd /opt/odooGit Clone Odoo
git clone --depth=1 --branch=10.0 https://github.com/odoo/odoo.git /opt/odoo/odoo sudo mv odoo/ odoo-10.0/ sudo chown -R odoo: odoo-10.0 Step 10
Create Odoo Log File
sudo mkdir /var/log/odoosudo chown -R odoo:root /var/log/odoo Step 11
Edit Odoo configuration file
sudo cp /opt/odoo/odoo-10.0/debian/odoo.conf /etc/odoo.confsudo chown odoo: /etc/odoo.confsudo vim /etc/odoo.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-10.0/addons
;Log Settings
logfile = /var/log/odoo/odoo.log
log_level = errorStep 13
Now Start Odoo Server
cd /opt/odoo/odoo-10.0./odoo-bin 

0 comments:
Post a Comment