Install Odoo 12 and Wkhtmltopdf on Ubuntu 18.04 or Debian 9

Install Odoo 12 Community.

We can install Odoo 12 community on Ubuntu 18.04 server or Debian 9 server in the same ways. Odoo 12 use Python 3 and has better performance than before. There are several steps we need to do, so that Odoo can run properly.


Logo Odoo

  1. Install Postgresql with command sudo apt install postgresql -y.
  2. Download latest Odoo 12 package from repository, wget https://nightly.odoo.com/12.0/nightly/deb/odoo_12.0.latest_all.deb.
  3. Install Odoo 12 package, sudo dpkg -i odoo_12.0.latest_all.deb.
  4. The above command will produce errors because we need to install dependency of the package. To resolve this, we can use sudo apt install -f.

Now you can type localhost:8069 or ip_address:8069 on your browser to make sure that Odoo 12 installed well.

Install Wkhtmltopdf for Odoo 12.

Odoo 12 needs Wkhtmltopdf for print report document. Based on this recommendation, we can choose Wkhtmltopdf version 0.12.1-* or 0.12.5-* for Odoo 12. And I choose to use the newest Wkhtmltopdf which is version 0.12.5-1 for this tutorial.

Wkhtmltopdf

Wkhtmltopdf has different package for Ubuntu and Debian, so we need to download these from different links.

Install Wkhtmltopdf 0.12.5-1 on Ubuntu 18.04.

  1. Download Wkhtmltopdf package for Ubuntu 18.04 from repository, wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb.
  2. Install Wkhtmltopdf package, sudo dpkg -i wkhtmltox_0.12.5–1.bionic_amd64.deb.
  3. Install dependency package, sudo apt install -f.

Install Wkhtmltopdf 0.12.5-1 on Debian 9.

  1. Download Wkhtmltopdf package for Debian 9 from repository, wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.stretch_amd64.deb.
  2. Install Wkhtmltopdf package, sudo dpkg -i wkhtmltox_0.12.5–1.stretch_amd64.deb.
  3. Install dependency package, sudo apt install -f.

That’s it. If you have question, please write in comments section. Thanks for reading. See you.

Read: Run Odoo 12 With Virtualenv on Ubuntu & Debian

Comments