Re: How to use Salut?

2008-04-17 Thread Morgan Collett
On Wed, Apr 16, 2008 at 5:41 PM, Dafydd Harries
<[EMAIL PROTECTED]> wrote:
>  If there is an internet connection, the laptop will only try using Salut 
> after
>  it has tried to connect to the Jabber server. Perhaps connecting to the 
> Jabber
>  server is taking a long time to time out, so it's not trying Salut?

If there is an internet connection (address not starting with 169.254)
on msh0, *then* it is assumed you are connected to a school server via
the mesh, and *then* salut is not started while it tries to connect to
the jabber server.

If you're on a regular access point, salut will start immediately.

Morgan
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: How to use Salut?

2008-04-16 Thread Dafydd Harries
Ar 16/04/2008 am 09:33, ysgrifennodd James Simmons:
> Morgan and Guillaume,
> 
> I tried using avahi-browse -a on openSUSE 10.2 last night and it told me 
> that the daemon was not running.  I checked the xinted panel in YAST and 
> there was no entry for activating avahi, even though I installed avahi 
> as part of the SUSE distribution.  In any case, if it isn't running that 
> would explain my Salut issue.  I'll have to study up on Avahi and 
> resolve this.  In the meantime Avahi *is* working on Xubuntu, and the 
> Collabora servers were back up last night.  I got some tests of View 
> Slides *almost* working last night.  I noticed it took a *long* time to 
> copy a 15 mb or so file, and my theory is that all these debug messages 
> are slowing it down.  If you can think of a better explanation I'd love 
> to hear it.

Salut should work on the laptops regardless of whether Avahi works on your
OpenSuSE machine.

If you switch to a terminal on the XO, you should be able to run the
avahi-browse command that Morgan suggested there.

-- 
Dafydd
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: How to use Salut?

2008-04-16 Thread Dafydd Harries
Ar 15/04/2008 am 10:18, ysgrifennodd James Simmons:
> Morgan,
> 
> Thanks for the information on ejabberd.  I may try that this weekend.  I 
> am still puzzled by salut, though.  I am using sugar-jhbuild on openSUSE 
> 10.2 and everything seemed to compile OK, but running two instances of 
> Sugar does not seem to support sharing when the Collabora server is 
> down.  They don't see each other in the Neighborhood view.  So it looks 
> like Salut isn't doing its job.
> 
> I know you have a lot on your plate, but information on diagnosing Salut 
> problems would be a good addition to the Wiki.
> 
> Speaking of the Wiki, I did a search on Salut and the page I found gave 
> the impression that Salut only works when there is NO internet 
> connectivity.  Since my development machines are always connected to the 
> Internet this could be why I can't share between instances.  The wiki 
> page I found is at: 
> http://wiki.laptop.org/go/Test_Network_Configuration#Salut

If there is an internet connection, the laptop will only try using Salut after
it has tried to connect to the Jabber server. Perhaps connecting to the Jabber
server is taking a long time to time out, so it's not trying Salut?

-- 
Dafydd
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: How to use Salut?

2008-04-16 Thread James Simmons

Morgan and Guillaume,

I tried using avahi-browse -a on openSUSE 10.2 last night and it told me 
that the daemon was not running.  I checked the xinted panel in YAST and 
there was no entry for activating avahi, even though I installed avahi 
as part of the SUSE distribution.  In any case, if it isn't running that 
would explain my Salut issue.  I'll have to study up on Avahi and 
resolve this.  In the meantime Avahi *is* working on Xubuntu, and the 
Collabora servers were back up last night.  I got some tests of View 
Slides *almost* working last night.  I noticed it took a *long* time to 
copy a 15 mb or so file, and my theory is that all these debug messages 
are slowing it down.  If you can think of a better explanation I'd love 
to hear it.


Thanks again for your help.

James Simmons


Guillaume Desmottes wrote:


Le mardi 15 avril 2008 à 20:32 +0200, Morgan Collett a écrit :
 


A very quick test for which one is running is: "ps ax |grep telepathy"
- if it shows telepathy-gabble, you're on a jabber server. If it shows
telepathy-salut, you're on salut. If it shows neither, then something
made salut crash - please log a ticket and attach logs if you have
them enabled[0]. If it shows both gabble and salut, also log a ticket
against presence-service with presenceservice.log.

   



... and the needed footnote :)

[0] http://wiki.laptop.org/go/Telepathy-debug


 



___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: How to use Salut?

2008-04-16 Thread Guillaume Desmottes
Le mardi 15 avril 2008 à 20:32 +0200, Morgan Collett a écrit :
> A very quick test for which one is running is: "ps ax |grep telepathy"
> - if it shows telepathy-gabble, you're on a jabber server. If it shows
> telepathy-salut, you're on salut. If it shows neither, then something
> made salut crash - please log a ticket and attach logs if you have
> them enabled[0]. If it shows both gabble and salut, also log a ticket
> against presence-service with presenceservice.log.
> 

... and the needed footnote :)

[0] http://wiki.laptop.org/go/Telepathy-debug


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: How to use Salut?

2008-04-15 Thread Morgan Collett
Hi James

On Tue, Apr 15, 2008 at 5:18 PM, James Simmons
<[EMAIL PROTECTED]> wrote:
>  Thanks for the information on ejabberd.  I may try that this weekend.  I am
> still puzzled by salut, though.  I am using sugar-jhbuild on openSUSE 10.2
> and everything seemed to compile OK, but running two instances of Sugar does
> not seem to support sharing when the Collabora server is down.  They don't
> see each other in the Neighborhood view.  So it looks like Salut isn't doing
> its job.

Salut uses avahi, so you can see what salut sees if you run
"avahi-discover" (on Ubuntu, you need package avahi-discover
installed). (Or you can use avahi-browse for a text-mode equivalent -
I think both are available on the XO.)

Running avahi-discover on my laptop while I have a jhbuild instance
running, shows "iChat Presence" > "[EMAIL PROTECTED]" which is the salut
instance on my laptop. Clicking on that entry shows the properties of
the salut buddym including "TXT nick ="

If you share an activity, you will see it appear in avahi-discover as
"_olpc-activity1._udp" and also appear in "_clique._udp".

If you are not seeing any of this on the openSUSE machine, then
perhaps the setup instructions for that distro are missing some
dependency or something. Let us know.

>  I know you have a lot on your plate, but information on diagnosing Salut
> problems would be a good addition to the Wiki.

I'll add the above avahi stuff to the [[Telepathy Salut]] page and/or
[[Telepathy debugging]]. Our Salut documentation is particularly
sparse - Daf and I will work on that.

>  Speaking of the Wiki, I did a search on Salut and the page I found gave the
> impression that Salut only works when there is NO internet connectivity.
> Since my development machines are always connected to the Internet this
> could be why I can't share between instances.  The wiki page I found is at:
> http://wiki.laptop.org/go/Test_Network_Configuration#Salut

This is documented at
http://wiki.laptop.org/go/Presence_Service#Active_connection - I'll
try to make that more findable.

Basically Gabble will run when you have internet access (a valid IPv4
address) and can connect to the configured jabber server. If it fails
to connect, or disconnects, or doesn't get an IP address, Salut runs.

A very quick test for which one is running is: "ps ax |grep telepathy"
- if it shows telepathy-gabble, you're on a jabber server. If it shows
telepathy-salut, you're on salut. If it shows neither, then something
made salut crash - please log a ticket and attach logs if you have
them enabled[0]. If it shows both gabble and salut, also log a ticket
against presence-service with presenceservice.log.

Regards
Morgan
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


How to use Salut?

2008-04-15 Thread James Simmons
Morgan,

Thanks for the information on ejabberd.  I may try that this weekend.  I 
am still puzzled by salut, though.  I am using sugar-jhbuild on openSUSE 
10.2 and everything seemed to compile OK, but running two instances of 
Sugar does not seem to support sharing when the Collabora server is 
down.  They don't see each other in the Neighborhood view.  So it looks 
like Salut isn't doing its job.

I know you have a lot on your plate, but information on diagnosing Salut 
problems would be a good addition to the Wiki.

Speaking of the Wiki, I did a search on Salut and the page I found gave 
the impression that Salut only works when there is NO internet 
connectivity.  Since my development machines are always connected to the 
Internet this could be why I can't share between instances.  The wiki 
page I found is at: 
http://wiki.laptop.org/go/Test_Network_Configuration#Salut

Thanks,

James Simmons


Morgan Collett wrote:

>As Tomeu pointed out you can use salut and it is the fall-back for
>when you cannot connect to a Jabber server.
>
>If you want to run your own server, I have posted instructions on the
>wiki on installing ejabberd with the required patches and
>configuration at http://wiki.laptop.org/go/Installing_ejabberd
>
>(The [[Jabber]] page links to [[Run your own jabber server]] which in
>turn links to [[Installing ejabberd]] so it should be discoverable if
>you know it's there...)
>  
>


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel