Re: [Server-devel] Gadget on XS

2009-07-06 Thread Walter Bender
We plan to set up a server tomorrow at the Gardner School. Can you point to
those instructions you followed to your success?

thanks.

-walter

On Mon, Jul 6, 2009 at 2:34 PM, Dave Bauer dave.ba...@gmail.com wrote:

 Success!

 I did a new XS 0.6d2 install and added the gadget RPM. I configured it
 correctly an gadget is running and I can see gadget communicating with
 Soas-strawberry!

 I have not been able to see what is different on this install, it is 0.6d2
 instead of 0.5.2.

 Dave



 On Fri, Apr 17, 2009 at 4:57 AM, Guillaume Desmottes 
 guillaume.desmot...@collabora.co.uk wrote:

 Le mercredi 15 avril 2009 à 11:45 -0400, Dave Bauer a écrit :
 
 
  On Mon, Apr 13, 2009 at 5:48 AM, Guillaume Desmottes
  guillaume.desmot...@collabora.co.uk wrote:
  Le vendredi 03 avril 2009 à 10:40 -0400, Dave Bauer a écrit :
 
  
   AHA! gadget.config.
  
   Can we add the startup and gadget.config to the README?
 
 
  I didn't realise this file was not documented, sorry for that.
 
  I wrote some words about it in this patch:
 
 
 http://git.collabora.co.uk/?p=user/cassidy/gadget;a=commitdiff;h=711fddfc4bdfad75582af776baa3beb532dea083
 
  Could you review it please? Then I'll merge it to master.
 
 
  thanks,
 
 
 G.
 
  Tried this based on the documentation you added
  less /etc/gadget/gadget.config

 What's the domain of your ejabberd server?

 Look for something like that in ejabbed.cfg:
 %% Hostname
 {hosts, [jabber.sugarlabs.org]}.


  server_host = 'localhost'
  server_port = 5560
  domain = 'sugarlabs.org'

 In my case the domain here is then:
 domain = 'gadget.jabber.sugarlabs.org'

  password = 'X'
  roster_path = 'gadget.roster'
 
 
  ejabberd-xs.cfg
 
{5560, ejabberd_service, [
{ip, {127, 0, 0, 1}},
{access, all},
{host, gadget.localhost, [{password, X}]}]}

 and here:
  {5560, ejabberd_service, [
  {ip, {127, 0, 0, 1}},
  {access, all},
   {host, gadget.jabber.sugarlabs.org, [{password, X}]}]},






 --
 Dave Bauer
 d...@solutiongrove.com
 http://www.solutiongrove.com

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




-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Gadget on XS

2009-07-06 Thread Dave Bauer
Here is what I have so far:

XS 0.6

Install frm kickstart
Edit /etc/sysconfig/network-scripts/ifcfg-eth0-local for static IP
run /etc/sysconfig/olpc-scripts/domain_config

Make sure ejabberd is configured correctly

Edit /etc/ejabberd/ejabberd.cfg

Restart
ejabberdctl --node ejabb...@schoolserver start

Gadget

Get RPM
http://kojipkgs.fedoraproject.org/packages/gadget/0.0.3/2.fc9/noarch/gadget-0.0.3-2.fc9.noarch.rpm
More Info: http://koji.fedoraproject.org/koji/buildinfo?buildID=95961

yum install python-twisted
rpm -i gadget-0.0.3-2.fc9.noarch.rpm

Edit ejabberd.cfg to support gadget

Hostname is gadget.full hostname ie
gadget.schoolserver.xsdev.solutiongrove.com


It looks like its not using gadget but local collaboration. I turned off the
shared roster and shutdown ejabberd and I think it might be using local
collaboration instead of the server.

I need more debugging.

Dave


On Mon, Jul 6, 2009 at 3:00 PM, Walter Bender walter.ben...@gmail.comwrote:

 We plan to set up a server tomorrow at the Gardner School. Can you point to
 those instructions you followed to your success?

 thanks.

 -walter

 On Mon, Jul 6, 2009 at 2:34 PM, Dave Bauer dave.ba...@gmail.com wrote:

 Success!

 I did a new XS 0.6d2 install and added the gadget RPM. I configured it
 correctly an gadget is running and I can see gadget communicating with
 Soas-strawberry!

 I have not been able to see what is different on this install, it is 0.6d2
 instead of 0.5.2.

 Dave



 On Fri, Apr 17, 2009 at 4:57 AM, Guillaume Desmottes 
 guillaume.desmot...@collabora.co.uk wrote:

 Le mercredi 15 avril 2009 à 11:45 -0400, Dave Bauer a écrit :
 
 
  On Mon, Apr 13, 2009 at 5:48 AM, Guillaume Desmottes
  guillaume.desmot...@collabora.co.uk wrote:
  Le vendredi 03 avril 2009 à 10:40 -0400, Dave Bauer a écrit :
 
  
   AHA! gadget.config.
  
   Can we add the startup and gadget.config to the README?
 
 
  I didn't realise this file was not documented, sorry for that.
 
  I wrote some words about it in this patch:
 
 
 http://git.collabora.co.uk/?p=user/cassidy/gadget;a=commitdiff;h=711fddfc4bdfad75582af776baa3beb532dea083
 
  Could you review it please? Then I'll merge it to master.
 
 
  thanks,
 
 
 G.
 
  Tried this based on the documentation you added
  less /etc/gadget/gadget.config

 What's the domain of your ejabberd server?

 Look for something like that in ejabbed.cfg:
 %% Hostname
 {hosts, [jabber.sugarlabs.org]}.


  server_host = 'localhost'
  server_port = 5560
  domain = 'sugarlabs.org'

 In my case the domain here is then:
 domain = 'gadget.jabber.sugarlabs.org'

  password = 'X'
  roster_path = 'gadget.roster'
 
 
  ejabberd-xs.cfg
 
{5560, ejabberd_service, [
{ip, {127, 0, 0, 1}},
{access, all},
{host, gadget.localhost, [{password, X}]}]}

 and here:
  {5560, ejabberd_service, [
  {ip, {127, 0, 0, 1}},
  {access, all},
   {host, gadget.jabber.sugarlabs.org, [{password, X}]}]},






 --
 Dave Bauer
 d...@solutiongrove.com
 http://www.solutiongrove.com

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




 --
 Walter Bender
 Sugar Labs
 http://www.sugarlabs.org




-- 
Dave Bauer
d...@solutiongrove.com
http://www.solutiongrove.com
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Automatic @online@ shared roster

2009-07-06 Thread Martin Langhoff
You'll want to comment out the code. Will be in one of (under
/var/www/moodle/web, in order of likelyhood)

 - auth/olpcxs/auth.php (look for a 'cron' function)
 - local/lib.php (look for a cron function...)
 - admin/cron.php

Sorry for the vagueness. Away from the relevant sourcecode ATM.




m


On Tue, Jul 7, 2009 at 6:14 AM, Dave Bauerd...@solutiongrove.com wrote:
 Can I disable this for some testing with Gadget? I finally got gadget to
 install and run on an XS 0.6 install but no matter how I remove the Online
 shared roster it comes back by itself. I assume some process in moodle
 according to the description, (created from moodle) is recreating it.

 This works great on initial install it just works, but for testing is gadget
 works, I am not sure if the shared roster or gadget is being used.

 Thanks
 Dave


 --
 Dave Bauer
 d...@solutiongrove.com
 http://www.solutiongrove.com

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





-- 
 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] Gadget on XS

2009-07-06 Thread Martin Langhoff
On Tue, Jul 7, 2009 at 5:00 AM, Walter Benderwalter.ben...@gmail.com wrote:
 We plan to set up a server tomorrow at the Gardner School. Can you point to
 those instructions you followed to your success?

The question is, IMO: what does gadget do better? The best I
understand is that when there are many XOs it can show a random subset
in your network view. That is all that is _implemented_ at the moment.
It may show promise but what we have is this.

And I don't find a random subset very compelling. The patches I've
done for ejabberd + moodle make a lot more sense, IMHO. And scale a
ton more because Moodle feeds a bit of data to ejabberd and gets the
hell out of the way. It's not clear to me how ejabberd+Gadget
(erlang+python) scale in terms of memory, resource contention and CPU.

Frankly, I'd love to get rid of my ejabberd patches. Right now, I'm
doubtful that Gadget will satisfy the Sugar team's expectations.

Unless Gadget has moved forward considerable in the last 3 months, or
if it's generally just more advanced than I think it is.

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] Gadget on XS

2009-07-06 Thread Dave Bauer
On Mon, Jul 6, 2009 at 6:00 PM, Martin Langhoff
martin.langh...@gmail.comwrote:

 On Tue, Jul 7, 2009 at 5:00 AM, Walter Benderwalter.ben...@gmail.com
 wrote:
  We plan to set up a server tomorrow at the Gardner School. Can you point
 to
  those instructions you followed to your success?

 The question is, IMO: what does gadget do better? The best I
 understand is that when there are many XOs it can show a random subset
 in your network view. That is all that is _implemented_ at the moment.
 It may show promise but what we have is this.

 And I don't find a random subset very compelling. The patches I've
 done for ejabberd + moodle make a lot more sense, IMHO. And scale a
 ton more because Moodle feeds a bit of data to ejabberd and gets the
 hell out of the way. It's not clear to me how ejabberd+Gadget
 (erlang+python) scale in terms of memory, resource contention and CPU.

 Frankly, I'd love to get rid of my ejabberd patches. Right now, I'm
 doubtful that Gadget will satisfy the Sugar team's expectations.

 Unless Gadget has moved forward considerable in the last 3 months, or
 if it's generally just more advanced than I think it is.


It is my understanding it somehow uses less network resources, but I don't
have that much information.

For my specific application, I will be using the Moodle/ejabberd
combination, but as someone asked, I figured I would try it out and see if
gadget worked. I can at least report I was able to configure it

As noone is working on gadget right now, and I don't have any information on
how it works or where one would go to get that information, or how to use it
to improve collaboration, I can't do much with it.

Dave



 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




-- 
Dave Bauer
d...@solutiongrove.com
http://www.solutiongrove.com
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Automatic @online@ shared roster

2009-07-06 Thread Dave Bauer
Thanks, I figured it must be some cron thing since it kept coming back every
couple of minutes. I can track it down from there.

I am just doing this to try to understand what gadget is doing. Since XS
doesn't use gadget in its specific config, it is just experimental for my
own education.

Thanks
Dave

On Mon, Jul 6, 2009 at 5:53 PM, Martin Langhoff
martin.langh...@gmail.comwrote:

 You'll want to comment out the code. Will be in one of (under
 /var/www/moodle/web, in order of likelyhood)

  - auth/olpcxs/auth.php (look for a 'cron' function)
  - local/lib.php (look for a cron function...)
  - admin/cron.php

 Sorry for the vagueness. Away from the relevant sourcecode ATM.




 m


 On Tue, Jul 7, 2009 at 6:14 AM, Dave Bauerd...@solutiongrove.com wrote:
  Can I disable this for some testing with Gadget? I finally got gadget to
  install and run on an XS 0.6 install but no matter how I remove the
 Online
  shared roster it comes back by itself. I assume some process in moodle
  according to the description, (created from moodle) is recreating it.
 
  This works great on initial install it just works, but for testing is
 gadget
  works, I am not sure if the shared roster or gadget is being used.
 
  Thanks
  Dave
 
 
  --
  Dave Bauer
  d...@solutiongrove.com
  http://www.solutiongrove.com
 
  ___
  Server-devel mailing list
  Server-devel@lists.laptop.org
  http://lists.laptop.org/listinfo/server-devel
 
 



 --
  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




-- 
Dave Bauer
d...@solutiongrove.com
http://www.solutiongrove.com
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel