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
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:
Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.
No spam posting.
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.
Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
No trolling.
Resources:
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
@zeromoney I have a self hosted streaming service for music with #Jellyfin. But i think there’s no an easy way to deploy it. You need to have some basic linux knowledge.
@selfhosted
removed by mod
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.
Isn’t Syncthing for Android getting sundowned?
The fork isn’t
Wha?! I didn’t know this was happening… Damn, that was my solution to multiple applications
Use syncthing-fork from fdroid.
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.
I’ve always wondered that. Why use linux server’s images over official ones? Are they somehow better?
They’re relatively easy to deploy.
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.
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/
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.
I got jellyfin ln my synology nas. Been working fine for a year or two now. Finamp is the dedicated audio app for that.
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.
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.
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? :)
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
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.
That actually makes a lot of sense, thanks!
Welcome
You can stream it wherever you are in the world without having to keep it on your phone
jellyfin is a streaming server. get yourself a domain name and you can connect your apps to it from anywhere.
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.
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
@greedytacothief @AmbiguousProps How does Finamp compare?
Not necessarily overkill, you can run Plex on almost anything. I used to run it on an old NUC6 I had laying around, then upgraded to a NUC8, and more recently I setup it up as a VM on Proxmox on a Ryzen 5700u mini-PC and just reimported the DB.
Virtualizing it has been good for my purposes since now it’s running alongside AssetUPnP, AudioBookshelf, and a dockerized squeezelite setup, and I’ve another VM on the host running Home Assistant with still plenty of resources to spare. Crazy we can do that now with a “server” that literally fits in my palm.
But virtualizing it makes hardware acceleration for video transcode be I more complicated, just a heads up. I play everything native so don’t use it, but YMMV.
———
Edit - Plexamp is an awesome radio/DJ player, though I generally send to a Wiim Mini, as AirPlay quality with Plexamp can be kind of ass compared to direct DLNA.
Plex is good and the Plexamp app for music is excellent.
What do you want it to do? If you have all your music, a bunch of folders with MP3s works.
This is going to be a problem, unfortunately. You’ll need to define your use case first:
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.
I just use Auxio on Android or GNOME Music on Linux to listen to my downloaded files, and sync them via Syncthing.
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/
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.
Is there a way to do this if you don’t have a static IP and don’t want to use cloudflare?
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.
Yeah the way I have mine now, it’s through dynamic dns
Back in the day I used to use dynamic DNS.
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.
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”.
What’s wrong with just throwing MP3s on an SD card, or hard drive?
Edit: Love how I have 4 upvotes, 4 downvotes. So a pretty divicive statement I’ve made. Yet nobody has told me why mp3s on local storage is or is not a solution for self hosting music. No opinions shared, other than angry arrows in both directions.
Cool. Cool. Cool. Cool.
Files on a SD card is what I do. It’s so simple.
MP3’s are so old the patents have expired. OPUS is where it’s at it ones going for lossy music compression nowadays.
Harddrives are a bit unpractical when listening on phones.
And please don’t throw music onto storage devices, it’s better to transfer them.
Better?
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.
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?
I started with TV and movies and thought why not add some music!
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.
I actually plan on switching to Jellyfin soon but I think I’ll keep Plex running just for Plexamp
I run both for a similar reason. It’s the same library, point both services at it and you have more choice of apps. Yet another benefit to self hosting.
Take a look at the Finamp desktop client. It comes very close to the Plexamp client from back when I was using Plex.
I have heard symphonium is very good if they are looking at closed source Plex anyway. It works with jellyfin and navidrome.
I just use syncthing to sync all of my music to my phone’s SD card. Then PowerAmp since there aren’t many fully featured foss music players. I am keeping my eye on Auxio though, keeping it installed and updated.
I use Jellyfin for all my video but I use Plex for my audio. Plex app is just so much better than finamp.
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.
Yup, that’s what we do as well. 30tb of music, TV, and movies. All available to me and my friends wherever we are.
deleted by creator
was mentioned in the post
That’s what I get for skimming.
lol it happens
Scamming is bad, think of the victims.