install bitnami odoo on AWS

Install

Install pdf

wget http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
sudo apt-get install libjpeg8 libpng12-0 xfonts-base xfonts-scalable
sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb

Then copy the binaries to a your /usr/bin directory:
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/
sudo cp /usr/local/bin/wkhtmltoimage /usr/bin/

remove banner

sudo /opt/bitnami/apps/odoo/bnconfig --disable_banner 1
As final step, restart Apache server:
sudo /opt/bitnami/ctlscript.sh restart apache

If you experiment issues with resolution, it could be related to xfonts-75dpi or xfonts-100dpi packages. You can uninstall them executing:

sudo dpkg --remove --force-depends xfonts-75dpi
sudo dpkg --remove --force-depends xfonts-100dpi

downgrade

sudo dpkg -r wkhtmltox
sudo wget http://sourceforge.net/projects/wkhtmltopdf/files/archive/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb

Leave a Reply

Your email address will not be published. Required fields are marked *