By the way Mark my last comment was directed at you. But one thing I forgot
to mention is that once you unmount the tmpfs directory I mention above,
the original directory would be there still. So you'd want to take steps to
keep from overwriting files there. I mean you could technically just revert
the directory from the img file I suppose, but that would be a minor hassle
at best. Also, using the zram tmpfs method i mentioned above would not
require chroot at all.

On Wed, Apr 19, 2017 at 1:06 PM, William Hermans <[email protected]> wrote:

> How about using a chroot ? Basically you keep a chroot image where ever
> you want, mount it where ever you want, and just wipe it out for a fresh
> start when you need to get back to pristine. I am trying to think what
> would be the smartest way to do this as you wouldn't necessarily want to
> spend a long time trying to get all this done. Then it may also make better
> sense to run this chroot from a tmpfs. So perhaps you copy the content of
> the cloud9 directory, into an img file. make a zram tmpfs, then just mount
> it over the top of the original cloud9 directory, and extract the img
> contents into that ramdisk ?
>
> On Wed, Apr 19, 2017 at 12:38 PM, Mark A. Yoder <[email protected]>
> wrote:
>
>> The big picture is:  I'd like to use these in a workshop and the the
>> participants play all they want.  Once we are done I want to run one
>> command to reset everything.
>>
>> I can't count on having internet, so a local git repo sounds like a good
>> idea.
>>
>> --Mark
>>
>> On Wednesday, April 19, 2017 at 3:33:01 PM UTC-4, RobertCNelson wrote:
>>>
>>> On Wed, Apr 19, 2017 at 2:26 PM, Robert Nelson <[email protected]>
>>> wrote:
>>> > On Wed, Apr 19, 2017 at 1:34 PM, Mark A. Yoder <[email protected]>
>>> wrote:
>>> >> Robert:
>>> >>   It looks like all the files in /var/lib/cloud9/examples are owned
>>> by
>>> >> root:cloud9ide and are mode 664. They need to be mode 665, or maybe
>>> 667.
>>> >>
>>> >> Mode 667 would let people easily edit the files and experiment.
>>> Though it
>>> >> would also let people mess up the files.
>>> >>
>>> >> How about we have a parallel directory to examples that serves as a
>>> backup.
>>> >> They could all me mode 665 and the examples files would be 667.
>>> >
>>> > The debian user is part of the cloud9ide group, so the 664 should
>>> > work, or do you think it should be 674? so the cloud9ide group can
>>> > execute the file..
>>>
>>> The other issue, that whole directory get's extracted from the bone101
>>> package, so any changes to the package will wipe out that dir.
>>>
>>> Unless we move the examples to github and just create a local git clone?
>>>
>>> Regards,
>>>
>>> --
>>> Robert Nelson
>>> https://rcn-ee.com/
>>>
>> --
>> For more options, visit http://beagleboard.org/discuss
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/beagleboard/eaa04298-81a4-4af0-a033-fe369e458cc7%40googlegroups.com
>> <https://groups.google.com/d/msgid/beagleboard/eaa04298-81a4-4af0-a033-fe369e458cc7%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CALHSORpDdDFgs8Wj03XW1-RFsc9JOPPNVvcjw_LCe5dEZQT%3D6g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to