Blog
Technical posts
On Linux, networking, monitoring and automation, from projects and the home lab.
Linux: How to rsync incrementally to a remote where root logins per ssh are not permitted
Linux: How to rsync incrementally to a remote host where root logins per ssh are not permitted
By Magnus Lübeck
Rancher: How to get an admin token for K3S/Rancher for fully automated rancher installation
How to get an admin API token from Rancher with the admin password, for a fully automated installation.
By Magnus Lübeck
Docker: Use the container traefik/whoami to troubleshoot nginx headers
Docker: Use the container traefik/whoami to troubleshoot nginx headers
By Magnus Lübeck
Docker: How to figure out which overlay2 belongs to which container
How to figure out which overlay2 belongs to which container?
By Magnus Lübeck
Docker: Where did I start that container?
How to figure out where you put those docker-compose.yml files
By Magnus Lübeck
Docker: quick setup of semi portable Immich installation
How to quickly set up an Immich installation at home
By Magnus Lübeck
Docker: curl to exposed container port which is not published to the outside (Jitsi endpoint for counting sessions)
How to curl to jitsi prosody to count sessions, but also how to access non published tcp ports of a running container
By Magnus Lübeck
Sudo: sudo -iu without password
sudo -iu without password
By Magnus Lübeck, Andrin Linggi
Synology: Remove files from BTRFS snapshots
Remove files from BTRFS snapshots
By Magnus Lübeck
Docker: rails redirect to non standard ports
How to make a Rails redirect work behind an nginx proxy in docker when using a non standard port.
By Magnus Lübeck
'ello world!
Introduction of Mikael Eriksson
By Mikael Eriksson
Docker: stop containers with the proper signals
Quickly stopping containers with the proper signals
By Magnus Lübeck
RPI: Count connected screens with i3
Count connected screens in i3 on a raspberry pi 4
By Magnus Lübeck
K3S: Saving grafana from a broken k3s/rancher installation
How I extracted the data of a grafana instance from a broken k3s cluster and ran it in a docker container.
By Magnus Lübeck
Yubikey: Store a wireguard private key on your yubikey
Wireguard using a PKCS token on hardware.
By Magnus Lübeck
Ansible: bring powershell output into ansible variables
Convert powershell command output to json and consume it in Ansible.
By Magnus Lübeck
SSH: Bring Your Keys With You
Switch to another user in an ssh session, but keep your ssh-agent.
By Magnus Lübeck
Ansible: why did my remote script not start my service?
Using nohup in remote scripts when starting services per Ansible.
By Andrin Linggi
OSX: clean up OSX SSH keyring
Fixing SSH too many authentication failures.
By Magnus Lübeck
WSUS: brute force patching
Make a Windows server forget about patches from the internet.
By Magnus Lübeck
Speed up ansible for windows with PSRP
In our environment we used to use _winrm_. It just caught my attention (about a year too late) that from Ansible 2.7 you can use PSRP (PowerShell Remote Protocol) to execute your playbooks.
By Magnus Lübeck
Temporarily turn off URI parsing in Powershell
Powershell\s invoke-restmethod did not work as intended. Some REST calls worked, but some didn't. It took me quite some time to figure out what was going on...
By Magnus Lübeck
Install hassio/Home Assistant on a raspberry pi with Raspbian Buster
If you install Homeassistant on Raspbian Buster using the step by step description at home-assistant.io, the web gui does not start. Your browser is hanging, and there is no good error message.
By Magnus Lübeck
Ansible: b64decode filter when using _copy_ not binary safe - example for Windows
Sometimes you would like to fetch a file from one server, then put it onto another. There are many ways to solve this.
By Magnus Lübeck
Iperf on ESXi
Quick one. If you need iperf on your ESXi server, you need to install an obscure, 3rd party package.
By Magnus Lübeck
pgAdmin on Docker/Ubuntu 18
This post will quickly show how to set up an Ubuntu 18 in a virtual machine, install Docker and set up pgAdmin with a persistent volume.
By Magnus Lübeck
Installing pfSense version >2.4 on an APU2c4
This howto partly shows how to install pfSense, with the main focus on creating the boot USB stick.
By Magnus Lübeck
Catch exit codes in bash - pipefail vs PIPESTATUS
The other day I caught a bug in one of my scripts, where I wanted to both act on the exit code of a command at the same time as I sent the output from it to a log file.
By Magnus Lübeck
OP5 widgets for Smashing released on Github
A set of widgets to integrate OP5 (nagios derivate) with the smashing.io dashboard now available on Github.
By Magnus Lübeck
Quickly clean up your Wifi connections in OSX
Get an overview of your favorite network locations.
By Magnus Lübeck
Physical firewall for VMWare networks
Sometimes you need to figure out some weird configurations. In this post I will try and justify the joy of VLANs in the following setup.
By Magnus Lübeck
Quickly create an img file from a Raspbian SD card on OSX
Sometimes you need to make a backup of an SD card with your favorite installation on it. This recipe will show you how to do this in the most efficient way on Apple, Mac OSX.
By Magnus Lübeck
Rsync faster with AES-NI and ssh options
Copying files per ssh is very convenient, but the default encryption(1) usually takes its toll on the CPU, and the result is that you do not fill the available network bandwidth.
By Magnus Lübeck
Installing pfSense on an APU2C4
As per pfSense 2.4, the nanobsd installation described here is no longer supported. This page is kept for historical reasons.
By Magnus Lübeck
Install Domoticz and Razberry2 on Raspbian
I just installed domoticz with the following setup.
By Magnus Lübeck
Network interface naming in Ubuntu 16 - back to eth0
In Ubuntu 16 the network interface naming is changed, so you won't have your usual "ethX" naming.
By Magnus Lübeck
Google Authenticator and OpenVpn integration in Ubuntu 14.04.3 LTS
This post show how to set up an integration between Google Authenticator and OpenVpn.
By Magnus Lübeck
Cut-Through Forwarding necessary on dd-wrt and Tomato for throughput higher than 300Mbit
It all started when I decided to upgrade my router at home.
By Magnus Lübeck
Meta monitoring revisited - EC2 meta monitoring
How to compare the inventory in AWS with another inventory.
By Magnus Lübeck
Using sudo and redirecting output to a file
Sudo is a cool tool to have under your belt. I have heard excuses for not using sudo so many times, that if I was given a penny every time I would at least be able to buy myself a coffee.
By Magnus Lübeck
Obscure one liner to kill a running an Oracle expdp job
How to issue a "KILL_JOB" command.
By Magnus Lübeck
Hotplugging more than 15 scsi devices in Ubuntu
Today I ran into something that took me a bit to figure out. I could not add new disks to a virtual machine running Ubuntu.
By Magnus Lübeck
Who monitors the monitor?
How do you know that all virtual machines (VM's) in a VMWare environment is actually monitored in your monitoring system?
By Magnus Lübeck
No more insane clicking in ESXi - setup your testbed in a minute
Very often, I find myself in the situation where I have to quickly setup a test environment. In my case that usually means that I will quickly setup a VMWare ESXi virtual machine.
By Magnus Lübeck
Alias is silver, function() is gold!
Everyone who has reached the first advancement of any meaningful martial arts, know that in order to get that first level you need to learn some very basic, yet useful techniques.
By Magnus Lübeck
Sawtooth - The power of a waveform!
Use this shape to make sure that your backups are running properly.
By Magnus Lübeck
Web server load balancing on (in the end) Raspberry Pi for less than 100 bucks
The other day I got very interested in web server load balancing. Again. One of these things that most people would just never care about, but as always... I got obsessed with it. Again.
By Magnus Lübeck
Integrating a traffic light with OP5 through a Raspberry Pi
The last couple of months, I have been amazed about the Raspberry Pi. I won't go into great detail on this wonderful device, other than the obvious.
By Magnus Lübeck
Supersize io operations in Linux
This time I will tell you something that most of you really don't care about, Max io size.
By Magnus Lübeck
Monitoring the progress through a pipe
Small linux command, but still cooler than sliced bread
By Magnus Lübeck
Could not chdir to home directory
I was at a customer's site the other day, and ran into an issue that I could not really understand.
By Magnus Lübeck
Nagios and OP5 - writing a nrpe check script
One of my main interests in working with production systems, is to be able to sleep well at the night. A very important component to help making sure I can, is to know when things go bad, which they will; sooner or later.
By Magnus Lübeck
Benchmarking - to impress or not impress; is not even a question
I love benchmarking. Benchmarking is what I do well.
By Magnus Lübeck
Starting all over - where did my contacts go?
Starting up a new company from scratch puts you into the position that you sooner or later have to get going and get started with simple things, that are no longer simple.
By Magnus Lübeck