this post was submitted on 24 Oct 2024
133 points (95.9% liked)

Selfhosted

39840 readers
460 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

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 32 points 5 days 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 3 days 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] 6 points 3 days 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] 5 points 3 days ago (1 children)

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 3 days ago (1 children)

That actually makes a lot of sense, thanks!

[–] [email protected] 1 points 3 days ago
[–] [email protected] 4 points 3 days ago

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

[–] [email protected] 3 points 3 days ago

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

[–] [email protected] 5 points 4 days ago (3 children)

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

[–] [email protected] 4 points 3 days 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] 4 points 4 days ago* (last edited 4 days ago) (1 children)

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

Hmm, never looked at it this way. I might start using their images too.

Questions about the user:

1- Their docs says it may be risky to run the app as root. Is the root in the docker container same as root of the host? I thought it was root but only in the container, separate from the host root's namespace.

2- And in terms of volume ownership: if I'm using Docker volumes instead of bind mounts, do I care about that? I haven't had an issue so far.

[–] [email protected] 3 points 3 days ago

They're relatively easy to deploy.

[–] [email protected] 8 points 5 days 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 3 days ago* (last edited 3 days 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 4 days 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.