Author Topic: mce planning: Parental controls and NAS mount/unmount  (Read 9504 times)

thedaver

  • Regular Poster
  • **
  • Posts: 19
    • View Profile
mce planning: Parental controls and NAS mount/unmount
« on: January 21, 2009, 11:51:16 pm »
Hi all!  starting the process to spec out and build an MCE, really looking forward to it!  I'll prob b asking quite a few questions for a while, appreciate all input (and patience)!

Q1) I saw a thread in the forum from mid-2007 regarding the implementation of Parental Controls; what's the status of Parental controls over what can be viewed (or even listed) in MCE?  Does the answer vary by media source?  (cable vs local media vs disk media vs. mounted media)??? 

Q2) related to parental controls, I have a NAS with a good bit of video media that I'd like to expose to MCE once it's built.  that NAS has two Windoze shares: 1) that's kid-friendly content, and 2) that isn't terribly kid friendly.  Currently under my linux desktop I just mount and unmount the shares to suit my needs.... what tools/strategies are available in MCE to deal with that? 

I kind of hope that the answer to #2 is related to #1 since that would allow me to leave the mounts active all the time and would let MCE manage viewing privs.... also dunno how upset MCE would be from a "library" or "index" perspective if a mount/share was enabled/disabled frequently... maybe that's my question #3?

Thanks again!
Dave.

tkmedia

  • wants to work for LinuxMCE
  • **
  • Posts: 937
    • View Profile
    • LMCECompatible
Re: mce planning: Parental controls and NAS mount/unmount
« Reply #1 on: January 22, 2009, 05:55:32 am »
media can be public or private just make your private shares private.


Tim
My Setup http://wiki.linuxmce.org/index.php/User:Tkmedia

For LinuxMce compatible  systems and accessories
http://lmcecompatible.com/

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: mce planning: Parental controls and NAS mount/unmount
« Reply #2 on: January 22, 2009, 06:23:10 am »
media can be public or private just make your private shares private.


Tim

Although, to be fair Tim, this functionality isn't really working very well at the moment is it?! Do you know if any fixes made it into the alpha on that?

krys

  • Addicted
  • *
  • Posts: 583
    • View Profile
Re: mce planning: Parental controls and NAS mount/unmount
« Reply #3 on: January 22, 2009, 03:51:32 pm »
I was also under the impression that private media shows up regardless, I have ripped movies to private and they were available to all users

tkmedia

  • wants to work for LinuxMCE
  • **
  • Posts: 937
    • View Profile
    • LMCECompatible
Re: mce planning: Parental controls and NAS mount/unmount
« Reply #4 on: January 22, 2009, 04:47:58 pm »
works for music I don't see my kids rap ... hmm i have no pr0n so I haven't  tried it with video




Tim
My Setup http://wiki.linuxmce.org/index.php/User:Tkmedia

For LinuxMce compatible  systems and accessories
http://lmcecompatible.com/

thedaver

  • Regular Poster
  • **
  • Posts: 19
    • View Profile
Re: mce planning: Parental controls and NAS mount/unmount
« Reply #5 on: January 22, 2009, 06:15:45 pm »
Can you gurus also comment on the issues (or lack of) that arise when a share full of media is mounted, acquired by MCE's library, and then unmounted, then remounted...   I have to assume this happens a lot (for maintenance if nothing else)..., just wanted to know your insights.  THX!

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: mce planning: Parental controls and NAS mount/unmount
« Reply #6 on: January 22, 2009, 07:03:27 pm »
LinuxMCE uses an autofs4 automounter, with a very short timeout.

This automounter has probably one of the most intricate scripts attached to it to mount the correct device the correct way, no matter where in the house it is...

due to this and the timeout, the disk is mounted when accessed, and then almost immediately unmounted when done. This was done to facilitate hot plug action.

-Thom

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: mce planning: Parental controls and NAS mount/unmount
« Reply #7 on: January 22, 2009, 07:48:47 pm »
The upshot of this automounting is that when the device is online, all the media in it is merged into the same media browser views with your other media. When the device goes offline, LMCE simply doesn't display that media any more. At worst this will only take until the next UpdateMedia scan marks the media as offline, which runs every 2 mins, but maybe even faster than that.

tk - in filename mode my "private" videos are simply not visible at all even after choosing the user and entering the PIN. You can only see them via tags. And if memory serves, you can still find them by searches even without switching to the user and entering the PIN... so from what I see, public/private does not work at all currently (at least for video) and hasn't for a long time.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: mce planning: Parental controls and NAS mount/unmount
« Reply #8 on: January 22, 2009, 11:13:35 pm »
private mode works, the videos must be tagged with at least a title.

and you're right, private media is currently still visible during a search. A query change in the media plugin can fix this.

-Thom

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: mce planning: Parental controls and NAS mount/unmount
« Reply #9 on: January 22, 2009, 11:25:04 pm »
Thom - thanks for the clarification. Private media is definately not visible in Filename sort mode ... unless you mean even then you have to tag at least the title (which is counterintuitive with the rest of the system) as that what you meant? Can that requirement be removed so that it works like the rest of the media browser grids?

tkmedia

  • wants to work for LinuxMCE
  • **
  • Posts: 937
    • View Profile
    • LMCECompatible
Re: mce planning: Parental controls and NAS mount/unmount
« Reply #10 on: January 22, 2009, 11:27:00 pm »
Colin if that is the case could you maybe define what works and what doesn't and submit a trac ticket to see what we may be able to fix for 0810. Be sure to select correct version of lmce when submitting.



Thanks


Tim
My Setup http://wiki.linuxmce.org/index.php/User:Tkmedia

For LinuxMce compatible  systems and accessories
http://lmcecompatible.com/

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: mce planning: Parental controls and NAS mount/unmount
« Reply #11 on: January 22, 2009, 11:27:15 pm »
by default, updatemedia will assign title as filename if there is no title attribute present.. sort by filename currently does not work in that mode because the root pathname for private media is different from public media. This needs to be patched. Again, Media Plugin is the culprit here.

-Thom

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: mce planning: Parental controls and NAS mount/unmount
« Reply #12 on: January 22, 2009, 11:29:01 pm »
ah ha, got it!

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: mce planning: Parental controls and NAS mount/unmount
« Reply #13 on: March 11, 2009, 01:33:32 pm »
The upshot of this automounting is that when the device is online, all the media in it is merged into the same media browser views with your other media. When the device goes offline, LMCE simply doesn't display that media any more. At worst this will only take until the next UpdateMedia scan marks the media as offline, which runs every 2 mins, but maybe even faster than that.
<snip>....

Your absolutely right Colin...we see this on Core's with say 4 x Data drives installed and also when we install NAS's. The problem is, as you correctly suggest, when the automounter un-mounts the drive the media from that drive will disappear...as UpdateMedia cannot differentiate between a drive that was unmounted because it was removed and a drive that was 'unmounted' temporarily by the systems. Once this has happened the user looses any access to the 'missing' media from the Orbiter... until something 'wakes' up the drive again and it gets remounted... then UpdateMedia will scan it and re-add it again.

Currently we use a 'hack' to get around this. We add a small bash script that runs at boot time and creates a screen session and then simply cd's into one of the symlinks to the device in /home/public/data/audio or videos. This keeps the drive mounted and available... its not very clean...but for now it works.

We plan to work on a more elegant fix asap ;-)

All the best

Andrew
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: mce planning: Parental controls and NAS mount/unmount
« Reply #14 on: March 11, 2009, 08:38:37 pm »
The upshot of this automounting is that when the device is online, all the media in it is merged into the same media browser views with your other media. When the device goes offline, LMCE simply doesn't display that media any more. At worst this will only take until the next UpdateMedia scan marks the media as offline, which runs every 2 mins, but maybe even faster than that.
<snip>....

Your absolutely right Colin...we see this on Core's with say 4 x Data drives installed and also when we install NAS's. The problem is, as you correctly suggest, when the automounter un-mounts the drive the media from that drive will disappear...as UpdateMedia cannot differentiate between a drive that was unmounted because it was removed and a drive that was 'unmounted' temporarily by the systems. Once this has happened the user looses any access to the 'missing' media from the Orbiter... until something 'wakes' up the drive again and it gets remounted... then UpdateMedia will scan it and re-add it again.

Currently we use a 'hack' to get around this. We add a small bash script that runs at boot time and creates a screen session and then simply cd's into one of the symlinks to the device in /home/public/data/audio or videos. This keeps the drive mounted and available... its not very clean...but for now it works.

We plan to work on a more elegant fix asap ;-)

All the best

Andrew

I'm not sure I was describing a problem here (not the one you are Andrew, anyway!)  ... I was trying to point out how LMCE presents and hides media correctly based on whether a source is genuinely available or not... ie a good thing :)