Just a geek, finding my way in the fediverse.

  • 3 Posts
  • 159 Comments
Joined 3 年前
cake
Cake day: 2023年6月11日

help-circle

  • I’m going to claim this one wasn’t entirely my fault and should have been coded better… But I ran it.

    I ran a script that expected to run from a bin directory, cd/chdir to a input file directory, then do a sed on every file to replace windows line endings to UNIX/Linux line endings. After that it would start loading and processing them.

    The problem was, if the directory it tried to change to didn’t exist, it silently continued and ran it on the current directory… You know, the bin directory… With all the compiled C binaries.

    So at about 16:30 on a Friday, 30 min before we started our huge weekend builds, I nuked about 70% of the binaries by randomly replacing all bytes that looked like crlf with lf. Turns out binaries didn’t like that.

    Good times.
















  • I haven’t truly needed to use windows in probably 4 years. And those few needs were specific to helping someone who was on windows figure out some windows tomfuckery. I don’t think I care anymore… I can just give them a Linux ISO and call it good now.

    Good to know though. Just in case.


  • I still need to try this.

    I downloaded and started seeding it when there was a post about it a few weeks back but haven’t had time to try it.

    I assume the ISO live boots from a USB so I can poke around without installing? Surely.

    I’ve got an old laptop that I kept windows on for the once every few years I had to use windows but I don’t think it’s supported anymore and I’d actually use it occasionally if I put Linux on it ;)


  • I want to preface this with the fact that I am definitely NOT a networking expert so… don’t trust anything I say.

    My situation is a bit different because I am using Tailscale, though I have it on the list to be replaced in the future.

    When you Wireguard to your LAN, do subsequent DNS requests go through the VPN? Sounds like you’re looking into that route based on your third point above. If so, can you just add a static DNS resolution to your LAN router that points to your Caddy SSL terminator/reverse proxy? This assumes a static IP for your host.

    That’s what I’ve done. On my router I’ve set a static DNS entry of silverbullet.mydomain.com -> 10.0.0.101 (where *.101 is the static IP of my internal host/Caddy). This allows everything to resolve correctly when I’m physically attached to my LAN but also when connecting remotely via Tailscale.

    It may not be elegant, but it avoids the hassle / extra config of a local DNS server as well as the need to manage host routes on each device.

    EDIT: My router is running OpenWRT but I think most consumer grade routers support static DNS routes… but I could be wrong.