[Tech] Partimus & Raspberry Pi 3 Model Bs

Tai Kedzierski dch.tai at gmail.com
Fri Sep 30 10:46:44 PDT 2016


(Cc all)

I would wait and test it on a couple of VMs first :-)

I can do this tomorrow, or you can get one of your PDT time people to give
it a whirl :-P

I'll set it to the hourly cron for my tests and let you know



===
Tai Kedzierski

Software and Support for SMEs and Charities
http://helpuse.com/

Chat / VoIP: TOX:
8F52CBAC32DC7C87C0A65F0ABD8A4AE3550DFC16763D410B22054A552C81CE7E72D6D065D451
<https://tox.chat/download.html>


I use LibreOffice <https://www.libreoffice.org/> , a free,
Freedom-respecting replacement for MS Office

*Open Source Free Software is a matter of liberty, not price.*
http://bit.ly/foss-why-care


On 30 September 2016 at 18:25, Christian Einfeldt <einfeldt at gmail.com>
wrote:

> Hi,
>
> Thanks for this work, Tai!  Do you think that I should go ahead and copy
> and paste this script into the machines?  I see that you say that the
> scripts are not yet ready for production.  Thanks again!
>
> On Fri, Sep 30, 2016 at 10:13 AM, Tai Kedzierski <dch.tai at gmail.com>
> wrote:
>
>> Hi Christian, all,
>>
>> This is an example of how it could be
>>
>> https://github.com/taikedz/partimus-updater
>>
>> Where you are concerned, there's just that one line that would allow you
>> to do the setup, adding a cron job, and setting up the automation:
>>
>>     curl https://raw.githubusercontent.com/taikedz/partimus-updater/m
>> aster/bin/install.sh | sudo bash
>>
>> So after installing a machine, open a terminal, and paste that in.
>>
>> *For the techies*
>>
>> Yes, it's rudimentary, I'm trying to keep it as simple as possible.
>>
>> Put scripts that need to be run (any language you want) into the scripts/
>> folder. They are run in alphabetical sort order.
>>
>> The configuration in /etc/partimus.conf can be set with UMODE=blocking to
>> make any error cause an interruption of execution
>>
>> Any feedback is welcome.
>>
>> I'll add a config feature to make the target github repo configurable too
>> so the scripts remain as portable as possible
>>
>>
>> Tai
>>
>>
>>
>>
>> ===
>> Tai Kedzierski
>>
>> Software and Support for SMEs and Charities
>> http://helpuse.com/
>>
>> Chat / VoIP: TOX: 8F52CBAC32DC7C87C0A65F0ABD8A4A
>> E3550DFC16763D410B22054A552C81CE7E72D6D065D451
>> <https://tox.chat/download.html>
>>
>>
>> I use LibreOffice <https://www.libreoffice.org/> , a free,
>> Freedom-respecting replacement for MS Office
>>
>> *Open Source Free Software is a matter of liberty, not price.*
>> http://bit.ly/foss-why-care
>>
>>
>> On 29 September 2016 at 02:05, <partimus at boldandbusted.com> wrote:
>>
>>> So, seems like we are all on a simiar trajectory. :) I was thinking
>>> something along these lines:
>>>
>>> * Administrative VPN that does *not* route traffic to the Internet,
>>> using OpenVPN. (More on why later)
>>> * Chef client w/ Chef Zero, rather than a shell script, running from
>>> cron, atjobs, etc. (something more flexible than 'traditional' cron so we
>>> dont miss runs due to PCs or devices being off at scheduled run time)
>>> * Use a github repo for chef-zero code, encrypted data-bags or
>>> equivalent facility, etc.
>>> * A strong SDLC/DevOps release workflow to test and perhaps do code
>>> review. (I like "Mike's Workflow" from Essential Git, with optional
>>> modifications to make it work better for our team dynamics.) Commit early,
>>> commit often.
>>>
>>> Cheers,
>>> Jesse
>>>
>>> ----- Original message -----
>>> From: Christian Einfeldt <einfeldt at gmail.com>
>>> To: "dch.tai" <dch.tai at gmail.com>
>>> Cc: Tech <tech at lists.partimus.org>, Jesse Adelman <
>>> jesse at boldandbusted.com>
>>> Subject: Re: [Tech] Partimus & Raspberry Pi 3 Model Bs
>>> Date: Wed, 28 Sep 2016 16:24:05 -0700
>>>
>>> Oh, I get it now.  You would put the scripts up on Github.  Then I or
>>> someone else would install the scripts on the machines in the low income
>>> shelters.  The cronjob would then cause the machines to check the scripts
>>> on Github and pull the updates off of the repositories.  That sounds pretty
>>> good!  Thanks for the idea!  Can you write the scripts?  We are using
>>> Lubuntu 14.04 32 bit.  Thanks so much!
>>>
>>> On Wed, Sep 28, 2016 at 12:19 PM, Tai Kedzierski <dch.tai at gmail.com>
>>> wrote:
>>>
>>> Hello Christian
>>> So - github is a site where users can collaborate on code. Only certain
>>> people can push to a given github project/repo so you could have Partimus
>>> volunteers propose file changes, which a key account holder could approve
>>> or reject. This git project repository would serve to collaborate on
>>> improving any automation tools.
>>>
>>> My github is here for example - https://github.com/taikedz/ ; I have
>>> various projects in there that other people can see and contribute to, but
>>> I have the final say as to whether their changes actually make it into my
>>> version of the code or not.
>>>
>>> A git repository could also be hosted on a Partimus server itself, it
>>> does not have to be on github.
>>>
>>>
>>> The main thing is: we could have a way to allow Partimus technical
>>> volunteers put together and maintain the automation scripts. The deployed
>>> PCs could then pull the freshet versions of those scripts automatically,
>>> and run them as appropriate to the particular PC. Those scripts, would then
>>> be responsible for running the updates from the Ubuntu repositories, doing
>>> any additional configuration, etc. Pretty much anything.
>>>
>>>
>>>
>>> The only thing the person setting up the PC would need to do is install
>>> the cronjob - which would also be made as easy as possible via some
>>> scripting.
>>>
>>>
>>>
>>> I hope that dispels the confusion?
>>>
>>>
>>>
>>>
>>> ===
>>> Tai Kedzierski
>>> Software and Support for SMEs and Charities
>>> http://helpuse.com/
>>>
>>> Chat / VoIP: TOX: 8F52CBAC32DC7C87C0A65F0ABD8A4A
>>> E3550DFC16763D410B22054A552C81CE7E72D6D065D451
>>> <https://tox.chat/download.html>
>>>
>>>
>>> I use LibreOffice <https://www.libreoffice.org/> , a free,
>>> Freedom-respecting replacement for MS Office
>>>
>>> *Open Source Free Software is a matter of liberty, not price.*
>>> http://bit.ly/foss-why-care
>>>
>>> On 28 September 2016 at 19:14, Christian Einfeldt <einfeldt at gmail.com>
>>> wrote:
>>>
>>> Hi, thanks Tai, bottom posting...
>>>
>>> On Wed, Sep 28, 2016 at 11:08 AM, Tai Kedzierski <dch.tai at gmail.com>
>>> wrote:
>>>
>>> Github repositories are independent of the distribution repositories.
>>>
>>>
>>>
>>> Why choose Github or any repository that is independent of the Ubuntu
>>> repository?  Is that commonly done?  Is the Github repo what we refer to as
>>> a "mirror" of the Ubuntu repository?  I am obviously asking out of sheer
>>> ignorance.
>>>
>>>
>>>
>>> So long as the PC is on the cron job will run - no users need to be
>>> actively logged in
>>>
>>>
>>>
>>> Could we also do that if we pull from the Ubuntu repositories?
>>>
>>>
>>>
>>>
>>> // Sent from a mobile device. Brevity and typos may transpire
>>>
>>>
>>> On 28 Sep 2016 19:02, "Christian Einfeldt" <einfeldt at gmail.com> wrote:
>>>
>>> Hi Tai, thanks for your reply.  Bottom posting...
>>>
>>> On Wed, Sep 28, 2016 at 6:26 AM, Tai Kedzierski <dch.tai at gmail.com>
>>> wrote:
>>>
>>> Alternatively you can add a cron to pull a github repo regularly.
>>>
>>> Thanks for this info, but I am confused.  Github repo?  Not the Ubuntu
>>> repositories?
>>>
>>> It would run a script to check if ipdate was needed and if so would run
>>> it.
>>>
>>> In this way you can also push config changes and add partimus-specific
>>> tools as needed. It can also double as an initial-setup script.
>>>
>>> I could put something together for this if interested.
>>>
>>> Thanks for offering to teach me how to write a cron job to run updates.
>>> It sounds very useful.  Here's a question:  this cron job needs to run even
>>> if the SU is not logged in.  These machines sit in low income shelters, and
>>> most of the time, they are either at the login screen, or they are logged
>>> into a temporary guest session.  Will the cron job ru regardless of who is
>>> logged in?  Thanks!
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Christian Einfeldt
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Christian Einfeldt
>>>
>>>
>>
>
>
> --
> Christian Einfeldt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.partimus.org/pipermail/tech-partimus.org/attachments/20160930/a09105cf/attachment-0001.htm>


More information about the Tech mailing list