this post was submitted on 24 Oct 2024
118 points (96.8% liked)

Selfhosted

39791 readers
581 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] 30 points 1 day ago (4 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] 4 points 5 hours ago (4 children)

Maybe this is a stupid question, but what do you achieve with self-hosting music? What do you do with it? If it's only on localhost then I could just play the music locally? what is it for? :)

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

I forward it to my domain, so that I can listen to music in my office or anywhere else.

I have a VPS on hetzner, and I forward all my local traffic through that VPS via TLS-passthrough, not TLS termination using WireGuard amd HAProxy.

To know more about my setup, you can this this. https://blog.aiquiral.me/bypass-cgnat

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

Depends what you want to play it on. In my house we have:

3 laptops 2 tablets 2 mobile phones (1 android, 1 iPhone) TV

Not all these devices support local storage for music and it's a pain to sync files between them. With Jellyfin the complete library is in one location with a consistent interface. It can also be made available remotely if I choose.

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

You can stream it wherever you are in the world without having to keep it on your phone

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

jellyfin is a streaming server. get yourself a domain name and you can connect your apps to it from anywhere.

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

I've always wondered that. Why use linux server's images over official ones? Are they somehow better?

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

When I first used Jellyfin, the official Docker image didn't have AMD video acceleration working out of the box and the LinuxServer one did.

LinuxServer images often solve problems and work out of the box better than the official option.

I think I'm right in saying they have a standardised and reliable option for running as a none-root user too.

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

They're relatively easy to deploy.

[–] [email protected] 4 points 11 hours ago* (last edited 11 hours ago)

For normal docker self hosters the biggest is similar structures across their images.

It config is always /config

Also they run the same user so it helps with file permission issues

https://www.linuxserver.io/

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

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] 1 points 8 hours ago* (last edited 8 hours ago)

That is a different usecase though. That is simply syncing local musical with a server.

I do that too because i have an SD card. Just use Syncthing for that. Much faster and less hassle. You can use any music player on your phone that you want, not just one that works with jellyfin.

If you aren't streaming music in real time for the majority of time, then do a phone sync, not a streaming server.

[–] [email protected] 4 points 1 day 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] 42 points 1 day ago (2 children)

I use a Plex server and the PlexAmp app wherever I want to listen. There are probably better options, but it's something I set up years ago which was dead simple and requires almost no maintenance.

[–] [email protected] 8 points 1 day ago* (last edited 1 day ago)

PlexAmp is an amazing bit of software for a phone. It doesn't translate well to the desktop, but it's still pretty good.

Your flacs will play lossless on wifi, and transcode to 128kbps opus on mobile. You can tweak those settings too.

Most smart TVs have a native plex app available too.

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

Plexamp is the best music service I’ve ever used and it’s a great way to get into self hosting. Once it’s set up why not add some tv and movies?

[–] [email protected] 10 points 1 day ago* (last edited 1 day ago) (4 children)

Agh Plex always rubs me the wrong way.... It acts like closed source software as much as is possible. Went with Jellyfin and it's been great. But haven't tried music.

[–] [email protected] 1 points 21 minutes ago

I use Jellyfin for all my video but I use Plex for my audio. Plex app is just so much better than finamp.

load more comments (3 replies)
[–] [email protected] 36 points 1 day ago (6 children)

Symphonium is a great Android music player which connects to a Subsonic or Jellyfin server (or any other protocol like SMB).

Navidrome is a music server which implements the Subsonic protocol. This means apps like Symphonium can connect to it.


Any old PC is enough, even a Raspberry Pi is fast enough for a music server.

  1. Install Navidrome on the server/pc
  2. Configure Navidrome (open ports, add your music library/folder)
  3. Connect a subsonic-compatible music app to to the server (I.e. type in IP or domain as well as the port).

Anything more like SSL (https) and a domain is optional for getting it working, and only a benefit if used outside of your home network. Using Tailscale makes a domain/SSL unnecessary and also no longer needs messing around with networking (e.g. no opening ports on the router).

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

On the topic of SMB. If OP is mostly interested in accessing the music from their phone, a symfonium + SMB server setup may be even easier than setting up navidrome

[–] [email protected] 3 points 1 day ago

I use synphonium with my jellying server, works just fine.

[–] [email protected] 5 points 1 day ago

Can confirm. I have an arm board from 2010 with 256MB of RAM. it hosts music fine through minidlna and still has memory and cpu free

load more comments (3 replies)
[–] [email protected] 19 points 1 day ago (9 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] 1 points 3 hours ago

I mean, most high-end phones today doesn't support SD cards so this can be a reason why to selfhost.

load more comments (8 replies)
[–] [email protected] 8 points 1 day 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] 19 points 1 day ago

There are lots of solutions, but as others have noted, Plex with Plexamp is great.

I’d recommend getting a NAS for storage and running mirrored disks. This way you’ve got some redundancy in the event of a disk failure.

[–] [email protected] 16 points 1 day ago (2 children)

There are many different ways, but personally (and hopefully I don't get crucified for saying this) I use Plex and Plexamp. Plexamp has got to be the best music app I've ever used. I even tied it into Last.fm to get recommendations for new music based on my listening.

You'd need to set up Plex media server to go this route: https://support.plex.tv/articles/200264746-quick-start-step-by-step-guides/

Personally I host via Docker.

It might be a little overkill if you don't have other media, though, and it's not fully open source.

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

I use Plex and jellyfin, honestly, plex only stays around because of plexamp. It's just too good. I don't like using streaming apps like Spotify or whatever because they're not as good

[–] [email protected] 1 points 23 hours ago
load more comments (1 replies)
[–] [email protected] 14 points 1 day ago

Plex is good and the Plexamp app for music is excellent.

[–] [email protected] 5 points 1 day 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 1 day ago (3 children)

Isn't Syncthing for Android getting sundowned?

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

Use syncthing-fork from fdroid.

[–] [email protected] 4 points 1 day ago

The fork isn't

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

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

[–] [email protected] 9 points 1 day ago (2 children)

Jellyfin + Finamp has been pretty good for me.

load more comments (2 replies)
[–] [email protected] 6 points 1 day 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] 9 points 1 day ago

Music assistant on home assistant or without HA will let you host your own music but also allow for the addition of streaming providers. It lets you cast your collection to pretty much any speakers. You can even build your own cast receivers with any android device and squeeze cast.

https://music-assistant.io/

[–] [email protected] 6 points 1 day ago* (last edited 1 day 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.

load more comments
view more: next ›