Skip to content

Instantly share code, notes, and snippets.

View Ark74's full-sized avatar

Luis Guzman Ark74

View GitHub Profile
#!/bin/bash
# Basic bash desktop file crawler
# 2019 - Luis Guzman <ark@switnet.org>
##Check superuser
#if ! [ $(id -u) = 0 ]; then
# echo "You need to be root or have sudo privileges!"
# exit 0
#fi
@Ark74
Ark74 / obs-acc-free.sh
Created December 20, 2018 21:13
Trisquel compliant obs-studio rebuild
#!/bin/bash
apt install \
build-essential \
cdbs \
cmake \
debhelper \
libasound2-dev \
libavcodec-ffmpeg56 \
libavdevice-dev \
@Ark74
Ark74 / setup_trisquel8.sh
Created November 17, 2018 04:08
Backport installer to python3 (Trisquel 8)
#!/bin/sh -e
# "-e" exists on first error.
#Check if user is root
if ! [ $(id -u) = 0 ]; then
echo "You need to be root or have sudo privileges!"
exit 1
fi
apt -yq2 install libpng-dev \
libfreetype6 \
@Ark74
Ark74 / install-google-fonts.sh
Last active October 10, 2018 18:27 — forked from keeferrourke/install-google-fonts.sh
A bash script to install all Google Fonts, system wide, on debian based systems (ex. Ubuntu)
#!/bin/sh
# Written by: Keefer Rourke <https://krourke.org>
# Based on AUR package <https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=ttf-google-fonts-git>
# dependancies: fonts-cantarell, ttf-ubuntu-font-family, git
sudo apt-get install fonts-cantarell, ttf-ubuntu-font-family, git
srcdir="/tmp/google-fonts"
pkgdir="/usr/local/share/fonts"
giturl="git://github.com/google/fonts.git"
@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")
@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 / 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 / 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 / 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 / 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