Configure Ubuntu 14.04.3 LTS Odoo 9.0 development environment

Source: Internet
Author: User
Tags install node git clone wkhtmltopdf vmware fusion

Create an Ubuntu 64bit virtual machine using VMware Fusion 8.0.1:
Install Ubuntu by default with Ubuntu-14.04.3-desktop-amd64.iso image, username odoo, password 123456

To install open VM tools:
Using odoo/123456 to sign in to Ubuntu Desktop, open the terminal window and execute the following command to install open VM tools:
sudo apt-get install Open-vm-toolbox

Install Ubuntu Latest update:

sudo apt-get update && sudo apt-get upgrade

To install Git:

sudo apt-get install git

Create source directory:

mkdir ~/odoo-dev

Enter the catalogue to get the latest source of Odoo 9.0, but do not update the content in history:

CD ~/odoo-dev

git clone https://github.com/odoo/odoo.git-b 9.0--depth 1

To install a dependent library:

./odoo/odoo.py Setup_deps

Install the database: (looks like the previous step has been installed)

./odoo/odoo.py SETUP_PG

Installing Nodejs, Node-less

This step can not be forgotten, or in the future when the Odoo book, the interface will have an error message: Could not execute command LESSC

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

Install Wkhtmltopdf and Chinese fonts:

sudo wget http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb #下载wkhtmltopdf, Note Select the appropriate version based on the operating system
sudo dpkg-i wkhtmltox-0.12.1_linux-trusty-amd64.deb #安装wkhtmltopdf
sudo cp/usr/local/bin/wkhtmltopdf/usr/bin/wkhtmltopdf #安装完成后将可执行文件复制到usr/bin
sudo chown root:root/usr/bin/wkhtmltopdf #更改所有者为root用户
sudo chmod +x/usr/bin/wkhtmltopdf #并增加可执行属性
Wkhtmltopdf www.baidu.com ~/baidu.pdf #打印一个网页到home目录, successful PDF creation indicates successful installation
sudo apt-get install Ttf-wqy-zenhei #安装中文字体
sudo apt-get install Ttf-wqy-microhei #安装中文字体

This article refers to the following:

    • Odoo Development Essentials
    • http://blog.csdn.net/wangnan537/article/details/48895897

Configure Ubuntu 14.04.3 LTS Odoo 9.0 development environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.