Wireguard VPN

References https://www.freecodecamp.org/news/build-your-own-wireguard-vpn-in-five-minutes/ https://bootstrap-it.com/wireguard-vpn/ https://www.smarthomebeginner.com/linux-wireguard-vpn-server-setup/ https://www.procustodibus.com/blog/2021/03/wireguard-logs/ https://www.procustodibus.com/blog/2021/01/wireguard-endpoints-and-ip-addresses/ https://www.procustodibus.com/blog/2022/06/multi-hop-wireguard/#internet-gateway-as-a-spoke

Project Idea: Temperature Monitoring for a Heating

I had some issues with my heating. Also an technition had no luck. The path forward was unclear.. I am not a technition for heatings, I am an IT guys. So what is obvious? To monitor the “performance” of my heating in order to track the issue and try to fix it. What I can say it was a full success. I would call the solution with my heating a patch and it is clear that I need a new one.

This article is not about the problem of my heating as itself it a about a idea. I want to collect data from our house like heating, solar, power consumption, etc. For the heating I already have a use case for the parts right now not.

But how does my current solution for the monitoring of my heating look like. ESP32 –> MQTT Broker <– App

How to repair a Raspberry Pi disk image

Issue: the Raspberry Pi (RPi) has crashed and the boot process ends up into a kernel panic. The reason is unclear. I am connecting the serial output from the RPi to a FTDI to see the issue on the screen. Which kind of FTDI or USB-to-serial board you are using is not important. A cheap model is fine. You must connect the FTDI pins to the RPi pins this way

FTDI Pin RPi Pin RPi Pin Name
GND 06 Ground
TX (D0) 08 TX (GPIO14)
RX (D1) 10 RX (GPIO15)

Please refer to this resources for more information how to connect the serial output from the RPi:

Configure the RPi boot using the cmdline.txt file. My example:

console=serial0,115200 console=tty1 earlycon=pl011,mmio32,0x3f201000 root=PARTUUID=6c586e13-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

Add this to the /boot/config.txt in order to disable the mini UART and enable the real UART

dtoverlay=disable-bt

Please refer to this resources for more information how to configure the RPi for a serial output:

Boot the RPi.

Open the serial line using minicom. Tools like screen works as well

minicom -b 115200 -D /dev/ttyUSB0

You should see the boot output. I got a random kernel panic. So that I decided to rescue the data on my sdcard.

dd if=/dev/sde of=sde-card-copy.img_new bs=4096 conv=notrunc,noerror status=progress

Another option is ddrescue, especially if your disk is damaged

ddrescue -n -r 3 /dev/sdc sdc-card-copy.img_ddrescue2 mapfile2

Please refer to this resources for more information about a disk backup using dd:

Mounting the device

Zip file downloaded via batch file/cmd is corrupted

Found on StackOverflow. I have added an answer to it Link.

Fallback DHCP server – is it possible?

Found on StackOverflow. I have commented it.