R8168 over R8169

Now compile the code. This may fail if you don’t have kernel headers and other standard features of a build environment: make clean make modules make install Make sure modprobe knows not to use r8169, and that depmod doesn’t find the r8169 module: echo -e “\nblacklist r8169\n” >> /etc/modprobe.d/blacklist mv /lib/modules/$(uname -r)/kernel/drivers/net/r8169.ko{,.bak} Let the OS…

Gitlab Omnibus Migration

Using Ubuntu 18.04 via a Vagrant Virtualbox VM I migrated a back up from my VPS to a VM at home. In old VM: Backup Gitlab Environment: sudo gitlab-rake gitlab:backup:create In your new VM: Create file: /etc/apt/sources.list.d/gitlab_gitlab-ce.list # this file was generated by packages.gitlab.com for # the repository at https://packages.gitlab.com/gitlab/gitlab-ce deb https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ bionic main deb-src…

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,…