Live data from Hacker News

Making a Linux home server sleep on idle and wake on demand – the simple way

dgross.ca

41–50 of 244 posts

Re: Making a Linux home server sleep on idle and wake on demand – the simple way

#41

The concept of "ARP Stand-in" brought to mind Proxy ARP: * https://en.wikipedia.org/wiki/Proxy_ARP

Yup - really a nifty way to handle exposing services.

I use MetalLB locally, and it does exactly this for its layer-2 mode: https://metallb.universe.tf/concepts/layer2/

Makes for a great little load-balancer setup on bare metal k8s. I have to lose a LOT of machines all at once for anything to go down and stay down, and my router configs use a known ipv4 address for everything, without having to care at all about which machine is actually handling it.

Re: Making a Linux home server sleep on idle and wake on demand – the simple way

#43

Earlier quoted context omitted.

Another option is to use a smartphone with damaged screen, USB Ethernet card and an external USB drive.

This was always attractive to me, how are you running a linux host on the phone or are you just using native android hosted services?

I use a custom firmware with Termux. It's enough for me.

https://medium.com/junior-dev/how-to-re-purpose-your-old-and...

Re: Making a Linux home server sleep on idle and wake on demand – the simple way

#44
post #16

Diagrams are just visible enough that I can tell that they're present but I cannot otherwise see them. I suppose that's because I'm using a dark theme on Firefox. Not that it matters. There's enough text to figure out what's going on in the first place and it would not help me much in any case. I have a file server running of an ancient server motherboard from another age. (Supermicro X8SIL w/X3460 and 16GB ECC RAM)…

If I switch to the light theme and back again, the diagrams become white and readable.

He is inverting the embedded SVG's colors using CSS. However, that CSS is JavaScript applied and doesn't trigger on page load. SVG offers a nice 'currentColor' color value, which resolves to the inherited text-color. Replacing stroke='#000000' with stroke='currentColor' would solve this bug without requiring any JS.

Re: Making a Linux home server sleep on idle and wake on demand – the simple way

#45

> Disable IPv6: this approach relies on ARP, which IPv6 doesn't use I wish more people would care about IPv6.

Who cares about IPv6 on a home server that you might not even want to expose to the public internet anyway?

I care. My ISP is deploying IPv6 only and with NAT64 translation and some of my servers hosted elsewhere does not even have public IPv4 to SSH.

Re: Making a Linux home server sleep on idle and wake on demand – the simple way

#46
post #16

Diagrams are just visible enough that I can tell that they're present but I cannot otherwise see them. I suppose that's because I'm using a dark theme on Firefox. Not that it matters. There's enough text to figure out what's going on in the first place and it would not help me much in any case. I have a file server running of an ancient server motherboard from another age. (Supermicro X8SIL w/X3460 and 16GB ECC RAM)…

Highlighting the diagram makes it readable.

Re: Making a Linux home server sleep on idle and wake on demand – the simple way

#47
post #16

Diagrams are just visible enough that I can tell that they're present but I cannot otherwise see them. I suppose that's because I'm using a dark theme on Firefox. Not that it matters. There's enough text to figure out what's going on in the first place and it would not help me much in any case. I have a file server running of an ancient server motherboard from another age. (Supermicro X8SIL w/X3460 and 16GB ECC RAM)…

I'm not using any dark theme addons or similar, just the standard prefers-color-scheme, and I have the same problem. So they just didn't account for their website's dark mode when writing the article.

Highlighting the diagram makes it readable.

Re: Making a Linux home server sleep on idle and wake on demand – the simple way

#48
post #33

This looks like one of those home server infrastructure setup rabbit holes I would've bailed out of within the first 10 minutes of Googling to research the problem. I commend the author for their perseverance and the writeup - rabbit hole writeups are their own form of entertainment. That alone was worth it. I could never run anything that looks like such a conceptual pain the butt. A pain to maintain and troubleshoo…

I’m using A Raspberry Pi4 as a dedicated Timemachine backup server with an SSD via USB3. Works perfectly for a year or so.

Re: Making a Linux home server sleep on idle and wake on demand – the simple way

#49
post #27

I had similar idea, but in the end I've gone a different path: I've got a USFF PC with 2 external HDDs as NAS, and raspberry pi to keep always on stuff. I used to keep the PC up most of the day, and get it to sleep on schedule during night with `rtcwake`, and it was pretty reliable. I've removed the scheduled sleep from the PC, as I prefer backups to be done at night, and my "minilab" of USFF PC with SSD & 2 external…

How reliable is the external drive route? Do you run in RAID or similar?

Re: Making a Linux home server sleep on idle and wake on demand – the simple way

#50

> Disable IPv6: this approach relies on ARP, which IPv6 doesn't use I wish more people would care about IPv6.

Especially when the reality is… you can almost go IPv6 only nowadays if you wanted to.

I went down the rabbit hole recently, switching my network to IPv6 primary with IPv4 as the fallback. The ultimate test was disabling IPv4 for a weekend to see what, if anything, broke.

I had set up DNS64, NAT64 and 464XLAT. The only weirdness is how Windows clients handle IPv6 literals in UNC paths, which is super ugly, and how some applications (like Discord calls) will actually embed IPv4 literals. Discord apparently does that for the relay servers for calls.

Those things — and the rare website not supporting it - aside, I could actually be IPv6 only. I have IPv4 enabled as a fallback now, but it’s no longer primary on my network.

Post reply on HN