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