Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2021-07-06 Thread epoch1970

Looks to be specific to an arch or docker version?


Code:

root@paris:/tmp/test# arch
  x86_64
  
  root@paris:/tmp/test# docker --version
  Docker version 20.10.6, build 370c289
  
  root@paris:/tmp/test# cat Dockerfile 
  #Base image
  FROM lmscommunity/logitechmediaserver:dev
  
  # Install packages
  RUN apt-get update && apt-get upgrade -y && \
  apt-get install --no-install-recommends -y espeak && \
  apt-get clean && \
  rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  
  root@paris:/tmp/test# docker build -t test --network host .
  Sending build context to Docker daemon  2.048kB
  Step 1/2 : FROM lmscommunity/logitechmediaserver:dev
  ---> d2309d219fe9
  Step 2/2 : RUN apt-get update && apt-get upgrade -y && apt-get 
install --no-install-recommends -y espeak && apt-get clean && 
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  ---> Running in aad8c980e43b
  Get:1 http://deb.debian.org/debian bullseye InRelease [150 kB]
  ...
  Setting up espeak (1.48.15+dfsg-2) ...
  Processing triggers for libc-bin (2.31-12) ...
  Removing intermediate container aad8c980e43b
  ---> fabe6203633c
  Successfully built fabe6203633c
  Successfully tagged test:latest
  




2 SB 3 • 1 PCP 7 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 8.1 (docker) with plugins: CD Player, WaveInput by bpa •
Material Skin by Craig Drummond • IRBlaster by Gwendesign (Felix) •
Smart Mix, Music Walk With Me, What Was That Tune? by Michael Herger •
PowerSave by Jason Holtzapple • Song Info, Song Lyrics by Erland
Isaksson • BBC Sounds by Stuart McLean • AirPlay Bridge by philippe_44 •
Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2021-07-04 Thread epoch1970

Why not create a Dockerfile that installs espeak on top of the official
image?



2 SB 3 • 1 PCP 7 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 8.1 (docker) with plugins: CD Player, WaveInput by bpa •
Material Skin by Craig Drummond • IRBlaster by Gwendesign (Felix) •
Smart Mix, Music Walk With Me, What Was That Tune? by Michael Herger •
PowerSave by Jason Holtzapple • Song Info, Song Lyrics by Erland
Isaksson • BBC Sounds by Stuart McLean • AirPlay Bridge by philippe_44 •
Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] PiCorePlayer and wifi Access Point in Bridge mode

2021-06-21 Thread epoch1970

Wirrunna wrote: 
> Well, I can't get AP to work.
> My understanding of Bridge Mode is that it will take the network range
> via the ethernet cable, so shouldn't the AP IP Address be greyed out if
> Bridge Mode is Yes ?
You're correct.
There is a glitch in the matrix, you should just disregard the "AP IP
Address" field. The field is mandatory so set it to a random address on
an unused network or leave it to its default value if possible.

PCP7 works indeed in bridged AP mode. Don't hesitate to reboot once or
twice after having configured it via the GUI. There is no need to dive
in the scripts or config files.



2 SB 3 • 1 PCP 7 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 8.1 (docker) with plugins: CD Player, WaveInput by bpa •
Material Skin by Craig Drummond • IRBlaster by Gwendesign (Felix) •
Smart Mix, Music Walk With Me, What Was That Tune? by Michael Herger •
PowerSave by Jason Holtzapple • Song Info, Song Lyrics by Erland
Isaksson • BBC Sounds by Stuart McLean • AirPlay Bridge by philippe_44 •
Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=114369

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2021-05-19 Thread epoch1970

Videopac wrote: 
> I tried to install Docker and LMS in docker.
> However: it just doesn't work: the container seems to be running but I
> can't access IP-adress:9000.
> 
> Edit: I stopped and started Docker as well.

First I'd make sure the hello-world Docker container works, as per their
install documentation.

Docker takes over the firewall configuration on the host. Check the host
hasn't started blocking incoming communication. See the Docker manual
for workarounds if that is the issue.

Specifically to the LMS container:
- Startup is slow because the container starts by checking/changing
files ownership in the container and in the attached volumes. I've had
to wait 5 minutes before the server starts. YMMV.
- Which type of network did you specify? For host or macvlan you do not
need publish ports, for other modes incl. default bridge mode, you have
to.



2 SB 3 • 1 PCP 7 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 8.1 (docker) with plugins: CD Player, WaveInput by bpa •
Material Skin by Craig Drummond • IRBlaster by Gwendesign (Felix) •
Smart Mix, Music Walk With Me, What Was That Tune? by Michael Herger •
PowerSave by Jason Holtzapple • Song Info, Song Lyrics by Erland
Isaksson • BBC Sounds by Stuart McLean • AirPlay Bridge by philippe_44 •
Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] PiCorePlayer and wifi Access Point in Bridge mode

2021-04-25 Thread epoch1970

Well thank you for the update, indeed it works for me now. That's
great.

There is at least one advantage to bridging in the script, the AP could
be run by wpa-supplicant and not hostapd. Wpa-supplicant doesn't bridge
the interface for you, AFAIK.

Code:

network={
  mode=2
  ssid="TestAccessPoint"
  key_mgmt=WPA-PSK
  proto=RSN
  group=CCMP TKIP
  psk="password"
  frequency=2437
  }



FYI, I had to reboot twice during the process:
- After download/install: unable to configure a channel until rebooted.
Wireless firmware not loaded, I guess.
- After first config/start: the mDNS IP advertisement was, shall I say,
not right. The machine advertised 10.10.10.1 (the AP's address in case
it is not bridged). Looks benign but if you're like me and use
"http://hostname.local; to reach the GUI, the GUI freezes at some point.
A reboot fixes the advertisement to the correct address.

I think I'll get rid of my hardware AP now. Thanks again.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=114369

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


Re: [SlimDevices: Unix] PiCorePlayer and wifi Access Point in Bridge mode

2021-04-25 Thread epoch1970

paul- wrote: 
> Brctl is creating the bridge.  Hostapd does care or need to know it’s
> in a bridge, the kernel handles it.
> 
> The cgi doesn’t do the work, it’s done in shell scripts.
> > 
Code:

  >   > 
  > brctl addbr br0
  > brctl addif br0 eth0 wlan0
  > 

> > 
> 
> So for some reason your system is failing during bridge creation.   
> What rpi board are you using?  What WiFi chip are you using?

Brctl creates the bridge. This part is correct. That work on my machine,
too.
Hostapd does care or need to know it’s in a bridge , the kernel handles
it. This is wrong, twice.
- The kernel has about nothing to do with all this. 
- Bridging  a wireless interface in client mode is not possible as per
WiFi specs. The default mode of a WiFi interface is client. Hostapd
turns the interface to AP mode, and after that can take care of bridging
it. It is the proper way of doing things.
- The cgi doesn’t do the work, it’s done in shell scripts. This is
irrelevant, and hopefully untrue. My eyes tell me the cgi creates the
hostapd config file, and that’s where the beef is. If some code, in
pcp-apmode I assume, did what you pretend, that would be unfortunate
since the code would only work in case hostapd has finished turning the
interface to AP mode; that code would be racy and brittle. But
fortunately, that’s not how pcp-apmode is written. It eschews bridging
wlan0. And that job has to be done by hostapd.
- So for some reason your system is failing during bridge creation. It
is not. The bridge is created and eth0 is in it. Only wlan0 is not in
it. Hostapd runs but no IP is delivered to clients. For the third time,
the solution is to handle hostapd option bridge= in the cgi.
- What rpi board are you using?  What WiFi chip are you using? Pi 3B
with built in wireless interface. Works fine once the interface is added
to the bridge...



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=114369

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


Re: [SlimDevices: Unix] PiCorePlayer and wifi Access Point in Bridge mode

2021-04-25 Thread epoch1970

paul- wrote: 
> I just tested, and it's working as designed (obviously with the updated
> kernel modules)  It was intended to bridge eth0 to wlan0, where the eth0
> is the upstream connection to your main network.  I'm browsing the
> internet from my cell phone connected to the wifi AP created by pCP, and
> my phone has a DHCP address assigned by my primary network DHCP server.

I updated (minor, patch) and rebooted. I’m running 7.0.1, regular
kernel flavor.
It doesn’t work for me, the access point does not deliver an IP
address. Which I can understand if the same code as I’ve seen yesterday
is running the show.
To make the running AP actually work, I have to:
- ssh in the machine (bridge with eth0 in it are ok)
- sudo vi /usr/local/etc/pcp/hostapd.conf, add line "bridge=br0", save
- Stop and start the AP from the GUI. 

It doesn’t work because brctl show indicates the wireless interface is
not bridged. This is because the option is missing from hostapd.conf as
generated by the cgi script.
And it starts working as soon as the bridge option is added to hostapd,
and the process restarted so that it re-reads the configuration.

I stand by my guns.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=114369

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


Re: [SlimDevices: Unix] PiCorePlayer and wifi Access Point in Bridge mode

2021-04-24 Thread epoch1970

Crap. vi says 'wifi_apmode.cgi' is read only and I don't know how to set
/tmp/tcloop/pcp-7.0.0-www in RW mode. A remount doesn't do it.

Anyways.
/usr/local/etc/pcp/hostapd.conf
Needs to be modified with 
Code:


  #bridge=


(for sed to succeed in the cgi)

wifi_apmode.cgi
needs to be modified with an addition starting near line 86 in
set_hostapd_conf(), something like that
Code:


  case $AP_BRIDGE in
  0) # Comment any bridge= stanza
  sudo sed -i "s/\(^bridge=\).*/#\1/" $HOSTAPDCONF
  echo '[ INFO ] AP will not be bridged to ethernet'
  ;;
  1) # Enable bridging
  sudo sed -i "s/^#\(bridge=\).*/\1br0/" $HOSTAPDCONF
  echo '[ INFO ] AP will be bridged to ethernet'
  ;;   
  esac

 
Untested, as you will understand.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=114369

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


Re: [SlimDevices: Unix] PiCorePlayer and wifi Access Point in Bridge mode

2021-04-24 Thread epoch1970

paul- wrote: 
> net-bridge kernel module extensions have been updated with missing
> dependencies.
Thanks for that!
Should be working (I'm not in front of the machine) but looks like it
went away again from my network when I applied settings.

I am puzzled by the fact the bridge uses the static IP address field. I
would expect the bridge to try and acquire an address via DHCP, since
Ethernet is connected to the LAN.

Or could it be that this bridge mode is intended to create an Ethernet
segment on an isolated network? Like to connect a non-wireless SB to the
Pi?



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=114369

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


Re: [SlimDevices: Unix] PiCorePlayer and wifi Access Point in Bridge mode

2021-04-24 Thread epoch1970

Thats a packaging issue I think. When the kernel was compiled a
bunch of modules were compiled, including those we miss.
The question would be in which .tcz extension file modules stp.ko and
llc.ko have landed, and I dont know how to answer that.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=114369

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


Re: [SlimDevices: Unix] PiCorePlayer and wifi Access Point in Bridge mode

2021-04-22 Thread epoch1970

Some more info after reinstalling a clean copy of pCP 7 on the machine.
Still no HDMI output so I'm unwilling to commit settings again.
>From the web GUI I installed AP mode.
Then I tried the commands the OP posted and I am in the same boat.

Code:

tc@carmel:~$ brctl addbr br0
  add bridge failed: Package not installed
  tc@carmel:~$ sudo modprobe bridge
  modprobe: ERROR: could not insert 'bridge': Unknown symbol in module, or 
unknown parameter (see dmesg)
  tc@carmel:~$ dmesg | tail -10 
  [ 4559.489816] bridge: Unknown symbol stp_proto_unregister (err -2)
  [ 4607.253591] bridge: Unknown symbol llc_mac_hdr_init (err -2)
  [ 4607.253747] bridge: Unknown symbol stp_proto_register (err -2)
  [ 4607.254296] bridge: Unknown symbol stp_proto_unregister (err -2)
  [ 4607.306084] bridge: Unknown symbol llc_mac_hdr_init (err -2)
  [ 4607.306287] bridge: Unknown symbol stp_proto_register (err -2)
  [ 4607.306944] bridge: Unknown symbol stp_proto_unregister (err -2)
  [ 4628.110633] bridge: Unknown symbol llc_mac_hdr_init (err -2)
  [ 4628.110774] bridge: Unknown symbol stp_proto_register (err -2)
  [ 4628.111217] bridge: Unknown symbol stp_proto_unregister (err -2)
  
tc@carmel:/tmp/tcloop/net-bridging-5.4.83-pcpCore-v7/usr/local/lib/modules/5.4.83-pcpCore-v7/kernel/net/bridge$
 modinfo ./bridge.ko 
  filename:   
/tmp/tcloop/net-bridging-5.4.83-pcpCore-v7/usr/local/lib/modules/5.4.83-pcpCore-v7/kernel/net/bridge/./bridge.ko
  alias:  rtnl-link-bridge
  version:2.3
  license:GPL
  srcversion: 7C04551615E1E32D1EE5353
  depends:stp,ipv6,llc
  intree: Y
  name:   bridge
  vermagic:   5.4.83-pcpCore-v7 SMP mod_unload modversions ARMv7 p2v8 
  


Looking at /tmp/tcloop/pcp-apmode/usr/local/bin/pcp-apmode, it is clear
that set_bridge_on() can't work unless brctl addbr br0 succeeds.

Unfortunately looking at the list of available extensions, I am not sure
where to load the stp and llc modules the bridge module expects from

Code:

tc@carmel:/proc$ sudo modprobe configs
  tc@carmel:/proc$ zcat /proc/config.gz | grep -i llc
  CONFIG_LLC=m
  # CONFIG_LLC2 is not set
  tc@carmel:/proc$ zcat /proc/config.gz | grep -i stp
  CONFIG_BRIDGE_EBT_STP=m
  CONFIG_STP=m
  CONFIG_GPIOLIB_FASTPATH_LIMIT=512
  # CONFIG_MFD_STPMIC1 is not set
  



I also found this previous post on the same problem:
https://forums.slimdevices.com/showthread.php?113625-piCorePlayer-WiFi-Ethernet-network-bridge-(Difficulty-with-module-dependencies)

HTH



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=114369

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


Re: [SlimDevices: Unix] PiCorePlayer and wifi Access Point in Bridge mode

2021-04-22 Thread epoch1970

Well, well.
I wasn't aware bridged AP mode was a thing in piCore. I have one player
running pCP v7 that I installed recently. So I went about and clicked my
way through setting up AP mode (downloads went well apparently), bridged
mode (doesn't seem to get concerned with the IP address field just above
it).

And then I pressed the start button (or something like that, I don't
have the GUI in front of me anymore, now ;)
I thought that would start an AP bridged with eth0 and clients would be
part of the main LAN.
Last thing I saw was a trace mentioning IP address 10.10.10.1, which is
useless on my network, and possibly in this scenario, too.

Alas, the headless machine has now sailed away. It's not in a
10.10.10.0/24 network, either on wifi or ethernet. It doesn't have an
mDNS published address. Perhaps it has a zeroconf address but I didn't
scan long enough to find it.
In other words, it feels a little bit like a brick.

I will get myself out of trouble, no worries.
But either there is somehow room for improvement for the unsuspecting
user merrily clicking through the GUI, or there is a bug in that feature
in v7.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=114369

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


Re: [SlimDevices: Unix] PiCorePlayer and wifi Access Point in Bridge mode

2021-04-18 Thread epoch1970

brctl is certainly not a requirement otherwise it would be part of the
kernel.
Perhaps you can try using "ip":
https://baturin.org/docs/iproute2/#ip-link-add-bridge

This being said I guess you'll have to bridge ethernet early enough so
that it'll get IP configured at boot, and not eth0. Hope that's ok.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=114369

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2021-04-02 Thread epoch1970

And I "installed" my first copy of
lmscommunity/logitechmediaserver:stable on raspios. I really like the
simplicity of the run/compose command. And the image seems quite
lightweight (half the size the home-made container I've used
previously). 

I've decided to use a named volume for the /config directory, e.g.

Code:


  docker volume create myconf
  docker run -it --name lms --network host -v myconf:/config -v 
"":"/music":ro ... lmscommunity/logitechmediaserver:stable
  


That basically moves the config directory to the belly of the beast
(/var/lib/docker/volumes/myconf/_data), where I won't delete it by
accident.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] piCorePlayer Documentation

2021-02-21 Thread epoch1970

Just in passing, I’ve found page
https://docs.picoreplayer.org/how-to/setup_wifi_on_pcp_without_ethernet/
quite confusing.


- The “maintained by PCP” and “maintained by the user” methods are
  contrasted in title, but differ only in the use of special characters
  in strings...
  That’s not 2 methods, that is one, with the limitation that files
  with special characters can’t be updated via the GUI.
  
- Also I would rather spell “maintained by pCP” as “can be updated
  via the web GUI”.
  
- I assume the option to run “setup” with a console and keyboard
  works most of the time. Otherwise don’t document it. 
  And in this case, I would make that the first method, on top of the
  page, as it is clearly easier than writing a config file.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=112996

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-11-18 Thread epoch1970

trouty00 wrote: 
> Hi Michael - Am I missing something here??

I think you should try with --network host. And you can do without the
"-p" port publications since docker doesn't handle the network in this
case.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-11-17 Thread epoch1970

mherger wrote: 
> Ok, it's done: an "official" Docker image now is available on Docker
> hub:
> 
> https://hub.docker.com/r/lmscommunity/logitechmediaserver
> 
My belated congrats on this! 
My next install (don’t hold you breath) will be a container, or via pCP.
Debs no more ;)



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-06-02 Thread epoch1970

If you want broadcasts AFAIK there are 3 solutions w/ Docker:

- "network=host". Exports all interfaces in the container, including
  some you might prefer not to be.
- "network=none". Just lo in the container. Then with something like
  'pipework' (https://github.com/jpetazzo/pipework/blob/master/pipework)
  (slightly obsolescent, but it's just a script, look at what it does;
  or look at 'this'
  
(https://platform9.com/blog/container-namespaces-deep-dive-container-networking/))
  pick an interface and export it to the network namespace of the
  -running- container. Has to be done on the host. The container has
  somehow to wait until an interface shows up.
- Your own network. A Docker named bridge could be a good start. From
  the host you can add interfaces to the bridge. Docker provides its own
  name resolution and IP address distribution so to coexist w/ regular
  DHCP and DNS some extra launch parameters for the container (and
  bridge definition) would be required.  
  
AFAIK in other standard modes Docker uses either NAT/filtering heavily
and with network plugins it does stupid tricks w/ IP or MAC addresses
that break LMS discovery. (Problems become apparent with either 2
containers or 2 hosts running one container.) Last time I looked at it
closely was when CE v. 18 was released.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


[SlimDevices: Unix] Bridging over wireless / enabling wireless on an ethernet only device

2020-06-02 Thread epoch1970

FYI, I've been playing with ethernet bridging behind a wifi client with
vxlan. With a relatively recent kernel you can make that work using
vxlan and nothing else. 
The repo here has files for raspbian, but nothing is raspbian/pi
specific, really: https://github.com/epoch1970/a-bridge-too-far

I tested audio sync between a few SBs segregrated behind wireless
clients, including one SB3, and it works fine as long as wifi signal
strength is correct.
Also the LMS server needs its own network interface MTU set to 1450 or
an SB3 will not work. '(Post)'
(https://forums.slimdevices.com/showthread.php?112291-Interface-MTU-lt-1500-and-SB3)

I don't think using wifi as a backhaul link is a good idea, but if
that's the only practical possibility or if you want to put over wifi a
player that is ethernet only, this is a practical solution that won't
break the bank.

HTH



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=112333

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-05-17 Thread epoch1970

Trying to put the idea of in-container updates to rest.

With containers soon come clusters, distributed computing.
If one machine in a cluster runs container foo version 8, goes away and
gets replaced by a machine that starts container foo version 5, the
cluster will fail soon. 
Shared images have to be the starting point. Container reuse is an anti
pattern. 

A recipe for building (publishing?) an image is what’s needed. With the
update plugin disabled in it.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-04-28 Thread epoch1970

justi wrote: 
> The LMS version.  By installing files into the (mutable layer) of the
> container.

Never rm the instance, then. I wouldn’t live with that personally, but
to each their own.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-04-25 Thread epoch1970

justi wrote: 
> And as I tried to explain, the container -can- be deleted and easily
> recreated without losing anything (downloaded plugins, music database,
> cached album art, etc) if you keep cache and preferences in some
> directory on your host machine, NAS or whatever.
I'm dense. What get updated by the LMS updater then?



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-04-25 Thread epoch1970

Well if the solution to running LMS in a container is to install it
outside the image, or never delete the container instance, I’m not sure
that’ll work too well...



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-04-25 Thread epoch1970

justi wrote: 
> But the automatic LMS deb package updates -inside- the container work
> smoothly.  I don't really see the need to regularly update the whole
> image, it defeats one of the advantages of containerisation.  
> 
How do you save changes made to the container then? If you commit it,
doesn't the image grow every time? It's not thin in the first place.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-03-30 Thread epoch1970

Did you try deleting the service/container and then starting?
The non-persistent filesystem layer in the container remains available
until a container/service is entirely removed. When simply
stopped/started, that layer is kept.

run  -> container created + started
stop  -> interrupts the workload, keeps the container
start  -> executes an existing container
[when stopped] rm  -> deletes the container; "start" no
longer a possibility, only "run", creating a clean container.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-03-30 Thread epoch1970

(I always leave the security field entirely blank)

Aww Compose. I never touch that thing, I think it is untractable and
buggy as hell. It will die sooner or later, if not of the aforementioned
causes, then at least  because Google has invented its own cluster
specification scheme, called Helm. 

I think you have a much clearer view of what's going on when you use
"docker" commands directly. At least during development.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-03-30 Thread epoch1970

I assume the nginx server was running in the default Docker bridge, i.e.
you just launched the container and tried to hit it? 

If so, I would expect an LMS container to assume an IP in the same
network 192.168.176.0/24 if you launched it now. 
I don't know the "security" part of LMS works at all. I would clear that
for now, and try to hit the LMS server same as you did nginx. Works?

If that works, and you previously had created an ad-hoc network, I would
suspect something was wrong in its specification. Use docker network rm,
docker network prune, docker network ls, and once the path is clear,
re-create your ad-hoc network.
Don't try fixing a Docker network, it's not too good at that, IMHO.
Better to nuke and re-create.

If that works now but you did not use custom networking previously, or
if nothing works still, I'm not sure what's happening.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-03-30 Thread epoch1970

Well, if that 192.168.160.2 is the container's IP address,
and LMS thinks it is at 192.168.128.1,
and you've allowedHosts: 192.168.202.*,
color me confused.

What about pulling nginx, and trying a simple test over 80/tcp?



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-03-30 Thread epoch1970

What happens depends on the networking scheme you've chosen.
Run "iptables -t nat -L" on the host to see whats going on

IIRC Docker will SNAT traffic on exposed ports, to the IP address of the
host network device it uses; The LMS server is probably hit by its
gateway, e.g. the IP address of the bridge in the host, something like
192.168.128.254.

This LMS setting doesn't make much sense, I think, in container context.
Unless you run in --network=host mode.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-03-27 Thread epoch1970

That file is indeed the one that generates the official perl image. It
starts "FROM debian:buster-slim"

Now we could assume the official LMS image could be built by a process
that would start "FROM perl:5.028-slim-buster" (or so)
Meaning, since official images from Docker Hub are multi-arch, the LMS
build process would magically pull the buster+perl:5.02 image built for
the right arch ...
... and from there something has to happen to make LMS appear within
that buster+perl image, resulting in an "official" LMS image.

When installing the LMS image you would see various parallel "pulls"
happen, (at least) one for buster, one for perl, one for LMS. Each of
these are stored in a different directory/layer, the filesystem of an
image/container is the fusion of these layers. (visit /var/lib/docker,
you'll see what I mean)
This is efficient(*) because if next you'd pull, say, redis:latest, and
that image is built "FROM debian:buster-slim" too, then you wouldn't
pull and store the buster part again, since the same layer is already
present somewhere in /var/lib/docker/

In other words, a user pulling the LMS image built "FROM
perl:5.028-slim-buster" would certainly have to download the LMS
layer(s), possibly have to download the perl layer(s), probably not have
to download the buster layer(s) since the image is often taken as
starting point.


*)There is also a tragic consequence to this: every line in a Dockerfile
-except a few like USER, ENV...- generates a new layer. That's why you
see Dockerfiles where commands make ample use of continuation lines, to
try keeping the number of generated layers in check)



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-03-27 Thread epoch1970

Do you have commands that I can run? (sorry)



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-03-27 Thread epoch1970
 

  
  /usr/bin/make 

  
  




2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-03-27 Thread epoch1970

Do you mean you went through this page https://hub.docker.com/_/perl/
and it mentions using Dockerfiles etc.?

To me, what that page says is that you can easily create your own image,
using perl:whatever as your base, and add and compile your code into it.
Which would be, in my mind, what the LMS nightly build process do.
The end user would only have to pull the resulting image, posted on
docker hub (or not)

I'll break out one of my pis, they have kernel 4.14 (buildroot), docker
(recent) and almost no trace of perl that I know of. 
I'll pull an perl official image, I am pretty sure it'll require no
building at all and offer a reasonable sh environment when I run it.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-03-27 Thread epoch1970

There is an official perl docker image, in many variants. Looks like
perl-slim is about '+100MB'
(https://github.com/Perl/docker-perl/issues/52#issuecomment-412763706)
and debian based.
Perhaps that could be a starting point?

I don't want to expound on how to build a container image, I know just
enough to know that I don't know.

Perhaps this will help. (BuildKit is not used by default yet if you
simply "docker build". Has to be enabled)
https://docs.docker.com/engine/reference/builder/#run#automatic-platform-args-in-the-global-scope
 wrote: 
> Automatic platform ARGs in the global scope
> 
> This feature is only available when using the BuildKit backend.
> 
> Docker predefines a set of ARG variables with information on the
> platform of the node performing the build (build platform) and on the
> platform of the resulting image (target platform). The target platform
> can be specified with the --platform flag on docker build.
> 
> The following ARG variables are set automatically:
> 
> TARGETPLATFORM - platform of the build result. Eg linux/amd64,
> linux/arm/v7, windows/amd64.
> TARGETOS - OS component of TARGETPLATFORM
> TARGETARCH - architecture component of TARGETPLATFORM
> ...



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-03-26 Thread epoch1970

mherger wrote: 
> Could a docker image be smart enough to install an architecture 
> dependent package?
I, for one, do not understand the question.

When running an image, the container can know its arch; but in-container
update isn't mainstream as it breaks the promise of repeatability.
When building an image, the target arch would be known
When pulling an image for the first time, the host's arch is selected by
default; Another arch can be requested, a non-runnable image would
install
When pulling an image to check for updates before running, the same arch
as the local version is requested



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-03-25 Thread epoch1970

On my VM, the log file is owned as so:

Code:

-rw-r--r--  1 squeezeboxserver nogroup 160735 Mar 25 12:28 server.log



I think specifying the user is better done with "docker run --user=..."

Perhaps the image is built by the default root user? Do you use the USER
directive in your Dockerfile? 
https://stackoverflow.com/questions/24549746/switching-users-inside-docker-image-to-a-non-root-user

(In the meantime, you could run as root. Not good, but temporarily...)



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-03-25 Thread epoch1970

Ah yes, I missed the 1st line, sorry. 
Mhh.
https://forums.slimdevices.com/showthread.php?106864-Can-t-connect-to-LMS-after-reboot/page3
Rights ok on directories, log file exists?



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-03-25 Thread epoch1970

I think I've seen this kind of thing but I can't recall anything
clearly.
Would you try running your image w/ something like "docker run -ti --rm
--entrypoint /bin/bash image-name" to get a shell and keyboard, and then
manually run the command? Perhaps you could see what's wrong more easily
as the process.
(I assume you want to override the entrypoint your image has set.
Otherwise "docker run -ti --rm image-name bash" should work.)



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-03-25 Thread epoch1970

Don't run squeezeboxserver_safe, that shell script only spawns the
squeezebox server binary and checks for its health:
- it requires an environment that might not be available (shell env or
init.d, I don't remember)
- trying to restart inside the container is the wrong idea. Docker (or
compose) can be used to specify health checking and remedy procedures.

Run directly "/usr/sbin/squeezeboxserver" like 'justifiably does'
(https://github.com/justifiably/docker-logitechmediaserver/blob/master/startup.sh).



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-03-25 Thread epoch1970

Right.
So the auto-updater could show on the interface a message that a new
version is available, but should not try to DL it.

I guess the start-up script could be rigged to make a check/pull before
start --or not... my own LMS wasn't built yesterday :)

Also, we're talking Docker but systemd has (as usual) its nose into
containers now, so I guess the scripts/containers should be actionnable
via systemd-nspawnd or whatever the name is. No idea what this thing is,
personally.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-03-25 Thread epoch1970

Yes.
(and the container/image would grow too fast anyway, the fs being
layered )



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-03-24 Thread epoch1970

mherger wrote: 
> In order to update you'd have to re-build the container? Or can it 
> update itself?
It could, but that's "holding it wrong".
In principle, an image is used to spawn a container, then you kill it or
clone it, and the next container will be completely identical except for
a few details like hostname, network parameters, etc.
It is possible to commit live modifications made to a container to a new
image, but the expected method would rather be to pull (from Docker Hub)
a new image that is updated before launching the container:

https://docs.docker.com/engine/reference/commandline/pull/ wrote: 
> When using tags, you can docker pull an image again to make sure you
> have the most up-to-date version of that image. For example, docker pull
> ubuntu:14.04 pulls the latest version of the Ubuntu 14.04 image.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] 'Official' docker container for LMS?

2020-03-21 Thread epoch1970
 configuration changes. 
  - Doing it in a container is much preferable for repeatability,
except the container will require exclusive access to the wifi phy
(and firmware blobs I think.) Quick solution, run the AP container
in host mode, not great. 
Better solution, use a host script to export the host's phy to the
namespace of the AP container (once it has started; on its side, the
AP has to wait until its environment magically spans a wifi
interface...) This is feasible, but in my use case I had hosts with
more than one phy, and my linux 4.14 kernel has a tendency to mix
phys and export the wrong interface to the container (!) So,
possible but fiddly to make work reliably, I think.
However achieving that is kind of cool, since you can add an AP on
as many wifi-capable hosts as you want, thus optimizing wifi
coverage. Also, hostapd now implements a multi-AP feature, it
entails using an ethernet backhaul as control channel between APs;
sounds exactly like what the doctor ordered, but I haven't looked
into it. 

  

Regarding- audio files-, I haven't explored the subject at all, but I
think the following options are possible:

- Map a volume container on the host that has some storage device
  connected, export it via NFS (Docker can do that), have the LMS server
  consume the NFS share. Host-side scripting might be necessary, e.g. to
  detect an USB drive. 
- Do the same, but distributed. In this case I think a
  discovery/merge/reexport container would be needed to abstract file
  distribution from the LMS container. In this case, the LMS DB should
  be able to gracefully cope with files that vanish or come up. I don't
  know how LMS copes with that, currently.
  

-Web front-end discovery- can become a problem. In my case I use an
orchestration such that I don't know in advance which host will run LMS
on the dedicated network. Docker will do the NAT dance all right to
allow access from the pyhsical network, but it does not advertise which
services are available on which host. I added a bit of mDNS advertising
on the host once the LMS container is confirmed to have started ok.
"Lately", vulnerabilities have been found in mDNS/DNS-SD, so the
"Bonjour tab" is gone from browsers. iOS never had that implemented. I
have added a bonjour plugin to my browsers, but I don't think that is a
viable solution.

As I mentioned in my previous post, -LMS feels a bit of a monolith-. If
it could be split into different parts, perhaps load, performance, could
be improved. IMHO anything "High Availability" (=stateful replication)
is a wrong, bad idea. But cloning stateless processes, like perhaps a
web front-end, could make sense. To do this sort of things I would not
rely on Docker's swarm/services; Easy to get working, but comes with a
lot of trade-offs. IMHO, swarm mode is another Dockerism that will fade
away.
I would rather look into setting up an independent "ingress" network
with its own load-balancing policy. I understand this is the kind of
stuff Traefik was designed for. Perhaps service advertisement could be
done there.


Apologies for the long, long post, HTH.
I subscribe to the thread, just in case.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111828

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


Re: [SlimDevices: Unix] ANNOUNCE: piCorePlayer 6.0.0

2020-03-19 Thread epoch1970

Just a quick thank you for pCP 6.0 it looks and works great.

FYI, I was browsing the documentation and saw links to an easysqueezebox
site. For me this is broken (error 500).



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=111787

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


[SlimDevices: Unix] Pi3 wifi+virtual ap bridged that really works (for me). Worth trying on pcp?

2018-10-20 Thread epoch1970
stop action is simple, in essence it does:  
Code:

kill $(cat /var/run/hostapd.ap0.pid)
rm -f /tmp/hostapd-ap0.conf
ifdown ap0
ifdown local0


-  The start action is a little bit more involved...  
Code:

cp -f /etc/hostapd/hostapd-ap0.conf /tmp/hostapd-ap0.conf
# If wlan0 is active we need to know
STA_IS_UP=0
[ -s /var/run/network/wpastate.wlan0 ] && STA_IS_UP=1
if [ ${STA_IS_UP} -eq 1 ]; then
echo "wlan0 is in use, reset..."
CHAN=$(cat /var/run/network/wpastate.wlan0 | cut -d' ' -f 2)
echo "set AP channel to ${CHAN}..."
sed -e "s/channel=.*/channel=${CHAN}/" -i /tmp/hostapd-ap0.conf
ifdown wlan0
fi
echo "set AP interfaces up..."
ifup ap0
ifup local0 
echo "start hostapd and bridge helper..."
/usr/sbin/hostapd -B -P /var/run/hostapd.ap0.pid /tmp/hostapd-ap0.conf
/usr/bin/hostapd_cli -B -i ap0 -a /usr/local/bin/bridge_helper.sh
if [ $STA_IS_UP -eq 1 ]; then
echo "reconfigure wlan0..."
ifup wlan0
fi


  ...having bridge_helper.sh as this:  
Code:

#!/bin/sh
[ "$#" -eq 3 ] || exit 1
[ "${2}" == 'AP-STA-CONNECTED' ] && /sbin/ip link set ${1} up
exit 0


  Basically, if wpa_supplicant has engaged with the bcrmfmac driver, it
  is impossible to start the AP. So we need to stop wlan0. Catch-22, the
  wlan0 interface won't be able to reconnect if the virtual AP isn't
  initially operating on the channel the STA needs to use to connect
  with its AP. So we get the channel used by wlan0 before stopping it,
  and fudge the hostapd conf with it. Then restarting wlan0 will
  succeed.
  Curiously, once the AP+STA couple is active, if the STA changes
  channel, the AP will have no problem switching channel. There is no
  need to repeatedly change hostapd.conf and restart hostapd. Only once
  at startup.
  
  By uselessly setting ap0 up each time a new client connects to the AP,
  the bridge_helper script makes bridging actually work. Without it, the
  AP client takes a long time obtaining an IP address over DHCP and
  after that it isn't able to connect beyond the bridge itself, it
  doesn't see any other MACs. This is pure magic to me, but reasserting
  link up works.

That's it. Caveat emptor and good luck :)



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=109621

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


Re: [SlimDevices: Unix] Cannot enter my password

2018-07-03 Thread epoch1970

Try this URL perhaps: http://:9000/classic/
Or try with a different web browser/from a different machine/from a
different user account on the machine?



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=109219

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


Re: [SlimDevices: Unix] manuelly install version 7.9.2?

2018-05-31 Thread epoch1970

You are installing a nightly-built package. Maybe an error did sneak
into the package, due to changes to the code performed During the day.
Try again tomorrow, or better, install the stable 7.9.1 version.

Also, I see you are installing an “i386” package. That is for Linux 32
bits. If your system is 64bits (it is unless your computer is ancient)
you want to install an “amd64” package (yes, even for an Intel machine).

If you are undecided download and install the (bigger) “all.deb”
package. The installer will choose which version to install.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=109109

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


Re: [SlimDevices: Unix] Can PCP/LMS Do This?

2018-03-28 Thread epoch1970

Hammerhead wrote: 
> I read here that I could theoretically I could use a Zero mounted on a
> Pi3 via the GPIO header. 
Anything is possible, I guess.
But the fact it’s never been done before doesn’t necessarily mean it’s a
good idea...



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108853

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


Re: [SlimDevices: Unix] Can PCP/LMS Do This?

2018-03-28 Thread epoch1970

Hammerhead wrote: 
> So, if we could get the Pi to make the file system available to the
> car's USB port and appear as though it was just mass storage, then this
> would do the trick.
In a way, yes...
Your audio system expects a mass-storage device, the Pi does too. This
means they both act as USB hosts, and you can't connect 2 hosts
together.
You'd want the Pi to present itself as a mass-storage device, while
playing its mp3fs trick over FLAC files that are in reality stored on
the SD card. The only Pi device that will perhaps do that is Pi0 (and
0w?) which are AFAIK the only Pis that support USB OTG (Linux calls that
"usb gadget mode").

I'm clearly not the specialist but I think you need to be a hero to try
doing something like that. Plus large µSD cards are expensive.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108853

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


Re: [SlimDevices: Unix] Netbooting piCorePlayer 3.x

2018-03-28 Thread epoch1970

jmccoy555 wrote: 
> Hello all.
> 
> I'm trying to get this going, following Post 1 I have got the kernel to
> load and end up with a terminal session. PiCorePlayer is not yet
> loading.
> 
> I'm a bit lost at point 3, where do I put the script? 
> 
> I've had a bit of a poke around and have found the default
> /opt/bootlocal.sh, but I think this is read only and lost on a reboot. I
> cant see where this is loaded from or how to replace it with
> epoch1970's? 
> 
> Some pointers would be great
> 
> Thanks.
I don't have a local pCP machine to look at, but I dont remember that
script was read-only. It belongs to root, probably, but you can "sudo
vi" or "sudo chmod a+rw" I suppose.
Once you've added stuff to it, run "pcp bu" as the normal tc user. This
pcp command executes a *b*ack*u*p of some files to mydata.tgz. 
IIRC "pcp bu" is a wrapper around the standard OS backup script
"filetool.sh". There is a file (/opt/.filetool.lst?) configuring what
gets included to mydata.tgz. /opt/bootlocal.sh is among the files that
get saved.
At boot, mydata.tgz is uncompressed and content is restored.

If you forget to "pcp bu" before rebooting, you lose your modifications.
-You have been warned.-
I was warned too, many times, and I still forget to commit my changes
from time to time... :)



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=107233

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


Re: [SlimDevices: Unix] Can PCP/LMS Do This?

2018-03-27 Thread epoch1970

Modern car infotainment systems are part of automotive (linux)
platforms, the whole thing look like 'that'
(https://wiki.automotivelinux.org/_detail/distro/agl_subsystems.png?id=agl-distro).
That's a lot of boxes, and the projected interactions and usage
scenarios are (normally) strictly defined...



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108853

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


Re: [SlimDevices: Unix] Can PCP/LMS Do This?

2018-03-26 Thread epoch1970

LMS manages and controls squeezebox devices, you want your car system to
control audio instead.
I don't think you have any use for LMS.

As Roland0 said, BT isn't so great so the simplest solution is to
convert your flac files to mp3 automatically. Which will require
disconnecting the storage media from you car stereo (and connect it to
the NAS.)

(It might be possible to have a Pi in the car, have it connect via wifi
to the home network when the car is in the driveway, update/convert
files overnight, configure its BT interface to be seen as some audio
source by the car audio system. I fear setting up something like that
would be quite fiddly.)



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108853

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


Re: [SlimDevices: Unix] Does piCorePlayer 3.22 work on the Raspberry Pi 3B+?

2018-03-15 Thread epoch1970

Jeff07971 wrote: 
> I expect we'll see POE/Amp hats in the future, and hopefully passive
> cooling. The latest POE spec allows for 70W at the powered device which
> is enough for roughly 25Wpc to the speakers
> I cant really see a reason for the fan unless these are high power POE
> boards as the addon boards that exist today dont have fans.

Just to clarify, in fact that new product is a "PoE + CPU Fan" HAT. 'It
works without the Fan, but some business users use PoE for high-density
deployments (in racks)'
(https://www.raspberrypi.org/forums/viewtopic.php?p=1285559#p1285559),
so they've thrown 2 independent features into one product. The price is
still a mystery but I'm not sure it will be cheap.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108818

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


Re: [SlimDevices: Unix] Does piCorePlayer 3.22 work on the Raspberry Pi 3B+?

2018-03-14 Thread epoch1970

Well of course netbooting is extremely useful in a player. The SD is the
most fragile part of a Pi, it is easy to steal or misplace. Get rid of
it and you can conceal a player almost anywhere. 
With PoE you can do away with the need for a power socket nearby.
Unfortunately that HAT seems to use a fan, so it is potentially noisy
and fragile.
They also say the new chip also includes improvements to USB booting,
perhaps having an external system entirely on USB will be safer than
before.

If all works as advertised, you could have a pCP server with one big USB
drive (LMS+music+players OSes) and wired pCP clients dotted around the
building, with a single point of install/administration. And not a
single SD to fiddle with.
I think this release is big news.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108818

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


Re: [SlimDevices: Unix] Anyone tried synching over 802.11s wireless mesh networking?

2018-02-13 Thread epoch1970

Oh, and I just noticed: massive VLAN hop-ing via the bat0 interface.
This thing sees and discloses way too many MACs. Some fine-tuning
required, I think ;)



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108670

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


Re: [SlimDevices: Unix] Anyone tried synching over 802.11s wireless mesh networking?

2018-02-13 Thread epoch1970
t;Creating /etc/fstab entry for ${BOOTMNT} over NFS"
  # ME="$0"
  # sudo sh -c "cat << EOF >> /etc/fstab
  ## Added by $ME
  #${SERVER}:${DIR} ${BOOTMNT} nfs ${OPTS} 0 0
  #EOF
  #"
  # ... so instead we mount permanently as pCP won't mount/unmount
  # if mounted already.
  echo "Mounting ${SERVER}:${DIR} to ${BOOTMNT}"
  sudo mount -t nfs -o ${OPTS} ${SERVER}:${DIR} ${BOOTMNT}
  ;;
  nfsmount*)
  # Keep pCP happy with a normal-looking SD mount
  NFSMOUNT="/mnt/nfs"
  TCEMNT="/mnt/mmcblk0p2"
  echo "Creating directory ${TCEMNT}"
  sudo mkdir ${TCEMNT} >/dev/null 2>&1
  echo "Adding bind mount for ${TCEMNT}"
  sudo mount -o bind ${NFSMOUNT} ${TCEMNT} >/dev/null 2>&1
  ;;
  esac
  done


  - /home/tc/batman.sh (slight variations in the end from player to
player. Basically copied from the Reddit post) 

Code:

#!/bin/sh
  # Activate batman-adv
  modprobe batman-adv
  # Disable and configure wlan0
  ip link set wlan0 down
  ifconfig wlan0 mtu 1532
  iwconfig wlan0 mode ad-hoc
  iwconfig wlan0 essid mesh
  #RPi built-in doesn't seem to support a MAC instead of any
  iwconfig wlan0 ap any
  iwconfig wlan0 channel 8
  sleep 1
  ip link set wlan0 up
  sleep 1
  batctl if add wlan0
  sleep 1
  ifconfig bat0 up
  # Using DHCP and bridging, make sure br0 will use the MAC of eth0
  # Otherwise we change of IP address and the previous NFS mount goes 
stale. No good.
  ip link set dev bat0 address fe:12:3c:4e:5f:6a
  sleep 1
  #bridge
  brctl addbr br0
  brctl setfd br0 2
  # Kill the lease on eth0
  killall udhcpc
  ifconfig br0 0.0.0.0 up
  ifconfig eth0 0.0.0.0 up
  ifconfig bat0 0.0.0.0 up
  brctl addif br0 eth0
  brctl addif br0 bat0
  /sbin/udhcpc -b -i br0 -x hostname clt3 -p /var/run/udhcpc.br0.pid


I really don't think bridging is a good idea; I needed it due to NFS
booting. The bridge has to have an address on the LAN, when a
wireless mesh with ipv4ll addresses would be much more suited
(assuming LMS uses an ipv4ll address too). The bridges in mesh nodes
hold all the MACs in the LAN, something tells me that might not be
completely necessary...
  - cmdline.txt (nothing specific to wireless, only NFS-related)

Code:

cmdline.txt 
  host=clt3 nfsmount=172.17.71.1:/export/01234abcd/TCE 
nfsboot=172.17.71.1:/export/01234abcd/BOOT:udp,vers=3,noatime  
tz=CET-1CEST,M3.5.0,M10.5.0/3 dwc_otg.fiq_fsm_mask=0xF dwc_otg.lpm_enable=0 
console=tty1 root=/dev/ram0 elevator=deadline rootwait quiet nortc loglevel=3 
noembed smsc95xx.turbo_mode=N noswap cron consoleblank=0 waitusb=2




3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108670

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


Re: [SlimDevices: Unix] MusicIP on Raspberry Pi

2018-02-07 Thread epoch1970

MusicIP was distributed as an Intel executable, not ARM.

It shouldn't work on a Raspberry Pi, but then I found this:
http://forums.slimdevices.com/showthread.php?106958-Success-MusicIP-and-Spicefly-Sugarcube-running-on-Raspberry-Pi
The author seems to have managed to run MusicIP on an Intel VM on the
Pi... Pretty epic, I'd say.

If you get it to run, I'm sure finding how to make it start at boot
won't be too much of a challenge.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108682

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


[SlimDevices: Unix] Anyone tried synching over 802.11s wireless mesh networking?

2018-02-05 Thread epoch1970

I'm a bit curious about this, but I've never used 802.11s in any
capacity.
It looks like RPI3 and its integrated wifi adapter would support it?



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108670

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


Re: [SlimDevices: Unix] Transporter clicking on/off with picoreplayer

2018-02-04 Thread epoch1970

I suppose the Pi is a DAC.
Is it possible that the Pi activates the DAC output regularly and the
Transporter wakes-up, somehow?

Does the Transporter click when squeezelite is shut down? When
piCorePlayer OS is completely stopped? When the Pi is powered off (power
physically removed)?



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108657

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


[SlimDevices: Unix] Bringing back the SB's ethernet bridging feature on a Pi 3...

2018-02-03 Thread epoch1970

Remember when your SB player could channel LAN access from wifi over to
its ethernet port? 

Recently I needed a Pi3 that would drop in any LAN and start OpenVPN
bridging with a remote server. The server used an anonymous bridge to
prevent any risk of subnet clash. The Pi3 client was running piCore (was
it v. 9.0.3?)

Over at the Raspberry Pi forums there are waves of people wanting to
bridge their LAN through a Pi 3 connected over wifi. Tired of endlessly
repeating "you can't do that", I decided to 'post a setup'
(https://www.raspberrypi.org/forums/viewtopic.php?f=36=204361) that
would make use of an anonymous bridge and OpenVPN to tunnel an L2 bridge
over the wifi link. 
In other words, a virtual 2-port switch: one port plugged to the main
LAN, the other plugged to a remote physical segment, and a wifi client
connection as switching fabric (ouch!)

The setup I posted uses Raspbian on the Pi, but I know for a fact it
works with piCore, hence piCorePlayer. For the server side I believe any
platform capable of bridging and running OpenVPN will do, e.g. your LMS
server machine. While testing for robustness and latency I did put an
SB3 behind the Pi and sync it with other LAN players. That worked nicely
indeed, thanks to LMS and slimproto.
On the Pi the openvpn process uses little CPU, system load averages to
0.7 under heavy use (multiple video streams+music). 
So perhaps this setup could be of use to some here.

And if you're thinking "Now, why would I do that?", let me just say it's
one of those things: if you have to ask, it's not for you. I'm not doing
that either ;)



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108652

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


Re: [SlimDevices: Unix] piCorePlayer as time machine drive?

2017-12-30 Thread epoch1970

To concur TC on the Pi would be extremely slow with Ethernet, more like
4 MB/s rather than 30 MB/s. Wifi is worse of course.
This throughput makes it inadequate for full backups and just acceptable
for deltas. 
Which means you should use HFS+ or another FS natively supported on the
Mac for the USB drive, so that you can directly connect it to the Mac as
a local volume for initial backup or for bare-metal reinstall.

Pi as a TC is possible, but it's not very useful.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108477

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


Re: [SlimDevices: Unix] Radio sometimes not working and USB not connected

2017-12-24 Thread epoch1970

steff wrote: 
> Of course in this way it WORKS, but I need to have a computer up and
> running to open the pCP web page!!!

Then I think you can workaround the network issue with a custom command
that sleeps 30 secs (or so) and restarts LMS. Custom command are
executed last at boot. I don't use LMS on pCP and I am far from my
players so I can't be more precise on the contents on that script.

And for the USB issue, I surmise it does *not* happen if SL has released
the audio device before you switch it to another mode. I would try to
play, power off or stop the player, change mode on you USB device, and
back. If music restart without having to restart SL, then you could:
- Always stop of power off the player before switching mode. The LMS
plugin PowerSaver will power off an idle pCP player after 15 mins if you
prefer. 
- Experiment with option -C which releases the audio device when simply
idle for a while. 

HTH



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108447

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


Re: [SlimDevices: Unix] Radio sometimes not working and USB not connected

2017-12-24 Thread epoch1970

Does restart work instead of rebooting?
- Radio issue: restart LMS
- DAC issue: restart squeezelite

(Something looks wrong with the router/network/cable if DHCP doesn't
work over Ethernet.)



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108447

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


Re: [SlimDevices: Unix] Linux VMs running on Win10+VMwareWorkstationPro

2017-12-19 Thread epoch1970

Yes my bad, it's not WINS, it's in the regular Netbios protocol.
Works via broadcasts over the LAN.
https://support.microsoft.com/en-us/help/119493/netbios-over-tcp-ip-name-resolution-and-wins
https://support.microsoft.com/en-us/help/172218/microsoft-tcp-ip-host-name-resolution-order

Looks like the OP left the building anyway. He's probably right.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108357

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


Re: [SlimDevices: Unix] Linux VMs running on Win10+VMwareWorkstationPro

2017-12-18 Thread epoch1970

DJanGo wrote: 
> To use e.g \\DESKTOP\music - you'll need an active local dns
> Server.
> Most of the homeusers / people who think they need "that" sort of howto
> didnt know nothing about setting up a DNS Server.
WINS name resolution will take care of that, it’s built in Windows
machines. No need for a DNS server.
(Not that it's superior in any way, but at some point in time MS thought
they could own networking and the internet. They created WINS and it’s
still there, AFAIK.)



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108357

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


Re: [SlimDevices: Unix] Linux VMs running on Win10+VMwareWorkstationPro

2017-12-18 Thread epoch1970

pablolie wrote: 
> 3 things don't migrate well:
> 
> 1. Network configuration. Go for bridged. It'll save you a lot of issues
> with LMS. You have to set that up in the VM management sw, not the vm
> itself.
> 2. Music directory visibility to LMS. I have no idea why that is. I
> would have assumed if you have the same NTFS drive connected to the
> exact same vm running ubuntu, hey, the fastab stuff should work right
> away when you connect the external NTFS drive. But that is not so.
> You'll have to mess about with your fstab again. 
> 3. Network accessibility of your music collection aka Samba
> configuration. Gone too when you migrate the vm. Odd. I like to have
> that because I tend to rip new CDs on my Win10 dbPoweramp app, and then
> easily drop them into the music directory (owned by the Ubuntu VM).
I don't use VMWare and I don't like Ubuntu all that much, but in
general:

1. Yes bridge the guest to a physical network card on the host, and set
the guest to DHCP. *Make sure the hypervisor assigns the same MAC
address to the guest across different VMWare installs*, otherwise the
ubuntu machine is going to create "eth1" where "eth0" was formerly used.
(If you run into that, go to /etc/udev/rules.d/, remove file
70-persistent-net.rules and reboot. The network card will be called eth0
again.)
Same problem if the Ubuntu guest uses the so-called Predictable Network
Interface Names. Actually the problem is possibly worse since there are
different naming schemes for PNIN... In the guest I would try disabling
that junk or use the ludicrous "device name is enxMAC_address" policy,
along with specifying the same MAC in VMWare across installs. 
Now the guest normally will only change network IP address across
installs, e.g. IP 192.168.0.45 in one install, 10.240.0.150 in another,
etc.

2. I understand this is a physical USB drive exported by VMWare to the
guest? It is quite possible that the device path/name inside the guest
changes from install to install. However a mount in fstab that would use
higher-level information like UUID= (will change if you reformat the
partition) or LABEL= (not available on all filesystems, ok on NTFS
AFAIK) should work across instances.
If the drive is exported as an USB device (and not as, say, a SATA
device) then in addition the guest might feel like being smart, mount
the volume to /media/somename and disregard your fstab entry. I would
export the physical device as a SATA/SCSI device if possible, otherwise
expel from the guest OS any pesky "USB mount helper"  

3. If the SMB shares use names, e.g \\DESKTOP\music or \\MYVM\newstuff
then there shouldn't be a problem. If sharing/mounting by IP address,
there could be a problem across installs?



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108357

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


Re: [SlimDevices: Unix] Wireless access point on piCorePlayer?

2017-12-11 Thread epoch1970

paul- wrote: 
> I have the AP mode done, I have a couple of folks testing.
> 
> epoch,  What are you bridging?  two ethernet devices?   
> ...
> I have also done layer2 and layer3 bridging with pCP wifi to ethernet.
I will try that AP mode with pleasure when you release it.
Yes I was thinking of L3 bridging with the AP; either with eth0 or a USB
adapter (or VLAN but I don't think that option would be too popular).

I don't know how I can interpret your last sentence; if you've done it
in the AP that is being tested, then that's great. If you mean it is
feasible and it works, I certainly concur with that.

Adding stuff to bootlocal.sh looks like a good option, it is flexible.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108341

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


Re: [SlimDevices: Unix] Wireless access point on piCorePlayer?

2017-12-11 Thread epoch1970

I'm looking into this, progress isn't fast :)
I want to have bridging as an option. 

After looking at the boot process and the various bits activating dhcp,
static, wifi, I'm thinking what is needed first is a stable naming
scheme for the interfaces.

The current PCP uses udev v.174, so something like
"70-persistent-net.rules" should be working.
My rule is in a "netdevs.tcz" that is listed at the very end of
onboot.lst.

It doesn't work; I've tried naming the file to "10-persistent-net.rules"
but that doesn't help.
When the boot process ends, if I shut all interfaces down, reload rules
and trigger them, this time I get my interfaces renamed.

With TCL/PCP as it is, do I stand a chance of getting a custom rule
taken into account at boot, or shall I wait for "normal" boot to end,
nuke all networking and rename/restart it? (this option would work,
obviously, but I find it messy.)



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108341

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


Re: [SlimDevices: Unix] receiving actual state of PicorePlayer if playing or stopped

2017-12-06 Thread epoch1970

This "RESULT=`( echo "$MAC_ADDR $COMMAND"; echo exit ) | nc $LMS_IP
9002`" could be your problem.
"nc" doesn't work the same on every platform.
Is the CLI listening on port 9002 ? (why?)
In the console on the pi try 
Code:

echo " status 0 0" | nc  


and see if you get anything back.

Good luck.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108354

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


Re: [SlimDevices: Unix] receiving actual state of PicorePlayer if playing or stopped

2017-12-06 Thread epoch1970

"-x" is only there to make the script verbose. You should remove it when
it works ok.
I'm seeing "+ [ 0 -eq 3 ]", some variable is not set in your case, the
script is a little careless and it goes into syntax error because it
compares  with 3.
My install is clean. I'll see what goes on in the script, or the log
around the moment that test is performed.

EDIT: After a short chase, I do have a line reading TEST="0" in file
/usr/local/sbin/config.cfg.
It looks like you're missing that line in your config.cfg file. Due to
previous mods I suppose?



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108354

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


Re: [SlimDevices: Unix] receiving actual state of PicorePlayer if playing or stopped

2017-12-05 Thread epoch1970

Your script works under pcp 3.20.2
I am logged in as user tc.
I copy-pasted the code to a file and changed "#!/bin/sh" to "#!/bin/sh
-x"
Then I did "chmod +x foo.sh" to make it executable, I get this kind of
stuff
Code:

$ ./foo.sh 
  + . /home/tc/www/cgi-bin/pcp-functions
  + DEBUGLOG=/var/log/pcp_debug.log
  + pcp_config_file
  + CONFIGCFG=/usr/local/sbin/config.cfg
  + . /usr/local/sbin/config.cfg
  + WIFI=off
  + SSID=wireless
  + PASSWORD=password
  + ENCRYPTION=WPA
  + DEBUG=0
  + MODE=40
  + TEST=0
  + NAME=Berlin-Boombox
  + OUTPUT=equal
  + ALSA_PARAMS=160:::1:
  + BUFFER_SIZE=
  ...
  + MAC_ADDR=ab:cd:ef:12:34:63
  + LMS_IP=192.168.0.229
  + INTERVAL=0.5
  + GPIO=12
  + COMMAND=status 0 0
  + DELAYOFF=20
  + COUNT=0
  + DEBUG=0
  + TURNED_ON=0


If you type "echo $ENV" you can see all the variables pcp-variables has
created for your script to use.
The funny ". /home/tc/www/cgi-bin/pcp-functions" is more legibly written
as "source /home/tc/www/cgi-bin/pcp-functions", that "merges" a script
into another one. This is how your script can call "pcp-variables" right
after that.

BTW, do you need to poll player status via a script? In the GUI under
Squeezelite, bottom of page, there is provision to define a script or
GPIO pins that SL will activate when player status transitions to power
on or to power off.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108354

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


Re: [SlimDevices: Unix] bug in gerrelts squeezelite.sh

2017-12-03 Thread epoch1970

paul- wrote: 
> Your system must take over 20 seconds to get a valid IP address (timeout
> in pCP).
That is quite possible. 
I haven't timed it really (or don't remember), these machines are on
24/7. What really mattered was clients always latching into the right
VLAN and getting their IP address, and that they do very reliably.

@Django.
If you're keen have a look at the configuration guide for the switch
model I linked above. On page 135 (english edition) you can read
> Aging Time
> Set the length of time that a dynamic entry remains in the MAC address
> table after the entry is used or updated. The valid values are from 10
> to 630 seconds, and the default value is 300.
> A short aging time is applicable to networks where network topology
> changes frequently, and a long aging time is applicable to stable
> networks. We recommend that you keep the default value if you are unsure
> about settings in your case.
So yes we are both right. Switches do unlearn MACs.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108327

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


Re: [SlimDevices: Unix] bug in gerrelts squeezelite.sh

2017-12-03 Thread epoch1970

paul- wrote: 
> Are you doing something that would be setting an environment variable
> called UTMAC?
Nope. As written here and elsewhere the only peculiarities on my systems
are a 1.5MB archive tgz, a thick asound.conf, and one or 2 processes
launched after startup.

When I take such a config to my home network, it runs fine, IIRC. Don't
get all hot and bothered about it, it's not pCP (or SL), it is the
network I tell you ;)
Get '2 of these'
(http://www.tp-link.com/us/products/details/cat-40_T1600G-28TS.html)
between your pCP clients and a slow DHCP server like a Pi and I bet
you'll have my "problem".



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108327

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


Re: [SlimDevices: Unix] Wireless access point on piCorePlayer?

2017-12-03 Thread epoch1970

I've been thinking about that too, I have the iphone but not the car :)

I've found 'this thread'
(http://forums.slimdevices.com/showthread.php?107995-picoreplayer-without-network/page4)
about ad-hoc mode which is not too old and might be useful.

Other than that, I haven't found a true AP recipe.
I think I'll boot a pCP 3.20.2 and see how it rolls. 
I understand your use-case is the same as the linked thread, the Pi as
an island, i.e. no network access at all. 

Of course to set it up etc network is needed so that will be something
of a routed setup. A bridge would be neater though. I'll see what I can
come up with.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108341

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


Re: [SlimDevices: Unix] bug in gerrelts squeezelite.sh

2017-12-03 Thread epoch1970

bakker_be wrote: 
> Couldn't this be solved by modifying the start-up timing of squeezelite?
If my theory is right, then yes it could solve the issue. 
But a nil ID is not a blocker, it is more of a nuisance. The issue
doesnt happen to everyone, obviously.
And if you start waiting, when do you stop waiting, really?

> Don't really know for PiCore, but on an OS where services are managed by
> systemd ...
I am glad to report systemd is nowhere near in sight under Tiny Core.
sysVinit triggers a chain of shell scripts that bring the machine up to
order. Simple, sequential, and predictable.

I for one am very happy with the way PCP works. I had this intriguing
issue, I could find a probable cause, and solve it with 100% reliability
via an easy config option. Cant really ask for more...



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108327

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


Re: [SlimDevices: Unix] bug in gerrelts squeezelite.sh

2017-12-02 Thread epoch1970

DJanGo wrote: 
> yapp IMHO fake something like a mac address is fake / in harder words
> bullsh1t if there is only a single squeezelitesession on a hardware
> involved.
Strong words, friend ;)

The issue is a little confusing, I have to admit:
1 - There are people who need multiple instances
2 - There are people want to force the player to a specific identity, a
good reason for that would be to retain player preferences when swapping
hardware. (I've used active/backup wifi+ether bonding on a Pi player
once or twice, it's funnier than useful, but it also makes a strong case
for using option "-m")
3 - There is a very specific condition that can happen in squeezelite:
http://forums.slimdevices.com/showthread.php?107352-Announce-piCorePlayer-3-20=890873=1#post890873
(you can backtrack to the beginning of the conversation, it is short.)

In my case, I use Pi 3s as pCP players. Wifi is disabled. I use a single
instance of Squeezelite. Ok, my tc archive "is a little large" but
really I don't think it has anything to do with the issue. The MAC
address of the network interface is never a problem, my players always
get a DHCP lease. But this takes a few seconds (10 secs?) 
So I get this problem: Squeezelite has started before networking has
settled, it doesn't know what player ID to report, so it reports a nil
ID.
And "-m" solves it.

(-m is a good option. I got a bad rap when people started "recycling"
slimdevices MACs to software players and put unwarranted load over
mysb.com, but it does have legitimate uses.)



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108327

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


Re: [SlimDevices: Unix] bug in gerrelts squeezelite.sh

2017-12-02 Thread epoch1970

Greg Erskine wrote: 
> Hi epoch1970,
> 
> :confused: I haven't seen this happen for a long time. I have never had
> the need to use the -m option. I am using slow wifi and a very old wifi
> router with DHCP.
> 
> regards
> Greg
I have 4 players that are using DHCP, the network path has 2 "pro"
switches along the way plus a software bridge, there is a dedicated
VLAN, and the DHCP server is running on the (raspbian) Pi that runs LMS.
The Pi runs a bit of routing/filtering and applications but it is
normally not busy.
The players boot fast and network config comes later, almost guaranteed.
As a consequence, Squeezelite uses the nil player ID.
That's a pain because when multiple players have the nil ID you only see
one via LMS, so reaching to every one of them and setting the
appropriate "-m" option can take a little time and guesswork.
I'm using pCP 3.2.0 but I am fairly confident the culprit is either the
Pi server or the switches which take their time learning the MACs. I'm
using a MAC-defined VLAN for the players, maybe that doesn't help
either.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108327

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


Re: [SlimDevices: Unix] bug in gerrelts squeezelite.sh

2017-11-30 Thread epoch1970

Yeah, I've read the thread, I don't know the script but if its purpose
is to define a MAC address as player ID, why not define as many MAC as
needed out of something (almost) completely arbitrary like
"02:0a:0b:0c:0d:01", "02:0a:0b:0c:0d:02", etc.

I see quite often my pCPs start with a nil player ID these days. Somehow
it boots and starts squeezelite before the DHCP server had time to
react. Or a switch gets in the way. So I use -m systematically.
Yes, I do use the actual MAC from the host, it is sort of a nice touch,
but frankly copying the real MAC serves no purpose and I have time to do
it by hand, one setup at a time.

The old script (whatever it does) is definitely dead thanks to systemd's
last wonderful implementation of predictable network device names. "grep
wlan" no more.
Your script runs on raspbian 8, but it returns junk on the machine I
used, which has 2 bridges (one with a wireless interface for AP use)
active.
I didn't try your snippet on pCP, but between busybox and sysfs I fear
there could (will) be some portability issue.

So why not go arbitrary all the way? I think my proposal breaks at 255
instances...



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108327

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


Re: [SlimDevices: Unix] LMS problem on debian jessie

2017-11-04 Thread epoch1970

Maybe have a look at "journalctl -xl"?
Or see what that logitechmediaserver service unit launches and try it on
the command-line.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108217

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


Re: [SlimDevices: Unix] rpi3+pcp3.22+LMS causes transporter & SBradio to jump in and out of LMS

2017-11-03 Thread epoch1970

_NK_ wrote: 
> do these findings so far point more likely to a 7.9.1 bug or?
I would rather think something's fishy with your network or network
config in PCP. As I see it (without looking at the zip), every clients
dropping connections (including squeezelite), that is weird.

I understand PCP/LMS/Squeezelite is at 192.168.0.10?
Would you shut down that machine, and then try to ping 192.168.0.10. I
wonder if someone might still respond.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108198

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


Re: [SlimDevices: Unix] rpi3+pcp3.22+LMS causes transporter & SBradio to jump in and out of LMS

2017-11-02 Thread epoch1970

Unfortunately old is not synonymous with experienced. I've never run LMS
off pCP...

I think it can be an issue with the Pi's hardware, with networking (on
the Pi or on the switch/router), or LMS. 

Pi hardware: what is connected to the Pi over USB? It is a rather
frequent case that users connect too many devices to the USB ports, and
some get disconnected by the platform. AFAIK max current draw is 1A over
the 4 ports (e.g. max 1A with 1 port, max 500mA each for 2 ports etc.)
As you know, ethernet is connected via USB so an USB reset might affect
your connection. The stock PSU for Pi 3 can output 2.5A over 5V
sustained. If your PSU is weak, like 1A, it is possible that all the
current goes to the Pi itself and not enough remains for the USB ports.

It *think* "dmesg" could show something upon disconnects. Otherwise
adding bootcode "syslog" to cmdline.txt in pCP will allow
/var/log/messages to be created, and there you should get a regular
system log.

Networking: are you using DHCP? If not I would. In case there is a typo
in networking config you can get disconnects/no connection at all. Make
sure the IP used by pCP is indeed unique to the network, an IP conflict
would create transient issues like the one you're seeing.
Also if you're using one of those fancy "green ethernet" network
devices, try and see if disabling power management on the port used by
Pi in the switch/router changes anything.

LMS: could LMS be caught in a fail/restart loop? I would open a session
on pCP, check "ps" regularly and see if the main LMS process ages or on
the contrary, keeps changing PID which would indicate a restart.

I don't think mySB.com would have much to do with this. If you can live
without Internet for a few minutes, you could try pulling the WAN cable
from the router and see if players still reset. I don't see why that
would change anything but when everything's lost...



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108198

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


Re: [SlimDevices: Unix] rpi3+pcp3.22+LMS causes transporter & SBradio to jump in and out of LMS

2017-11-01 Thread epoch1970

Two LMS servers on the network at the same time??
(especially bad if you've cloned the second from the first)



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108198

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


Re: [SlimDevices: Unix] A door chime system for Squeezebox players with PCP 3.22. Or something.

2017-10-06 Thread epoch1970

drmatt wrote: 
> Nice. How about sending a URL to a web server with a audio jingle file
> on it..?
> 
> 
> -Transcoded from Matt's brain by Tapatalk-
Sure, why not. Latency would take a hit, though. And if the url points
to a huge file, if would fear issues with network bandwidth and local
storage. Plus the server needs to be up. 
I see 2 limitations with the system as shown here: 1) use of dmix; this
is really sad and, 2) local and awkward configuration through the script
for receivers; although while configuring the ramps and volumes is a
pain, I dont think you need to change it very often once done.

In the real application this isnt used as a door chime, it is
used for service calls in a public place, for use by employees or the
public. You can ring from windows PCs equipped with touchscreens or from
EnOcean wireless-battery less buttons. One of the receivers is a
firewall: it logs and dates each call. 
Multicast makes the thing both robust and flexible IMHO.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108107

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


[SlimDevices: Unix] A door chime system for Squeezebox players with PCP 3.22. Or something.

2017-10-06 Thread epoch1970
clipboard contents in the window,
and hit ctrl-d. Then run "chmod +x /home/tc/gong.sh" to make the
script executable.
  -  -Save your setup- with "pcp bu" on the command line. If you see
"your backup is a little large", that's ok. Now reboot with "pcp rb"

  I suggest you start playing music on that player after reboot to make
  sure all went well. Make sure Squeezelite now uses the "music" output
  device.
  

You can now use any machine on the network to send the order to play
your jingle, as long as the thing can run socat (I've used socat v 1.7).
If you need to install socat, I'll let you find how on linux, for
windows I've used 'this binary'
(http://blog.gentilkiwi.com/programmes/socat) and for OS X I've
installed it via Brew.
Now, enter "echo clt1 action1 | socat -
UDP4-DATAGRAM:239.123.123.123:12345,reuseaddr" from your client and you
should hear your jingle fade in and out of the music. If you "echo foo
bar ..." instead you'll hear nothing as the script receives but
disregards the call. And if you shutdown the LMS server the jingle will
still play.

You will certainly want to modify the script, I won't mind... You should
also define your own multicast address in the 239.0.0.0/8 network, and
pick your own UDP port. If you want to use wifi, pay attention to
SOCAT_OPTS in the script.

HTH



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108107

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


Re: [SlimDevices: Unix] PiCodePlayer + piZero + justBoomAmp zero poor synch

2017-10-06 Thread epoch1970

Synching with hardware squeezeboxes is a tough case.

Is that Boom wireless or wired?
First and foremost I would use the same medium for both, so that network
latency is consistent between players. 
Once both are on wifi make sure network strength is "very good to
excellent" for both. 60% is not good. It's ok for fetching data like web
pages but for a stream I'd rather see 80%

If not enough, I would try to set Prefs > [Players] > Synchronize >
Minimum Synchronization Adjustment (ms) to 100ms in both, leave delays
to 0 and network latency to default.
I think software players, even PCP, do not react in a very deterministic
way to step requests, so such adjustments have a tendency to make the
situation worse.
Of course this means players can sit 99ms apart for hours, so if this
creates noticeable echo, you'll want to lower that value as much as
possible.

I can say that over a rather poor ethernet network 4 Pi3s with justboom
amps running pcp 3.2 will keep sync within 100ms (some echo sometimes).
The same with good networking (upgraded switching hw, dedicated VLAN)
can stay within 10ms the whole day it seems.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=108101

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


Re: [SlimDevices: Unix] picoreplayer + usb hd

2017-09-04 Thread epoch1970

nervoteso wrote: 
> i'm doing backup cos qnap manager says there is an anomaly on volume 1
> of my qnap hds (they're set in raid 1). now everything is still working
> fine but maybe i should change the hd with errors.
IMHO the best is to take a cold, full backup copy right away, as you're
doing with an USB drive. 
If both drives in the array were identical, the healthy one has now,
statistically, a high chance of failing.

AFAIK you can rebuild and extend a 1TB mirror array into, say, a 2TB
array using qnap's OS. However, rebuilding is a prolonged stress period
for the HDDs, and there is a small possibility for failure of the 1TB
healthy drive during the operation.

I would take a full copy on the USB drive, then buy 2 new drives, create
an empty array and fill it from the USB drive.
It will take time, but you'll still have the original 1TB mirror in its
current state in case something goes wrong



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=107932

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


Re: [SlimDevices: Unix] Announce piCorePlayer 3.20

2017-09-01 Thread epoch1970

paul- wrote: 
> I run ethernet and wifi all the time. -but-
> 
> Ethernet will get the default route, and if you unplug the ethernet
> cable, there is nothing to switch the default route to wifi.   (Since we
> don't run a network manager)

NM... vade retro satana.
I should try and see if using route priorities or probably better the
strong host model (Linux "advanced routing") can easily solve that.
The advanced routing stuff is more interesting in that you can mix it
with iptables and implement traffic control. I don't have a use-case for
TC myself. If someone has an idea I could try to implement it and
report. Some day not too soon.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=107352

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


Re: [SlimDevices: Unix] Announce piCorePlayer 3.20

2017-08-31 Thread epoch1970

d6jg wrote: 
> That's not as I read it. I read it as single IP on both interfaces.
> I can test later but I think my Pi's get 2 IPs from the dhcp server if
> both network interfaces are live. 
Yes in retrospect the expression wasn't clear enough. Sorry for that.
I think I remember the Pi is able to receive 2 addresses on the same
network and all works fine, but not in this case. 
I was surprised it didn't work, and I don't see why it should not. My
pcp machines are headless and I didn't take the time to hook one to a
screen to have a console.

I guess I should do that and further document the case.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=107352

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


Re: [SlimDevices: Unix] Announce piCorePlayer 3.20

2017-08-31 Thread epoch1970

d6jg wrote: 
> Surely you can (and should) turn that behaviour off on the dhcp server
> for the Pi and anything else that isn't capable of dealing with bonding
> etc
It's not an issue with bonding. A/B ether+wifi bonding is a use case.

To rephrase: I -want- to use one IP reservation for 2 MACs. Normally
what should happen is this:
- the dhcp server gives the reserved IP to the first interface,
- the server gets a second request and gives another IP to the second
interface since the reserved IP is in use.

For some reason i don't think this works when the client is PcP 3.20.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=107352

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


Re: [SlimDevices: Unix] Announce piCorePlayer 3.20

2017-08-31 Thread epoch1970

Hi there,
I thought I'd report something I have noticed with pcp3.20, it's not a
blocking issue but it doesn't help with wifi.

- I have a dhcp server that delivers the same IP and name to some
clients whether they are wired or wifi
- In this case, having both connections active at the same time more or
less wrecks networking: IIRC, upon activating wifi with the GUI,
connectivity is lost; I'm not sure a reboot fixes things until the
Ethernet cable is unplugged.

HTH
(Reasons to use the same ip for 2 MACs: use of an active-backup bond,
name resolution, firewalling/scripting...)



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=107352

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


Re: [SlimDevices: Unix] Raspberry Pi 3 Wifi not working with picoreplayer 3.20

2017-08-10 Thread epoch1970

Jeff07971 wrote: 
> Pi3's WiFi is not very good at the best of times, I never use it.
In my experience, Pi3 built-in wifi is surprisingly good.
Almost every Pi 3 I've setup is either using it for AP or bonding with
ethernet.

The OP should look elsewhere: use of incompatible settings in the AP,
weak signal, ...

IMHO powerline is a good option is you have bad wifi coverage and don't
want to use ethernet cabling. 
Another option I like is flat ethernet cables. Dimensions and
flexibility like a (cooked) tagliatella, much easier to conceal than
round cables. 
Wireless extenders are no good: either they extend nothing really, or
they break up themselves when too far from the AP.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=107458

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


Re: [SlimDevices: Unix] Raspberry Pi 3 Wifi not working with picoreplayer 3.20

2017-08-10 Thread epoch1970

tkr001 wrote: 
> I am using 3.21 non audio with a rpi3. Everything works fine using
> Ethernet. When I turn wifi on and enter the correct details for ssid
> pass phrase and wpa encryption disconnect Ethernet and reboot wlan0 is
> detected but a dhcp lease is never obtained. I am at my wits end.
> 
> If I do a scan in pcp it finds the ssid.
> 
> What can I do to troubleshoot?

Verify your access point is open to that new client. In general this
means note the MAC address of the wifi card (PCP displays it) and enter
that address in the list of allowed devices in the wifi access
point/router.

Also, the wifi interface built in Pi 3 is 2.4GHz. Make sure your AP is
not set to 5GHz only.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=107458

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


Re: [SlimDevices: Unix] Announce piCorePlayer 3.20

2017-08-03 Thread epoch1970

Jeff07971 wrote: 
> Hi Greg
> 
> Yes that would seem sensible, It's quite a minor thing (to me anyway)
> though.
> I just thought I'd mention it !
Exactly on the same page, FYI:
I was playing with VLANs, I had for a while my config broken with LMS
broadcasting 3483 to VLAN1 and players broadcasting to VLAN10.
In this case, in the PCP GUI an LMS tab is created, and when clicking on
it the address in browser is ":9000" (no IP address at all)



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=107352

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


Re: [SlimDevices: Unix] Announce piCorePlayer 3.20

2017-08-03 Thread epoch1970

ralphy wrote: 
> This happens when no network interfaces are available when squeezelite
> starts.
> 
> Here's the code the initially sets the mac address to all zeros just
> before "probing the nics" with sockets.
> 
> https://github.com/ralph-irving/squeezelite/blob/master/utils.c#L141

Excellent. Then I know why this happens: the switch I am using is kind
of slow at opening ports.
Using -m is a perfectly workable workaround.
Thank you.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=107352

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


Re: [SlimDevices: Unix] Announce piCorePlayer 3.20

2017-07-31 Thread epoch1970

Not sure this is specifically related to PCP but here goes.

I'm running a PCP player and an LMS server within a VLAN. 
There is nothing else (well 2 mostly inactive :) desktops) on that
network.
Player boot is ok, not very fast (~1.6MB mydata.tgz). The player doesn't
know it belongs to a VLAN, this is set in the switch (a MAC Vlan, BTW)
The LMS server has a DHCP server, it handles the expected IP address. In
the LMS server machine the ARP table is correct. There are 2 interfaces
on the server, one is a bridge (tied to the VLAN), the other is a simple
physical interface. LMS listens to both interfaces, but the non VLAN one
is filtered.

When the player starts, squeezelite reports or LMS registers a nil
player ID. If I restart squeezelite the hardware MAC address is
correctly acquired by LMS.
If I use the -m option in squeezelite, the MAC address is correctly
acquired by LMS. 

Any idea where to look in order to debug this?
Thanks in advance.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=107352

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


Re: [SlimDevices: Unix] Announce piCorePlayer 3.20

2017-07-26 Thread epoch1970

AngloCuencano wrote: 
> I have two piCorePlayers (Pi Zero/phatDAC and Pi A+/IQAudio DAC +, both
> wireless) neither of which consistently sets the correct time on boot
> and then defaults to December 1969.
It could be this:
https://www.raspberrypi.org/forums/viewtopic.php?f=28=141454#p938961
Before meddling with iptables, I would suggest trying to connect with an
USB ethernet dongle or another make of wifi interface that doesn't use a
broadcom chip to confirm this is not an issue with something else, like
a firewall blocking 123/udp.

Looks like the bug is on its way out, anyway.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=107352

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


Re: [SlimDevices: Unix] Persistent network mount possible?

2017-07-24 Thread epoch1970

Just in case. 12 hrs sounds like a dhcp lease length. For sure the
server win machine should use a fixed IP and infinite length lease,
perhaps the client needs this too?



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=107720

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


Re: [SlimDevices: Unix] Persistent network mount possible?

2017-07-23 Thread epoch1970

This looks like your issue.
https://support.microsoft.com/en-us/help/297684/mapped-drive-connection-to-network-share-may-be-lost

The server drops inactive connection on its side (rather than waiting
for a client disconnect), probably so that it can spin-down drives or
sleep even if clients were not disconnected properly.
So instead of rebooting, dismounting/remounting on the client should
suffice.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=107720

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


Re: [SlimDevices: Unix] Splitting USB DAC outputs for multi zone audio - piCorePlayer?

2017-07-21 Thread epoch1970

Greg Erskine wrote: 
> hi mff,
> 
> Great news! I have booked marked this for future reference. :D
> 
> Thanks
> Greg

FYI and BTW, I had to run 2 instances of squeezelite on PCP to test
something. 
I have noticed that PCP reports "squeezelite is not running" when the 2
instances run. When any of the 2 failed to start, PCP would report
"squeezelite running".

HTH



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=105973

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


Re: [SlimDevices: Unix] small footprint OS for virtual installation (on Hyper-V)

2017-07-21 Thread epoch1970

LMS can run on piCorePlayer, that is piCore, that is Tiny Core Linux.
Use the OS you want that runs well on your host, LMS should run.
Especially if "ubuntu" matches your definition of a svelte system :)



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
----
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=107706

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


  1   2   3   4   5   >