Ampache on RPi zero w Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
Joulinar
Posts: 3154
Joined: Sat Nov 16, 2019 12:49 am

Re: Ampache on RPi zero w

Post by Joulinar »

well the warning is in green. I did a test, removed permission on the file and warning becomes red. Honestly not sure what a green warning means.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
kk345
Posts: 16
Joined: Sun Dec 06, 2020 10:02 am

Re: Ampache on RPi zero w

Post by kk345 »

Ok i am giving up on ampacbe as I am unable to configure it to use with subsonic clients and upnp.

Thanks for the help Mr. Joulinar.

Now I am trying different media servers...

Installed jellyfin from dietpi-software. Cannot connect to
http://192.168.1.100:8096/
Do I need to configure it...
I am running pihole on same rpi0w

Edit:

Just found jellyfin for ARMv6
viewtopic.php?t=8263
User avatar
Joulinar
Posts: 3154
Joined: Sat Nov 16, 2019 12:49 am

Re: Ampache on RPi zero w

Post by Joulinar »

Yes, Jellifin will be fixed on upcoming release 6.34 (already in beta)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
kk345
Posts: 16
Joined: Sun Dec 06, 2020 10:02 am

Re: Ampache on RPi zero w

Post by kk345 »

jellyfin failed to start
again came back to ampache...
can anyone help me change lighttpd as per ampache wiki

As per ampache wiki
1. https://github.com/ampache/ampache/wiki/Installation
Lighttpd:

Code: Select all

$HTTP["host"] == "example.com" {
    server.document-root = "/srv/http/vhosts/example.com/public/"
    url.rewrite-if-not-file += (
        "^/(.*)\.(css|js|jpg|png|gif)$" => "$0",
        "^/rest/(.+)\.view$" => "/rest/index.php?ssaction=$1",
        "^/rest/fake/(.+)$" => "/play/$1",
        "^/play/art/([^/]+)/([^/]+)/([0-9]+)/thumb([0-9]*)\.([a-z]+)$" => "/image.php?object_type=$2&object_id=$3&auth=$1&thumb=$4&name=art.jpg",
        "^/play/([^/]+)/([^/]+)/([^/]+)/([^/]+)(/.*)?$" => "/play/$5?$1=$2&$3=$4",
        "^/play/([^/]+)/([^/]+)(/.*)?$" => "/play/$3?$1=$2",
        "^/play(/[^/]+|[^/]+/|/?)$" => "/play/index.php",
        "^/channel/([0-9]+)/(.*)$" => "/channel/index.php?channel=$1&target=$2"
    )
}
2. https://github.com/ampache/ampache/wiki/API
For lighttpd following lines need to be added:

Code: Select all

url.rewrite-if-not-file += (
  "^/rest/(([^\?]+)\.view)(\?(.*))?" => "/rest/index.php?ssaction=$2&$4",
  "^/play/ssid/([^/]+)/type/([^/]+)/oid/([^/]+)/uid/([^/]+)/client/([^/]+)/noscrobble/([^/]+)/bitrate/([^/]+)/player/([^/]+)/name/([^/]+)(/.*)?$" => "/play/index.php?ssid=$1&type=$2&oid=$3&uid=$4&client=$5&noscrobble=$6&bitrate=$7&player=$8&name=$9"
)
Can i just add the above 2 codes to lighttpd.config at the end of file... do i need to change anything...
The wiki says if opening http://localhost/ampache/rest/ping.view gives below o/p then subsonic clients can be used. i tried to open 192.168.1.100/ampache/rest/ping.view but is not reachable.

Code: Select all

<subsonic-response version="1.10.1" status="failed">
    <error code="10" message="Required parameter is missing."/>
</subsonic-response>
To enable UPnP/DLNA:
url rewriting is enabled in settings. But i think point 1 & 2 needs to be implemented for url rewriting.

Also wiki says, If your installation is within a subfolder '/ampache' you must take care for your Rewrite Rules within '[ampachepath]/play/.htaccess'...

Thanks in advance
User avatar
Joulinar
Posts: 3154
Joined: Sat Nov 16, 2019 12:49 am

Re: Ampache on RPi zero w

Post by Joulinar »

I guess a RPi zero w is armv6l as well.

Currently there is an issue on jellyfin site pulling incorrect executable viewtopic.php?p=29660#p29660
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
kk345
Posts: 16
Joined: Sun Dec 06, 2020 10:02 am

Re: Ampache on RPi zero w

Post by kk345 »

Joulinar wrote: Mon Dec 21, 2020 1:57 pm I guess a RPi zero w is armv6l as well.

Currently there is an issue on jellyfin site pulling incorrect executable viewtopic.php?p=29660#p29660
Thanks for that. Could you guys help with ampache and lighttpd config. My above post has all details.
Post Reply