Skip to content

Instantly share code, notes, and snippets.

@wannadrunk
Last active November 26, 2017 17:49
Show Gist options
  • Save wannadrunk/7509e487eea872851aeea541d51d3f50 to your computer and use it in GitHub Desktop.
Save wannadrunk/7509e487eea872851aeea541d51d3f50 to your computer and use it in GitHub Desktop.

Debian

# /bin/echo Asia/Bangkok > /etc/timezone
# /bin/rm /etc/localtime
# /bin/ln -s /usr/share/zoneinfo/Asia/Bangkok /etc/localtime

## locale
# /bin/echo en_US.UTF-8 UTF-8 >> /etc/locale.gen
# /bin/echo th_TH.UTF-8 UTF-8 >> /etc/locale.gen
# /usr/sbin/locale-gen

Odoo

# wget -O - https://nightly.odoo.com/odoo.key | apt-key add -
# echo "deb http://nightly.odoo.com/10.0/nightly/deb/ ./" >> /etc/apt/sources.list
# apt-get update && apt-get install odoo

wkhtmltox

wget http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb is for Ubuntu

# apt-get install xfonts-base
# apt-get install xfonts-75dpi
# wget http://nightly.odoo.com/extra/wkhtmltox-0.12.1.2_linux-jessie-amd64.deb
or
# wget https://downloads.wkhtmltopdf.org/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
# dpkg -i wkhtmltox-0.12.1.2_linux-jessie-amd64.deb

Important

cd /usr/local/bin
cp wkhtmltoimage /usr/bin/wkhtmltoimage
cp wkhtmltopdf /usr/bin/wkhtmltopdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment