Re: [Server-devel] [XSCE] automount

2015-10-30 Thread James Cameron
On Fri, Oct 30, 2015 at 05:09:17PM -0400, Tim Moody wrote:
> I had it on good advice that mounts are not reestablished on
> restart.  It makes sense as there is no physical event of plugging
> in the device.

At boot, the kernel synthesises an event as if a device transitions
from unplugged to plugged.

So any program that misses this ... sounds buggy.

> But because of your comment I just rebooted and the mount was in fact
> reestablished, so looks like it is not in fact a problem.

Oh, I thought you had identified it as a problem.

-- 
James Cameron
http://quozl.linux.org.au/
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] [XSCE] automount

2015-10-30 Thread Tim Moody
I had it on good advice that mounts are not reestablished on restart.  It
makes sense as there is no physical event of plugging in the device.

But because of your comment I just rebooted and the mount was in fact
reestablished, so looks like it is not in fact a problem.

> My gut feel is that means there is something wrong with the automounting;

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


Re: [Server-devel] [XSCE] automount

2015-10-30 Thread James Cameron
On Fri, Oct 30, 2015 at 09:59:42AM -0400, Tim Moody wrote:
> When a usb drive is inserted into the server it is mounted
> (hopefully).  If the server is restarted that mount disappears even
> if the device is still attached.

My gut feel is that means there is something wrong with the
automounting; it can't tell the difference between devices that appear
before it starts, and those that appear after it starts.

> I started down the road of remounting any drives that were
> automounted for shared content.
> 
> Now I am wondering if at startup I should mount anything returned by
> blkid that is not already mounted.  (I don't want to alter fstab.)

Using blkid feels wrong.  blkid is at a higher level; based on a
library libblkid that works with what the kernel provides.

> Also, what are the chances that a device that was /dev/sdb1 for
> example will still be so on restart?

The order of discovery can be unpredictable, so what is /dev/sdb with
media left connected can be different to what it is when media is not
left connected.

Try to script using the symbolic links created in /dev/disk/by-path
which connect back to /dev/sdb, that way the discovery order is
irrelevant.

-- 
James Cameron
http://quozl.linux.org.au/
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] automount

2015-10-30 Thread Tim Moody
what about using udevadm trigger?

 

From: outlook_e5f197d31ca4c...@outlook.com
[mailto:outlook_e5f197d31ca4c...@outlook.com] On Behalf Of Tim Moody
Sent: Friday, October 30, 2015 10:00 AM
To: xsce-devel ; server-devel

Subject: automount

 

When a usb drive is inserted into the server it is mounted (hopefully).  If
the server is restarted that mount disappears even if the device is still
attached.

 

I started down the road of remounting any drives that were automounted for
shared content.

 

Now I am wondering if at startup I should mount anything returned by blkid
that is not already mounted.  (I don't want to alter fstab.)

 

Also, what are the chances that a device that was /dev/sdb1 for example will
still be so on restart?

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


[Server-devel] automount

2015-10-30 Thread Tim Moody
When a usb drive is inserted into the server it is mounted (hopefully).  If
the server is restarted that mount disappears even if the device is still
attached.

 

I started down the road of remounting any drives that were automounted for
shared content.

 

Now I am wondering if at startup I should mount anything returned by blkid
that is not already mounted.  (I don't want to alter fstab.)

 

Also, what are the chances that a device that was /dev/sdb1 for example will
still be so on restart?

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


[Server-devel] ids

2015-10-30 Thread Tim Moody
what is the source of these ids in xsce.ini and how do they differ from each
other:

 

xsce_commit = 6b02b1aad3718625e946d139d3df75bc40fbf5a0

xsce_uuid = ccdc0897-2d2d-49fe-8a95-7776479d322d

product_id = 007B8D76-97D7-DD11-82FC-B8AEED71A692

runtime_commit = 4dccd438b672f30a33b0c491a1bd97b490b6e642

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


Re: [Server-devel] [XSCE] Re: Docker

2015-10-30 Thread Pierre Ozoux
Choose an app from this list:
https://github.com/indiehosters

And I'll start an instance on scaleway (arm cloud provider). I'll show
how easy it is :)

About ansible, I thought the same at the beginning, but, in fact look at
the number of official images now:
https://github.com/docker-library/official-images/tree/master/library

For whatever application, now, you almost just need `docker run wordpress`

On 29-10-2015 18:03, Tim Moody wrote:
> It would be great if you could do a docker proof of concept on xsce.  Most of 
> us have little experience with it beyond what we read.  I don't really see 
> docker and ansible as alternatives, since an ansible playbook can easily run 
> in a docker container.  I'd like to move from VBox to docker at some point.
> 
>  
> 
> From: xsce-de...@googlegroups.com [mailto:xsce-de...@googlegroups.com] On 
> Behalf Of Adam Holt
> Sent: Thursday, October 29, 2015 11:37 AM
> To: Pierre Ozoux 
> Cc: server-devel ; xsce-devel 
> 
> Subject: [XSCE] Re: [Server-devel] Docker
> 
>  
> 
> Hi Pierre,
> 
> We'd love to include our ansible progress within docker images.  TK Kang and 
> others have been a big proponent!
> 
> I'm not qualified to comment however..hopefully Tim Moody and others can 
> offer more precise suggestions :)
> 
>  
> 
> On Thu, Oct 29, 2015 at 6:17 AM, Pierre Ozoux   > wrote:
> 
> Hi!
> 
> I got to know the group thought anis...@umich.edu  
> I'm a sysadmin in love with freesoftware, and I try to degooglify
> Internet with a (yet) small project: https://indiehosters.net/page/home
> 
> I also love Docker. The way it works, it will offer a standard way to
> package and maintain all free softweare of the world!
> (no more hassle about having php, python or ruby installed, just docker
> run!)
> 
> For IndieHosters, I package applications like here:
> https://github.com/indiehosters
> 
> I was wonderwing if you planned to move from ansible to docker
> In this case, we could collaborate, I'd be happy to help this way :)
> 
> Let me know!
> 
> --
> I use PGP to protect our privacy, if you want to know more, you can
> follow this
> https://emailselfdefense.fsf.org/en/
> 
> If you have further questions, please do not hesitate to ask.
> You can verify my public key here: https://keybase.io/pierreozoux
> 
> 
> ___
> Server-devel mailing list
> Server-devel@lists.laptop.org  
> http://lists.laptop.org/listinfo/server-devel
> 

-- 
I use PGP to protect our privacy, if you want to know more, you can
follow this
https://emailselfdefense.fsf.org/en/

If you have further questions, please do not hesitate to ask.
You can verify my public key here: https://keybase.io/pierreozoux



signature.asc
Description: OpenPGP digital signature
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel