How To Install OpenEduCat 13 on CentOS7


In this tutorial, we’ll install and configure OpenEduCat version 13 on CentOS 7. We can use the same installation instructions for both server and desktop edition.We will cover how to install the software in two different ways, each of which have their own benefits depending on your specific needs.


Before starting this tutorial, you will need:

  • A CentOS 7 Desktop or Server with a root, sudo-enabled user.
  • A good internet connection to download the packages via various internet repositories.

Option 1 :

Step by step guide to install guide. Execute each step as “root” user.

Step 1 — Add flectra user to the system

sudo adduser --system --shell=/bin/bash --home-dir=/opt/flectra -m flectra

Step 2 — Make Configuration Directory and Log Directory

sudo mkdir /etc/flectra && mkdir /var/log/flectra/

Step 3 — Installing Necessary OS Related Packages

sudo yum install -y && sudo yum update -y && yum upgrade -y && sudo yum groupinstall 'Development Tools' -y && sudo yum install python36u python36u-devel python36-pillow python36-lxml npm nodejs libxml2-devel libjpeg-devel libxml2 libxslt libxslt-devel wget libpng libjpeg openssl icu libX11 libXext libXrender xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi python3-pip python3-setuptools git openldap-devel -y

Step 4 — Installing PostgreSQL

rpm -Uvh && yum install postgresql10-server postgresql10 -y && /usr/pgsql-10/bin/postgresql-10-setup initdb && systemctl start postgresql-10.service && systemctl enable postgresql-10.service

Step 5 — Installing Node Packages Required by flectra

sudo npm install -g less less-plugin-clean-css -y

Step 6 — Cloning flectra 13 From Source Repository

git clone --depth=1 --branch=13.0 /opt/flectra/flectra

Step 7 — Cloning OpenEduCat 13 From Source Repository

git clone --depth=1 --branch=13.0 /opt/flectra/openeducat

Step 8 — Change Ownership of flectra Directory

sudo chown flectra:flectra /opt/flectra/ -R && sudo chown flectra:flectra /var/log/flectra/ -R

Step 9 — Installing Python Packages Required by flectra

cd /opt/flectra/flectra && sudo pip3 install -r requirements.txt

Step 10 — Installing wkhtmltopdf

cd /tmp && wget && rpm -Uvh wkhtmltox-0.12.5-1.centos7.x86_64.rpm

Step 11 — Linking wkhtmltopdf as Command

sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin/ && sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin/

Step 12 — Creating PostgreSQL user for flectra

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

Step 13 — Starting flectra and Creating Config File

sudo su - flectra -c "/opt/flectra/flectra/flectra-bin --addons-path=/opt/flectra/flectra/addons -s --stop-after-init"

Step 14 — Moving Config File To Config Directory

sudo mv /opt/flectra/.flectrarc /etc/flectra/flectra.conf

Step 15 — Modifying Configuration Parameters

sudo sed -i "s,^\(addons_path = \).*,\1"/opt/flectra/flectra/addons\\,/opt/flectra/openeducat/"," /etc/flectra/flectra.conf sudo sed -i "s,^\(logfile = \).*,\1"/var/log/flectra/flectra-server.log"," /etc/flectra/flectra.conf sudo sed -i "s,^\(logrotate = \).*,\1"True"," /etc/flectra/flectra.conf sudo sed -i "s,^\(proxy_mode = \).*,\1"True"," /etc/flectra/flectra.conf

Step 16 — Setting up flectra Executable

sudo ln -s /opt/flectra/flectra/flectra-bin /usr/bin/flectra

Step 17 — Setting Up flectra To Start at OS StartUp

sudo cp /opt/flectra/flectra/debian/flectra.service /etc/systemd/system/flectra.service && chmod +x /etc/systemd/system/flectra.service && sudo systemctl daemon-reload && sudo systemctl start flectra && sudo systemctl enable flectra && chkconfig --levels 2345 flectra on

Option 2 :

sudo yum install wget && sudo wget && bash oec12centos