Cover Art for MPD, cant get symbolic link for lighttpd to work

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
multiblitz
Posts: 2
Joined: Sun May 03, 2020 9:27 am

Cover Art for MPD, cant get symbolic link for lighttpd to work

Post by multiblitz »

I would like to use MPD and Dietpi with cover art. My client app is soundirok and I tried to follow their advise by installing lighttpd from your software-config. So, I folowed their description https://www.kvibes.de/soundirok-display-cover-art/

- I installed lighttpd with your dietpi-software option (not directly like in the how to for archphile described)
- nano /etc/lighttpd/lighttpd.conf

...
server.port = 8081
...
#server.errorlog = "/var/log/lighttpd/error.log"
...

- try to Setup a symlink to my music collection in the document root of lighttpd:

sudo ln -s /mnt/samba /srv/http/samba

----> I get the error message: "ln: failed to create symbolic link '/srv/http/samba': No such file or directory"

I am a newbie, but cd /mnt/samba shows me all my music on the nas, the directory is there.I have read somewhere it might be missing permission (dont know if that is the issue here), but that is over my head.

I guess as MPD and cover art is a standard topic, and lighttpd a proven good solution to offer those jpg (I made it work like described in the soundirok link above for archphile, but could not get it to work for dietpi), I guess many have already solved it, please educate me what do I wrong ?
multiblitz
Posts: 2
Joined: Sun May 03, 2020 9:27 am

Re: Cover Art for MPD, cant get symbolic link for lighttpd to work

Post by multiblitz »

Ok, I realized there is a different syntax between Archphile and Dietpi, tried to apply Denian syntax, but still not working....

so has anyone got a webserver working to give cover art to remote client app like mpad or soundirok in general ?
User avatar
Joulinar
Posts: 2022
Joined: Sat Nov 16, 2019 12:49 am

Re: Cover Art for MPD, cant get symbolic link for lighttpd to work

Post by Joulinar »

Hi,

I guess your issue is the web server root directory because you tried to create a link inside /srv/http/. But on DietPi the lighttpd web server root is /var/www/ as you can see on config file

Code: Select all

root@DietPi4:/var/www# cat /etc/lighttpd/lighttpd.conf |grep server.document-root
server.document-root        = "/var/www"
root@DietPi4:/var/www#
therefore you link needs to created like this

Code: Select all

ln -s /mnt/samba /var/www/samba
This will create the link inside web server root directory
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply