Re: [SlimDevices: Unix] LMS on Debian server: file permissions

2019-12-27 Thread Rnee


Roland0 wrote: 
> Not sure what you mean by "syncing"
To have a backup from my music collection + the fact that I make changes
regularly since I have quite a lot single tracks that need some work, I
work on the folder located on my desktop PC.
>From there, I sync with Syncback or Robocopy towards the networkshare.

Roland0 wrote: 
> imo, this just leads to confusion. ymmv.
Just by creating a Linux user with same name/password as the Windows
user of my desktop, I thought of making it simple/easier.

Roland0 wrote: 
> Yes (LMS runs as user squeezeboxserver)
So to be able to save playlists from the LMS interface, I have to give
that user write access to the playlist folder, right?
This seems to be what you are explaining hereafter...
Roland0 wrote: 
> Well, it's two commands, both of which I've supplied - you'll just have
> to replace <0_Playlists owning group> with the group owning 0_Playlists
> (as you didn't supply that information).


Roland0 wrote: 
> You could have used the squeezeboxserver user as local samba user for
> the share, some may consider this simpler
I have installed LMS on the same machine as Samba so I can access that
folder directly through the filesystem instead of through the share.
The disk is passed on (bind mounted) from the host to the LXC running
LMS/Samba.

@SpiderJon: it's a Dell Optiplex 7010 SFF, i3 - 2c/4t, 16Gb Ram, SSD for
OS/VM/LXC's, HDD for data.
Ideal for my situation, it's small, quiet and has enough power.



*Happy holidays*

pCP v5.0.0 on all players
LMS 7.9.2 on Debian Buster server in a Linux Container
RPi 3B+ with Hifiberry AMP2 and official 7" touchscreen (Squeezelite +
Jivelite), +27k titles on SMB share
RPi B as dedicated player, connected over wifi with USB dongle
RPi 2B as dedicated player, connected over powerline
RPi Zero W as dedicated player
Squeezer on Android to control

Rnee's Profile: http://forums.slimdevices.com/member.php?userid=66970
View this thread: http://forums.slimdevices.com/showthread.php?t=111390

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 5.0.0

2019-12-27 Thread Man in a van


Off you go !!

28857


+---+
|Filename: naughty step.png |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=28857|
+---+


Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627
View this thread: http://forums.slimdevices.com/showthread.php?t=110642

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 5.0.0

2019-12-27 Thread Keithfuller

Hi Ronnie,
I’ve just been giving myself a severe kicking after realising what the
problem was. In an earlier hardware arrangement I used GPIO21 to turn a
backlight off and hadn’t bothered to disable it. Of all the pins I could
have chosen GPIO21 is used by I2S so explains why the DAC didn’t work.
Many thanks for your assistance, you obviously inspired me to look
closer.
Best wishes for 2020
Keith

Keithfuller wrote: 
> Hi Ronnie and thanks for your welcome.
> Yes I’ve been in beta mode. I’ll certainly be kicking myself if that
> turns out to be the problem.
> Cheers, Keith



Keithfuller's Profile: http://forums.slimdevices.com/member.php?userid=69670
View this thread: http://forums.slimdevices.com/showthread.php?t=110642

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] LMS on Debian server: file permissions

2019-12-27 Thread SpiderJon


Rnee wrote: 
> Hi guys, could use some help here. :o
> 
> I moved LMS from a RPi to a Debian Buster LXC which, overall, is a big
> improvement: 

Just curious - What hardware are you running it on?



SpiderJon's Profile: http://forums.slimdevices.com/member.php?userid=21798
View this thread: http://forums.slimdevices.com/showthread.php?t=111390

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 5.0.0

2019-12-27 Thread Man in a van


What settings are available here ?

28856


+---+
|Filename: pcp settings.png |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=28856|
+---+


Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627
View this thread: http://forums.slimdevices.com/showthread.php?t=110642

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 5.0.0

2019-12-27 Thread Keithfuller

Hi Ronnie and thanks for your welcome.
Yes I’ve been in beta mode. I’ll certainly be kicking myself if that
turns out to be the problem.
Cheers, Keith
Man in a van wrote: 
> Hi Keith
> 
> are you making the Squeezelite output selection whilst in beta mode?
> 
> ronnie
> 
> Oh ! and welcome :p



Keithfuller's Profile: http://forums.slimdevices.com/member.php?userid=69670
View this thread: http://forums.slimdevices.com/showthread.php?t=110642

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 5.0.0

2019-12-27 Thread Man in a van


Hi Keith

are you making the Squeezelite output selection whilst in beta mode?

ronnie

Oh ! and welcome :p



Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627
View this thread: http://forums.slimdevices.com/showthread.php?t=110642

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 5.0.0

2019-12-27 Thread Keithfuller

Hello,
Has anyone managed to make a Phat DAC work with picoreplayer?
I’ve tried several configurations e.g Generic/simple TI5102 DAC without
success

aplay -l produces 
 List of PLAYBACK Hardware Devices 
card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC
HiFi pcm5102a-hifi-0 []
Subdevices: 0/1
Subdevice #0: subdevice #0
tc@piCorePlayer:~$ 
And aplay -L
tc@piCorePlayer:~$ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
sysdefault:CARD=sndrpihifiberry
snd_rpi_hifiberry_dac, 
Default Audio Device
tc@piCorePlayer:~$ 

In the PCP Sound diagnostic log I get
** Scanning for playback devices ***

Card 0, ID `sndrpihifiberry', name `snd_rpi_hifiberry_dac'
Device 0, ID `HifiBerry DAC HiFi pcm5102a-hifi-0', name `', 1
subdevices (0 available)
I assume that ‘0 available’ is a big clue but I’ve no idea how to
resolve it.

Whilst the device is recognised I’ve yet to hear even a squeak.

Needless to say that Analog Output works OK.

Any help would be much appreciated

Keith



Keithfuller's Profile: http://forums.slimdevices.com/member.php?userid=69670
View this thread: http://forums.slimdevices.com/showthread.php?t=110642

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Need help installing on Debian 10

2019-12-27 Thread Man in a van


Well,  I made a clean install of the distro and built perl as user.

/opt was empty and 

/opt/perl-5.26.3/bin/perl -V|grep archname 

gave


Code:

ronnie@shuttle:~$ /opt/perl-5.26.3/bin/perl -V|grep archname
  -bash: /opt/perl-5.26.3/bin/perl: No such file or directory



I cd into perl-5.26.3


Code:

ronnie@shuttle:~$ ls
  Desktop  Documents  Downloads  Music  perl-5.26.3  perl-5.26.3.tar.gz  
Pictures  Public  Templates  Videos
  ronnie@shuttle:~$ cd perl-5.26.3
  ronnie@shuttle:~/perl-5.26.3$ /opt/perl-5.26.3/bin/perl -V|grep archname
  -bash: /opt/perl-5.26.3/bin/perl: No such file or directory
  



decide to build as root, removed the previously built, download and
untarred files from the home directory, did a sudo su and away we go.


The files built as root and are in /opt


Code:

ronnie@shuttle:~$ cd /opt
  ronnie@shuttle:/opt$ ls
  perl-5.26.3-LMS
  ronnie@shuttle:/opt$ cd perl-5.26.3-LMS
  ronnie@shuttle:/opt/perl-5.26.3-LMS$ ls
  bin  lib  man





Code:

ronnie@shuttle:~$  /opt/perl-5.26.3-LMS/bin/perl -V|grep archname
  archname=i386-linux-thread-multi-64int
  config_args='-des -Dprefix=/opt/perl-5.26.3-LMS -Dusethreads -Duse64bitint 
-Darchname=i386-linux'
  ronnie@shuttle:~$




I must have copied and pasted the different ./Config instruction !
:o:o:(:rolleyes:

I have not yet installed LMS

ronnie.

and here is the output for /opt/perl-5.26.3-LMS/bin/perl -V



Code:

login as: ronnie
  ronnie@192.168.1.28's password:
  Linux shuttle 4.19.0-6-686 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) i686
  
  The programs included with the Debian GNU/Linux system are free software;
  the exact distribution terms for each program are described in the
  individual files in /usr/share/doc/*/copyright.
  
  Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  permitted by applicable law.
  Last login: Fri Dec 27 13:31:12 2019 from 192.168.1.11
  ronnie@shuttle:~$ /opt/perl-5.26.3-LMS/bin/perl -V
  Summary of my perl5 (revision 5 version 26 subversion 3) configuration:
  
  Platform:
  osname=linux
  osvers=4.19.0-6-686
  archname=i386-linux-thread-multi-64int
  uname='linux shuttle 4.19.0-6-686 #1 smp debian 4.19.67-2+deb10u2 
(2019-11-11) i686 gnulinux '
  config_args='-des -Dprefix=/opt/perl-5.26.3-LMS -Dusethreads -Duse64bitint 
-Darchname=i386-linux'
  hint=recommended
  useposix=true
  d_sigaction=define
  useithreads=define
  usemultiplicity=define
  use64bitint=define
  use64bitall=undef
  uselongdouble=undef
  usemymalloc=n
  default_inc_excludes_dot=define
  bincompat5005=undef
  Compiler:
  cc='cc'
  ccflags ='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe 
-fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64'
  optimize='-O2'
  cppflags='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe 
-fstack-protector-strong -I/usr/local/include'
  ccversion=''
  gccversion='8.3.0'
  gccosandvers=''
  intsize=4
  longsize=4
  ptrsize=4
  doublesize=8
  byteorder=12345678
  doublekind=3
  d_longlong=define
  longlongsize=8
  d_longdbl=define
  longdblsize=12
  longdblkind=3
  ivtype='long long'
  ivsize=8
  nvtype='double'
  nvsize=8
  Off_t='off_t'
  lseeksize=8
  alignbytes=4
  prototype=define
  Linker and Libraries:
  ld='cc'
  ldflags =' -fstack-protector-strong -L/usr/local/lib'
  libpth=/usr/local/lib /usr/lib/gcc/i686-linux-gnu/8/include-fixed 
/usr/include/i386-linux-gnu /usr/lib /lib/i386-linux-gnu /lib/../lib 
/usr/lib/i386-linux-gnu /usr/lib/../lib /lib /lib64 /usr/lib64
  libs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
  perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
  libc=libc-2.28.so
  so=so
  useshrplib=false
  libperl=libperl.a
  gnulibc_version='2.28'
  Dynamic Linking:
  dlsrc=dl_dlopen.xs
  dlext=so
  d_dlsymun=undef
  ccdlflags='-Wl,-E'
  cccdlflags='-fPIC'
  lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector-strong'
  
  
  Characteristics of this binary (from libperl):
  Compile-time options:
  HAS_TIMES
  MULTIPLICITY
  PERLIO_LAYERS
  PERL_COPY_ON_WRITE
  PERL_DONT_CREATE_GVSV
  PERL_IMPLICIT_CONTEXT
  PERL_MALLOC_WRAP
  PERL_OP_PARENT
  PERL_PRESERVE_IVUV
  USE_64_BIT_INT
  USE_ITHREADS
  USE_LARGE_FILES
  USE_LOCALE
  USE_LOCALE_COLLATE
  USE_LOCALE_CTYPE
  USE_LOCALE_NUMERIC
  USE_LOCALE_TIME
  USE_PERLIO
  USE_PERL_ATOF
  USE_REENTRANT_API
  Built under linux
  Compiled at Dec 27 2019 13:42:40
  @INC:
  /opt/perl-5.26.3-LMS/lib/site_perl/5.26.3/i386-linux-thread-multi-64int
  /opt/perl-5.26.3-LMS/lib/site_perl/5.26.3
  /opt/perl-5.26.3-LMS/lib/5.26.3/i386-linux-thread-multi-64int
  /opt/perl-5.26.3-LMS/lib/5.26.3
  ronnie@shuttle:~$
  
  




Man in a van's Profile: http://forums.slimdevices.

Re: [SlimDevices: Unix] Need help installing on Debian 10

2019-12-27 Thread Roland0


Man in a van wrote: 
> Yes, that is correct, I built it in the home directory (it built as as
> localperl)  and then moved and renamed it to /opt.
> I'll do as you advise, but should I build in /home or /opt ? 
> 
Generally, it doesn't matter where you build it (I tend to use /tmp,
since it's a 'zram drive' (https://en.wikipedia.org/wiki/Zram) on my
systems), you just have to configure the package (perl in this case) to
be installed in the right location (the prefix option).
This will also make sure the package will find it's own files when it's
run (that's why you get the "Can't locate Config.pm" error)

Man in a van wrote: 
> 
> or will your command make the build complete into /opt ?
> 
the command 
Code:

make install-strip

will install it (and build it as well, if that hasn't been done)



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Playlist
Editor / Generator | Music Classification | Similar Music | Announce |
EventTrigger | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=111348

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] LMS on Debian server: file permissions

2019-12-27 Thread Roland0


Rnee wrote: 
> Hi Roland, I'm aware that the  doesn't have anything
> to do with Linux, I wrote this because syncing the musicfolder also
> doesn't go very well.
> 
Not sure what you mean by "syncing"

> 
> Just for ease of use, I have created the same user on Linux.
> 
imo, this just leads to confusion. ymmv.


> 
> So is it 'squeeze+', and what is 'squeezeboxserver'?
> Does that '+' just indicate that there is more text?
> 
Yes (LMS runs as user squeezeboxserver)

> 
> This goes above my head, have to look into it.
> 
Well, it's two commands, both of which I've supplied - you'll just have
to replace <0_Playlists owning group> with the group owning 0_Playlists
(as you didn't supply that information).

> 
> Simplest but not 'the right' approach?
> 
You could have used the squeezeboxserver user as local samba user for
the share, some may consider this simpler



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Playlist
Editor / Generator | Music Classification | Similar Music | Announce |
EventTrigger | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=111390

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] LMS on Debian server: file permissions

2019-12-27 Thread Rnee


Hi Roland, I'm aware that the  doesn't have anything
to do with Linux, I wrote this because syncing the musicfolder also
doesn't go very well.
Just for ease of use, I have created the same user on Linux.

Roland0 wrote: 
> I certainly hope it isn't - check with ps -ef|grep squee
I thought so since I did install under root, this is the output:

Code:

root@v-srv:~# ps -ef|grep squee
  squeeze+83 1  0 Dec24 ?00:00:00 /bin/bash 
/usr/sbin/squeezeboxserver_safe /usr/sbin/squeezeboxserver --prefsdir 
/var/lib/squeezeboxserver/prefs --logdir /var/log/squeezeboxserver/ --cachedir 
/var/lib/squeezeboxserver/cache --charset=utf8
  squeeze+9683  0 Dec24 ?00:05:37 /usr/bin/perl 
/usr/sbin/squeezeboxserver /usr/sbin/squeezeboxserver 
/usr/sbin/squeezeboxserver --prefsdir /var/lib/squeezeboxserver/prefs --logdir 
/var/log/squeezeboxserver/ --cachedir /var/lib/squeezeboxserver/cache 
--charset=utf8
  root  2590  2575  0 11:04 pts/200:00:00 grep squee
  root@v-srv:~# less /etc/passwd
  root@v-srv:~# less /etc/passwd | grep squ
  squeezeboxserver:x:107:65534:Logitech Media 
Server,,,:/usr/share/squeezeboxserver:/usr/sbin/nologin
  


So is it 'squeeze+', and what is 'squeezeboxserver'?
Does that '+' just indicate that there is more text?
If I use 'top', I also see that 'squeeze+'...

Roland0 wrote: 
> Anyway, the simplest approach is to make 0_Playlists group writeable and
> and set  the SGID bit on it (chmod 2775 0_Playlists), then add the user
> LMS is running as (ususally squeezeboxserver) to the group owning
> 0_Playlists (usermod -aG < 0_Playlists owning group> squeezeboxserver)
This goes above my head, have to look into it.
Simplest but not 'the right' approach?



*Happy holidays*

pCP v5.0.0 on all players
LMS 7.9.2 on Debian Buster server in a Linux Container
RPi 3B+ with Hifiberry AMP2 and official 7" touchscreen (Squeezelite +
Jivelite), +27k titles on SMB share
RPi B as dedicated player, connected over wifi with USB dongle
RPi 2B as dedicated player, connected over powerline
RPi Zero W as dedicated player
Squeezer on Android to control

Rnee's Profile: http://forums.slimdevices.com/member.php?userid=66970
View this thread: http://forums.slimdevices.com/showthread.php?t=111390

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix