Created
October 15, 2017 09:36
-
-
Save abdulhalim-cu/f6bb6917e382f907f1adf08acdb9f03e to your computer and use it in GitHub Desktop.
Install Odoo 10 on Ubuntu 16.04 LTS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Setp-1: Update & Upgrade Source List | |
update apt source list | |
sudo apt-get upgrade | |
Step-2: 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-3: 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-4: Install Postgresql | |
sudo apt-get install python-software-properties | |
sudo vim /etc/apt/sources.list.d/pgdg.list | |
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 update | |
sudo apt-get install postgresql-9.6 | |
Step-5: Create Database user for Odoo | |
sudo su postgres | |
cd | |
createuser -s Ubuntu_User_Name | |
exit | |
Step-6: Install Gdata | |
sudo wget https://pypi.python.org/packages/a8/70/bd554151443fe9e89d9a934a7891aaffc63b9cb5c7d608972919a002c03c/gdata-2.0.18.tar.gz | |
sudo tar zxvf gdata-2.0.18.tar.gz | |
sudo chown -R Ubuntu_User_Name: gdata-2.0.18 | |
sudo -s | |
cd gdata-2.0.18/ | |
python setup.py install | |
exit | |
Step-7: Download Odoo-10 from github | |
sudo mkdir /opt/odoo | |
cd /opt/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 Ubuntu_User_Name: odoo-10.0 | |
Step-8: Create Odoo Log FIle | |
sudo mkdir /var/log/odoo | |
sudo chown -R Ubuntu_User_Name:root /var/log/odoo | |
Step-8: Edit odoo configuration file | |
sudo cp /opt/odoo/odoo-10.0/debian/odoo.conf /etc/odoo.conf | |
sudo chown Ubuntu_User_Name: /etc/odoo.conf | |
sudo 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 = Ubuntu_User_Name | |
db_password = False | |
addons_path = /opt/odoo/odoo-10.0/addons | |
;Log Settings | |
logfile = /var/log/odoo/odoo.log | |
log_level = error | |
Step-9: Install WKHTMLTOPDF for Odoo | |
sudo wget https://downloads.wkhtmltopdf.org/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb | |
sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb | |
sudo cp /usr/local/bin/wkhtmltoimage /usr/bin/wkhtmltoimage | |
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf | |
Step-10: Now start odoo server | |
cd /opt/odoo/odoo-10.0 | |
./odoo-bin | |
http://localhost:8069 open in browser |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment