News for hackers. Stuff that matters.
Re:Ask HN: What's on your home server? by lucb1e on Friday January 06, 2023 @08:42AM (#34274449)
Hardware: old laptop from ~2012 and some external hard drives (~25W total).

Occasionally used for things like yahoo answers archiving, fishnet (distributed lichess game analysis), random big computations or downloads, and other things I want to run overnight but don't need a big desktop PC for.

Services it more permanently hosts:

    - email for me and friends
    - websites of friends
    - game server (Factorio, OpenArena, custom games I made, etc.)
    - SSH -D functioning as a VPN when paypal or some such is being a bitch again
    - [web] blog
    - [web] grocery list (custom. It syncs between devices, stores recipes, frequently bought items, etc.)
    - [web] link shortener / pastebin / file sharing in one
    - [web] a data explorer for some game (with associated scraper running every few hours)
    - [web] a series tracker to note which episode file we're at because apple tv is garbage (for many reasons) and doesn't remember this
    - [web] browser-based latency test thingy, both as plain HTTPS and websocket (they're remarkably similar with HTTPS connection reuse, the main difference being that websocket breaks when your connection is down for 0.1s or your IP changes, so I use websocket more as canary and the HTTPS version for actual latency testing)
    - [web] proxies for certain sites, like to speed up the openstreetmap wiki by caching or to remove the 5MB unnecessary javascript from a news website
    - data scraper that emails me when the local river does something that interests me (like get close to flooding or drying up or a sudden large change)
    - data scraper for lightningmaps. They only give out historic data to contributors but it's literally impossible to become one (the data is licensed under creative commons and I want it only for personal curiosity)
    - data scraper for a flower market that helps a florist friend make more informed purchases (know whether what you're buying is fresh or has been on the site for a week)
    - Telegram IOU bot
    - IRC bouncer
    - Gitea
    - Restic backup server
And a ton of web things I'm forgetting, including little .php scripts not worth mentioning (think: hangman solver, javascript gravity simulation, content-addressed URLs, ...) that I occasionally use to do this or that.

I'm really amazed what I can do with some hardware that would otherwise be thrown away or disappear into an old drawer never to be used again. I could probably host twice as many things and it would still work (CPU and network are basically idle the whole time, only RAM would be getting tight then... I could upgrade to 16 GB DDR3 which is cheap nowadays).

Re:Ask HN: What's on your home server? by loudmax on Friday January 06, 2023 @09:34AM (#34274979)
I also recommend using an old laptop as a server. Benefits include the built-in battery backup, built-in KVM, and relatively low power consumption.

The other major benefit is that if you're the kind of person who's apt to set up a home server, you probably already have at least one these lying around.

Re:Ask HN: What's on your home server? by icybox on Friday January 06, 2023 @01:35PM (#34278883)
There's just one slightly opaque pitfall, not all laptops have a BIOS setting where you can specify what to do on power-loss and power-resume. So the laptop "server" stays off and you need to intervene manually.

I've had better luck with thin clients ...

Re:Ask HN: What's on your home server? by lucb1e on Saturday January 07, 2023 @02:26PM (#34291643)
Never had power out for long enough that the laptop didn't survive. Automatic shutdown of optional services at 80% battery level might also mean that it survives 2-3x as long, if this sort of thing is likely to hit where you live. Or buy a tiny UPS.

(One of the major advantages of laptops not manufactured in the last 3 years: replacing the battery to make it good as new takes 15 seconds. Click out, click in. They don't make 'em like that anymore :( )

If the battery were to run out: on 355 of the 365 days per year, there will be someone home who can push the button within a few hours.

And if it's one of the 10 other days: email will retry for 24 hours and everything else is somewhat optional for me. I can call someone to get there within a day, or change the DNS records and turn on a VPS to temporarily buffer the incoming SMTP. I considered my contingency options but never got close to needing it.