483 points · by ecliptik · 3y ago · 287 comments
It was probably more hassle than most people would want to bother with to get it set up. But, with everything up and running, there's very little maintenance. I probably spend a few hours a month tinkering still, just because I enjoy it.
I use a stack of Proxmox VMs, FreeIPA for authn/authz, and Rocky Linux for all servers and workstations. My phone runs GrapheneOS with a Wireguard VPN back to the house. I don't expose anything to the public internet unless absolutely necessary.
I recently anonymized and Ansibilized my entire setup so that others might get some use out of it:
I have a rack with 10gbe, ups, kubernetes a zfs storage server, multiple vlans, 4 unifi APs & locally hosted controller and all sorts of self-hosted stuff.
My heart breaks slightly as I watch things slowly degrade and break down due to bit-rot and version creep, I now wish I had a synology, flat network and cloud everything possible.
There are days when the kids can't watch a particular movie and I find out it's because a particular kube component failed (after an hour of root-causing) because I haven't touched it in 2 years. I then have regrets about my life choices. Sometimes the rack starts beeping while I'm working and I realise the UPS batteries are due for replacement because it's been 4 years. I silence the alarm and get back to the production issue at work, knowing it'll beep at me again in 30 days. I'll still be too busy to fix it. It doesn't help that in Australia the ambient can get to 45 degrees C pushing disks and cpus to their limits.
Just sharing a different perspective...
As in, k8s is cool to play with and understand and all but why would I bring that complexity to a simple home setup that can run on a single machine in a corner somewhere?
You don't have to go to a synology box and give up everything but there are simpler options without going "Cloud everything". Of course you will be giving up some features as well, the more you strip things down, but that can beneficial in and of itself if you ask me.
Personally I went from being the "Linux from scratch" guy to running Ubuntu LTS. Natural progression and the kids can watch any of their movies at any time they want. Keep the hard drives rotated, do an LTS to LTS upgrade every few years and that's about it. Heck I've been running the exact same Postfix, fetchmail and IMAP setup for probably 20 years now and I don't even remember what all the options I set do any longer. I also don't need to though. It's just rock solid. All the other fun stuff has passed me by and I don't care. Don't get me wrong, it's still fun to play with stuff and we do use k8s at work and it's great. But it's just complete overkill for home.
As i keep telling people, self hosting is fun as long as your user count is 1. When it grows beyond that, you suddenly have a SLA.
I self hosted almost everything (e-mail is pointless from privay concerns), and when we had kids i moved to a dual Synology setup with a single proxmox server for running services. Fast forward some years and electricity suddenly costs about an arm and a leg, so i had to do "something".
I completely stopped self hosting anything "publicly" available. Everything moved to the cloud including most file storage, using Cryptomator for privacy where applicable.
The server got reduced to a small ARM device with the prime task of synchronizing our cloud content locally, and making backups of it, both remote and local. As a side bonus it also runs a Plex server off of a large USB hard drive. All redundancy has been removed, and my 10G network has been switched off, leaving only a single 16 port POE switch for Access Points and cameras.
The Synology boxes now only comes online a couple of times every week to take a snapshot of all shares, pull a copy from the ARM device, after which it powers down again.
In the process i reduced my network rack power consumption from just below 300W to 67W, and with electricity prices for the past year averaging around €0.6/kWh that means i save around 2050 kWh/year, which adds up to €1225/year, or just over €100/month.
Subtract from those savings the €25/month i pay for cloud services and i still come out ahead. On top of that i literally have zero maintenance now. My home network is only accessible from the outside through a VPN. The only critical part is backups, but i use healthchecks.io to alert me if those fail.
I still kept the network seggregation, so everything "IoT" is on it's separate VLAN, as well as the kids. The only major change was that the "adults" VLAN is now the management VLAN. I have no wired computers, so maintaining a management VLAN over WiFi was more trouble than i could be bothered with :)
Why are the kids on their own VLAN/WiFi ? Because kids wants to play games with their friends, something the normal Guest network does not support. Kids also brings all sorts of devices with new and exiting exploits/vira, and i didn't feel like doing the maintenance on that. So instead my kids have their very own VLAN with access to just printers, AirPlay devices and the Plex server.
This is the principle I.T. departments fail to grasp.
> Kids also brings all sorts of devices with new and exiting exploits/vira...
Curiosity: while vira is arguably less wrong, hackers of a certain age would have expected viri or virii, which are more wrong:
https://en.wikipedia.org/wiki/Plural_form_of_words_ending_in...
From Tom Christiansen, of Perl fame:
http://www.ofb.net/~jlm/virus.html
// Meanwhile, in "Kids also brings" – I fully support what you did there!
I still self host apps today but my hardware is old enough that it costs more in power and cooling than what I get out of it, and the roi on new hardware doesn’t justify the means
Maintenance is 1-2 hours a month: Proxmox, various Docker nested in unprivileged LXC, everything automated (cronjobs, Watchtower, Backups etc.). I also built a pretty big PV-plant to safe energy costs (30wkp). My main strategy was a "minimal" approach, going slowly, thinking carefully _what I really need_ and preferring robustness over new features or software. I usually take 1-2 months of review before deciding to install any new software, most often longer. I am against the "All in One" mentality (e.g. prefer custom bash scripts over third-party automation; or selectively install needed parts instead of the all-in-one alternatives, e.g. nextcloud/all-in-one).
My family situation is partly why I just went with plain old VMs and a Linux Distro with a 10 year support cycle. Its easy to keep all the moving parts in my head, and I figure I can mostly coast for 10 years and then reevaluate.
Thanks for reminding me, I also need to replace my UPS battery...
For instance, what if the alarm sent you the product page for the model of battery you need? You order them, silence the alarm, and when they show up you’re reminded you need to change them. Or if that’s a bad time, when the alarm goes off again.
I think we’ve only begun to work out how alarms are the wrong solution to the problem and what we need are prompts.
Also have kids, and they can be demanding when stuff ain't working.
Also second guess my life choices, but then again I also still love playing around with this stuff, knowing that I can maintain the full stack.
[0]: Replacing that old air-con with a (far) more modern small split system could possibly have paid for itself by now in power savings. I think I should look into that.
No snark intended, but this sounds as though you chose to include a lot of unnecessary complexity into your self-hosting, then discovered that there's almost always a cost to unnecessary complexity(?)
Three questions:
1. Have you heard of this complaint?
2. Do you use a home ISP connection, or a commercial ISP connection? A "home ISP connection" here usually comes with a dynamic IP address; you can't get your hands on a static address without paying a very large amount monthly or getting a commercial connection.
3. You say "I don't expose anything to the public internet unless absolutely necessary." Is your ip address via your domain name one of those "necessary" items?
A lot of this is FUD. Yes, email is a bit more difficult to get right than say, hosting a web app behind Nginx. It's an old protocol, with many "features" bolted on years later to combat spam.
I'm not sure how email is easier to "hack," unless there is a zero day in Postfix or something. Back in the day, lots of script kiddies would find poorly configured mail servers that were happy to act as an open relay...maybe the stigma persists?
To deliver mail reliably, you need 4 things (in my experience):
- A static, public IP address with a good reputation (ie, not on any spam blacklists)
- A reverse DNS record that resolves back to your mail server's IP
- A domain SPF record that says that your mail server is allowed to deliver mail
- DKIM records and proper signing of outgoing messages (DMARC records help too)
2. I have a residential cable internet connection, but pay extra for static IPs. You can probably get by with a dynamic IP and some kind of dynamic DNS service, as long as you don't want to send email. You could still receive email locally if your MX recorded pointed to some kind of dynamic DNS record.
Note that some ISPs explicitly block outbound traffic on port 25 due to spammers. You might need to check with yours.
3. The only things I expose to the internet are Postfix (to send/receive emails), XMPP (to chat with others), and my web server. Everything else (calendar/contacts, IMAP, Syncthing, etc) stays behind my firewall, accessible only to internal hosts. I use wireguard on my Android phone to access these services seamlessly when I leave the house.
I've never bothered to conceal my IP address. For awhile, I experimented with using Mullvad VPN for all my egress traffic. Unfortunately I spent all day solving CAPTCHAs...wasn't worth it (for me, anyway).
EDIT: I should add, that I also have a "normie" email address at one of the usual providers that I use for really important things like bank accounts / utility providers. If I get hit by a bus, I don't want my (very nontechnical) wife to deal with sysadminning on top of my early death.
For all our personal communications though, we use my selfhosted email domain.
Piece of cake /s
I personally use smtp2go.com, and was on their free tier for ages (now upgraded via work). Can recommend, as it "just works" and avoids all the mucking around with SPF/DKIM/etc.
Oh, on a similar note, definitely avoid Sendgrid if you want to send email via a third party. They're outright blocked (as a spam source) by way too many places to be considered reliable any more. :(
I've read somewhere that spammers started to use DKIM (or was it DMARC?) records faster than the legitimate web-mail providers.
Weirdly, most of the ISP's I've had on the NBN here in Australia were happy to give me a static IPv4 address for free (and my current one will set you up an IPv6 /56 block, but its beta apparently).
If I started over, I would probably choose more efficient gear.
That said, I don't mind paying for the electricity too much. I enjoy the warm fuzzies of knowing my data lives under my roof.
A raspberry pi draws 2+ amps. Your dual Xeon server is drawing a lot more power. That said, typically you’d want to measure in watts because amps is relative. Eg a RPI is 2A at 5V while a computer is probably 5A at 120V - an order of magnitude more total energy consumed.
Also while bandwidth costs less in the cloud compute and storage is much cheaper if you host it locally. If you want a server to host your public website, do it in the cloud. If you want a file server for local use the price and performance benefits quickly overweigh the power cost. There also is the additional factor of having the equipment/data 100% under my control, which is very important to me.
Depending on your need (many apps just idle most of the time) a usff pc can make an excellent proxmox server.
Check out a Lenovo m920q, Dell Optiplex 7060, HP EliteDesk or ProDesk 800 series. They are easy enough to bump to 64G of ram and stack up as you need. The 8700T cpu is a desktop grade in a small shell and watt footprint and also has vpro and hyperthreading.
It’s not a rack server but it’s easy enough to add a Mac Studio/Mini soon enough for crunching.
I have spent too much time with full rack server gear and using it a can seem like a matter of preference before need. It’s heavy, hungry, noisy, and my better half didn’t like when I brought the leftover data centre stuff home.
The USFF boxes are near silent and sip electricity.
In the end I went with HP t630's. They're much less powerful, but they're also much cheaper and very small! Dell Wyse 3040 or 5060's are also fantastic options. I liked the t630 because it has a proper sata SSD slot and will take up to 64GB RAM. The power bricks are also quite small too.
I'm going to use mine as a home lab testing environment for cluster learning. I'm curious what kind of performance I can get by placing 3 kubernetes nodes on each and spreading out the workload across the differnt devices.
I still think another generation or two of raspi and friends and you can build a little cluster of them.
I set up a wireguard VPN in OPNsense.
Then I downloaded the wireguard app in F-Droid, and pasted my credentials from the wireguard Android app into the wireguard configs on the firewall.
I set the VPN in grapheneOS as "always on," so from my phone's perspective, it always has access to my internal network, even when on LTE. All my phones internet traffic ends up going through my home internet connection as a result.
I would advise against setting up wireguard manually.
For pictures specifically, I recently discovered M-Disc [0], which are (allegedly) archival-quality, writable Blu-Ray discs. I'm considering burning an M-Disc of each year's pictures and storing them in jewel cases at a family member's house.
Personally, I'm not remotely meticulous enough for that to work. Properly rotating drives sounds like a lot of work if you want to be rigorous about it. You start with running the backup to drive A, then shipping that drive a couple hundred miles away (to be properly location redundant), and then next week, run the backup to drive B, ship that drive a couple hundred miles away, but then at some point, you're going to want drive A back, so you can rotate drives and put a more recent backups on it. How do you retrieve those external drives, and consistently?
And then while the drive is in transit, and hopefully not lost, you don't have access to it, it's not an online (referring to its availability) backup solution.
So I mean, I do perform backups to an external HDs which I also keep offsite, but because that's nowhere near as rigorous as what teams of engineers and data center techs can do with a much larger budget, I supplement my backups with a cloud storage solution. And I encourage you to do so as well (especially considering encrypted backup services), but you do you.
As far as the mdisc; I mean it's interesting, but I'd also consider getting an LTO tape library. They're more purpose build for backing things up, and my personal opinion is they're going to be better for longevity given everything else.
Am I wrong to think that most businesses/people pay for Mailchimp because getting your e-mail actually delivered into the inboxes of your target audience/customers is non-trivial? aka, you're going to end up in "spam" otherwise?
I find it hard to believe that you can "free-ly" send e-mail to, say, 100,000 e-mails and actually have it get delivered at a high rate? I would love to learn if I'm wrong though.
This article could've talked about DataDog vs Jaeger/ELK stack I think for tracing/logs.
You can do this, I have done this, but honestly it's annoyingly painful and you're always one bad ad campaign away from being nuked to death by people marking your emails as spam.
There's a lot of rules to follow and even when you follow them you need to ensure that you start emailing a low volume for each new sending IP until the reputation grows over time.
Some number of people just smack the "spam" button for nearly everything that is automated, and those "spam" buttons seem to work on absolute numbers not percentages; so if you have a high number of people in the pool then you will be false flagged eventually.
We had a very explicit double opt-in system, made it super easy to unsubscribe, emailed once a month at most; and we had people still marking our communications as spam. I'm not sure what else we could have done to weed out the people who just smack the spam button honestly.
That said, there was a lot of variance, emoji in the headline was the campaign that caused 9% of people to mark spam and 20% to unsubscribe, but it was enough to have us blackholed for 2.5 months.
I think a major issue is that people don't want to even check how to unsubscribe and they see the “mark as spam” button as a “just make this go away” button.
(these are all legitimate interest emails)
I was in a meeting with a couple of people from the team and a QA engineer mentioned that everytime he's done with an email in gmail, he spams it off... _wut_..
Whilst yes, we have been blacklisted a handful of times and, based on spam reports (feedback loops), people do mark emails as spam for completely nonsensical reasons... e.g. users signing up, (getting and using the activation email), using the service and then spamming the activation email.
Edit: I definitely think there's a bell curve for sending your own emails:
* If you have a very small platform (at least in my experience), reputation doesn't mean that much, emails are generally accepted by providers (assuming IPs that you used haven't been previously used for spammy activity), so self-hosting might make some sense (though a third-party probably wouldn't be too expensive if you did want to).
* If you start sending 100s-1000s of emails/day, I guess some third party solution would make sense, since running dedicated IPs/domains and servers just for sending emails might not be beneficial.
* As you go to sending 100K+ emails a day, personally, I think setting up servers starts making more sense
Email deliverability is a full time job. There are so many "potential spam" markers that are interpreted differently (and opaquely) by different ESPs. Getting your email delivered to a lot of people is essentially non deterministic.
Including a link to a Google Doc in your message body is enough to get you blacklisted by some email providers if you don't have a prior history with them. Yes, there will usually be some process to get off the blacklists and doing it will mostly stick even if you continue to email Google Docs to people. But the key word there is mostly. As I said, deliverability (at least at scale) is a full time job.
(I truly don't know, but I don't think it's as simple as you're saying)
The global spam market is what caused the hockey-stick rise in IPv4 "shortage"
It only takes a moment for a single person to get your ip or domain balacklisted, not a concerted campaign. There are many blacklists that accept direct submissions from any unauthenticated person for any target domain/ip.
What's difficult is not to get onto a blacklist but to get off of a blacklist.
You can follow all the rules the want ( dkim, spf etc .. ) somehow it will no be delivered because you don't know exaclty how they rate your IP.
Host your mail-creation/list-management/analytics stack yourself (I like Mautic and MailWizz but there are other options) and use a third party for SMTP services. Amazon SES charges $1 per 10,000 emails; other services are slightly more expensive but it's all still very affordable.
A lot of us haven't.
> If someone wants to host their own software but actually have their emails delivered they really do need a third party SMTP service that specialized in deliverability or has a big company behind it.
A lot of us don't.
The company I work for has an outbox feature which supports this and it was a non-trivial problem to solve. We ended up using sparkpost with a bunch of modifications to isolate potentially bad actors (i.e., clients who pay for our software but send what is basically spam) to an individual sending pool. We also have CSMs that handle this and help to coach clients to not send spam.
Same reason why companies use Sendgrid for marketing campaigns.
A mail server software like mdaemon can quickly handle the heavy lifting of improving deliverability. It’s a small price for the deliverability. I’m just a former user of it.
It’s ok to use an external email provider for outgoing email delivery.
ESPs (email service providers) are handy because they can separate outgoing transactional emails from marketing ones to ensure deliverability.
Many people dont realize that spam was the original source for social networking...
I cant type up all the history I know quickly, but Friendster (who 'invented the social graph', HI5, Tagged, MySpace, were all started as an overlay to email harvesting mechanisms to --> spam....
They needed to create high value email-lists of valid emails.
Asking for such, was stupid as most people rejected it.
Then, they figured out that adding a service (chat and share with your friends, give us your email and their email so we can connect you by sending them invites etc) was the best social-engineering (the 'hacker' meaning) mechanism was to have people validate their personal email, offer a novel e-'service' to 'connect' with your friends within some context - and have you pre-validate the email list based on your invites and contacts... then parlay MLM structure to create better more validated email lists.
Then you sell the lists on the BM to spammers looking to avoid a high bounce rate based on real emails.
Then they started nefariously stealing your contacts with auto-opt-in agreements and such....
Then as the battle btwn spam and socially-interesting services ramped up the spam companies (such as Postini (which was bought by google) became the spam filters (selling their services to BigCorps) began to realize that filtering on the sending IPs was a good measure for determining spam (along with rate-limiting, and other aspects) - such that spammers were getting blocked based on delivery IP blocks.
This set-off a market incentive for spammers to buy up swaths of IPv4 blocks so they could swap out IPs...
Then there were many ranges, sources, tracrts etc used to determine senders and ID them as spammers etc....
So - the spammers invented VPN/Tunneling delivery routes such they could send to a number of various global relays so that they could send from a central source of machines, but be delivered to the endpoints from a variety of global IP blocks.
There was a market for IPv4 blocks all over the world and spammers were spending big bucks on all aspects, from paying for the IP blocks, relationships with ISP/VPN/etc tech....
All while attempting to provide what was a thin layer of utility service to the user to keep what was effectively continued access to the growing address books of their users and keep them engaged on the platform such that they could keep knowing if existing or new contacts were valid.
There were even back-room deals between spammers/tech/isp etc to allow access.
So, the "social networks" we know know of were birthed literally upon spam.
-
Have you ever wondered why as soon as tiktock came out, all of a sudden a fuck-ton of spam was hitting your gmail inbox (previously postini) <-- Because tictock was eating the revenue lunch.
Zuck literally stated that the entire revenue model for FB was "senator, we sell ads"
When in an interview with Google, they asked "what kind of company do you think google is "Well, most people think youre a search engine, but youre actually an advertisement correlation engine"
In an interview with Twitter (dont forget about the infamous ATT room 641A?) - what do you think twitter is: "Twitter is a global sentiment monitering engine" (this was ~2006?8? I cant recall)
--
Source: I know these founders and many of the original devops members from the above companies, and other more scary outcomes from the above statements.
And here we are today with the advanced learning all built upon "consumption" ad algos
I see a lot of people suggesting hosting on a VPS, but I feel that a Hetzner Auction box is often much better bang-for-buck and serves as a nice remote dev/build box for projects that need that extra oomph when you aren't working from a capable desktop or laptop.
[1]: This was the article that finally opened my eyes to the power of Nix for self-hosting https://arne.me/blog/plex-on-nixos, and it is such a huge upgrade from the previous Docker setup I was running[2]
[2]: https://github.com/madslundt/docker-cloud-media-scripts
What surprised me the most was learning rclone can mount object storage locally! That's vey interesting to learn :-)
Is Nix a viable alternative to that?
Yes, it even provides stronger reproducibility guarantees that what you build locally and what's on prod are exactly the same.
You can also build a docker container from the Nix expression, see:
https://nix.dev/tutorials/building-and-running-docker-images
If you are interested, I recommend then also checking out https://zero-to-nix.com/
Nix on the other hand will produce the same result every time wherever I run it. This alone for me is enough reason to prefer it over Docker the majority of the time.
As a fellow follower, I can also recommend SNM[0] if anyone wants to self-host their e-mail. Works with zero maintenance, except upgrades which cause few lines to change.
[0]: https://gitlab.com/simple-nixos-mailserver/nixos-mailserver
1. You may think you are a software company, but HR, accounting etc are just as critical to your operations as the customer product. Therefore there isn't really a distinction between core business and non-core business that people like to think, and
2. By self-hosting you ensure you learn the technology and can therefore respond to problems yourself. In an environment where businesses are increasingly on the hook for defects in their services to the end user, that's a good thing.
Obviously hiring knowledgeable people is probably the bottleneck but it is still a cost saver and it is important to create an organizational culture where people can learn the technology on the job.
At least that's my experience based on fighting weird bugs on managed database services.
Maybe check back in a week and see if they have the video up.
Long ago, I had an associate tell me that he was having some success with setting up Wordpress sites for local political organizations. I said to him: "Oh, that's really neat! What are you doing to ensure that the sites stay up to date with security patches?" His response was completely unrelated to my question, which I figured was my answer and was why there are so many hacked sites out there.
Anything I deploy needs to have an upgrade plan. Ideally, something that provides a package (either on distro or a repo the package provides), so "apt update" will resolve it. Docker can be a good way as well, Sentry does a pretty good job at this.
I wrote an article called "Never update anything": https://blog.kronis.dev/articles/never-update-anything which in truth argued that while updates are necessary, they're also going to break things... a lot. And there isn't always going to be an upgrade path either (e.g. using AngularJS or Clusterpoint).
In my experience, even containers break things surprisingly often: everything from GitLab, Nextcloud, OpenProject to even things breaking in regular server updates, like a Debian update breaking GRUB or another Debian install automatically launching exim4 which prevented my own mail server from working.
Perhaps that's because of how we build and package software, because of the fact that we don't separate the runtime from the data enough (e.g. persistent directories) or that we make too many assumptions about the environments...
Regardless, I can understand why some don't even update working but insecure software: because of the risk to turn it into secure but not working software.
Leaving things without upgrades is also a problem as well though, due to security problems.
I'd go as far as to suggest that updating is something that you must do while you have any sort of a stake in the overall outcome of the thing you're working on, given how destructive breaches and getting hacked could be. That also does mean that you will absolutely need to take the operations overhead into account and plan for it.
Sonarr from LinuxServer.io briefly changed to a dev build and boned the DB before switching back to a stable build.
GitLab: https://blog.kronis.dev/everything%20is%20broken/gitlab-upda...
OpenProject: https://blog.kronis.dev/everything%20is%20broken/openproject...
(I still think that both are good software, but not without their pain points, like updates in this case)
Then again, even something like Nextcloud or comparatively simpler systems like Grav still run into issues with upgrades, sometimes because going across major versions is too much, other times because the containers have vendor dependencies in volumes/bind mounts, which cause a plethora of issues.
Nextcloud: https://blog.kronis.dev/everything%20is%20broken/nextcloud-i...
Grav: https://blog.kronis.dev/everything%20is%20broken/grav-is-bro...
But it's a little bit odd when ever the operating systems we use have similar issues. Like that mention of a Debian update breaking GRUB prevented the server from booting altogether and that other time the exim4 package getting launched prevented my mail server from starting because of the port being bound.
Debian breaking GRUB: https://blog.kronis.dev/everything%20is%20broken/debian-and-...
Debian launching exim4: https://blog.kronis.dev/everything%20is%20broken/debian-upda...
Other times you get problems with upgrading across libraries, or language runtime versions, which I didn't mention in the original post, but which is no less of an issue. It's even harder than just regular package or software updates, because sometimes it might necessitate a major rewrite.
Example of Java 8 to Java 11: https://blog.kronis.dev/everything%20is%20broken/upgrading-j...
That said, I'm not sure how good the idea of documenting every software breakage out there is, because the folder with screenshots and information about things that went wrong just seems to be getting longer and longer for me. But hey, maybe it will serve as an insight into what things were around 2020s some day, when hopefully we've figured out how to upgrade software more safely.
I've seen this language more and more frequently: minimized (kind of) + maximized (a lot) qualifiers. No real insight, just interesting.
Edit: just looked it up and wikipedia has a difinition I didn't know :)
https://en.m.wikipedia.org/wiki/Mollifier
However in the colloquial usage 'round these parts mollifier means to soften or make gentle
This particular use of the word is trying to "soften the blow" of the discomfort that the listener (in this case, reader) would feel at the un-modified phrase. So if you just said "which honestly upset me a lot" that might seem like an extreme reaction for just a price increase of some service (it's not as if someone is dying), so the "kind of" is added to signal to the listener/reader that the speaker acknowledges that this is perhaps too-strong language for the situation.
I don't know if I should thank you for this insight or if you just cursed me.
I think I'm going to be able to get away with just running the server for 36 minutes a day (three minutes every hour). The client will know to sync data during those time windows. 1hr of latency is fine for a lot of things if the client is smart about what it caches.
Suppose you have a food allergy, and you have a reaction to something in a restaurant. You want to leave a note on that menu item "contains allergen XYZ" but you don't want to write on that menu, you want to annotate all such menus.
You'd take a picture, OCR happens, some algorithm thinks about line wrapping and renders it as a list of strings, and then a rolling hash identifies the "features" among those strings (any substring hashes to a 16-bit integer, the ones where the first 8 bits are off count as features). Then you "paint" the menu entry in the color "contains allergen XYZ". The features that are nearby your "brushstroke" (i.e. text highlighting) are stored in a table for that "color" which is eventually synced with other users.
Later, someone else who subscribes to that "color" and has a trust relationship with the first user can scan the menu, follow the same process to find the features, which are used as indices to look up the brushstroke. Then they're able to see the annotation left by the other user as an overlay on the image they queried with: supposing they have the same allergen, they now know to avoid that item.
I'm calling the whole scheme Semantic Paint and the index-friendly-feature-finder Gnize (like cognize now, recognize later).
It's meant for local-ish use by small-ish communities, so the data you actually have to store on your device is pretty small and restricted to colors that you've chosen and other users you've explicitly (or transitively) trusted . And you're communicating over spans like weeks or months, so it's not a big deal if it takes a few days for one brushstroke to make it to another user's device. It's not like they notice its untimely arrival, it just goes in a feature database for later query.
I also thing it might have applications in genomics/proteomics, e.g. annotate a gene.
One local first that I recently switched to is migrating from ynab.com to my own Libre Calc spreadsheets. It took a few days to figure out all the formulas, but now I have even more control over how I track my budget.
Asking as I’m sort of in the middle of the two. I keep a mostly complete spreadsheet of my expenses but that doesn’t account for things that I purchase regularly like groceries/Amazon/etc. Trying Copilot for a year right now as well.
Copilot looks very polished and handy. Though I have found that I really like the customized control that a spreadsheet gives me. Though I haven't used it, I could implement most of what I see in Copilot in my spreadsheet, and have already.
We all think it's simple. It's just to copy the files from "that" folder on the server to your own machine or a USB disk, but it is not so easy in practice for most people. Even for someone competent it can be difficult to sort through the mess if it is not well documented.
I say this as someone who hosts the backup and all the pics on a NAS.
As opposed to what, your spouse having no idea which cloud services you used for file storage, what login credentials you had, and having no ability to access those accounts?
> Even for someone competent it can be difficult to sort through the mess if it is not well documented.
The most difficult part is sorting through the mess, however it is documented.
It's been three years since my father's passing, and I have yet to open his laptop. I can't.
I don't need any credentials to access the box of old family photos to get them scanned, and yet it's still an item on the to-do list.
In such a solution you just need to ask yourself should Postgres, Grafana etc. be shared between the apps or put into each one of the compose configs as a service and handled separately. Both have their upsides and downsides.
But which parts do you mean exactly? How to setup nginx to act as a reverse proxy? Or putting together a docker-compose? I'm thinking of doing some kind of guide for this type of thing on my blog - basically from setting up a Hetzner VPS box to running a docker-compose'd app and exposing it on a HTTPS endpoint for your own domain (so setting up DNS probably also).
What apps do you think work well for self-hosting, even if it limited to us tech folk?
I've self-hosted Grafana and InfluxDB for monitoring and metrics and found them OK to self host. The authentication and TLS setups were the most annoying.
I've self hosted a few kinds of wiki software, but I eventually settled on a combination of a single Tiddlywiki file and uploading to S3. It works well for most of my own knowledge storage. I even went so far as to write my own plugin to save the Tiddlywiki file to S3, so I can press a button in Tiddlywiki to upload it.
I have a self-hosted docker registry, which is just the reference repository provided by Docker. It has required almost no maintenance since I set it up.
[Edit: for clarity]
At least once per month I check out https://github.com/awesome-selfhosted/awesome-selfhosted to see what folks have been adding.
One of my favorites from that list is Focalboard. I used to use a combination of Todoist, Trello, and Notion, but found that moving to FB helped me collapse that all into one tool. The open source and self-hosted aspects were a big bonus, of course.
And a whole lot of y'all talk about what feels like a TON of overkill. I still don't really get what kubernetes is (20 year Linux user) or the necessity of buying a "server" for this purpose.
I use (what is relatively old) a $200 office desktop from someones surplus (Dell Optiplex 900-something, I don't even remember because it's in the closet) and Ubuntu+Docker handles everything I throw at it, easy?
My plumbing can barely scale to handle a dinner party, but apparently my home lab needs to be ready to provision nodes if I ever find 2 billion people in my living room.
I don't need access to the music and TV shows with no TV/stereo to play them on :) READ A BOOK, kids.
Previously on HN: https://news.ycombinator.com/item?id=31284512
It's essentially "self hosting as a service". They package popular foss projects in docker containers and run them for you (on fly io, iirc) for a dollar or three per month.
Hardware (you don’t need much!)
Mini atx tower, 8TB usable storage, Debian, AMD processor, 8GB memory
Pfsense Firewall (Tailscale exit node)
Plume Wi-Fi (would like to replace, owned by comcast now)
Solution stack:
Portainer + Docker Compose to manage everything
Nextcloud
Photo Prism
Tailscale (remote WireGuard based access from all my devices. Integrates well with Pfsense)
Home Assistant (amazing platform for home automation and more). I love the new voice control features and mission!
Used to self host Email with Helm hardware company (not k8s Helm) but they went out of business. Self hosting email is annoying thanks to the big email providers and their control over the spam filtering world.
Matrix chat server bridging all the chat interfaces I use. This is managed by an awesome open source Ansible playbook https://github.com/spantaleev/matrix-docker-ansible-deploy
Pihole
It’s really impossible to overstate what a game-changer tailscale has been for my setup. Especially the subnet router feature, allowing me to use all my LAN IP addresses remotely. I feel much better about self-hosting applications when I can keep all my firewall ports completely closed.
Right now it's for early early adopters. Hosting stuff is still a pain. But we are getting better at hosting stuff! Finding stable patterns, paving the path.
Hint, it's not doing less, it's not simpler options: it's adopting & making our own industrial scale tooling. https://github.com/onedr0p/home-ops is a great early & still strong demonstration. The up front cost of learning is high, but there's the biggest ecosystem of support you can imagine, and once you recognize the patterns, you can get into flow states, make stuff happen, with extreme leverage far beyond where humanity has ever been.
Building the empowered individual/operator is happening, and we're using stable good patterns that will mean the individual isnt so off on their own doing ops- they'll have a lot more accrued human experience at their back, their running of services isnt as simple to understand from the start but goes much much further, is much more mature & well supported in the long run. It's a major phase change for home-ops, picking tech because it's strong & good, not just easier to get started. And over time I think the on ramps & the mental models will be ever more visible, that the old cobble it together from pieces ways will fade.
There's so many rejectionist principles at play. There's many realms of Back-To-The-Land mentality, rejecting modernity & swearing we're better with less, that we free ourselves. Being willing & able to accept help & better starting places will, in my view, certainly take over; there's already huge scope home-ops folks can handily take on well beyond what would have been imagineable, and the share-ability keeps growing, we keep better amplifing each other by having these shared core home cloud platforms. I love the modern growth, embrace of good cloud tech at home.
It's built on-top of the Kubernetes API server runtime and deploys virtual machines and tenant networks, you can see the Kubernetes cluster I deploy using IaC YAML manifests here - https://github.com/ordiri/ordiri/tree/master/ordiri/examples...
It powers all my publicly hosted, ipv6 only services - https://blog.dmann.xyz for example, it's 1000% over kill but a fun project none the less :)
I've gone through several iterations of hardware and hard drive capacity over about 7-8 years now. Hard to imagine I'll ever go back.
It's not even about the monthly subscriptions, I've spent more on hardware I'm sure, plus my monthly VPN and Usenet fees. It's really an exhaustion of SaaS becoming essentially keyloggers of our entire lives. I guess self hosting is the closest we have of opting out, but even then it's not enough.
https://www.amazon.com/HGST-Ultrastar-HUH728080ALE604-3-5-In...
https://www.ebay.com/itm/125797516426
It can be done for less than $100, done well for less than $300.
I also wrote my own container that I use for all my development so I like to keep it snappy for that.
I have about 20TB of platter storage (WD Reds) + parity, and 2TB of SSD cache (an additional 2TB SSD passed into the gaming vm)
It slowly adds up. I started with a Raspberry Pi and a USB hard drive as storage.
I personally use a $5 Hetzner server in Northern Virginia which works great, cheaper and faster than the equivalent in DigitalOcean.
Also those who are looking to dive deeper into self-hosting should join us at /r/selfhosted on Reddit.
Here is our HN launch about a month ago: https://news.ycombinator.com/item?id=34723989
And this is our /r/selfhosted launch: https://www.reddit.com/r/selfhosted/comments/10pxkao/we_buil...
They always have good suggestions and point to their repos and (example) code. They explore new things and the podcast gives you an excellent idea of the quality of services. Some things I discovered through them: Paperless NGS, PhotoPrism, Tailscale, Matrix Dendrite, Hugo, Docker-compose, Traefik, NixOS) and they talk about my fav projects a lot (Nextcloud and Home Assistant), which I have been using for years now. Recently they did a nice JellyFin challenge (they were all on Plex) and I learned a lot.
I run a few servers which all have an "ordlet" installed, akin to the kubelet, which configure network namespaces for isolated tenant networking and boots virtual machines which use a EC2 style metadata server to fetch their boot script, which for this purpose configures a HA kubernetes cluster that then uses ArgoCD to fetch all the manifests from my git repo using an AppSet.
It's so incredibly over complicated and over engineered, it's a lot of fun :)
Could be offered as an extra service by the ISP provider or partners or entirely independent.
There's not much upside for anyone using that over free Gmail/Drive/Photos for everyone except a small group who thinks they need to own their Email and Google is evil. It's a fair standpoint, but unrealistic to anyone not deep into the topic.
The analogy is if all doctors were warning about the risks of smoking in their journals but because smokers dont read them and dont see the "upside" of quiting its not going to happen.
I can get things running with little fuzz and it keeps working for the most part.
Now that just means it works for my needs and the connections I need to make.
I have stopped using Zapier because they are far too expensive for my budget.
Now I make do with a few Perl scripts for what I really need and ifttt
self hosting is a cool thing if you have the time & expertise to do it right.
oftentimes things that look easy inside silicon valley / tech bubble are not so straightforward to others. reminds me of the “you can just set up ftp on linux” comment on the dropbox show hn post :)
Knowing its my data, my hardware and my internet; makes me happy. I just wish IPv6 was more of a thing.
When I disabled contacts and calendar synchronization on my phone I couldn't feel happier !
The rest (photos, cloud storage) will hopefully follow when I have the time.
I know of staticdeploy.io/ but it's not active
Containers, easy to setup SSL, immutable OS's, reverse proxies.
Those things coupled with cheap and power efficient workstations/nucs seem like a very good match, at least in theory.
Then we have the GDPR laws which - also in theory - should be much more tangible when you know exactly where your data is - and backups can still easily be stored in the cloud as long as they are encrypted.
The biggest issue I see is the lack of ECC memory in the machines I mentioned.
And then that this idea goes against the business model of the cloud providers, who have a great deal of control over where we are heading and what we are talking about.
Still I cannot help but think there's a lot of opportunity in that area which seems rather untapped so far.
As other comments have pointed out, kids suck up every minute of your life, and when the internet or Plex don't work I'll know about it real quick (DAAAAD!). The important question for me is; how fast can I rebuild all of this if all the drives were wiped?
Here is my home setup;
Hardware:
* OPNSense - old i5 desktop, 70GB hdd, 20GB RAM
* TrueNAS - AMD A10-5800K, 16TB hdd, 1TB ssd, 8GB RAM
* OpenNebula Frontend - Random Intel NUC, 128GB ssd, 4GB RAM
* OpenNebula KVM Node - Xeon ?, 4TB hdd, 64GB RAM
* OpenNebula KVM Node - Xeon Silver ?, 2TB ssd, 128GB RAM + GTX 1070Ti
* Unifi EdgeSwitch ES-48
* Unifi WAP's
Software:
* OPNSense for routing
* OpenNebula for VM's
* Nomad for docker containers
* NetMaker for Wireguard based VPN
Main Apps:
* Home Assistant VM
* Plex (+rtorrent+sonarr+radarr+jackett+ombi) containers
* FusionPBX container for VoIP
* Kasm for remote desktops
* Rundeck container for various infrastructure based automation jobs
* Zabbix + Grafana containers for monitoring
* PacketFence VM for NAC
* Shinobi container for NVR
* Snapcast container for multi-room audio
I also have plenty of containers and VM's for various testing apps, or dev projects.
All of my non-critical containers (eg; Plex) self update daily at early morning hours.
For the critical stuff, I have tried to automate updates as much as possible.
The majority of things can be recreated from ansible, docker compose, or Nomad scripts, all of which are backed up to an offsite Nextcloud instance.
I use a lot of services on Opnsense, but I think one of the most important for me is the Traffic Shaper, allowing for bandwidth control.
I have about 14 VLAN's, and am in the process of setting up VXLAN's for further isolation.
I use restic for encrypted backups, stored in Wasabisys.com (no cost to download, unlike Backblaze).
I will admit there is still one design flaw that I'm yet to spend time overcoming; if everything is powered on at the same time, there is a chance some devices won't get an IP because OpnSense is not yet ready. My current flawless work-around is to boot Opnsense 30 seconds before everything else.
Use cloudron.io for provisioning
Profit
Anyway even if Cloudron goes under, you still have your own data on your own machine if youve set it up like that.
Looking to run my own next cloud instance soon.
Perhaps a photography blog, where you don't want to drag the jpg quality down to "looks fine without zooming" levels, might be more of a struggle. Or if your goal is to share flashable images for a raspberry pi or so (that can easily be gigabytes), yeah then this is not going to be a good experience even without concurrent users.
Definitely you'll be fine to host things like:
- a website (blog, CV, hobby, link shortening... can be anything) if you don't overload it with huge CSS/JS bundles
- chat server, such as Matrix or an IRC bouncer
- live editing notepad like etherpad, cryptpad, codimd
- software development stuff, like a unit test server or a git server (maybe not if you're the Linux kernel with gigabytes of history), perhaps a build server depending on the size of the binaries (CLI vs GUI)
- game servers: most real-time games (e.g. shooters) will run fine at low bandwidth if your latency is stable (let alone turn-based games), presuming it's just you and some friends playing, maybe not if you want to provide commercial game hosting services
- backup server if are fine driving home for doing restores, especially if you mostly backup when you're at home anyway
- "client" services like web scraping, e.g. I fetch some game's leaderboards regularly (with permission) and provide statistics for them, and monitor a river for giving me notifications in certain cases, which take negligible amounts of bandwidth
- home automation that needs to talk to third-party services or you want to use outside of the house
Probably there are more uses to be thought of. I can only say to not let your dreams be dreams :D
¹ https://stackoverflow.com/questions/24198739/what-bitrate-is...
Setting that up will be a lot more in depth and complicated than leveraging a cloud service provider, so you need to consider the cost benefit analysis for yourself. However, if you want to self host and want the bandwidth, I think it is a route worth considering.
The fact that my desktop pc only has a gigabit card is perfect because I'm naturally throttled against using the entire. Obviously I can do this in my router (dream machine which is also gigabit only though) but it leaves a lot of room for everything else that's hosted at home even during peak utilization on my pc.
Proof: https://www.speedtest.net/result/14437484691.png
I am always worried about someone deciding to DDoS me though.
I've hosted a Tor exit node and other questionable stuff as a teenager, going from 1mbps upload to 50 mbps today. The site has been on the HN homepage, sometimes get featured on news sites like zdnet (that article gave me clicks for years on end), plus I run a file sharing service where anyone can post literally anything but the links are valid for one day. It has definitely hosted links to phishing and malware in the past (and I combat that when I see it, like replacing the short link with an info page "this was a phishing page" + infos).
In ~15 years, I never noticed anyone trying to take down the site. But your sentiment keeps being echoed in places like r/selfhosted and moves people to put their services behind some traffic inspection service, reducing the decentralized to a few places where all traffic passes through (often with decryption keys made available to them). It's still good to self host even if you do that, but I do feel a bit conflicted about that and wouldn't do it myself.
If it happens, not too much you can do, other than move to real hosting, and let them know upfront, or they'll drop you quick. Note that the first line of DDoS defense at your real hosting is going to be null routing your IP: dropping traffic to that IP, preferably on their upstreams' routers. That's normal and ok, although frustrating for you; doing better has costs.