RSS Amplifier

Blog

smallhacks

Linux, FreeBSD, networking, etc.

smallhacks.wordpress.comRSS feed ↗10 posts

Latest posts

It’s always DNS

Problem with mail relay Recently, I found in the Postfix logs on my personal mail server some suspicious temporary rejects, with error Client host rejected: cannot find your reverse hostname [212.132.99.84] The email was eventually delivered after several retries. The root cause needs investigation. The initial assumption was that Postfix was misconfigured. Reproduced the issue locally for further…

MacOS: Accessing SMART information on USB NVMe enclosure

Recently, I purchased an NVMe drive and USB enclosure to do on-site backups of some large files from my Apple M3 Pro. The chipset is JMS-583. It gives around 1Gb/second transfer speed, which is not as good as new USB4/TB enclosures but fast enough for me. I wanted to see SMART data for the drive […]

Installing FreeBSD 14 on IONOS VPS hosting

About IONOS VPS IONOS provides cheap Linux VPS hosting with full root access and unlimited traffic. It also provides a KVM console to administer out-of-band if needed. The only problem is that it does not support FreeBSD; the only available options are Linux flavors. However, I found that installing and using FreeBSD 14 using the mfsBSD project is possible. Internally, IONOS uses the Microsoft…

Updating FreeBSD on armv6 board (RPI-B)

One of my old home automation boards running ebusd is still using Raspberry PI 1 B SoC. FreeBSD is still perfectly supporting this hardware, however, due to being a Tier-2 platform, binary updates freebsd-update are not supported. Of course, one can download the new image, but this will mean re-installing and reconfiguring all the software, […]

Using EP-54V-150W as a home UPS

This tool also exports battery current, so I wrote a small script to grab it from the SSH and export to the format that telegraf expects:

Integration of the gas leakage detection to the smart home

As I am (still) using a gas boiler I need to monitor gas leakage to ensure that if it happens I am aware before it caused any damage. In the past, I was using "dumb" sensors with only sound/led indication of the leak. Now, as it was time to replace the old sensor anyway, I decided to try something more intelligent. Some of the criteria I was using to find the device: It should be able to work…

ZPA ZE314 OBIS

Recently my energy counter was upgraded to ZPA ZE314. I found that reading data with IEC 62056-61 (OBIS) still works as expected, the only difference is that now I need to send not only '\x2F\x3F\x21\x0D\x0A' but also '\x06\x30\x30\x30\x0D\x0A' to start the transfer, so I will have to change my Domoticz integration. Below is the meaning of the attributes, from different sources: /ZPA5ZE314.v61_012…

Converting TD-W8970B + Huawei e3372h to the WIFI LTE Router

Why to do that way I had an old and long-time unused DSL router TP-Link TD-W8970B v1 collecting dust on my shelf. And USB LTE dongle from Huawei, E3372H which I rarely used as a backup connection. As TP-Link also had 2 USB ports I decided to convert it from DSL to LTE using this dongle. Initially, I tried with stock firmware (the last update from 2014) and it was not working. It supports only old,…

Booting FreeBSD 13.1/arm64 on MacOS/arm64 using QEMU

After upgrading to Mac M1 I decided to run FreeBSD virtually. As VirtualBox is not supported on this host (and likely will never be) QEMU was the only possible choice. I found great gist post on how to do this with patched QEMU 6. The good news is that now QEMU 7 is released and it includes all proposed patches + some other related fixes. This note just updating the gist above for the latest QEMU…

Using AM2320B sensor with a FreeBSD/Raspberry Pi

Some time ago my DHT22 sensor, connected to the RPi1 , died (humidity always was showing 99%), so I decided to replace it. I found a cheap AM2320 sensor that was in the same case as my old DHT, so I ordered it. When it arrived I found that its used 4 PINS instead of 3 and I2C protocol instead of simple 1-Wire in DHT. So I had to spend some time learning how to get the data from it. Enabling I2C…