ads' corner

Raspberry Pi: disable Wi-Fi powersave, and stay connected all the time

Recently I installed a Raspberry Pi with Raspbian, and attached a touchscreen to it. The device is supposed to work as a display for our openHAB home automation system. All nice and shiny, except the Pi occasionally disconnects from the Wi-Fi - apparently in order to safe power. Once the network device is needed, the Wi-Fi is reconnected. That is the default setting.

That is quite annoying, because the HABpanel will lose it’s connection to the openHAB server, and no longer show widget updates. Some widgets like “time” will just continue to work, but other widgets like status of the washing machine, or the current outside temperature just show the last state, and never update.


Install GNU parallel with Ansible

GNU parallel allows you to multiplex tasks, and possibly use more CPU resources to speed up the task at hand. This works if your task can be split down into multiple independent tasks which otherwise will be executed serially.


Certificate expiration date in Ansible

In one of my Ansible Playbooks I’m updating Let’s Encrypt certificates. Because the Playbook is rather long, I want to make sure that Ansible is not spending cycles on a certificate which is not about to expire. Hence I wrote a small filter plugin, which receives the certificate path and the number of days the certificate must be still valid.

This plugin is used to filter out any “good” certificate which does not need to be updated.


Replace and re-add a failed drive to a Linux software RAID

Most of my systems run on a software RAID 1 configuration (that is, two disks, where each disk is mirrored to the other). This way, one of the disks can fail and still all the data is available.

If a disk failure happens, the disk is replaced with a similar disk, and then needs to be configured and re-added to the RAID.


Android Podcast Apps

A while ago I asked for recommendations for Android Podcast apps. From all over the Internet I got a great number of recommendations, and looked into all of them.


Pushover app on Huawei Android phones

While diving deeper into my openHAB installation, the need for notifications on mobile phones came up. After some research, I settled with Pushover, which provides Android and iOS apps, as well as Desktop notifications. openHAB Rules have support for Pushover, and everything works well together.

Except when Android decides to kill apps, because they sit idle and do nothing. It so happens on my Huawei phone that notifications are delivered to the device, but no popup shows up. Only when I open the up, suddenly all the messages are there. The Pushover FAQ has an entry for this, even for Huawei phones, but it is outdated.

After another research it turns out, that the battery management in Android is at fault - but it can be disabled.


Create and renew Let's Encrypt certificates using Ansible

Update: Blog post using the acme_certificate module can be found here.

Ansible comes with a plugin which allows to create and renew Let’s Encrypt certificates. Documentation is sparse, so I decided to post about my own Playbook.


How to clear the cached data in Android - without any App

Up until recently I was using an App to clean the the Android cache once in a while. If you don’t, the device over time get’s sluggish, because too many apps store too much data in the cache. Over time this cache can grow to GBs in size.

On the other hand, every single “clean cache App”, over time, started showing more and more aggresive advertising. I get that the developer wants to make some money, that’s fine. But maybe the money is not enough, so more advertising it is.


Migrate Maildir to Gmail

Recently it was time to refurbish our email infrastructure. For a very long time I was hosting everything for myself, but things don’t get easier and over time even the spam filters couldn’t catch up. Therefore I looked into a number of hosted services, and in the end settled with Google Gmail.

End of last year I ran a test, migrated one of my domains over to Gmail and tried out if Gmail offers all the required functionality. As with every change, not everything works flawlessy, but mostly I found ways to get things working. As example we have different domains, several users, multiple identities (one per domain), other servers (like a webserver) can create emails as well (needs to play well with SPF and DKIM), a number of different email programs, mobile support and more.


smplayer starts muted

Recently smplayer (not mplayer) started behaving strange: every video started muted. Pressing the mute button (m key) really muted the sound, pressing the button again unmuted the sound and the audio started playing. This behavior persisted over restarts of smplayer.

Now that is really annoying!