Posted on January 9, 2025
Tags: madeof:atoms
Some time ago I installed minidlna on our media server: it was pretty easy to do, but quite limited in its support for the formats I use most, so I ended up using other solutions such as mounting the directory with sshfs.
Now, doing that from a phone, even a pinephone running debian, may not be as convenient as doing it from the laptop where I already have my ssh key :D and I needed to listed to music from the pinephone.
So, in anger, I decided to configure a web server to serve the files.
I installed lighttpd because I already had a role for this kind of configuration in my ansible directory, and configured it to serve the relevant directory in /etc/lighttpd/conf-available/20-music.conf:
$HTTP["host"] =~ "music.example.org" {
server.name = "music.example.org"
server.document-root = "/path/to/music"
}
the domain was already configured in my local dns (since everything is only available to the local network), and I enabled both
20-music.conf and
10-dir-listing.conf.
And. That’s it. It works. I can play my CD rips on a single flac exactly in the same way as I was used to (by ssh-ing to the media server and using alsaplayer).
Then this evening I was talking to normal people1, and they mentioned that they wouldn’t mind being able to skip tracks and fancy things like those :D and I’ve found one possible improvement.
For the directories with the generated single-track ogg files I’ve added some playlists with the command ls *.ogg > playlist.m3u, then in the directory above I’ve run ls */*.m3u > playlist.m3u and that also works.
With vlc I can now open music.example.org/band/album/p…to listen to an album that I have in ogg, being able to move between tracks, or I can open music.example.org/band/playlis… and in the playlist view I can browse between the different albums.
Left as an exercise to the reader2 are writing a bash script to generate all of the playlist.m3u files (and running it via some git hook when the files change) or writing a php script to generate them on the fly.
- as much as the members of our LUG can be considered normal.↩︎
- i.e. the person in the LUG who wanted me to share what I had done.↩︎
blog.trueelena.org/blog/2025/0…
Elena ``of Valhalla''
in reply to Elena ``of Valhalla'' • •notizia scorrelata: ho spacchettato la macchina da cucire e cucito qualcosa!
un paraspifferi, ma ho cucito qualcosa!
(prossimo progetto di #cucito: cambiare l'elastico a dei pantaloni del pigiama. se riesco a trovare dove è finita la scatola con gli elastici. lusso, eh?)
reshared this
Oblomov e rag. Gustavino Bevilacqua reshared this.
The Dress Developer
in reply to Elena ``of Valhalla'' • • •Elena ``of Valhalla'' likes this.
Elena ``of Valhalla''
in reply to The Dress Developer • •@The Dress Developer indeed!
I have some bigger projects I want to do
I have the fabric and other materials I want to use, some of which I've unpacked today
I'm just very low on free time, but this will change hopefully soon!
𝙹𝚘𝚃𝙾𝚔𝚕𝚊
in reply to Elena ``of Valhalla'' • • •Elena ``of Valhalla'' likes this.
Elena ``of Valhalla''
in reply to Elena ``of Valhalla'' • •today's let's try to resume #sewing resulted in:
* one hair towel wrap inspired by ikea.com/nl/en/p/stjarnbuske-h… but a bit bigger, made from two towels I'm not using.
* one broken needle at about 2 cm from the end of the very last seam
* while looking for the tip of the needle, discovering that I had not cleaned the sewing machine before packing it (uooops)
* realizing that I still don't have unpacked the sewing machine oil (and won't be able to get to it until the weekend), so gave a quick clean to the machine instead of proper quality time
* couldn't find the needle tip
* it was stuck in the towel layers, of course, ready to hurt myself if I had used the wrap
* finished the last 2 cm of seam, success!
And I also took pictures, but I have no idea when I'll have time to prepare a blog post and instructions.
Elena ``of Valhalla''
in reply to Elena ``of Valhalla'' • •risultati del “cerchiamo di ricominciare a #cucire” di oggi:
* un asciugamano per capelli ispirato a ikea.com/it/it/p/stjaernbuske-… ma un po' più grande, fatto con due salviette che non stavo usando.
* un ago rotto a circa 2 cm dalla fine dell'ultima cucitura
* mentre cercavo la punta dell'ago, accorgermi di non aver pulito la macchina da cucire prima di impacchettarla (uoooops)
* rendermi conto di non aver ancora spacchettato l'olio per la macchina (e non riuscire a raggiungerlo prima del weekend), quindi ho dato solo una pulita veloce anziché dedicarle del quality time per bene
* non riuscire a trovare la punta dell'ago
* era incastrato tra gli strati di salvietta, ovviamente, pronto a farmi male se avessi usato l'asciugamano
* finire gli ultimi due cm di cucitura, successo!
Ho anche fatto foto, ma non ho idea di quando avrò tempo per preparare un post per il blog e le istruzioni.
rag. Gustavino Bevilacqua reshared this.