// writing
Notes and write-ups
everything tagged raspberry-pi

How I access my private homelab from the internet without a VPN
Accessing self-hosted services from outside a local network typically involves choosing between a complex VPN or exposing ports to the public internet. By implementing mutual TLS, devices present a client certificate during the connection handshake to prove their identity before any data is processed. This approach allows specifically authorized devices to access homelab services directly through a secure gateway, bypassing the need for manual VPN connections or recurring service fees.

Building a USB HID Device with Raspberry Pi Pico and TinyGo
This project explores the construction of a custom USB controller using a Raspberry Pi Pico and the TinyGo programming language. By leveraging the Human Interface Device protocol, the device captures physical button presses—such as short, double, and long triggers—and translates them into customizable reports. These events are then processed by a host-side application, which executes user-defined Lua scripts to perform actions like system commands.

How to do Raspberry Pi OS backups
MicroSD cards used in single-board computers can fail unexpectedly, leading to the loss of configuration and project data. Creating a full system image provides a recovery path to ensure work is not lost if storage fails. This approach focuses on cloning raw disk data and optimizing the resulting file size for efficient storage.