Giter Club home page Giter Club logo

webinar_fits's Introduction

How to setup Odoo version 12 Community

Resource and download script

1.Install manual

link tutorial by linuxize.

link tutorial by getopenerp.com.

2.Install by Script development

Yenthe Script.

3.Install by Script development Odoo version 12 to Ubuntu 20.04 (LTS)

Jerichoruz Script.

Requirements

  • python 3.7 for odoo12
  • PostgreSQL
  • Wkhtmltopdf

Before you begin

Login to you Ubuntu machine as a sudo user and update the system to the latest packages:

sudo apt update && sudo apt upgrade

Install Git , Pip , Node.js and the tools required to build Odoo dependencies:

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

Create Odoo user

  • Create a new system user for Odoo named odoo12 with home directory /opt/odoo12 using the following command:

sudo useradd -m -d /opt/odoo12 -U -r -s /bin/bash odoo12

You can use any name for your Odoo user as long you create a PostgreSQL user with the same name.

Install and Configure PostgreSQL

Install the PostgreSQL package from the Ubuntu’s default repositories:

sudo apt install postgresql

Once the installation is completed, create a PostgreSQL user with the same name as the previously created system user, in our case that is odoo12:

sudo su - postgres -c "createuser -s odoo12"

Install Wkhtmltopdf

The wkhtmltox package provides a set of open-source command line tools which can render HTML into PDF and various image formats. In order to print PDF reports, you will need the wkhtmltopdf tool. The recommended version for Odoo is 0.12.x which is not available in the official Ubuntu 18.04 repositories.

wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb

Once the download is completed install the package by typing:

sudo apt install ./wkhtmltox_0.12.5-1.bionic_amd64.deb

Install and Configure Odoo12

We will install Odoo from the GitHub repository inside an isolated Python virtual environment. Before starting with the installation process, change to user “odoo12”: sudo su - odoo12

Start by cloning the Odoo 12 source code from the Odoo GitHub repository:

git clone https://www.github.com/odoo/odoo --depth 1 --branch 12.0 /opt/odoo12/odoo

Once the source code is downloaded, create a new Python virtual environment for the Odoo 12 installation:

cd /opt/odoo12
python3 -m venv odoo-venv

Next, activate the environment with the following command:

source odoo-venv/bin/activate

Install all required Python modules with pip3:

(venv) pip3 install wheel

(venv) pip3 install -r odoo/requirements.txt

If you encounter any compilation errors during the installation, make sure that you installed all of the required dependencies listed in the Before you begin _ section.

Deactivate the environment using the following command:

(venv) deactivate

Create a new directory for the custom addons:

mkdir /opt/odoo12/odoo-custom-addons

Switch back to your sudo user:

exit

Next, create a configuration file, by copying the included sample configuration file:

sudo cp /opt/odoo12/odoo/debian/odoo.conf /etc/odoo12.conf

Open the file and edit it as follows:

[options]
; This is the password that allows database operations:
admin_passwd = my_admin_passwd
db_host = False
db_port = False
db_user = odoo12
db_password = False
addons_path = /opt/odoo12/odoo/addons,/opt/odoo12/odoo-custom-addons

Modif your file.conf

Get download file.conf

Additional Install

Install Nginx

link tutorial by digitalocean.

Install Webmin

link tutorial by digitalocean.

How to setup Odoo12 Docker and Kubernetes

Command Docker

docker login

_put Dockerfile in addons path_

addons_path# docker build -t your/docker-images:tag .

docker images

docker ps

docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:10

docker run -p 8069:8069 --name odoo --link db:db -t odoo

docker stop odoo
docker start -a odoo

docker pull your/docker-images:tag

docker run -p 8069:8069 --link db:db -d your/docker-images:tag

docker push your/docker-images:tag

docker cp . odoo14:/mnt/extra-addons

docker exec -u root -it odoo14 /bin/bash

webinar_fits's People

Contributors

ampradana avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.