LogoLogo
1.1
1.1
  • 🏠Overview
  • 🏢Architecture
  • 📋Registration
    • Registration Interfaces
      • ODK Collect App
      • Self Service Portal
      • API Interface
      • Manual Entry
      • Bulk Export From CSV
    • ID Verification
    • Registry
  • 🅿️Program Management
    • Eligibility Assessment
    • Proxy Means Test
    • Enrolment
    • Deduplication
    • Program Cycles
    • Entitlement
    • Notifications
  • 💵Payments
    • Payment Modes
    • Payment Manager
    • Payment Batches
    • ID Account Mapper
    • Payment Rails
    • Reimbursements
      • Service Provider Portal
  • 🔐Privacy & Security
  • 📊Monitoring and Reporting
  • 🔧System Administration
    • Developer Mode
    • Role-Based Access Control
    • Internationalization (i18n)
    • Document Store
    • Apps
  • ⛓️Workflows
    • Cash grant scenario
    • Immediate Individual Assistance On-Demand
    • Service Provider Reimbursement
  • 🔗Integrations
    • M-PESA Integration
    • Mojaloop Integration
    • MOSIP Integration
      • ODK MTS Connector
      • Registry MTS Connector
      • Integration with e-Signet
  • 📦Releases
    • 1.1.0
      • Release Notes
  • ↔️REST API
  • ⚒️Testing
  • 👥Community
    • Contributing
    • Code of Conduct
  • 📗License
  • Guides
    • 📔How-To Guides
      • Install WireGuard Client on Desktop/Laptop
      • Install WireGuard Client on Android Device
      • Create User and Assign Role
      • Create a Custom Group
      • Create Program
      • Create Self-Service Portal Form
      • Map Self-Service Portal Form
      • Self Register Online
      • Integrate with MOSIP e-Signet
      • Create ODK Form
      • Provide Form Access to Field Agent
      • Download Form on ODK Collect
      • Register Offline
      • Create MTS Connector
        • Create ODK MTS Connector
        • Create OpenG2P Registry MTS Connector
      • Create Eligibility Manager Types
        • Create Default Eligibility Manager
        • Create ID Document Eligibility Manager
        • Create Phone Number Eligibility Manager
      • Create Eligibility Manager under Program
      • Configure Proxy Means Test
      • Enrol Registrants into Program
      • Configure ID Types
      • Create Deduplication Manager under Program
      • Create Deduplication Manager Types
        • Create ID Deduplication Manager
        • Create Phone Number Deduplication
      • Deduplicate Registrants
      • Create Notification Manager Types
        • Create SMS Notification Manager
        • Create Email Notification Manager
        • Create Fast2SMS Notification Manager
      • Create Notification Manager under Program
      • Send Notifications to Individual Registrants
      • Configure Program Manager under Program
      • Create and Approve Program Cycle
      • Multi-Stage Approval
      • Create Entitlement Voucher Template
      • Create Entitlement Manager Type
        • Create Default Entitlement Manager
        • Create Voucher Entitlement Manager
      • Configure Entitlement Manager under Program
      • Create Payment Manager Types
        • Create Payment Hub EE Payment Manager
        • Create Payment Interoperability Layer Payment Manager
        • Create Default Payment Manager
        • Create Cash Payment Manager
        • Create File Payment Manager
      • Configure Payment Manager in Program
      • Prepare and Send Payment
      • Install SmartScanner App
      • Submit Reimbursement Using the Service Provider Portal
      • Reimburse the service provider
    • 📙Documentation Guides
      • Creating Diagrams
      • OpenG2P Module Doc Template
      • Writing Guidelines For How-To Guides
    • 👩‍💻Developer Zone
      • Getting Started
      • Installing OpenG2P On Linux
      • Technology Stack
      • Modules
        • G2P Entitlement In-kind
        • G2P SelfServicePortal
        • OpenG2P Program Payment: G2P Connect Payment Manager
        • G2P Notifications: Wiserv SMS Service Provider
        • G2P Registry: Rest API
        • G2P Formio
        • G2P Registry: Base
        • G2P Registry: Individual
        • G2P: Proxy Means Test
    • 📘Deployment Guide
      • Deployment on Kubernetes
        • K8s Cluster Requirements
        • K8s Cluster Setup
        • Rancher Server Setup
        • NFS Server Setup
        • SSL Certificates using Letsencrypt
      • Post Install Configuration
      • Access to Deployed Setup
      • Packaging OpenG2P Docker
Powered by GitBook
LogoLogo

Copyright © OpenG2P. This work is licensed under Creative Common Attribution (CC-BY-4.0) International license unless otherwise noted.

On this page
  • Description
  • Pre-requisites
  • Installation of Odoo
  • Installation of OpenG2P package
  1. Guides
  2. Developer Zone

Installing OpenG2P On Linux

PreviousGetting StartedNextTechnology Stack

Last updated 1 year ago

Description

Developers can run the entire OpenG2P package on their machines. The guide here provides steps to install OpenG2P on a laptop/desktop running Linux.

Pre-requisites

  • A Linux server

  • Python3

  • Git

  • PostgreSQL

Installation of Odoo

1. Update system packages

  • Log in to your Linux server using SSH and update the package list and upgrade the existing packages:

sudo apt update
sudo apt upgrade -y

2. Install dependencies

  • Odoo requires several dependencies to function correctly. Install them using the following commands:

sudo apt install -y python3-pip python3-dev build-essential libxml2-dev libxslt1-dev libevent-dev libsasl2-dev libldap2-dev libpq-dev libjpeg-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev libopenjp2-7-dev libtiff5-dev libffi-dev nodejs npm

3. Create Odoo user

  • It is recommended to create a separate system user to run Odoo for security purposes. Create the user with the following command:

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

4. Install and Configure PostgreSQL

  • Install PostgreSQL server and create a new database user for Odoo:

    sudo apt install -y postgresql
    sudo su - postgres
    createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo_user
    exit

5. Install Wkhtmltopdf

  • Odoo supports printing reports as PDF files. Wkhtmltopdf helps to generate PDF reports from HTML data format. Moreover, the Qweb template reports are converted to HTML format by the report engine and Wkhtmltopdf will produce the PDF report:

    sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb
    sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb
    sudo apt install -f

6. Install Odoo

  • Clone the Odoo 15 repository from the official GitHub repository:

    sudo git clone https://github.com/odoo/odoo.git -b 15.0 /opt/odoo/odoo15

Cloning the odoo15 repo takes time because of the large file.

  • Make a new Odoo Python virtual environment:

    cd /opt/odoo
    python3 -m venv odoo-venv
  • Turn on the virtual environment:

    source odoo-venv/bin/activate
  • Switch to the Odoo 15 directory and install the required Python libraries:

    sudo chown -R <odoo_user>: /opt/odoo/odoo15
    cd /opt/odoo/odoo15
    pip3 install wheel
    pip3 install -r requirements.txt

7. Configure Odoo

  • Edit the configuration file /opt/odoo/odoo15/debian/odoo.conf and set the appropriate values for the following parameters:

    sudo nano /opt/odoo/odoo15/debian/odoo.conf

    [options]
    addons_path = /opt/odoo/odoo15/addons
    admin_passwd = strong_admin_password
    db_host = localhost
    db_port = 5432
    db_user = odoo_user
    db_password = your_database_password

8. Start Odoo

  • Start the Odoo server using the following command:

    /opt/odoo/odoo15/odoo-bin -c /opt/odoo/odoo15/debian/odoo.conf

Installation of OpenG2P package

  1. Create a custom-addons folder inside the odoo15 folder to keep all the extra modules.

  2. Clone all the OpenG2P modules:

    git clone <repo_url>
  3. Install the required Python libraries for all the custom addons:

    cd /opt/odoo/custom-addons/<module_directory>
    pip3 install -r requirements.txt
  4. Add addons directory path to the odoo15.conf file.

👩‍💻
Odoo 15.0