CGroups and net_cls to assign specific IPTables rules

This one was a quick and dirty that I will do better with soon. This will take a kernel that is nearing the 4.5 version capabilities. First modprobe: modprobe cls_cgroup Then create a CGroup for your “task”: mkdir /sys/fs/cgroup/net_cls/mytask Then give it a classid: echo 0x100001 > /sys/fs/cgroup/net_cls/mytask/net_cls.classid Now you can assign PIDs to the…

Building Yocto 2.2 (Krogoth) for the Galileo Gen 2

First off – a quick explanation. Yocto is the umbrella for a number of separate projects Bitbake, Poky, OpenEmbedded and various BSPs. Bitbake is the build tool – the tool that interprets recipes, figures how to build a given package, it’s dependencies, it’s ordering relative to other packages. Openembedded – provides the recipes and support…

Thank you Elastic.io

MySQL into Elasticsearch via Logstash bin/logstash-plugin install logstash-input-jdbc That’s the command you’re probably looking for. Then there’s the example and details at: https://www.elastic.co/guide/en/logstash/current/plugins-inputs-jdbc.html The install for Elasticsearch, Logstash, and Kibana in the 5.x release is wonderful. Getting Nginx working is normal, the /kibana/ attempt failed, might have another try at it later. Further, to search,…

Modern Seamod Conky Config

After upgrading to Xubuntu 16.04 (a slightly better flavor of Ubuntu I think), I noticed that my Conky was looking odd. After some research, I found out that they have changed their parameters for some of the settings. Here is a modern config for Seamod which many have come to love over the years. Of…

Web Host Backup Script

This is a script I have developed to back up my hosting environment, and it actually consists of two. One to be started by cron, and then it starts the other. This allows for a modular setup between your environments (apache/nginx/etc). The scripts: backup.sh #!/bin/bash # Web Host Backup # Cron Version # Jim McKibben…