Re: [Server-devel] SoaS Blueberry compatibility

2010-03-12 Thread Martin Langhoff
On Fri, Mar 12, 2010 at 6:33 PM, Sameer Verma  wrote:
> OK. What about the "first XO that registers becomes admin" scenario?
> Does that work?

AFAIK - yes.



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] SoaS Blueberry compatibility

2010-03-12 Thread Sameer Verma
On Fri, Mar 12, 2010 at 2:02 PM, Martin Langhoff
 wrote:
> On Fri, Mar 12, 2010 at 4:44 PM, Sameer Verma  wrote:
>> Are there any major gotchas in using SoaS Blueberry with XS 0.6 ?
>
> Should be ok. Hamilton Chua knows most about this.
>
> Basic activities (ie: Chat) might even work sharing sessions from S82
> to the S86 you have on Blueberry. More involved activities (Write,
> which uses libabiword system libs) probably won't interop right across
> versions.
>

OK. What about the "first XO that registers becomes admin" scenario?
Does that work?


> In any case... let us know how it goes!
Sure.

Sameer

>
> cheers,
>
>
>
> m
> --
>  martin.langh...@gmail.com
>  mar...@laptop.org -- School Server Architect
>  - ask interesting questions
>  - don't get distracted with shiny stuff  - working code first
>  - http://wiki.laptop.org/go/User:Martinlanghoff
>
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] SoaS Blueberry compatibility

2010-03-12 Thread Martin Langhoff
On Fri, Mar 12, 2010 at 4:44 PM, Sameer Verma  wrote:
> Are there any major gotchas in using SoaS Blueberry with XS 0.6 ?

Should be ok. Hamilton Chua knows most about this.

Basic activities (ie: Chat) might even work sharing sessions from S82
to the S86 you have on Blueberry. More involved activities (Write,
which uses libabiword system libs) probably won't interop right across
versions.

In any case... let us know how it goes!

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


[Server-devel] SoaS Blueberry compatibility

2010-03-12 Thread Sameer Verma
Are there any major gotchas in using SoaS Blueberry with XS 0.6 ? I
need a Sugar environment that I can project via VGA for tomorrow's
OLPC-SF meet, so I'm planning on using SoaS Blueberry on my Thinkpad
and make it talk to my XS via an Access Point. Others will have XO-1.

sameer
-- 
Dr. Sameer Verma, Ph.D.
Associate Professor, Information Systems
Director, Campus Business Solutions
San Francisco State University
http://verma.sfsu.edu/
http://cbs.sfsu.edu/
http://is.sfsu.edu/
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


[Server-devel] [PATCHES] make xs-activation behave like it did on XS 0.5.2

2010-03-12 Thread Raul Gutierrez Segales
Martin,

We are testing extensively XS 0.6 looking forward to upgrade our current
(10) servers in production and to use it in our (26) new servers as
well. 

In doing so, we found that some of our scripts and stuff that worked
previously is having some difficulties because of some minor changes
(from the 0.5.2 days). Although we could adapt our stuff... life might
be easier if you accept the proposed patch :)

It does 2 things:

1) it makes xs-activation-import consider leases.dat a file containing
leases 

2) it logs every lease that was sent successfully. We need this because
we have a centralized database (Inventario) which let us know when was
the last time a laptop got a lease and from which School Server. 


Cheers,
Raúl



diff --git a/xs-activation-import b/xs-activation-import
index cbc89e4..39bbb80 100755
--- a/xs-activation-import
+++ b/xs-activation-import
@@ -105,7 +105,7 @@ def import_all_files(indir):
 """Read all the files in a given directory and import their lease
 information"""
 for fn in os.listdir(indir):
-if fn == 'lease.sig':
+if fn == 'lease.sig' or fn == 'leases.dat':
 try:
 import_leases(os.path.join(indir, fn))
 log("imported leases from %s" % fn)
diff --git a/xs-activation-tcpserver.py b/xs-activation-tcpserver.py
index 134e98b..40f7424 100755
--- a/xs-activation-tcpserver.py
+++ b/xs-activation-tcpserver.py
@@ -60,6 +60,7 @@ if re.match('^[A-Z0-9]{11}$', req):
 #   value within the bounds of leasetimelimit
 lease = myoat.get_lease(sn, 300)
 if lease:
+sys.stderr.write("Sending lease for '%s'\n" % sn)
 myoat.mark_served_lease(sn)
 sys.stdout.write(lease)
 exit()
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel