Most active commenters
  • zahlman(5)
  • npodbielski(5)
  • ekjhgkejhgk(3)
  • bjoli(3)
  • ZoomZoomZoom(3)

←back to thread

What I Self Host

(fredrikmeyer.net)
116 points FredrikMeyer | 42 comments | | HN request time: 3.308s | source | bottom
1. zahlman ◴[] No.45645835[source]
There seems to be a fad for "self hosting" things now. What I don't understand is: what happened to just having a single device and having it run the code directly and show you the result directly? For example, why can't the thing that connects to the Spotify API just... do that, from a program that runs locally, independent of a web browser, with a GUI created using a standard non-web GUI toolkit? Why would I want to use it by pointing my browser at a machine name (of another device I own) and port number, rather than by launching a dedicated program?
replies(12): >>45645897 #>>45645926 #>>45645940 #>>45645946 #>>45646083 #>>45646100 #>>45646485 #>>45646586 #>>45646675 #>>45649095 #>>45651611 #>>45662392 #
2. Semaphor ◴[] No.45645897[source]
Because most people have multiple devices. I self host about 20 services, that get accessed from 7 different devices for just 2 people.
3. zeroonetwothree ◴[] No.45645926[source]
I guess there are a few reasons: easier to develop cross platform, easier to reuse for non-self hosted, easier for programmers familiar with web development to implement, less activation cost for users, less friction to use with multiple devices.
4. joekrill ◴[] No.45645940[source]
Most people have many devices: phones, tablets, laptops, etc... so this makes that stuff accessible from anywhere. And if you lose your device, or it dies, you don't lose all your data. On that note: self-hosting allows you to centralize your backups.
replies(1): >>45647321 #
5. juancroldan ◴[] No.45645946[source]
I guess to avoid having to install such dedicated programs for you and everyone you give access to, or just to have fun coding some little web project
6. cma ◴[] No.45646083[source]
You'll need to port that to windows, linux, Mac, android, and ios for a typical device mix of someone doing self-hosting, and no access from more closed platforms that have a browser.
replies(1): >>45647348 #
7. ◴[] No.45646100[source]
8. 0x01FE ◴[] No.45646485[source]
Specifically with the Spotify service, the problem with the Spotify API is that you can only request listening data for the last 100 played songs iirc. You can manually request the data from Spotify, but it will take them a month or two to give you the data and it will be a snapshot of it.

So if you want live updates on statistics about your listening habits you need a service running 24/7 querying the Spotify API and storing the information in a database. Assumedly since most people don't have a computer to run this on 24/7, a server is necessary / preferred.

I've actually written an application doing something similar, it's very annoying that Spotify's API works like this.

9. ekjhgkejhgk ◴[] No.45646586[source]
I think people don't know what they want, but they like fiddling with computers. So, they imagine future scenarios where they would have problems (which they don't) and imagine solutions for those problems they don't have, and spend time implementing those solutions.

For example. Whenever RSS comes up, I say that newsboat is the best thing. People don't like it because it doesn't synchronize devices. Really? Why not have a device for reading, and read there? I have newsboat on my laptop and I A) don't have to read on my phone, B) can't read on my phone, and C) don't have to spend my free time doing unpaid maintenance for a job which I created for myself. Win-win-win.

replies(3): >>45646996 #>>45648761 #>>45656987 #
10. npodbielski ◴[] No.45646675[source]
Others already answered with information that you usually have more devices then just 1. So you can have access to your data from PC, laptop and your phone. I for once also like to have my own data my own. I.e. I have:

- my own email server

- my own files sharing service

- service for cardDav, CalDav etc.

- service for editing my own office files on mobile

- notes that are synchronized

- streaming of movies and music

- build and git server

- my own smart home service

- notification service

- chat

- VPN

- desktop sharing service

- my own DNS for blocking adds

- and others

replies(2): >>45647241 #>>45652727 #
11. npodbielski ◴[] No.45646996[source]
Maybe for some. But for me I do not want giant corp own my data. Like I do give keys to my house to some company or I do not have people manage my own money. Just as a principle.
replies(1): >>45650558 #
12. leosanchez ◴[] No.45647241[source]
Can you list out the names of services?
replies(2): >>45652614 #>>45654218 #
13. zahlman ◴[] No.45647321[source]
I do have backup storage, of course.

It's hard for me to imagine wanting to use a phone for anything other than making calls or sending SMS; that's what I've been doing for many years now and I see no reason to change. But if I did have a tablet or laptop, I could just sync the program to it and run it locally. Maybe using, for example, good old rsync.

And I can't imagine being away from "home base" on a laptop for long enough (or using it for anything critical enough) to really worry about how to achieve "centralized backups". I'd rather not transmit that data over the Internet when I could just connect the laptop physically to my backup storage when I got home.

replies(2): >>45652761 #>>45670244 #
14. zahlman ◴[] No.45647348[source]
I can understand Linux programs not being easily made to work on Android, but I can't understand why I'd ever need or want a device that runs Android and a device that runs IOS. Unless they're test devices for development, but I wouldn't be using those to access services in my day-to-day life.
replies(2): >>45648108 #>>45657215 #
15. cma ◴[] No.45648108{3}[source]
Think multi user households too. But many people have a few ios devices even if they primarily use android (apple tv, vision pro) and vice versa.
16. AndrewDucker ◴[] No.45648761[source]
I read RSS on my desktop when I'm at home, on my work laptop when I'm at work, and on my phone in-between. And that works perfectly. Why would I want to reduce my options?
17. conor- ◴[] No.45649095[source]
> what happened to just having a single device and having it run the code directly and show you the result directly?

Having access to multiple computers/devices as a single user became cheap and more common. If it was still the 2000s (or maybe early 2010s) and somebody only used a single PC for most of their tasks that'd make sense, but that's just not the reality most people live anymore

replies(1): >>45656702 #
18. ekjhgkejhgk ◴[] No.45650558{3}[source]
newsboat doesn't give anyone any data.
replies(1): >>45654187 #
19. estimator7292 ◴[] No.45651611[source]
A lot of the stuff we're selfhosting just.... isn't a standalone application. My mastodon server has to run always to get messages. My nexcloud has to be always on to get my phone backups.

The only thing that might make sense to be local is media, but only if you don't share with someone else and you want to maintain an offline copy of your library on each device you use.

In general, it's stuff that needs to be shared or needs to run 24/7. A lot of that just doesn't make any sense as a desktop application.

All rationalization aside, it's a hobby. It's fun. People spin up hulking enterprise gear at home and run jellyfin just for kicks. It's not supposed to be at all practical or to even make sense. It's silly nonsense on purpose.

20. mkayokay ◴[] No.45652614{3}[source]
You could have a look at the following list, as there are a lot of options to choose from in each category: https://github.com/awesome-selfhosted/awesome-selfhosted
21. bjoli ◴[] No.45652727[source]
I tried various Things to be able to access my own DNA while not at home and ended up using wire guard for my subnet so that I always have access to my DNA server. Right now I am solving it with mikrotiks "back to home" app., but the regular wire guard app does it as well. It uses very little battery.
replies(3): >>45654213 #>>45654273 #>>45664980 #
22. bigstrat2003 ◴[] No.45652761{3}[source]
> It's hard for me to imagine wanting to use a phone for anything other than making calls or sending SMS

Not even listening to music in the car? That is probably my #1 phone use case by far outside of the communications functions you mentioned. I run a Navidrome server at home, and while on the go my phone can stream any music I like from the home server (so I don't need to load it in advance). In theory one might store the music on one's phone of course, but I have more music than my phone will hold and it's very nice to be able to access whatever I want to listen to at will.

replies(2): >>45654224 #>>45656663 #
23. npodbielski ◴[] No.45654187{4}[source]
Never heard of it.

I just tried to explain to you why I DO THIS.

24. npodbielski ◴[] No.45654213{3}[source]
You mean DLNA? Like media server? The ones I am/was using are quite wide spread. The most popular is plex I think, but I never liked that you have to register someplace else to be access your local library, crazy notion for me.

Anyway the nginx reverse proxy is enough for those. You can login and listen to your own music or watch your movies anywhere.

Checkout for example here: https://github.com/linuxserver/reverse-proxy-confs

replies(1): >>45665010 #
25. npodbielski ◴[] No.45654218{3}[source]
Sure but not here. It is too public forum. Drop me an email and I send you some examples.
26. ZoomZoomZoom ◴[] No.45654224{4}[source]
How come the connection is stable enough to be streaming on the go from the car? Or is there some serious caching happening?
replies(1): >>45654714 #
27. ZoomZoomZoom ◴[] No.45654273{3}[source]
Reads like a cool sci-fi story premise. Remote access to base DNA for the robotic body for person verification, or for a self-mutating or rapidly evolving organism.
28. com2kid ◴[] No.45654714{5}[source]
MP3s are tiny. Just download + cache the n and n+1 song. On a modern 4g or 5g connection downloading an entire song takes seconds. Anytime a new song starts up, grab the n+1 song as soon as possible.

But aside from that, inside any metro area even a 200ms or so buffer would likely suffice for streaming music.

replies(1): >>45654918 #
29. ZoomZoomZoom ◴[] No.45654918{6}[source]
Yep, and OPUS files are even lighter. That's why I just sync a "currently listening" music folder with Syncthing and do not think about connection, caching and all that. (I have the rest reachable when I need it, of course.)

200ms and even n+1 won't cut it for a subway, a semi-basement pub, a tunnel, a train or an airplane trip, a hike, a countryside visit, etc.

30. zahlman ◴[] No.45656663{4}[source]
> Not even listening to music in the car?

I generally prefer to have access to all my senses on public transit, but there are any number of other portable devices I could use that store the music locally.

> I have more music than my phone will hold and it's very nice to be able to access whatever I want to listen to at will.

If I were going to choose from among that much music I might as well search the Internet anyway. An entry-level microSD the size of my thumbnail now holds a couple hundred CDs worth (at uncompressed CD quality; several times that for high-quality opus).

replies(1): >>45657735 #
31. zahlman ◴[] No.45656702[source]
As far as I can tell, the price range for consumer PCs hasn't really moved since then. If anything it's worse now for people who expect to have a good quality graphics card. Owning a smartphone outright isn't cheap, either.
replies(1): >>45664292 #
32. thiht ◴[] No.45656987[source]
> Why not have a device for reading, and read there?

I'm curious to know why you think this way of doing is "correct"? I like reading my RSS feeds on my phone. And on my laptop. And on my tablet, sometimes.

replies(1): >>45674240 #
33. Larrikin ◴[] No.45657215{3}[source]
I dislike the iOS experience and have used an Android phone daily for nearly 15 years. The iPad Pro is objectively better than any Android tablet, even with the limitations of the OS.
34. mervz ◴[] No.45657735{5}[source]
You seem to be an extreme outlier and probably not the target audience for such applications. No offense, but nobody is carrying around multiple devices when the one device we all have can do everything and do it better.
35. j45 ◴[] No.45662392[source]
I don't think it's a fad. Just more people talking about it openly that might be doing it.

New to me might not mean new to others.

Self hosting is not valued on what someone else self-hosts, it's about what you self host that's valuable to you.

36. conor- ◴[] No.45664292{3}[source]
You can buy a mini pc for >$200 USD that is capable of running most desktop tasks and can also handle server tasks. Good quality integrated graphics APUs are also plentiful and fairly easy to come by these days.
37. bjoli ◴[] No.45664980{3}[source]
So, I am a victim of autocorrect. I mean DNS.
38. bjoli ◴[] No.45665010{4}[source]
Sorry. It was an autocorrect mishap. I meant DNS.
39. lucyjojo ◴[] No.45670244{3}[source]
well then you have a very niche use of your computing devices.
40. ekjhgkejhgk ◴[] No.45674240{3}[source]
I didn't use the word "correct", you did.

In any case, if you're reading on your phone it's most likely because you're addicted to your phone and open the app impulsively. Consider that.

replies(2): >>45675233 #>>45681955 #
41. izacus ◴[] No.45675233{4}[source]
Please don't play weasel word games, you know exactly what the poster meant. Your showing an awful mindset where you scold people who don't share your preferences and world view. Stop it.
42. thiht ◴[] No.45681955{4}[source]
> I didn't use the word "correct", you did.

You do know we can infer unwritten things from context, right?

> I say that newsboat is the best thing

> Why not have a device for reading, and read there?

These sound like you believe your way of doing is the correct one and people reading on multiple devices are wrong. You don't have to say it for readers to understand it this way.