Created
November 27, 2022 18:12
-
-
Save LinuxPlaner/913adb93ae575369bdac13f8d51a0fbb to your computer and use it in GitHub Desktop.
flectra
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ping Me For odoo installing related service: | |
SMS: +8801610932753 | |
IMO: +8801610932753 | |
BiP: +8801610932753 | |
Viber: +8801610932753 | |
Signal: +8801610932753 | |
Discord: supanta saha#3868 | |
Telegram: https://t.me/LinuxPlaner | |
WhatsApp: https://wa.link/njuw4c | |
Skype: https://join.skype.com/weW8UDI0u7o5 | |
Email: [email protected] | |
#!/bin/bash | |
#Install require dependencies | |
sudo apt update | |
sudo apt install gcc python3-venv build-essential python3-pillow python3-wheel python3-lxml python3-dev python3-pip python3-setuptools npm nodejs git gdebi libldap2-dev libsasl2-dev libxml2-dev libxslt1-dev libjpeg-dev libpq-dev | |
#Download and install wkhtmltopdf | |
cd /tmp | |
#Install PostgreSQL | |
sudo apt install postgresql | |
#Set password for Linux user (postgres) | |
#You should be prompted to create a new Linux password for postgres user. | |
#Enter new UNIX password: | |
#Retype new UNIX password: | |
#passwd: password updated successfully | |
#After installing PostgreSQL, run the commands below to setup a database user for Flectra. Use PostgreSQL database utility to create the user. | |
su - flectra | |
#Once the packages are download, run the commands below to create a python virtual environment. | |
#After activating the python virtual environment, run the commands below to open the requirement.txt file and update the highlighted line below to the version of python installed in Ubuntu. | |
#nano flectra/requirements.txt | |
#Confirm these lines are there in the file. | |
#psycopg2==2.8.5; sys_platform != 'win32' | |
#psycopg2==2.8.5; sys_platform == 'win32' | |
#Update to the lines above if different, save the exit the requirements.txt file. Then run these commands | |
pip3 install wheel | |
pip3 install -r flectra/requirements.txt | |
#When you’re done, deactivate the virtual environment and exit. | |
deactivate | |
exit | |
#Configure Flectra | |
sudo mkdir /opt/flectra/flectra-custom-addons | |
sudo mkdir /etc/flectra | |
#Next, make sure that the flectra user is owner of the above directories. | |
sudo chown -R flectra:flectra /opt/flectra/flectra-custom-addons | |
#After that, open Flectra configuration file | |
sudo nano /etc/flectra/flectra.conf | |
[options] | |
admin_passwd = type_your_password_here | |
db_host = False | |
db_port = False | |
#When you’re done, reload systemd and start Flectra service. | |
sudo systemctl daemon-reload | |
sudo systemctl start flectra | |
sudo systemctl enable flectra | |
sudo systemctl status flectra | |
#Install Nginx | |
sudo apt install nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment