Avatar

Harper Reed's Blog

OLPC Chicago Jabber Server

· 464 words · 3 minutes

Please note: This post was written some time ago (16 years ago). My perspectives, knowledge, and opinions may have evolved significantly since then. While the content might still offer valuable insights, I encourage readers to consider it in the context of its publication date.

Today I spent a minute setting up a Ejabberd Server for the OLPC Chicago group. This will allow all of us OLPC XO hackers to be on the same “mesh.” To get started using the jabber server with your XO follow these simple steps:

  1. Boot the XO
  2. Get connected to the internet
  3. Open a terminal (activity or ctrl-alt-f1)
  4. in the shell, type: su -
  5. then type: sugar-control-panel -s jabber jabber.olpchacks.org
  6. then press ctrl-alt-erase to restart sugar/X
Once this is done, you should start to see other Chicago XOs. You will know you are successful if you see me (Harper) in the community view. Please let me know if you are able to get on, or if you are having trouble.

Getting the server going was pretty simple. I was able to jump right in thanks to this awesome write up by Morgan Collett of Collabora. The install goes like this: you get your debian install primed, download the source, patch the source, compile the source, install the compiled binaries, edit the config, start the server and edit the server roster config. Then BAM you have a ejabberd server rocking and ready to go with your XO. The only caveat i ran into was that the config file from the ejabberd wiki page details using IPV6 because eventually all the laptops will be using IPV6 to get around. However, the server i used was balking at this - and kept crashing ejabberd with the MOST verbose errors ever (I.E. no error). When i finally figured out what the problem was, it was smooth sailing.

One thing to note - ejabberd is seriously business. Erlang is interesting to work with. I was lost for about 2 hours before I gave up trying to understand what was going on and just dived in. Then it didn’t make sense, but was working and I was happy.

It is really neat how the XO uses jabber to group people together. I really think that jabber is the future and seeing something use XMPP so elegantly is quite inspiring. I found one of the coolest parts of the implementation is how the rosters are forced to see everyone online - which i imagine is what powers the neighborhood view on the XO. This makes me wonder if this could be tweaked to create a more interactive or social networking aspect to the XO neighborhood.

One thing I would like to know about is how the XO uses the Multi User Chat features of the jabber server. I am not sure if the Chat Activity uses MUC to work, but it would be cool if you could chat with XO users with a regular user account on the jabber server by joining a specific room. I will have to research that.

#olpc #jabber #technology #xmpp #chat