LinkedIn Sourceforge

Vincent's Blog

Pleasure in the job puts perfection in the work (Aristote)

Category: OpenBSD

Streaming Hi-Fi Audio from FreeBSD NAS to OpenBSD Playback Machine Using MPD and sndio

Posted on 2025-12-25 18:07:00 by Vincent in OpenBSD FreeBSD

In the world of open-source operating systems, OpenBSD and FreeBSD are renowned for their stability, security, and excellent audio support. This guide describes a clean, automated setup for streaming high-quality music from a FreeBSD-based NAS to an OpenBSD machine connected to a hi-fi DAC over optical fiber (S/PDIF). The solution uses **Music Player Daemon (MPD)** on the FreeBSD NAS as the music server and **sndio** for low-latency, high-fidelity remote audio output to the OpenBSD client. The setup ensures that turning on the amplifier and DAC automatically prepares the OpenBSD audio system and starts playback on the NAS — all without manual intervention.

Read more ...

No More Outage Panic: How I Added Auto-Switching 4G to My Router Setup

Posted on 2025-10-18 14:06:00 by Vincent in OpenBSD

Tired of your WiFi vanishing mid call, leaving you staring at a spinning wheel of movie? I've been there—furious, fumbling for my phone's hotspot like it's 2015. But no more. I just wired up a sneaky 4G sidekick: the TP-Link MR600. It's like a ninja router—silent, speedy, and ready to swoop in when your ISP flakes out. One ping fails? Boom. Traffic flips to cellular backup in seconds. No drama, no downtime. All powered by some clever OpenBSD magic that makes it feel effortless.

Read more ...

My zsh config

Posted on 2025-08-03 18:42:00 by Vincent in FreeBSD Zsh OpenBSD

There are tones of zsh config on internet, but none were matching my needs. Thus, I've decided to build mine and to share it with you. Feel free to copy / re-use part of it.

Read more ...

Just my memory here is how I've configure OpenBSD and FreeBSD for a IPv6 Wifi

Posted on 2025-02-08 13:52:00 by Vincent in OpenBSD FreeBSD

Every year stand one of the biggest OpenSource conference, and this is close to my house. The subject of this blog is to explain how I've configured my OpenBSD 7.6 and FreeBSD 14.1 to connect to their wifi which only "speak" IPv6 This is not a setup I encountered frequently, and I just want to remember how I did it ;)

Read more ...

Avoid duplicate emails sent by crontab

Posted on 2025-01-03 13:36:00 by Vincent in OpenBSD

This is a very spimple idea which avoid that cron job sends too much emails. This script store the hash of the email and, based on that, decide that this is relevant or not.

Read more ...

How to track new lines in log files thanks to awk

Posted on 2024-12-15 11:36:00 by Vincent in OpenBSD

In this blog I'll share a one line command awk allowing me to see only new lines since previous check. I'm heavily using this feature in my daily scripts: /etc/daily.local or /etc/weekly.local. This allows me to only see what has changed since previous days. This is really useful for [last](https://man.openbsd.org/last) command, for [dmesg](https://man.openbsd.org/dmesg) or for `/var/logmessages`.

Read more ...

How to keep config files in sync within a cluster of machines

Posted on 2024-11-16 19:14:00 by Vincent in OpenBSD High Availability

When managing a cluster of OpenBSD machines, keeping configuration files synchronized between nodes is essential for maintaining high availability and consistency. One effective approach for automating this process is to use `entr`, a simple and powerful utility for executing arbitrary commands when files change.

Read more ...

High availability on OpenBSD with carp

Posted on 2024-11-15 21:42:00 by Vincent in OpenBSD High Availability

In this blog, I explain how to setup high availability services between 2 different machines thanks to carp.

Read more ...

A simple cron for Laptops

Posted on 2024-11-06 22:32:00 by Vincent in OpenBSD vdcron

I was frustrated that recurrent jobs are not running like I want via the [cron](https://man.openbsd.org/cron) on my laptops. I was looking for something which trigger actions every hours the machine is running, or once every day, or once every week. For a daily task, it doesn't matter if we are the morning or the evening. For a weekly task doesn't matter if we are saturday, sunday or monday. So I wrote a quite simple shell script dealing with this job, I've called it "vdcron" **Note of 2024/11/10**: This post has few days, and I receive questions about "why not anacron?". So, I've just completed this post with this aspect.

Read more ...

My sysupgrade adapted for OpenBSD 7.6

Posted on 2024-11-01 20:29:00 by Vincent in OpenBSD My Sysupgrade

For several years, I've been using a customized version of [sysupgrade](https://man.openbsd.org/sysupgrade) to avoid deploying all OpenBSD sets across my different machines. This adapted script has been working flawlessly, but in this post, I’ll share an updated version that incorporates the latest features and code improvements from the OpenBSD developers.

Read more ...
Sooner Older