Zimbra Let’s Encrypt SSL Script Rumi, December 28, 2022 #!/bin/bash -x # SSL certificate installation in Zimbra # with SSL certificate provided by Let’s Encrypt (letsencrypt.org) # Check if running as root if [ “$(id -u)” != “0” ]; then echo “This script must be run as root” 1>&2 exit 1 fi read -p ‘letsencrypt_email [mail@server]: ‘ letsencrypt_email read… Continue Reading
Setup HAProxy Load Balancer for MariaDB Galera Cluster Rumi, December 28, 2022December 28, 2022 If you check the above test scenario and try to create DBs on any of the nodes, you would see that the data would automatically sync between the nodes. Which means Availability is achieved. Now to achieve high availability we will use HaProxy as the loadbalancer. Set up another VM… Continue Reading
MariaDB Galera Cluster on Ubuntu 20 Rumi, December 28, 2022December 28, 2022 MariaDB Galera Cluster is a synchronous multi-master cluster for MariaDB with support for XtraDB/InnoDB storage engines. It has the following top features. It provides active-active multi-master topology You can read and write to any cluster node It has an automatic node joining Automatic membership control, failed nodes drop from the… Continue Reading
Installer for jitsi-meet, jigasi and jibri Rumi, November 19, 2022 Found this lovely code base (that actually worked) on github, supported on a debian 10/11 or ubuntu 20+ versions- The script (jitsi_setup.sh) can be used to install stable version of all 3 on a stand-alone server. This is simply a script version of quick-install document at https://jitsi.github.io/handbook/docs/devops-guide/devops-guide-quickstart It Installs below… Continue Reading
Mount CDROM to Pfsense Rumi, November 19, 2022 Go to a shell. Make a directory to mount the CD at: mkdir /tmp/cdrom Mount the CD: mount_cd9660 /dev/acd0 /tmp/cdrom or mount_cd9660 /dev/cd0 /tmp/cdrom CD is now mounted at /tmp/cdrom. When finished unmount: umount /tmp/cdrom * Note: If your cdrom device is not acd0, check the bootup messages for the… Continue Reading
Running pfSense in a XenServer with xenguest Rumi, November 19, 2022 If you deploy pfSense on a XenServer, you may be shocked at the performance loss-specially on interface speed! But wait, there are some tweaks to make this usable. Installing pfSense Go ahead and setup pfSense like normal, and when you are done, perform the following tweaks. (the day till it’s… Continue Reading
Build WAF with Reverse Proxy Load Balancer using Nginx Rumi, November 16, 2022 Getting Started First, it is recommended to update and upgrade all your software packages to the latest version. You can update all of them by running the following command: apt update -y apt upgrade -y Once all the packages are updated, install other required packages with the following command: apt… Continue Reading
M3U Restream Rumi, November 15, 2022 There’s a wonderful piece of microservice node.js based restream utility, that let you re-stream from a source and also do the ffmped transcoding if you’d like. I just liked the piece! My installed OS was Ubuntu 18.x and I used node version 12.x. The problem You have an IPTV provider… Continue Reading
Install Discourse on Ubuntu 20.04 Rumi, November 14, 2022 Secure the Server Turn on automatic security updates. $ sudo dpkg-reconfigure -plow unattended-upgrades Setup a firewall with ufw. $ sudo apt-get install ufw $ sudo ufw default allow outgoing $ sudo ufw default deny incoming $ sudo ufw allow 22 comment ‘SSH’ $ sudo ufw allow http comment ‘HTTP’ $ sudo… Continue Reading
Monitor Service Port if Down execute a Bash Script Rumi, November 14, 2022 #!/bin/bash HOST_NAME=”127.0.0.1″ HOST_PORT=”1656″ if ( (exec 3<>/dev/tcp/${HOST_NAME}/${HOST_PORT}) 2> /dev/null); then echo -e “PORT: ${HOST_PORT} | ON” else cd /home/rumi/my-app/ && `node service.js` fi exit; Continue Reading