Re: [9fans] Setting up Mail in Acme on the Raspberry Pi.

2014-11-01 Thread Mats Olsson
Hi Anthony!

Very informative link, thanks!

Kind greetings,
Mats

2014-11-01 1:14 GMT+01:00, Anthony Martin al...@pbrane.org:
 Richard Miller 9f...@hamnavoe.com once said:
 - finally, after receiving a Google Account: sign-in attempt blocked
 email from google, followed their suggestion to:

 change your settings at
 https://www.google.com/settings/security/lesssecureapps so that your
 account is no longer protected by modern security standards.

 I guess upas/smtp is considered a less secure app.

 Embrace, extend, and ... well, you know the rest.

 http://forums.mozillazine.org/viewtopic.php?f=39t=2852231

   Anthony





Re: [9fans] Setting up Mail in Acme on the Raspberry Pi.

2014-11-01 Thread Skip Tavakkolian
embrace, extend, snuff? :)

if anyone wants to give it a try, there is enough Go code -- packages and
samples -- to make it less painful.

here's a sample [0] OAuth2-based web server (resource provider) that
works with Google (identity provider). it runs on Plan 9, but each
instance will need its own client ID and client secret from Developer
Console. the code for installed app should be similar [1] with auth tokens
coming through a redirect to localhost rather than accessing a web address.
the access token can then be forward to imap4 or smtp [2]

-Skip

[0] https://gist.github.com/9nut/1f883d857369a279f289#file-oa2srv-go
[1] https://developers.google.com/accounts/docs/OAuth2InstalledApp
[2] https://developers.google.com/gmail/xoauth2_protocol


On Fri, Oct 31, 2014 at 5:14 PM, Anthony Martin al...@pbrane.org wrote:

 Richard Miller 9f...@hamnavoe.com once said:
  - finally, after receiving a Google Account: sign-in attempt blocked
  email from google, followed their suggestion to:
 
  change your settings at
  https://www.google.com/settings/security/lesssecureapps so that your
  account is no longer protected by modern security standards.
 
  I guess upas/smtp is considered a less secure app.

 Embrace, extend, and ... well, you know the rest.

 http://forums.mozillazine.org/viewtopic.php?f=39t=2852231

   Anthony




Re: [9fans] Setting up Mail in Acme on the Raspberry Pi.

2014-11-01 Thread Charles Forsyth
On 1 November 2014 00:14, Anthony Martin al...@pbrane.org wrote:

  account is no longer protected by modern security standards.
 


And they tout OAuth2 instead? What could possibly go wrong?


Re: [9fans] Setting up Mail in Acme on the Raspberry Pi.

2014-11-01 Thread Charles Forsyth
On 27 October 2014 19:10, erik quanstrom quans...@quanstro.net wrote:

 it's not complicated.  permissions work like unix.


It's actually simpler but more powerful: groups are just users with members
instead of a distinct thing; membership of a group is checked
by the relevant file server and not the local kernel; group membership
depends on the user name at the file server, not a separate group ID or
list of current groups; and permission is allowed by the first of owner,
group and other in that order.


[9fans] A setup

2014-11-01 Thread Shane Morris
Hi 9fans,

I wish to have a 9P based sensor and actuator reporting system for an
aquaponics setup I am designing.

I was going to use a RaspberryPi running Plan 9, an A la mode for the
interface to the Arduino shield, and a Cooking Hacks Open Aquarium/ Open
Garden shield (so I would need two RaspberryPi's). On the control side of
things, I would have my MacBook access the namespace via Mac9P.

Some questions:

* Would it be better to use a RaspberryPi Plan 9 CPU image rather than a
terminal image? The only interface I will need from the RaspberryPi to the
Arduino is TTL serial
* Eventually I would create another RaspberryPi, running Linux using
9mount, to display various statistics and data about the system. I'd be
writing the interpreter for the information from the Open Aquarium/ Open
Garden shields in Python. With what I have described, all I would need to
do is open the TTL serial stream file from each of the RPis and read out
the data, am I correct?
* Does anyone have any constructive thoughts on this system setup? Please
note, I am doing this to get a handle on 9P.

Many thanks!

Shane.


Re: [9fans] A setup

2014-11-01 Thread Skip Tavakkolian
i can think of two options:

- you could go for an all Plan 9 distributed solution. this will be the
easiest to roll out and maintain in my opinion (security, administration,
maintenance, etc). i have used this setup with over a dozen 9pi cpu's (tftp
booting from a 386-based auth+fs) collecting bluetooth data (via usb) and
logging it on the fs.  it worked well; the collector is a simple rc script
that reads files served by the bluetooth fs and writes the data to the
(imported) filesystem; it all uses 9P, of course.

- you could build a 9P network on top of heterogeneous OS environments ,
but things get unnecessarily messy. you have to deal with authentication,
 log forwarding or u9fs, non-standard ways of talking to USB, or serial and
needing to build your own 9P file server for each, etc.

-Skip



On Sat, Nov 1, 2014 at 2:41 PM, Shane Morris edgecombe...@gmail.com wrote:

 Hi 9fans,

 I wish to have a 9P based sensor and actuator reporting system for an
 aquaponics setup I am designing.

 I was going to use a RaspberryPi running Plan 9, an A la mode for the
 interface to the Arduino shield, and a Cooking Hacks Open Aquarium/ Open
 Garden shield (so I would need two RaspberryPi's). On the control side of
 things, I would have my MacBook access the namespace via Mac9P.

 Some questions:

 * Would it be better to use a RaspberryPi Plan 9 CPU image rather than a
 terminal image? The only interface I will need from the RaspberryPi to the
 Arduino is TTL serial
 * Eventually I would create another RaspberryPi, running Linux using
 9mount, to display various statistics and data about the system. I'd be
 writing the interpreter for the information from the Open Aquarium/ Open
 Garden shields in Python. With what I have described, all I would need to
 do is open the TTL serial stream file from each of the RPis and read out
 the data, am I correct?
 * Does anyone have any constructive thoughts on this system setup? Please
 note, I am doing this to get a handle on 9P.

 Many thanks!

 Shane.




Re: [9fans] A setup

2014-11-01 Thread Shane Morris
I like your setup Skip...!

I was thinking of having a mostly Plan 9 distributed solution, with an
Inferno registry node in the mix (per Pete Elmores debu.gs tutorials and
9gridchan tutorials). I may end up doing the GUI on Inferno too, as it has
quite a few more primitives that'll make it look friendly. I'll have to
read Philips book on Limbo programming for that.

I was thinking of having the Mac9P/ 9mount on Linux there in case I needed
it, but yes, you're right about authentication and the like.

On Sun, Nov 2, 2014 at 11:58 AM, Skip Tavakkolian 
skip.tavakkol...@gmail.com wrote:

 i can think of two options:

 - you could go for an all Plan 9 distributed solution. this will be the
 easiest to roll out and maintain in my opinion (security, administration,
 maintenance, etc). i have used this setup with over a dozen 9pi cpu's (tftp
 booting from a 386-based auth+fs) collecting bluetooth data (via usb) and
 logging it on the fs.  it worked well; the collector is a simple rc script
 that reads files served by the bluetooth fs and writes the data to the
 (imported) filesystem; it all uses 9P, of course.

 - you could build a 9P network on top of heterogeneous OS environments ,
 but things get unnecessarily messy. you have to deal with authentication,
  log forwarding or u9fs, non-standard ways of talking to USB, or serial and
 needing to build your own 9P file server for each, etc.

 -Skip



 On Sat, Nov 1, 2014 at 2:41 PM, Shane Morris edgecombe...@gmail.com
 wrote:

 Hi 9fans,

 I wish to have a 9P based sensor and actuator reporting system for an
 aquaponics setup I am designing.

 I was going to use a RaspberryPi running Plan 9, an A la mode for the
 interface to the Arduino shield, and a Cooking Hacks Open Aquarium/ Open
 Garden shield (so I would need two RaspberryPi's). On the control side of
 things, I would have my MacBook access the namespace via Mac9P.

 Some questions:

 * Would it be better to use a RaspberryPi Plan 9 CPU image rather than a
 terminal image? The only interface I will need from the RaspberryPi to the
 Arduino is TTL serial
 * Eventually I would create another RaspberryPi, running Linux using
 9mount, to display various statistics and data about the system. I'd be
 writing the interpreter for the information from the Open Aquarium/ Open
 Garden shields in Python. With what I have described, all I would need to
 do is open the TTL serial stream file from each of the RPis and read out
 the data, am I correct?
 * Does anyone have any constructive thoughts on this system setup? Please
 note, I am doing this to get a handle on 9P.

 Many thanks!

 Shane.