ads' corner

Audio "too loud" and volume switch not working in Ubuntu

Installed my new laptop, and everything seemed to work, out of the box. Almost everything.

The audio was quite annoying. First of all, every application got it’s own volume setting. In theory that is a nice idea, and you can control and manage the volume for every application separately. In practice, this is a nightmare: try changing the volume of an application which only once in a while sends a short notification. Or try changing the volume of the sound when you close the laptop lid. On top of that, the volume for applications like Chome and Firefox seem to be stuck at 100%. Every time I change the volume, the setting is back on “loud” the next time the browser plays something.


SMART error (ErrorCount) detected on host - but the NVRAM disk is perfectly fine

Recently I got a new system with a NVRAM disk (nice and fast). Upon installing smartmontools, it started reporting that the error counter for the disk is increasing. For a brand new disk?


webhook service with TLS and Let's Encrypt certificate

For a number of services, I need a system/service which can receive web hooks, and act when such a trigger is received.


Ansible: Just mount an existing filesystem

There is no easy way to “just mount” an existing filesystem in Ansible, using the mount module. I just want to mount an already defined mount point, and don’t really care about all the configuration here.


Ansible: copy a directory recursive - take two

Another slow attempt at copying directories and files on a remote system from one place to another, using just Ansible operations.


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.


Raspberry - Raspbian - First steps

Installing a new Raspberry Pi is always the same few steps, and still I have to look them up almost every time. Here is the summary.


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.


Reading data from my Scuba Diving computer after Linux removed IrDA support

When I go Scuba Diving, I use two diving computers. It’s always good to have a fallback, right? My main computer is a ScubaPro Uwatec Galileo Luna. That’s a wrist mounted computer with hoseless air-integration. That means that a sender is connected to the first stage of the regulator, and it transmits data to the wrist computer. In addition the computer records data like depths, consumption, temperature, alarms ect. My fallback is an air-integrated console mounted Suuntu Cobra. I check this computer too when I’m under water, but mostly for the most conservative reading for the safety stop.


Ansible: copy a directory recursive

Recently I was looking for a way to copy a directory with all subdirectories, using Ansible. For reasons beyond this post I couldn’t use the synchronize (rsync) module. So I had to find a way to copy everything with basic Ansible steps.

That is possible, but it requires several steps, and it is very slow. Up to the point where it is not practical to use this approach for more than a few files and directories. Nevertheless, before moving on to another solution, I thought I document the steps here.