[Server-devel] usbmount

2015-10-27 Thread Tim Moody
I'm working on adding LibraryBox/PirateBox type functionality whereby if a
usb in plugged into the server it is automounted by usbmount and if it has
/share, /Share, or /PirateShare in its root directory a symlink will be
created in /library/content/USBx depending on where it was mounted.

 

I think this should be enabled by default.

 

Any comments?

___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Server-devel Digest, Vol 100, Issue 10

2015-10-27 Thread Tony Anderson
In XS, usbmount executed scripts included in /etc/usbmount/mount.d when 
a removable device was inserted.


There may be an upstream problem with this feature in CentOS 7 so the 
first step may be to see if usbmount

executes a script (echo hello world).

If usbmount works, the script should determine if the mounted drive 
meets the condition (is relevant) and, if
not, exit. Daniel Drake used this in XS to install the content (XC) when 
a removable device was inserted which

met the requirements of the script.

Tony


On 10/27/2015 12:00 PM, server-devel-requ...@lists.laptop.org wrote:

Send Server-devel mailing list submissions to
server-devel@lists.laptop.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.laptop.org/listinfo/server-devel
or, via email, send a message with subject or body 'help' to
server-devel-requ...@lists.laptop.org

You can reach the person managing the list at
server-devel-ow...@lists.laptop.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Server-devel digest..."


Today's Topics:

1. usbmount (Tim Moody)


--

Message: 1
Date: Tue, 27 Oct 2015 10:42:37 -0400
From: Tim Moody <t...@timmoody.com>
To: "xsce-devel" <xsce-de...@googlegroups.com>, "server-devel"
<server-devel@lists.laptop.org>
Subject: [Server-devel] usbmount
Message-ID: <blu405-eas424ae5a1e8ca164c8d88301c5...@phx.gbl>
Content-Type: text/plain; charset="utf-8"

I'm working on adding LibraryBox/PirateBox type functionality whereby if a
usb in plugged into the server it is automounted by usbmount and if it has
/share, /Share, or /PirateShare in its root directory a symlink will be
created in /library/content/USBx depending on where it was mounted.

  


I think this should be enabled by default.

  


Any comments?

-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.laptop.org/pipermail/server-devel/attachments/20151027/74ab2bbf/attachment-0001.html>

--

Subject: Digest Footer

___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


--

End of Server-devel Digest, Vol 100, Issue 10
*


___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] [XSCE] usbmount

2015-10-27 Thread Tim Moody
 

 

From: xsce-de...@googlegroups.com [mailto:xsce-de...@googlegroups.com] On 
Behalf Of Anish Mangal
Sent: Tuesday, October 27, 2015 11:18 AM
To: xsce-devel 
Cc: server-devel 
Subject: Re: [XSCE] usbmount

 

Why the need to have a folder with a specific name? In different langs, the 
folder name could be different to make sense to users?

I assume you mean on the usb not the symlink.  The worry was that we wouldn't 
want to share the /grades or /myphotos folders, so we should restrict the share 
to specific folders.  The link students will see will just be USBx, which is 
pretty international.  Also, /library/content renders unicode names, so files 
inside the share in any language should work.

Remember, this is a dynamic share, not a copy at the moment.

Another idea could be to link it to the folderspace where owncloud houses it's 
content to allow easy back and forth between the server and the USB key - 
unless there is a better mechanism. 

 

I think owncloud is a much more feature-rich alternative.  You can create 
folders with any name you like with restrictions on users.  You can upload 
files to those folders from your hard disk or an attached usb.  I also think 
owncloud creates db records for uploads and we would have to do that manually, 
which could be tricky and risky.

 

I think the automount is simple with some restrictions and owncloud is more 
complex with more functionality.

 

On Tue, Oct 27, 2015 at 8:12 PM, Tim Moody  > wrote:

I'm working on adding LibraryBox/PirateBox type functionality whereby if a usb 
in plugged into the server it is automounted by usbmount and if it has /share, 
/Share, or /PirateShare in its root directory a symlink will be created in 
/library/content/USBx depending on where it was mounted.

 

I think this should be enabled by default.

 

Any comments?

 

 

___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] [XSCE] usbmount

2015-10-27 Thread Tim Moody




Sent from my Samsung Galaxy smartphone. Original message From: 
Anish Mangal  Date: 10/27/2015  1:33 PM  (GMT-05:00) To: 
xsce-devel  Cc: server-devel 
 Subject: Re: [XSCE] usbmount 


On Tue, Oct 27, 2015 at 10:28 PM, Tim Moody  wrote:
  From: xsce-de...@googlegroups.com [mailto:xsce-de...@googlegroups.com] On 
Behalf Of Anish Mangal
Sent: Tuesday, October 27, 2015 11:18 AM
To: xsce-devel 
Cc: server-devel 
Subject: Re: [XSCE] usbmount Why the need to have a folder with a specific 
name? In different langs, the folder name could be different to make sense to 
users?I assume you mean on the usb not the symlink.  The worry was that we 
wouldn't want to share the /grades or /myphotos folders, so we should restrict 
the share to specific folders.  The link students will see will just be USBx, 
which is pretty international.  Also, /library/content renders unicode names, 
so files inside the share in any language should work.Remember, this is a 
dynamic share, not a copy at the moment.
Yes, I meant on the USB. So if I understand your explanation correctly, 
everything in the USB drive will be linked/shared in a folder visible to the 
students?
 Everything under /media/usbn/share (or either of the other 2 checked ) will 
appear as /library/content/USBn. Nothing else is shared. /library/content is 
already in the web space. Another idea could be to link it to the folderspace 
where owncloud houses it's content to allow easy back and forth between the 
server and the USB key - unless there is a better mechanism.  I think owncloud 
is a much more feature-rich alternative.  You can create folders with any name 
you like with restrictions on users.  You can upload files to those folders 
from your hard disk or an attached usb.  I also think owncloud creates db 
records for uploads and we would have to do that manually, which could be 
tricky and risky. 
+1. Fair enough. Hacking here might lead to problems. 
 I think the automount is simple with some restrictions and owncloud is more 
complex with more functionality. On Tue, Oct 27, 2015 at 8:12 PM, Tim Moody 
 wrote:I'm working on adding LibraryBox/PirateBox type 
functionality whereby if a usb in plugged into the server it is automounted by 
usbmount and if it has /share, /Share, or /PirateShare in its root directory a 
symlink will be created in /library/content/USBx depending on where it was 
mounted. I think this should be enabled by default. Any comments?  



___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel