Re: [SlimDevices: Unix] Turning on stereo from piCorePlayer

2018-10-29 Thread bpa


Attached is a Perl version of the Python script to control a TP-Link
smart plug.  Should run OK on an rpi - possibly from a shell script
which is polling CLI port for player status.


+---+
|Filename: tplink_smartplug.pl  |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=25857|
+---+


bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=109642

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


Re: [SlimDevices: Unix] How to mount external NAS drive at right point during boot (Raspbian)

2018-10-29 Thread tuck1s


Man in a van wrote: 
> It might help to make sure the pi waits for the network to be up first.
> 
> You can configure this in 
> 
> > 
Code:

  >   > sudo raspi-config

> > 
> 
> It's under "3 Boot Options"
> 
> Also nfs does not need the user and password as cifs does (I think
> :confused:)

Thanks, will have a play around with this.



tuck1s's Profile: http://forums.slimdevices.com/member.php?userid=67484
View this thread: http://forums.slimdevices.com/showthread.php?t=109663

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


Re: [SlimDevices: Unix] Cannot enter my password

2018-10-29 Thread Soulman


THX, will try that.

As for the internet thing: I am totally aware of the problem here. And
it is not open to the (whole) internet. But: The server is not at my
home, and I access it from 3 locations in 2 different countries. It's
behind a FW with IP restrictions, but I need to open up at least some
networks. Unfortunately one is a /18  from the french telecom. 
I guess I will use VPNs or the like in the future. 

So I am not surprised that this happened eventually.



Soulman's Profile: http://forums.slimdevices.com/member.php?userid=6283
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] How to mount external NAS drive at right point during boot (Raspbian)

2018-10-29 Thread Man in a van


It might help to make sure the pi waits for the network to be up first.

You can configure this in 


Code:

sudo raspi-config



Also nfs does not need the user and password as cifs does (I think
:confused:)



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

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


Re: [SlimDevices: Unix] How to mount external NAS drive at right point during boot (Raspbian)

2018-10-29 Thread Man in a van


@tuck1s

Here's how I do it. This is not the definitive way but a bit cobbled
together way.

I use it on rpi 3b and a 3b+ and also an old Shuttle running the
Raspbian Desktop for pc and mac.

First go to the Qnap > Control Panel > Shared Folders.

Tick the name of the Folder and click on Edit Shared Folder Permissions
(the centre icon on the rhs).

>From the drop down select NFS host access

Add the IP address of the pi click Apply and exit

On the pi create your mount point. 

Mine is /mnt/Squeezebox

To test;

In the pi terminal I type


Code:

  sudo mount 192.168.1.***:Squeezebox /mnt/Squeezebox  



and check in the LMS Settings if the folder is mounted.

Then


Code:

sudo nano /etc/fstab




and put this as the last line


Code:

192.168.1.***:/Squeezebox  /mnt/Squeezebox  nfs4 _netdev,auto 0 0 




Ctrl+x > Y > Enter

Then 


Code:

sudo mount -a 



(to test fstab edits).

The command line I found after trawling the 'net, the command seems to
change with each different version of Rasbian (sigh).

I use the same command on an O2 Joggler, but had to omit the #4 and just
use plain nfs.

Hope this is useful, but do it at your own .you know the score:p

ronnie



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

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


Re: [SlimDevices: Unix] How to mount external NAS drive at right point during boot (Raspbian)

2018-10-29 Thread slartibartfast


tuck1s wrote: 
> Today, having finally decided to sort out our media server since Spotify
> was discontinued on QNAP NAS, I installed Raspbian Stretch, then
> logitechmediaserver_7.9.2~1539967036_all.deb, on a spare Raspberry Pi 2.
> 
> The music files are on the QNAP NAS still. I was able to mount this,
> scan and play the music library using 
> 
> > 
Code:

  >   > sudo mount  "//192.168.0.4/Steve/My Music" /mnt/Music -o 
username=steve,password=xyzzy

> > 
> 
> I tried to do the mount automatically on boot, using /etc/fstab and
> all hell broke loose, the Pi would no longer boot. Had to recover it
> using cmdline.txt shown here:
> https://www.raspberrypi.org/forums/viewtopic.php?t=172814
> 
> I was able to recover it .. I think the problem with /etc/fstab,
> watching the boot sequence, is that the IP stack is not fully up at
> that point (i.e. it's too early).
> 
> What's the right time/place to mount an external NAS filesystem for
> LMS?If you want to use Raspbian Stretch why not use Max2Play? It tales care
of everything for you.

Sent from my SM-G900F using Tapatalk





slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609
View this thread: http://forums.slimdevices.com/showthread.php?t=109663

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