Sometimes you have a bunch of files, for example a bunch of images, which name consists of just a number and an extension. When you want to process them further sorting them will sometimes fail when they are not prefixed with a zero. That’s easily solved in a one-liner
Continue reading “Rename numbered files”Tag: Linux
Monitor certificate expiration (hosts)
In another Blog Post (Monitor certificate expiration) I showed a small script which checks local certificates for their expiration date and warns when it is near. This due to the fact that lets-encrypt does not send out warning mails anymore.
Checking a remote host is also something that a small bash script can do.
Continue reading “Monitor certificate expiration (hosts)”Monitor certificate expiration
Lately I got a message from lets-encrypt stating they are ending the notification mails they send out to remind you of certificates expiring. As I do have lets-encrypt certificates which are not auto renewed because of the challenge mechanism I liked those messages.
But nothing that a small bash script can’t fix.
Continue reading “Monitor certificate expiration”Hardlink with rsync
Sometimes you want to create a quick snapshot of a few files / folders. rsync is a great tool for this. And sometimes you don’t want to copy the files because that takes up space and you might be copying them to the same filesystem. Hardlinking is quite a nice option in this case (if the filesystem supports it)
Continue reading “Hardlink with rsync”Resize physical volume without reboot
Sometimes you need to resize a filesystem because it grows out of it’s available space. With virtual machines this is quite easy, just resize the disk. But…. how do you make Linux know the disk has been resized?
Continue reading “Resize physical volume without reboot”Connect a record player to Squeezeboxserver
For my audio system I’m making use of Logitech Squeezeboxes, as I’ve converted most of my CD’s (yes I’m old ;)) to MP3 format. In this way I’m able to play/stream the same music throughout my house. Spotify is also integrated into this set-up so I’m able to play that as well.
But I also have a record player (old remember ;)) with vinyl records. It would be nice to play them through the same system….
UTM as a makeshift Vagrant replacement
It’s almost becoming a series about UTM, my quest of finding replacements for tooling I used on my Intel based MacBook Pro. This time a little article about how I’m using UTM as a replacement for my usage of Vagrant.
Continue reading “UTM as a makeshift Vagrant replacement”Using a remote USB serial device locally (Linux)
Sometimes you want to use a USB serial device at a different location of where it is “plugged in”. With two tools (ser2net and socat) this is quite easy to do.
Continue reading “Using a remote USB serial device locally (Linux)”Lookup udev attributes
In a previous post (Passing serial port to unprivileged container) I needed to create an udev rule to adjust the permissions on a serial port I wanted to pass through to a container. How did I come up with the values needed in the rule?
Continue reading “Lookup udev attributes”Passing serial port to unprivileged container
I make use of Proxmox and sometimes you need to use an external device within a LXC container. This article describes howto pass a serial port to the container, but the procedure is the same for any device.
Continue reading “Passing serial port to unprivileged container”