bpa wrote: 
> This is unlikely to be easy to be easy as your Linux skills are limited
> and this is likely to be very fiddly & messy.
> The path is usually built into the executable. The executable is
> searching in standard places but the NAS is not "standard".
> 
> So there are main options:
> 1. Alter the system search paths
> 2. Executables often search the local directory first before looking
> elsewhere.
> 
> As an initial check for step 1 - is there a directory called called
> /etc/ld.so.conf  - if there is what files are in there ?  Is there one
> called somehting like x86_64-linux-gnu.conf  - if so what is in the file
> /  If it is another directory - what is in that directory.
> 
> As an initial test for step 2 - can youcopy the file libasound.so.2 from
> /volume1/@appstore/AudioStation/lib/ to the same directory as
> squeezelite .  If necessary change ownership and group of the libasound
> file to saem as squeezelite.
> Try running squeezelite without the "LD_LIBRARY_PATH"
> 
> 
> It looks like it couldeven find the command squeezelite.sh - did you use
> "./squeezelite,.sh" ? What did you use to try to execute it ?
> The first line of the script should have the path the shell to be used -
> I don't know what shell is running on the your system probably bash but
> could be ash or even busybox.
> 
> 
> That could be due to wrong permission or owner/group on any of the
> directories on the path to libasound.so or even the file itself. Also
> the problem could be permission on the ALSA audio devices in
> /proc/asound
> 
> If you can get step 1 or 2 working - then it will avoid the script part
> which is probably best although permission will still need to be sorted.

This is brilliant, I am learning as I go. Thank you so much for your
kind assistance and patience, you are a great and very helpful person! 

Seems we need to go with the script option, no luck with step 1 or 2. 
I made the script work, used the wrong shell, /bin/bash instead of
/bin/sh.

So, this is what I have:
The script file is in the local player folder, it contains this:
#!/bin/sh

LD_LIBRARY_PATH=/volume1/@appstore/AudioStation/lib
/volume1/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins/LocalPlayer/Bin/squeezelite-x86-64
-d all=info -a 88200:1298:16:1 -o hw:0,0

It works from command line. 

The binary is the new one that works. 
Rights for all files are admin/users. I didn't change the original ones
installed by LMS, they had the same ownerships. 

-rwxr-xr-x 1 admin users  139261 Feb 25 09:39 old-squeezelite-x86-64
-rwxr-xr-x 1 admin users  127354 Feb 25 09:39 squeezelite-armv5te
-rwxr-xr-x 1 admin users  127354 Feb 25 09:39 squeezelite-armv6
-rwxr-xr-x 1 admin users  136381 Feb 25 09:39 squeezelite-armv6hf
-rwxr-xr-x 1 admin users  133764 Feb 25 09:39 squeezelite-i386
-rwxr-xr-x 1 admin users 2642256 Oct 29 13:45 squeezelite-x86-64
-rwxr-xr-x 1 admin users     203 Feb 26 09:36 squeezelite-x86-64.sh
root@Akela2:/volume1/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins/LocalPlayer/Bin#

The right issue seems to be with the audio device, running the script as
admin gives:

[09:43:29.142435] stream_init:294 init stream
[09:43:29.144389] output_init_alsa:939 init output
[09:43:29.144496] output_init_alsa:979 requested alsa_buffer: 88200
alsa_period: 1298 format: 16 mmap: 1
[09:43:29.146061] ALSA _snd_pcm_hw_open:1401 Invalid value for card
[09:43:29.146163] test_open:281 playback open error: No such file or
directory
[09:43:29.146189] output_init_common:384 unable to open output device:
hw:0,0


So, how to fix this, and how to make the script run at startup? 

Thanks!


------------------------------------------------------------------------
Thorden's Profile: http://forums.slimdevices.com/member.php?userid=66927
View this thread: http://forums.slimdevices.com/showthread.php?t=97766

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to