Skip to main content

Odoo 9 and 10 Install on Ubuntu 16.04 LTS

Update the system and install all necessary packages

sudo apt-get update && sudo apt-get -y upgradesudo apt-get install git python-pip python-dev python-virtualenv libevent-dev gcc libjpeg-dev libxml2-dev libssl-dev libsasl2-dev node-less libldap2-dev libxslt-dev

Install PostgreSQL

sudo apt-get install postgresql-9.5 postgresql-server-dev-9.5
sudo systemctl enable postgresql.service
sudo systemctl start postgresql.service

Create Odoo users

sudo adduser --system --group odoo10 --home /opt/odoo10
sudo adduser --system --group odoo9 --home /opt/odoo9
Create PostgreSQL database users, odoo10 and odoo9:
sudo su - postgres -c "createuser --createdb --username postgres --no-createrole --no-superuser --no-password odoo10"
sudo su - postgres -c "createuser --createdb --username postgres --no-createrole --no-superuser --no-password odoo9"

Switch to user odoo10 

sudo su - odoo10 -s /bin/bash


Clone the Odoo 10.0 

git clone http://www.github.com/odoo/odoo --depth 1 --branch 10.0 --single-branch /opt/odoo10


Create python virtual environment and install all requirements

cd /opt/odoo10
virtualenv ./venv
source ./venv/bin/activate
pip install -r requirements.txt

Switch back your user

exit

WKHTMLTOPDF 0.12.2

sudo wget -P Downloads http://download.gna.org/wkhtmltopdf/0.12/0.12.2/wkhtmltox-0.12.2_linux-trusty-amd64.deb
cd Downloads
sudo dpkg -i wkhtmltox-0.12.2_linux-trusty-amd64.deb
sudo apt-get -f install

OR

sudo gdebi wkhtmltox-0.12.2_linux-trusty-amd64.deb

sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin
sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin


Configure Odoo
sudo nano /etc/odoo10.conf
[options]
admin_passwd = your_strong_admin_password
db_host = False
db_port = False
db_user = odoo10
db_password = False
addons_path = /opt/odoo10/addons
logfile = /var/log/odoo10.log
xmlrpc_port = 8010
sudo nano /lib/systemd/system/odoo10.service
[Unit]
Description=Odoo 10
Requires=postgresql.service
After=postgresql.service

[Service]
Type=simple
PermissionsStartOnly=true
User=odoo10
Group=odoo10
SyslogIdentifier=odoo10
ExecStart=/opt/odoo10/venv/bin/python2 /opt/odoo10/odoo-bin -c /etc/odoo10.conf

[Install]
WantedBy=multi-user.target
sudo systemctl enable odoo10.service
sudo systemctl start odoo10.service
http://localhost:8010



Comments

Popular posts from this blog

Journey to the linux kernel world.

Lately, I am trying to figure out how to get the 2.6.25 kernel workk with some usb camera support on the AT91RM9200DK base board. However, the board designer who design the board does not follow the exect hardware design as the original design and don't write the proper documentation. It is very difficult for me to find out and figure out how he intend to work the board. I manage to boot the kernel and get the root file system up yesterday. I still trying to figure out how to mount the NAND flash file system work with jffs2 file system. I hope to solve and mount the jffs2 part at the end of the day. to solve - 1. get the nand file system mount 2. get onboard 2 x rs232 and 2 x rs485 work properly 3. get the usb camera work (ov511 and zc0301) 4. compile all other necessary exe to new kernel 5. test test test the whole system and make sure it work properly. 6. release to the wild.