this post was submitted on 24 Oct 2024
85 points (94.7% liked)

Selfhosted

39772 readers
426 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

hello,

im really tired of google music and spotify, and want to self host my downloaded music and create my library.

however, i know nothing about self hosting. My knowledge is absolutely zero. And Im completely lost about how to self host my own music. Dont find any good tutorial for dummies and i have a lot of question. I dont understand nothing. I see the tutorials of Navidrome and Ampache and still understand nothing. All of that looks extremely complicated to me.

How can i self host my music? I need to pay something? A very old and slow pc is enough?

Im completely lost. If someone can suggest something - like a tutorial , dunno - to build/self host my own music I appreciate a lot.

ty

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 10 hours ago

What I've been doing:

Easy option: because I only have around 40gb of music, I sync it between my PC and my phone using syncthing since 128gb is the minimum nowadays

Hard option: streaming is cooler so I installed nextcloud with an optional plugin called "music" which allows to connect an app called "ultramusic" and it becomes "self hosted Spotify" with android auto support and all the bells and whistles. Disadvantage: Nextcloud is a moving target. For some reason they have to release new incompatible versions every two or three months. So for plugin developers this is a very annoying upgrade threadmill that eventually leads to burnout and that plugin dies. Even officially supported plugins sometimes don't support the latest version when they launch it. If you choose to use nextcloud with docker, make sure to stay behind 1-2 versions (tag nextcloud:28 when nextcloud:30 is released) or your plugins might suddenly break without any warning. According to fanboys this is the industry standard nowadays and it's up to the user to manually check the GitHub issues of each of the 30 plugins if it's compatible before updating. Even if it's official plugin. They call it "stable" but they mean "beta testing for the paid enterprise version".

[–] [email protected] 2 points 11 hours ago (1 children)

Navidrome server. Use podman. Buy a Fully qualified Internet address first, then go to cloudflare and proxy your IP to the new. Address. Finally in android install Ultrasonic or Subsonic and go to your server.

You don't need to have a Fully qualified Internet address. But I like it better than having to remember 55.655.67.533. but the IP address still works fine. The thing about the cloudflare proxy is that it never reveals your IP. So in case someone might be snooping around, they gotta get past cloudflare first.

[–] [email protected] 1 points 10 hours ago (2 children)

Is there a way to do this if you don't have a static IP and don't want to use cloudflare?

[–] [email protected] 2 points 4 hours ago

Even without all this DNS thing, you can always reach your own IP from outside. The issue becomes a security issue. You will need to route your PC's specific Navidrome port. You can use any port you like, but you'll need it exposed thru. So that opens your system up for attacks from outside. With the cloudflare thing you can safely access your computer from outside without opening ports.

However you can sort of do this too by adding a couple more pod apps and using a dynamic DNS service. Portainer or cockpit, Pihole, and Ngnix Proxy Manager.

With portainer or cockpit you can organize the pods so they start-up automatically for example. Using your router, split your network into two separate ones ... One for yourself and another for your exposed stuff. Then use the pihole to protect them. Next set-up Ngnix proxy to route to different ports. If you get to my music.com, then it will route the name to a port. Without DNS you can also just route from your outside IP to a local host name. For example 56.45.35.76:657/music could route to NABODROME the local host name or simply to 192.168.7.12. there's a ton of tutorials on how to set these up on YouTube so go have fun. You might choose not to get into all this because it's a little complex. But you could, like many of us, really like it, and then you enjoy a little freedom.

[–] [email protected] 4 points 9 hours ago (1 children)

I don't have any links to hand, but look into Dynamic DNS. It's basically a way for your device / router to talk to your domain registrar, and update their DNS records whenever your IP address changes.

Have a look at DuckDNS as a starting point.

[–] [email protected] 1 points 1 hour ago

Yeah the way I have mine now, it's through dynamic dns

[–] [email protected] 5 points 11 hours ago (1 children)

Skimmed comments, but if you download and manage your music on your own on a machine you can have a super simple setup like I do. All music is synced using Syncthing to my phone. So my phone gets local storage, and then I use Poweramp (android) to play it.

I pretty much have a folder for all the music though. But I assume you can sort music into folders to have them as playlists. But perhaps not as practical as desired.

[–] [email protected] 5 points 11 hours ago (2 children)

Isn't Syncthing for Android getting sundowned?

[–] [email protected] 1 points 1 hour ago

Wha?! I didn't know this was happening... Damn, that was my solution to multiple applications

[–] [email protected] 3 points 8 hours ago

The fork isn't

[–] [email protected] 18 points 12 hours ago (2 children)

I use Jellyfin. You can find a very easy to deploy docker container by linuxserver.io team. Jellyfin has dedicated music only apps as well, for phones as desktops.

[–] [email protected] 3 points 10 hours ago

I got jellyfin ln my synology nas. Been working fine for a year or two now. Finamp is the dedicated audio app for that.

[–] [email protected] 5 points 11 hours ago

Or just run Jellyfin on your desktop and sync the phone app from time to time. Finamp even allows downloads, so no connection to the server needed at all times.

[–] [email protected] 6 points 13 hours ago

however, i know nothing about self hosting. My knowledge is absolutely zero [...] I dont understand nothing

This is going to be a problem, unfortunately. You'll need to define your use case first:

  • How much music do you want to have access to? Hundreds, thousands, millions of files? How large is your collection?
  • Do you have downloaded copies of all the music you want to listen to? Are they all in one place, well organized and tagged? If you just have downloads in the Spotify app, you won't be able to use those files, you don't actually own that music. You'll need DRM-free audio files.
  • Where and how do you want to be able to access them? Just from one device like your phone? Many devices? Is having access at home good enough, or do you want to be able to access your collection while you're away from home?
  • Will you be the only user?
  • What kind of budget do you have to work with?

An old PC might be enough to act as a server, but there's more involved and the answer to what you need depends on what exactly you want to do. You will not be able to build a personal version of Spotify with just an old PC, for instance.

[–] [email protected] 6 points 14 hours ago* (last edited 14 hours ago)

So, self hosting is complicated. Everyone in this comment section has had tons of experience with it. I tried Plex, failed. Jellyfin, didn't connect. Entire OSes on a raspberry pi, didn't work.

I don't know your situation but for me giving up and just keeping it stored on my phone and manually updating is good enough.

[–] [email protected] 5 points 15 hours ago* (last edited 15 hours ago) (1 children)

Actually, I'm gonna add another really simple option: Lyrion (Formerly Logitech Media Server). My wife swears by this one, supports local library, integrates with LastFM, and if you use Tidal, Qobuz, Deezer, or Spotify, you can integrate your streaming service with your local library for radio mixes.

Can install it right on a laptop or PC and connect to wherever your music is (local on the machine, on a NAS, etc.). After you install it, you can access it directly via a web browser or webapp, which will make it accessible from desktop or phone.

[–] [email protected] 2 points 14 hours ago

+1000 for Lyrion. Easily the best experience I've ever had with streaming music

[–] [email protected] 2 points 16 hours ago

Yunohost and Navidrome.

[–] [email protected] 8 points 16 hours ago (1 children)

Jellyfin + Finamp has been pretty good for me.

[–] [email protected] 3 points 15 hours ago* (last edited 15 hours ago) (1 children)

Any chance Jellyfin and Finamp have a music playlist and mix building feature?

Plex has this with Plexamp but I have not had a chance to look into jellyfin to see if a plugin offers something similar.

I hate building playlists, Plex offers a few different options like sonic sage, sonic adventure, artist mix builder, and automatic mixes based on past listening history.

[–] [email protected] 14 points 16 hours ago (3 children)

I'm going to go another route here: do you need streaming?

Like, I've simply gone with a giant pile of FLACs that I put on a SD card for my phone, and use over the NAS for when I'm at home and don't currently use any fancy-pants streaming stuff.

So like, depending on how you're using your music library, you might not even need to drop deep into the giant self-hosting rabbithole for this.

[–] [email protected] 2 points 13 hours ago

Based on OPs experience this is the best solution.

If they want to learn, I found plex + plexamp was pretty easy to get going.

[–] [email protected] 1 points 15 hours ago

that I put on a SD card for my phone

Pretty soon you won't be able to buy a phone without expandable storage. On the plus side, internal storage is going up, but it's still not big enough to hold a complete FLAC collection if it's a reasonably large library. You can re-encode your library just for phone usage, but that's a bit annoying to maintain.

Also, I've found all of the offline music players on Android kind of suck, and don't support the workflow I like or have bugs.

[–] [email protected] 3 points 16 hours ago (1 children)

I popped some songs onto my Jellyfin server, and that's worked out.

I was even able to stream it to my car using Android Auto.

[–] [email protected] 2 points 10 hours ago

I wish there was a mobile app of the same quality as plexamp for jellyfin.

load more comments
view more: next ›