• 0 Posts
  • 16 Comments
Joined 1 year ago
cake
Cake day: June 9th, 2023

help-circle
  • I think this one beats them all.

    My home server keeps a few services up, including an instance of Jitsi Meet. The server runs nixos and the nixos package for jitsi is incomplete to say the least and doesn’t even support authentication, so I use the docker-compose version and I have a script that runs periodically to keep it updated. So far so good, right? Well, no.

    Because the server is at home, I have a dynamic external IP address, so I have to use a DDNS provider, but jitsi doesn’t expect this and uses a stun server at startup to determine the public IP of the server once, so if my connection goes down or is restarted and the IP changes, jitsi needs to be restarted or it won’t work anymore.

    The solution?

    • My router runs OpenWrt, so I am able to run a script that checks for external IP changes. When a change is detected, it uses SSH to connect to my server to restart jitsi
    • Because I don’t want the router to just be able to run any command, I created a jitsi-restart user that has no shell
    • When the router tries to log in with its pubkey, sshd creates a file called restartasap in the jitsi folder and closes the connection
    • On the server, there’s a systemd unit running a script as the jitsi user that periodically checks for that file, and if it exists it deletes it and restarts jitsi

    I’ve been running this setup since mid 2020 and I expect this to continue until IPv6 becomes the norm.















  • When I was around 12, I was learning about overclocking, and accidentally killed my dad’s graphic card, an Nvidia FX 5900.

    I vividly remember launching The Sims 2 to test my overclock, when suddenly the screen started turning on and off (the video driver was probably crashing and restarting), and after I reset the PC, there were 2 green lines on the screen and XP was stuck in 640x480 16 colors because not even the basic display driver was able to load.

    My dad was mad obviously because it was an expensive card, the damage wasn’t covered by the warranty, and he was into gaming too at the time. I was stuck with integrated graphics for about a month while we waited for the geforce 6000 series to come out.

    I was so scared of overclocking after this happened, I didn’t try it again until a few years later years later when I had my own computer (and killed another card, a 9800GX2).