fbpx

Spotlight

todayOctober 8, 2021

How To's + Postfix taylor

Postfix BCC All Incoming Mail For User or Domain

In this article we’re going to learn how to configure Postfix to BCC all incoming mail for a domain or specific user. First, let’s create the following file in Postfix with the following command: nano /etc/postfix/recipient_bcc_maps To BCC all incoming mail for a single domain, use the following: *@example-a.tld [email protected] [...]






Web Design & Hosting

Give your customers the experience they deserve with a fresh, modern, and fast revitalized online experience.

Learn More
Background

HOW TO: Install Odoo Community Edition V14 on Ubuntu 20.04 LTS Focal Fossa

How To's taylor todayMarch 20, 2021 759 5

Background
share close

In today’s article we’re going to walk you through the steps necessary to install Odoo Community Edition V14 on Ubuntu 20.04 Focal Fossa running in ProxMox V6.3-3. We’re going to be installing and configuring Odoo for a production environment using Git source and Python.

Prerequisites

  • Comfort working within a Command Line environment
  • Basic Networking Knowledge
  • ProxMox V6.3-3 Production Environment
  • A fresh install of Ubuntu 20.04 LTS Focal Fossa

What is Odoo?

Odoo is a suite of business management software tools including CRM, e-commerce, billing, accounting, manufacturing, warehouse, project management, and inventory management to name a few. The Community version is a libre software, licensed under the GNU LGPLv3. The Enterprise version has proprietary extra features and services. The source code for the framework and core ERP modules is curated by the Belgium-based Odoo S.A. Odoo is available for both on-premise and ready to use SaaS environment. You can learn more about Odoo here.

Step One – Configure Your ProxMox Container

We’re going to assume you’ve already configured your ProxMox (or other) virtual environment and have your network configuration set up properly. If you don’t, no worries, we’re working on a How-To for ProxMox and will update this article when it’s live. In the meantime, if you have an Ubuntu 20.04 environment already established, you can still follow along with this guide. You may have to make a few adjustments that will not be covered. Don’t hesitate to leave a comment below if you need some help.

The necessity of this step depends on whether you plan on having Odoo accessible to the WWW or if you only plan on using it locally within your local network. As for this example, we will be configuring Odoo to be accessible via a Fully Qualified Domain Name (FQDN) from anywhere in the world. In other words, it will be accessible via the internet.

As in any case, if you are hosting a publicly accessible application on your own network, you’ll want to ensure your network is safe from any intruders or malicious attackers. The specifics of configuring your network are out of the scope of this article, but we’ll cover those at a later date and update this article when we do.

As for your ProxMox or Virtual Environment, you’ll want to ensure the container you’re hosting Odoo in has sufficient CPU, RAM and Storage. The official Odoo guide recommends the following specifications depending on the number of users you will have:

  • 5 Users: 2 CPU Cores / 2Gb RAM
  • 20 Users: 4 CPU Cores / 8Gb RAM
  • 100+ Users: 2×8 CPU Cores (16 Cores) / 32Gb RAM

In a nutshell, the minimum recommended environment is as-follows:

  • 64-Bit Processor
  • 1 Socket w/ 6 Cores
  • 8Gb Memory

For this example we’ll be configuring our system as-follows:

  • 2×4 CPU (2 Sockets w/ 4 Cores each)
  • 8Gb RAM w/ 2Gb Swap
  • Storage: 10Gb

Step One – Ensure your server is up to date:

sudo apt-get update
sudo apt-get upgrade -y

Step Two – Create an Odoo User and add to Odoo group

sudo adduser -system -home=/opt/odoo -group odoo

Step Three – Install PostgreSQL Server

sudo apt-get install postgresql -y

Step Four – Create Odoo User for Postgre

sudo su - postgres -c "createuser -s odoo" 2> /dev/null || true

Step Five (A) – Install Python Dependencies

sudo apt-get install git python3 python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less libjpeg-dev gdebi -y

Step Five (B) – Install Python PIP Dependencies

sudo apt-get install libpq-dev python-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libffi-dev
sudo -H pip3 install -r https://raw.githubusercontent.com/odoo/odoo/master/requirements.txt

Step Six – Install Other Required Packages

sudo apt-get install nodejs npm -y
sudo npm install -g rtlcss

Step Seven – Install Wkhtmltopdf

sudo apt-get install xfonts-75dpi
sudo wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb 
sudo dpkg -i wkhtmltox_0.12.6-1.bionic_amd64.deb 
sudo cp /usr/local/bin/wkhtmltoimage /usr/bin/wkhtmltoimage
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf

Step Nine – Create a Log Directory

sudo mkdir /var/log/odoo
sudo chown odoo:odoo /var/log/odoo

Step Ten – Install Odoo

sudo apt-get install git
sudo git clone --depth 1 --branch 14.0 https://www.github.com/odoo/odoo /odoo/odoo-server

Step Eleven – Set Permissions on Home Folder

sudo chown -R odoo:odoo /odoo/*

Step Twelve – Create Server Config File

sudo touch /etc/odoo-server.conf
                        
sudo su root -c "printf '[options] \n; This is the password that allows database operations:\n' >> /etc/odoo-server.conf"
sudo su root -c "printf 'admin_passwd = admin\n' >> /etc/odoo-server.conf"
sudo su root -c "printf 'xmlrpc_port = 8069\n' >> /etc/odoo-server.conf"
sudo su root -c "printf 'logfile = /var/log/odoo/odoo-server.log\n' >> /etc/odoo-server.conf"                   
sudo su root -c "printf 'addons_path=/odoo/odoo-server/addons\n' >> /etc/odoo-server.conf"
sudo chown odoo:odoo /etc/odoo-server.conf
sudo chmod 640 /etc/odoo-server.conf

Step Thirteen – Start Odoo Server

sudo su - odoo -s /bin/bash
cd /odoo/odoo-server
./odoo-bin -c /etc/odoo-server.conf

Congrats! You now have an operational Odoo instance. If your network is configured correctly you can access your new Odoo by navigating to http://<your server IP address>:8069/

Configure Your Webserver

In order to access Odoo via the internet or a FQDN, you’ll want to ensure you do the following:

  • Ensure your firewall and local webserver is properly configured to allow HTTP/HTTPS traffic.
  • Create a reverse proxy for your domain to point to your Odoo server IP address.
  • And as always, we recommend using Cloudflare DNS for all of your websites / domain names in order to gain an extremely comprehensive set of security, DDoS protection, and extensive CDN to help speed up your page load times at no cost.

Thanks for following along! Let us know if you have any questions or comments in the comments below.

Prefer to use our hosting services instead? No problem! We’ll have you up and running in no time. Get in touch with us here!

Written by: taylor

Tagged as: , , , , , , , , , .

Rate it
Previous post

Similar posts

Post comments (0)

Leave a reply

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


  • Locally Owned and Operated
  • Independent, Honest, Intuitive, Knowledgeable


Verticals

Follow us