Kategori : Linux Ubuntu, Odoo, Python23 Mei 2018 11:54:09

Install Odoo 8 In Ubuntu 18.04

Update Server

sudo apt update
sudo apt upgrade -y

 

Install PostgreSQL Server

sudo apt install postgresql -y

 

Creating the PostgreSQL User

sudo su - postgres -c "createuser -s user_name" 2> /dev/null || true

 

Install tool packages

sudo apt install wget subversion git bzr bzrtools python-pip gdebi-core -y

 

Install python packages

sudo apt install git python-pip postgresql postgresql-server-dev-10 python-all-dev python-dev python-setuptools libxml2-dev libxslt1-dev libevent-dev libsasl2-dev libldap2-dev pkg-config libtiff5-dev libjpeg8-dev libjpeg-dev zlib1g-dev libfreetype6-dev liblcms2-dev liblcms2-utils libwebp-dev tcl8.6-dev tk8.6-dev python-tk libyaml-dev fontconfig -y

 

Install other required packages

sudo apt install node-clean-css node-less python-gevent python-cups python-qrcode -y
sudo -H pip install XlsxWriter

 

Install wkhtml (version 0.12.1.3 special for bionic refer to https://github.com/wkhtmltopdf/wkhtmltopdf/issues/3898)

cd /tmp
sudo wget https://builds.wkhtmltopdf.org/0.12.1.3/wkhtmltox_0.12.1.3-1~bionic_amd64.deb
sudo gdebi --n wkhtmltox_0.12.1.3-1~bionic_amd64.deb
sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin
sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin

 

Clone Odoo 8 Repo

sudo git clone --depth 1 --branch 8.0 https://www.github.com/odoo/odoo /your_folder_location/

 

Install odoo requirement (switch to odoo folder first)

cd /path/odoo_folder_location
sudo -H pip install -r requirements.txt
sudo -H pip install -r doc/requirement.txt

 

Create Init Script (Dev Only)

sudo nano start_odoo

 

Paste this script (Dev Only)

#!/bin/bash
UPDATE=$1 #your_module_name
/path/odoo8/odoo.py --log-level=debug_rpc --i18n-overwrite --xmlrpc-port=8096 --db_user=your_user --addons-path=/path/odoo8/addons,/custom_addons_path --update=$UPDATE

 

Make start_odoo executable (Dev Only)

sudo chmod 777 start_odoo

 

Start Your Odoo Server (Dev Only)

./start_odoo module_name
or if you don't want to update any module
./start_odoo none

 

You will see all odoo log on terminal, for production you should set odoo as service.

Share : Share Facebook Share Twitter
Kategori : Linux Ubuntu, Odoo, Python23 Mei 2018 11:54:09

zuka.one
©2011