Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Ark74's full-sized avatar

Luis Guzman Ark74

View GitHub Profile
@Ark74
Ark74 / apache-ispconfig3-trisquel.sh
Last active April 29, 2016 23:08
Install Apache 2.4 ISPConfig3 Trisquel 7.0 64Bits
#!/bin/bash
## Install ISPConfig3 on Trisquel 7.0 64Bits on a Digital Ocean Droplet
## Author: Luis Alberto Guzmán García ark.switnet.org
## Modified from: Nilton OS blog.linuxpro.com.br
## https://www.howtoforge.com/perfect-server-ubuntu-14.04-apache2-php-mysql-pureftpd-bind-dovecot-ispconfig-3
##
## Agregar swap de 1G y ajusta archivo ssysctl
fallocate -l 1G /swapfile ; chmod 600 /swapfile ; \
mkswap /swapfile ; swapon /swapfile ; \
@Ark74
Ark74 / php-7.0.X-fpm
Created September 28, 2016 06:38
php-7.0.X-fpm
#! /bin/sh
### BEGIN INIT INFO
# Provides: php-7.0.X-fpm
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts php-7.0.X-fpm
# Description: starts the PHP FastCGI Process Manager daemon
### END INIT INFO
#! /bin/sh
### BEGIN INIT INFO
# Provides: php-7.1-fpm
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts php-7.1-fpm
# Description: starts the PHP FastCGI Process Manager daemon
### END INIT INFO
@Ark74
Ark74 / php-5.6.X-fpm
Last active April 22, 2017 15:44
php-5.6.X-fpm
#! /bin/sh
### BEGIN INIT INFO
# Provides: php-5.6.0-fpm
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts php-5.6.0-fpm
# Description: starts the PHP FastCGI Process Manager daemon
### END INIT INFO
@Ark74
Ark74 / ApacheReverseOdoo.sh
Last active January 9, 2018 17:59
Simple Apache Reverse proxy Odoo
#!/bin/bash
echo '<VirtualHost *:80>
ServerName $DOMAIN
ServerAdmin webmaster@localhost
Redirect permanent / https://$DOMAIN
TransferLog /var/log/apache2/$DOMAIN.log
</VirtualHost>
<VirtualHost *:443>
ServerName $DOMAIN
@Ark74
Ark74 / posbox-ssl.sh
Last active January 10, 2018 10:39
POSBOX SSL for ISPConfig DNS API
#!/bin/bash
# POSBOX SSL for ISPConfig DNS API
# This is an early approach, it is NOT suitable for production, yet. ;)
#
# ToDo
# Bypass RAM disk for apache2 configuration
# otherwise certs configuration is lost on reboot.
# mount -o remount, rw /
# ========== ACME.SH (Let's Encrypt) Installation ==========
@Ark74
Ark74 / patchLT-pInst.sh
Last active July 31, 2018 06:39
Patching Libretime Apache reverse proxy (Xenial/Trusty)
#!/bin/bash
# PatchLT - A simple script for Libretime and reverse proxy
# easing the SSL setup and proxy using Apache2 - @Jul/30/2018
# Use along with PR https://github.com/LibreTime/libretime/pull/501
echo "This post-install script must be run right after finishing installation."
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
@Ark74
Ark74 / kiwix-plug.log
Last active August 7, 2018 06:12
kiwix-plug error log
[STAGE 0/6: Preparations - 0%]
[STAGE 0/6: Preparations - 0%]
--> Check System Requirements
Please read https://framagit.org/ideascube/pibox-installer/wikis/System-Requirements for details
--> Prepare Image file
Call: ['/usr/bin/udisksctl', 'dump']
/org/freedesktop/UDisks2/Manager:
org.freedesktop.UDisks2.Manager:
@Ark74
Ark74 / Silan patch2
Last active August 12, 2018 04:44
Patching Libretime Silan (Jessie/Stretch/Xenial/Trusty/Centos7)
#!/bin/bash
# PatchSilan - A simple script for Libretime and silan backport easing its
# upgrade to a working release for Debian, Ubuntu & CentOS(7) - @Aug/10/2018
#Check distro
if [ -f /etc/redhat-release ]
then
yum -y update && yum install -y wget
SILAN_RPM="$(rpm -q silan | cut -d '-' -f 2)"
elif [ -f /etc/debian_version ]
@Ark74
Ark74 / Install-meet-jibri.sh
Last active January 7, 2019 09:02
First attempt to simplify the jitsi-jibri installation. - DEPRECATED please check: https://github.com/switnet-ltd/quick-jibri-installer
#!/bin/bash
# Quick Jibri Installer
# Luis Guzman - ark@switnet.org
# GPLv3 or later
# SYSTEM SETUP
JITSI_UNS_REPO=$(apt-cache policy | grep http | grep jitsi | grep unstable | awk '{print $3}' | head -n 1 | cut -d "/" -f 1)
CERTBOT_REPO=$(apt-cache policy | grep http | grep certbot | head -n 1 | awk '{print $2}' | cut -d "/" -f 4)
APACHE_2=$(dpkg-query -W -f='${Status}' apache2 2>/dev/null | grep -c "ok installed")
NGINX=$(dpkg-query -W -f='${Status}' nginx 2>/dev/null | grep -c "ok installed")