LinkedIn Sourceforge

Vincent's Blog

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

Category: OpenBSD

Sending cron emails from any OpenBSD and FreeBSD machines

Posted on 2024-10-31 11:14:00 by Vincent in OpenBSD FreeBSD

With FreeBSD, the base system includes [dma](https://man.freebsd.org/cgi/man.cgi?query=dma&sektion=8&format=html), the DragonFly Mail Agent. Developed by DragonFlyBSD developers, this SMTP client allows you to route outgoing mail through an established, trusted SMTP server. This blog post will show how to redirect cron's email to a generic email address (agmail account in my case). And each server will have his own source email, so I can distinguish them easily.

Read more ...

How to Resize a Partition in OpenBSD

Posted on 2024-10-26 12:42:00 by Vincent in OpenBSD

Resizing partitions in OpenBSD can be a bit intimidating, but it's a straightforward process if you follow the right steps. This guide will walk you through expanding the /home partition. We'll start with the initial state, then move on to unmounting, resizing, and checking the filesystem before finalizing the changes. All the code snippets provided here are ready to use.

Read more ...

Remotely backup a machine with root without exposing the machine

Posted on 2024-10-14 22:06:00 by Vincent in OpenBSD FreeBSD

We would like to perform few rsync on a remote machine to backup some of his important files. But we do not want PermitRootLogin. In this blog we will see one of the alternative: forced-commands-only

Read more ...

Setup Wireguard as home VPN and connect it via Android

Posted on 2024-10-05 14:17:00 by Vincent in OpenBSD VPN

I'm looking for a simple way to connect my Android devices to my home via VPN. The goal is to have my GSM apps acting as if I'm home. Specially interesting for services I want to use or check, but I don't want to provide them directly on internet. For example my zigbee devices

Read more ...

Let's compare rsync with cpdup

Posted on 2024-09-14 11:12:00 by Vincent in OpenBSD Nas

I have more and more big files to transfer between my end user devices (laptop, mobiles, ...). The goal of this blog is to compare cpdup and rsync to synch files between my OpenBSD laptop and my NAS. Today, files I'm managing are bigger and bigger. For example, with modern camera I often have +500 photos to transfer which represent +6GB of data. Moreover, I'm an heavy user of hardlinks, so I want to make sure all my hardlinks are correctly reproduced on the NAS.

Read more ...

Make a read-only machine with OpenBSD

Posted on 2024-08-18 22:17:00 by Vincent in OpenBSD

In a post of 2016 I explained how to build a Read-Only OpenBSD machine. Because in the recent OpenBSD systems we have new components, this post will update the situation. I remind that a read-only machine is a machine where most filesystems are read-only. As consequence you can cut power of the machine without damaging the filesystems. Personally, I'm using such system for my firewalls and my hifi OpenBSD system.

Read more ...

Simple way to monitor a logfile

Posted on 2024-08-10 20:57:00 by Vincent in OpenBSD

On an old machine running and old BSD OS, I must trigger an email is some keywords are coming in a log file. since this is a very old machine, installation of packages is no more possible. This blog post will show a simple way I've did it with only shell script

Read more ...

When wifi is not supported, just run a VM

Posted on 2024-08-06 20:57:00 by Vincent in OpenBSD

I'm using a brand new laptop (T14s) with a wifi driver not supported by several BSD systems. So, the workaround is to install a VM host and run your preferred OS inside a VM This blog post will show you how this impact performances

Read more ...

NTPD does not sync your clock on OpenBSD

Posted on 2023-12-09 22:48:00 by Vincent in OpenBSD

The clock of your OpenBSD machine is managed by NTPD. But in some cases this is not sufficient

Read more ...

On OpenBSD, shell prompt to show battery's usage of your laptop

Posted on 2023-10-01 15:46:00 by Vincent in OpenBSD

For those using lot of terminal windows on your laptop, I've build a small script showing the battery's usage. His percentage, if it's charging or discharging. Color change to inform that battery is going bellow 20%. Everythin without leaving your usual terminal window ;)

Read more ...
Sooner Older