Re: CL1B power distribution

2009-04-25 Thread John Watlington

On Apr 25, 2009, at 1:06 AM, Albert Cahalan wrote:

 John Watlington writes:

 - The SD slot and USB ports may be powered in suspend
  This is just in case some SD cards or USB devices don't handle
 being suspended
  aggressively.   We will support laptop wakeup on interrupt  
 from any
  of these ports (SD or USB).   Under software control they may
 also be powered
  down during suspend.

 There is value in making this per-port for the USB.

Funny, there was just a discussion of this on olpc-devel IRC.
There are several reasons not to use individual port switches:
- cost
- each USB port would then be limited to 2.5W (or 1.6W), instead
of the 5W possible now.
- cost
- cost

 - The audio codec remains partially powered in suspend
  This is in order to support wakeup on jack insertion.  The  
 codec
  may be placed in a very low power state during suspend.

 I would have expected power to be optional. The software doesn't
 always need to use this component during the run state

It can be placed in the same low power state during run (when
not used) as during suspend...

 Additional changes from Gen 1 include the ability to both measure
 DC input current and VIN voltage, as well as EC control over the
 current drawn from the DC input. The intent was to better support
 charging directly from solar panels.

 I hope that this will be available to activities like Measure.

Interesting point.  That would require extending the EC API, as they  
go to an A/D
not directly addressable by the main processor.

 Ideally updates could be frequent enough to pick up a waveform
 from an unrectified power supply. (spare audio channel?)


Cheers,
wad

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


Re: 3D engine uses in a no-nonsense GUI (was: XO Gen 1.5)

2009-04-25 Thread Albert Cahalan
Hal Murray writes:

 I've always thought of slide into view as annoying.  I have to
 wait around for the thing I want to look at to finish dancing.

Me too, which is why I specified fast and rapid. Animations
commonly suffer from various problems:

a. You really do have to wait, because the software is terribly
   slow, and the animation was put there to distract you.

b. The animation itself has bad performance. This is where the 3D
   engine can make a huge difference.

c. The animation is purposely slow because the UI designer fell in
   love with it and he wants you to love it too. You're supposed to
   sit there and marvel at what a wonderful animation it is.

Sometimes multiple reasons apply. Sugar activities take way too long
to start if they are written in Python, so we got a throbbing icon
for activity startup. This itself is so slow that non-Python activities
became much slower. (including Tux Paint, which is NOT lightweight)

A decent rule of thumb: if you have time to really focus on the
animation, then it is too slow. You should barely even see it as
it runs. It should only be there to direct your vision a bit,
giving you a feel for where things went or came from.

Without a 3D engine, it's not reasonable to expect such performance.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: CL1B power distribution

2009-04-25 Thread Richard A. Smith
 Additional changes from Gen 1 include the ability to both measure
 DC input current and VIN voltage, as well as EC control over the
 current drawn from the DC input. The intent was to better support
 charging directly from solar panels.
 I hope that this will be available to activities like Measure.
 
 Interesting point.  That would require extending the EC API, as they  
 go to an A/D
 not directly addressable by the main processor.
 
 Ideally updates could be frequent enough to pick up a waveform
 from an unrectified power supply. (spare audio channel?)

Don't have much in the way of EC cycles available.  Don't have much EC 
ram left to cache values either.

I can make the readings available via EC commands but each command takes 
a few ms to complete and back to back commands will have a few ms of 
delay as well.  I'm guessing you might be able to get a 20ms update rate.

The best method would be to leave indexed IO enable and tell the EC to 
quit reading from the ports.  Then you could use indexed IO to read the 
AD registers directly.  I'm not sure what update speed you can get that 
way but it should be pretty fast.

-- 
Richard Smith  rich...@laptop.org
One Laptop Per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: CL1B power distribution

2009-04-25 Thread pgf
smith wrote:
   Additional changes from Gen 1 include the ability to both measure
   DC input current and VIN voltage, as well as EC control over the
   current drawn from the DC input. The intent was to better support
   charging directly from solar panels.
   I hope that this will be available to activities like Measure.
   
   Interesting point.  That would require extending the EC API, as they  
   go to an A/D
   not directly addressable by the main processor.
   
   Ideally updates could be frequent enough to pick up a waveform
   from an unrectified power supply. (spare audio channel?)
  
  Don't have much in the way of EC cycles available.  Don't have much EC 
  ram left to cache values either.
  
  I can make the readings available via EC commands but each command takes 
  a few ms to complete and back to back commands will have a few ms of 
  delay as well.  I'm guessing you might be able to get a 20ms update rate.
  
  The best method would be to leave indexed IO enable and tell the EC to 
  quit reading from the ports.  Then you could use indexed IO to read the 
  AD registers directly.  I'm not sure what update speed you can get that 
  way but it should be pretty fast.

i would think Measure would be more interested in (short-term) averages
of voltage and current than in seeing power supply noise.

(will an XO even run properly from an unrectified, or even
unfiltered, supply?)

paul
=-
 paul fox, p...@laptop.org
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: CL1B power distribution

2009-04-25 Thread Benjamin M. Schwartz
Richard A. Smith wrote:
 Ideally updates could be frequent enough to pick up a waveform
 from an unrectified power supply. (spare audio channel?)
 
 Don't have much in the way of EC cycles available.  Don't have much EC 
 ram left to cache values either.
 
 I can make the readings available via EC commands but each command takes 
 a few ms to complete and back to back commands will have a few ms of 
 delay as well.  I'm guessing you might be able to get a 20ms update rate.

That's not fast enough for much interesting signal processing, but it's
more than fast enough to do power metering.  Power metering while on
external power is something I've specifically been hoping for.

(So please consider adding this to the end of your very long EC TODO.)

--Ben



signature.asc
Description: OpenPGP digital signature
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: CL1B power distribution

2009-04-25 Thread Nate Ridderman
Any chance of getting schematics and PCB files this time around? I doubt you
renegotiated your contract with Quanta to allow for this, but it doesn't
hurt to ask.

Thanks,
Nate


On Sat, Apr 25, 2009 at 12:23 AM, John Watlington w...@laptop.org wrote:


 BTW, Gen 1.5 is the OLPC codename for the next revision of the XO.

 The official Quanta model number for the XO was CL1.
 The version of the XO with a new touchpad is CL1A.
 The Quanta model number for Gen 1.5 is CL1B.

 Cheers,
 wad

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

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


Re: CL1B power distribution

2009-04-25 Thread Nate Ridderman
On Sat, Apr 25, 2009 at 10:05 AM, p...@laptop.org wrote:

 smith wrote:
Additional changes from Gen 1 include the ability to both measure
DC input current and VIN voltage, as well as EC control over the
current drawn from the DC input. The intent was to better support
charging directly from solar panels.
I hope that this will be available to activities like Measure.

 (will an XO even run properly from an unrectified, or even
 unfiltered, supply?)


Sure, if the right circuit is in place. A solar panel is rectified, which
makes things easier, but the power and voltage output is variable. It sounds
like Gen 1.5 will have charging FETs that you can gradually turn on/off to
limit the current flow through a path. Therefore, you can shut it off when
the charger isn't producing enough voltage or too much voltage for the
battery. It's hard to know exactly what's going on without seeing a
schematic and/or datasheet of the parts involved.

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


Re: CL1B power distribution

2009-04-25 Thread Richard A. Smith
p...@laptop.org wrote:

 i would think Measure would be more interested in (short-term) averages
 of voltage and current than in seeing power supply noise.

 (will an XO even run properly from an unrectified, or even
 unfiltered, supply?)

Depends.  For gen 1.5 we have opened up the front end voltage 
specification a bit.  10.5 - 25V so anything bouncing around in that 
range should work.

-- 
Richard Smith  rich...@laptop.org
One Laptop Per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: CL1B power distribution

2009-04-25 Thread Richard A. Smith
Benjamin M. Schwartz wrote:
 Richard A. Smith wrote:

 That's not fast enough for much interesting signal processing, but it's
 more than fast enough to do power metering.  Power metering while on
 external power is something I've specifically been hoping for.
 
 (So please consider adding this to the end of your very long EC TODO.)

Power metering is not optional. Its one of the first things I have to 
make work.

-- 
Richard Smith  rich...@laptop.org
One Laptop Per Child
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: CL1B power distribution

2009-04-25 Thread pgf
wad wrote:
  
  This is the current power distribution diagram for A-phase CL1B,  
  identifying what we can power, when, and how.

wad -- 

a few questions -- for some i can guess at the answer, but better
to ask and be sure:

- if there are no USB devices inserted, is there an advantage
to powering down USB?  i.e., does it affect anything more
than the devices themselves?

- same question for SD?

- the keyboard/touchpad are now optionally powered in suspend
and run.  do you have a specific use case in mind?  the
only case i can think of is turning them off if we're
suspended and don't want their wakeups anyway.

- will we have (approximate) numbers at some point for how
much power any given subsystem takes?  (e.g., for the
above case, how much would powering down the kbd/tpad
save?  this will inform decisions like how much effort
is it worth?)

- i can't believe i'm asking this, but is it feasible to only
power half the ram?  would that help the power budget? 
i have no idea how that feature would be put to use.
or, perhaps more manageable:  half the flash?  if half
were unmounted when not in use, for instance.

- comparing with http://wiki.laptop.org/images/1/1c/Tinderbox_C2.png
(which i'm assuming is correct for XO-1), i see the audio
amp could be powered down before.  is that integral to the
HD Audio Codec box now?

- also comparing with that page, the RTC battery charger is
always on now, and wasn't before.  from our conversation
on IRC, it sounds like the circuit hasn't changed -- is that
right?  (and that it's less a charge circuit than an
anti-discharge circuit.)

paul
=-
 paul fox, p...@laptop.org
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: CL1B power distribution

2009-04-25 Thread James Cameron
Reviewed the diagram carefully.  The only issue I spotted was that the
+5VSUS line into the RTC charger comes from a yellow switching voltage
regulator, despite the RTC charger coloured green.  Either it has to
come from somewhere else, or the RTC charger has to be yellow, or the
switching regulator has to be green.  ;-)

On the individual USB switching, can this be done between the USB chip
and the socket?  Being able to switch external devices would have
significant educational benefit in electronics teaching.  Perhaps only
switch two of the three, leaving the full capability on one.

-- 
James Cameronmailto:qu...@us.netrek.org http://quozl.netrek.org/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: CL1B power distribution

2009-04-25 Thread John Watlington

On Apr 25, 2009, at 7:29 PM, p...@laptop.org wrote:

 wad wrote:

 This is the current power distribution diagram for A-phase CL1B,
 identifying what we can power, when, and how.

 wad --

 a few questions -- for some i can guess at the answer, but better
 to ask and be sure:

 - if there are no USB devices inserted, is there an advantage
   to powering down USB?  i.e., does it affect anything more
   than the devices themselves?
I think most USB ports these days don't actually turn their drivers
on until they detect something inserted.   We can't really power
down the controller due to Via's requirements, but it should be in
the low single mW range unless it is being used.

 - same question for SD?
In the case of SD, a CMOS implementation shouldn't draw power
unless it is being used.

 - the keyboard/touchpad are now optionally powered in suspend
   and run.  do you have a specific use case in mind?  the
   only case i can think of is turning them off if we're
   suspended and don't want their wakeups anyway.
For example, there is no need to power the keyboard and touchpad in S3
with the lid closed or in ebook mode.

 - will we have (approximate) numbers at some point for how
   much power any given subsystem takes?  (e.g., for the
   above case, how much would powering down the kbd/tpad
   save?  this will inform decisions like how much effort
   is it worth?)
I have estimates for the new sections, and we have numbers from
Tinderbox for the portions that aren't changing (keyboard, touchpad,
DCON, display).

 - i can't believe i'm asking this, but is it feasible to only
   power half the ram?  would that help the power budget?
We have several options to test in A-phase with regards to obtaining
lower power from the RAM (lower speed, lower voltage) but are
waiting to see where we stand.

   i have no idea how that feature would be put to use.
   or, perhaps more manageable:  half the flash?  if half
   were unmounted when not in use, for instance.
Difficult to do, as a good flash controller stripes across both devices
to equalize wear and improve performance.   The 4GB machine will
just have a single NAND Flash chip.

 - comparing with http://wiki.laptop.org/images/1/1c/ 
 Tinderbox_C2.png
   (which i'm assuming is correct for XO-1), i see the audio
   amp could be powered down before.  is that integral to the
   HD Audio Codec box now?
The amp can still be powered down (that is the red part of the
HD audio codec).  The remainder of the codec remains powered
in suspend to implement wake-on-jack insert (although I have a
populate option to turn off the codec power in suspend if it isn't
low enough power --- the specs say it will be.)

 - also comparing with that page, the RTC battery charger is
   always on now, and wasn't before.  from our conversation
   on IRC, it sounds like the circuit hasn't changed -- is that
   right?  (and that it's less a charge circuit than an
   anti-discharge circuit.)
Bonus points for pointing out an error in the CL1B diagram ---
the RTC battery charger isn't powered outside of suspend and run.

wad

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


Re: CL1B power distribution

2009-04-25 Thread John Watlington

On Apr 25, 2009, at 10:09 PM, James Cameron wrote:

 Reviewed the diagram carefully.  The only issue I spotted was that the
 +5VSUS line into the RTC charger comes from a yellow switching voltage
 regulator, despite the RTC charger coloured green.  Either it has to
 come from somewhere else, or the RTC charger has to be yellow, or the
 switching regulator has to be green.  ;-)

This is a mistake in the colouring of the RTC charger block -- it  
should be yellow.

 On the individual USB switching, can this be done between the USB chip
 and the socket?  Being able to switch external devices would have
 significant educational benefit in electronics teaching.  Perhaps only
 switch two of the three, leaving the full capability on one.

Quick straw poll on how many people think it is useful enough have  
individual
control over the power supplied to each connector to raise the cost  
of the laptop
by $0.15 ?

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


Re: CL1B power distribution

2009-04-25 Thread Benjamin M. Schwartz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

John Watlington wrote:
 Quick straw poll on how many people think it is useful enough have  
 individual
 control over the power supplied to each connector to raise the cost  
 of the laptop
 by $0.15 ?

Turning off a single port to which nothing is connected saves no power,
right?  I don't see the appeal.  Maybe for deactivating power to passive
devices (e.g. usb sticks) during suspend, but such devices are cheap to
power anyway, and may not shut down cleanly if their power supply is
killed.  Moreover, I am persuaded by your argument that the software is
unlikely to get smart enough to use it.

Also, these switches are actually transistors, with some leakage current
and some effective resistance, right?  So it seems like we pay for the
flexibility of these switches with a small increase in power requirements.

- --Ben
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.10 (GNU/Linux)

iEYEARECAAYFAknz5a4ACgkQUJT6e6HFtqRgTgCdHb+0t19AEY2VaHOaVYVqC6Fs
Tr0AmwVwMtgWTTgzEPys2DpPlksdTv32
=pcyb
-END PGP SIGNATURE-
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: CL1B power distribution

2009-04-25 Thread John Watlington

On Apr 26, 2009, at 12:40 AM, Benjamin M. Schwartz wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 John Watlington wrote:
 Quick straw poll on how many people think it is useful enough have
 individual
 control over the power supplied to each connector to raise the cost
 of the laptop
 by $0.15 ?

 Turning off a single port to which nothing is connected saves no  
 power,
 right?

Correct.

 I don't see the appeal.  Maybe for deactivating power to passive
 devices (e.g. usb sticks) during suspend, but such devices are  
 cheap to
 power anyway, and may not shut down cleanly if their power supply is
 killed.  Moreover, I am persuaded by your argument that the  
 software is
 unlikely to get smart enough to use it.

 Also, these switches are actually transistors, with some leakage  
 current
 and some effective resistance, right?

The leakage current is negligible (sub uA -- especially with nothing  
connected...)

With a little design, you can get effective resistances around 22  
milliohms
for the price I mentioned (OK, maybe $0.18).   This yields a loss of  
6 mW (0.25%)
at full rated power (0.5 A), and 22 mW (0.44%) at our rated power (1A  
through any
connector).

 So it seems like we pay for the flexibility of these switches with  
 a small
 increase in power requirements.

The price is the dominant factor.

wad

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


[Server-devel] Hoping for assistance with XS 0.5 configuration difficulties (ejabberd)

2009-04-25 Thread Daniel Bennett
Hi all,
I am working on an unofficial 100 XO pilot project in Jimeta, Nigeria until
the end of the month and I've run into a wall configuring the school server.
 I outlined it on IRC before bringing it here.  Because of the time
difference and inconsistent internet connection, email is probably a better
medium for assistance.

I hope that someone can help.  I really need to move through this issue as
quickly as possible if we're going to have a working school server at this
deployment before Ieave town next Saturday morning.  There is much left to
do besides tackling the XS.

Thanks!
-Dan

dbennetthi all, I'm working on a deployment in Nigeria this afternoon and we
are having a tough time getting the XS jabber server web admin interface to
work16:05dbennettwe have managed to get it to prompt for a user/pass combo
which seems to require u...@node.domain which in my case is
d...@schoolserver.lccnyola.org16:06dbennettif we get any part of that or the
password in correct, it just empties both fields of the prompt and waits for
new info. However, if we enter u...@fqdn as I showed above and enter the
correct password then it accepts our input and the prompt disappears.
However, all it returns is a 401 Unauthorized page16:11dbennettWe've added
the: {acl admin {user, dan, schoolserver.lccnyola.org}}. line to the
access control list in /etc/ejabberd/ejabberd.cfg16:11dbennettWe are running
XS 0.516:13dbennettWe are able to connect to the server with multiple users
via jabber clients like pidgin and psi. However, we can't seem to get admin
rights to stick to any of the users. I also can't figure out if there are
multiple types of admin rights (rights to http://server/admin/) vs admin
rights within a jabber client (show all online users, etc)16:18 *** jg
joined #olpc-devel http://www.mibbit.com/chat/#16:18dbennettIf anyone can
lend any insight it would be much appreciated. This is my 3rd day working on
this issue. I'm learning more bits about ejabberd, but i've only got a week
left before coming back to the states and would like to have my local server
admin running a working school server before I leave. 16:52dbennettIf you
reply to this later in the day and I don't reply to your reply, PLEASE send
your replies to the email based version of this request sent to
server-devel@lists.laptop.org as I have only infrequent internet access, and
no ability to use an external IRC client from my present location. Thanks!
-Dan
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Hoping for assistance with XS 0.5 configuration difficulties (ejabberd)

2009-04-25 Thread Holt
 dbennett hi all, I'm working on a deployment in Nigeria this 
afternoon and we are having a tough time getting the XS jabber server 
web admin interface to work
16:05 dbennett we have managed to get it to prompt for a user/pass 
combo which seems to require u...@node.domain which in my case is 
d...@schoolserver.lccnyola.org
16:06 dbennett if we get any part of that or the password in correct, 
it just empties both fields of the prompt and waits for new info. 
However, if we enter u...@fqdn as I showed above and enter the correct 
password then it accepts our input and the prompt disappears. However, 
all it returns is a 401 Unauthorized page
16:11 dbennett We've added the: {acl admin {user, dan, 
schoolserver.lccnyola.org http://schoolserver.lccnyola.org}}. line 
to the access control list in /etc/ejabberd/ejabberd.cfg

16:11 dbennett We are running XS 0.5
16:13 dbennett We are able to connect to the server with multiple 
users via jabber clients like pidgin and psi. However, we can't seem to 
get admin rights to stick to any of the users. I also can't figure out 
if there are multiple types of admin rights (rights to 
http://server/admin/) vs admin rights within a jabber client (show all 
online users, etc)

16:18 *** jg joined #olpc-devel http://www.mibbit.com/chat/#
16:18 dbennett If anyone can lend any insight it would be much 
appreciated. This is my 3rd day working on this issue. I'm learning more 
bits about ejabberd, but i've only got a week left before coming back to 
the states and would like to have my local server admin running a 
working school server before I leave.
16:52 dbennett If you reply to this later in the day and I don't reply 
to your reply, PLEASE send your replies to the email based version of 
this request sent to server-devel@lists.laptop.org 
mailto:server-devel@lists.laptop.org as I have only infrequent 
internet access, and no ability to use an external IRC client from my 
present location. Thanks! -Dan



Subject: 	[Server-devel] Hoping for assistance with XS 0.5 configuration 
difficulties (ejabberd)

Date:   Sat, 25 Apr 2009 16:57:38 +0100
From:   Daniel Bennett dant...@gmail.com
To: server-devel@lists.laptop.org


Hi all, 

I am working on an unofficial 100 XO pilot project in Jimeta, Nigeria 
until the end of the month and I've run into a wall configuring the 
school server.  I outlined it on IRC before bringing it here.  Because 
of the time difference and inconsistent internet connection, email is 
probably a better medium for assistance.


I hope that someone can help.  I really need to move through this issue 
as quickly as possible if we're going to have a working school server at 
this deployment before Ieave town next Saturday morning.  There is much 
left to do besides tackling the XS. 


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


Re: [Server-devel] Hoping for assistance with XS 0.5 configuration difficulties (ejabberd)

2009-04-25 Thread Martin Langhoff
On Sat, Apr 25, 2009 at 5:57 PM, Daniel Bennett dant...@gmail.com wrote:
 I am working on an unofficial 100 XO pilot project in Jimeta, Nigeria until
 the end of the month and I've run into a wall configuring the school server.

This list is the right place :-)

 which seems to require u...@node.domain which in my case is
 d...@schoolserver.lccnyola.org16:06dbennettif we get any part of that or the

Very weird.

- Have you been following the standard installation instructions at
http://wiki.laptop.org/go/XS_Installing_Software ?

- What version of the XS are you installing? (should be 0.5.2 :-) )

- If you continue to have problems, please provide as much detail as
you can, and include the logfile from ejabberd - it is stored in
/var/log/ejabberd/

Hope that helps!

This is a well known source of confusion but if you follow the
installation instructions carefully, it will work. There are other
pages discussing ejabberd in the wiki, but they'll confuse you rather
then help you.

For the next release of the XS, all this messy configuration is
automated -- but it's not ready yet.

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] Fwd: Hoping for assistance with XS 0.5 configuration difficulties (ejabberd)

2009-04-25 Thread Daniel Bennett
I just sent this to Reuben.  I have done some digging through the log file
and haven't seen anything useful.  Do I perhaps need to set the ejabberd.cfg
file to 5:debug instead of 4:Verbose?  i remember seeing something about
that inside it.
Unfortunately, we we haven't set up a GUI, web browser, or emailing
capabilities of any kind on the server itself so emailing the log file will
be a roadblock for me.  I haven't worked in linux for about 5 years now
until trying to tackle this project.  I'm relearning how to do basic things
like ls, pipe to less, and use vi for simple text edits.  Setting that stuff
up is likely to take a lng time.  Is there anything specific I can do
offline to find what you're hoping for inside.  In writing you this email I
just recalled the existence of grep.  is there something I could grep for in
the log file and give you some feedback on it?

On  the subject of following instructions, there have been two of us working
on the server, sometimes one at a time so I can't guarantee that we've
followed them to a T, but we both believe that we have.  We've gone so far
as to rerun the initial scripts, recheck hostname, reset the acl lines in
ejabberd.cfg repeatedly, connect to the jabber server with 2 different
jabber clients (which has been successful, we've chatted back and forth
using our server.  We just can't access the admin inteface at
http://192.168.0.162:5280/admin, we keep getting 401 unauthorized), read
every wiki page that sounded remotely relevant, etc.

And we've been following hunches at each step so we have pulled some of the
instructions out of related pages from the wiki.

I've been careful to comment out all of the original lines in the
ejabberd.cfg file and mark all of my changes for easy resetting of each
segment to it's original state.  Which I've since done.  So theoretically,
the file should be in it's original state except for the {acl, admin {...
line that we added to give admin privs to our sample user.

But of course, I could have made missed something.  However, the server is
still working fine when we connect via 3rd party clients (pidgin pis), so I
don't think I've done anything critical...

Let me know if I should grep anything out of the log file for you.

Thanks for the help!
-Dan

-- Forwarded message --
From: Daniel Bennett dant...@gmail.com
Date: Sat, Apr 25, 2009 at 5:57 PM
Subject: Re: [Server-devel] Hoping for assistance with XS 0.5 configuration
difficulties (ejabberd)
To: Reuben K. Caron reu...@laptop.org
Cc: Michael Ishaku michaelish...@gmail.com


Reuben,
Thank you for the quick reply and the hints.  I've cc'd Michael Ishaku on
this thread.  He's and I have been working on this issue together and he is
going to be administering the server once I head back to the states.

I've replied to your statements inline below to the best of my ability.
 Please take a look.

On Sat, Apr 25, 2009 at 5:19 PM, Reuben K. Caron reu...@laptop.org wrote:

Daniel,

 I am sorry to hear about all your difficulties. I'd like to work with you
 to get this to work.

 If you cannot enter the ejabberd web interface to setup the online group
 then XOs will not collaborate.

 I'd like to know about your hardware, 2 nics or 1?

We have one LAN card for ethernet, but have also installed a wireless
networking card for communication with Access Points.  That should work,
right?  I'm really no IT professional... :)


 I'm sure you have read through this but please be sure to follow this line
 by line:

 http://wiki.laptop.org/go/XS_Installing_Software#Initial_Configuration

 One particular point I'd like to make in the instructions is this:

 ---Set the hostname of the machine like this (until we fix bug 8983) by
 editing /etc/sysconfig/network to set HOSTNAME=schoolserver.example.org


contents of /etc/sysconfig/network:
NETWORKING=yes
HOSTNAME=schoolserver.lccnyola.org
~
~
/etc/sysconfig/network 2L, 50C


 --and restarting.


We had this problem yesterday when we left, and when i arrived this morning
I had to turn the server back on (it had powered off overnight due to the
generator being shut down and the UPS running out of juice).  I'm fairly
certain that we tried rebooting a couple of times during the day yesterday
as well.  I'm certain that we used the command shell to: service ejabberd
restart   many many times both days.  This would cover the restarting,
right?


 It is important to restart before moving on; otherwise, the ejabberd db
 will be intialized using the wrong domain.

 Is the bandwidth too limited to download the new 0.5.2 ISO? If yes, I'd
 recommend a fresh install, connect to internet, and then after install run:
 yum update. After an up to date install run through the setup steps.


I left the states on 3/23/09.  I believe that 0.5.2 was released on 3/18/09.
 This is the file name for the image I brought with me (and that we are
currently running: OLPC-School-Server-0.5.2-i386.iso
we could probably download a fresh image with 12/24 

Re: [Server-devel] Hoping for assistance with XS 0.5 configuration difficulties (ejabberd)

2009-04-25 Thread Martin Langhoff
On Sat, Apr 25, 2009 at 7:17 PM, Daniel Bennett dant...@gmail.com wrote:
 I just sent this to Reuben.  I have done some digging through the log file
 and haven't seen anything useful.  Do I perhaps need to set the ejabberd.cfg
 file to 5:debug instead of 4:Verbose?  i remember seeing something about
 that inside it.

You can, but you probably won't need it. Follow the wikipage
instructions carefully and it will work ok :-)

 Unfortunately, we we haven't set up a GUI, web browser, or emailing
 capabilities of any kind on the server itself so emailing the log file will
 be a roadblock for me.  I haven't worked in linux for about 5 years now

Plug in a usb stick in a usb port on the server, and in a few secs it
will be automounted as /media/usb0/ - copy the file there with the cp
command.

I would also say -- OLPCCorps projects _must_ have someone who can
wrangle a bit of Linux. Who is that person in your group?

 On  the subject of following instructions, there have been two of us working
 on the server, sometimes one at a time so I can't guarantee that we've
 followed them to a T, but we both believe that we have.  We've gone so far

I would suggest start from the beginning - reinstalling - and follow
the instructions. If you cannot coordinate 2 people, just get one
persone to do it.

ejabberd is a bit temperamental unfortunately.

 as to rerun the initial scripts, recheck hostname, reset the acl lines in
 ejabberd.cfg repeatedly, connect to the jabber server with 2 different

reset the acl lines? I think you are following some odd instructions.
Please make sure you are following
http://wiki.laptop.org/go/XS_Installing_Software

 And we've been following hunches at each step so we have pulled some of the
 instructions out of related pages from the wiki.

Don't follow hunches. Reinstall and follow
http://wiki.laptop.org/go/XS_Installing_Software to the letter.

cheers,



martin
-- 
 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] Fwd: Hoping for assistance with XS 0.5 configuration difficulties (ejabberd)

2009-04-25 Thread Reuben K. Caron

Daniel Bennett wrote:
I just sent this to Reuben.  I have done some digging through the log 
file and haven't seen anything useful.  Do I perhaps need to set the 
ejabberd.cfg file to 5:debug instead of 4:Verbose?  i remember seeing 
something about that inside it.


Unfortunately, we we haven't set up a GUI, web browser, or emailing 
capabilities of any kind on the server itself so emailing the log file 
will be a roadblock for me.  I haven't worked in linux for about 5 
years now until trying to tackle this project.  I'm relearning how to 
do basic things like ls, pipe to less, and use vi for simple text 
edits.  Setting that stuff up is likely to take a lng time.  Is 
there anything specific I can do offline to find what you're hoping 
for inside.  In writing you this email I just recalled the existence 
of grep.  is there something I could grep for in the log file and give 
you some feedback on it? 

On  the subject of following instructions, there have been two of us 
working on the server, sometimes one at a time so I can't 
guarantee that we've followed them to a T, but we both believe that we 
have.  We've gone so far as to rerun the initial scripts, recheck 
hostname, reset the acl lines in ejabberd.cfg repeatedly, connect to 
the jabber server with 2 different jabber clients (which has been 
successful, we've chatted back and forth using our server. 


We just can't access the admin inteface at 
http://192.168.0.162:5280/admin, we keep getting 401 unauthorized), 
read every wiki page that sounded remotely relevant, etc.



Where is this IP coming from? How are you changing this?

Martin, also note (below) they have one nic.. Can you remind us what the 
default behavior is for one nic?


And we've been following hunches at each step so we have pulled some 
of the instructions out of related pages from the wiki.


I've been careful to comment out all of the original lines in the 
ejabberd.cfg file and mark all of my changes for easy resetting of 
each segment to it's original state.  Which I've since done.  So 
theoretically, the file should be in it's original state except for 
the {acl, admin {...   line that we added to give admin privs to our 
sample user.  

But of course, I could have made missed something.  However, the 
server is still working fine when we connect via 3rd party clients 
(pidgin pis), so I don't think I've done anything critical...


Let me know if I should grep anything out of the log file for you.

Thanks for the help!
-Dan

-- Forwarded message --
From: *Daniel Bennett* dant...@gmail.com mailto:dant...@gmail.com
Date: Sat, Apr 25, 2009 at 5:57 PM
Subject: Re: [Server-devel] Hoping for assistance with XS 0.5 
configuration difficulties (ejabberd)

To: Reuben K. Caron reu...@laptop.org mailto:reu...@laptop.org
Cc: Michael Ishaku michaelish...@gmail.com 
mailto:michaelish...@gmail.com



Reuben,

Thank you for the quick reply and the hints.  I've cc'd Michael Ishaku 
on this thread.  He's and I have been working on this issue together 
and he is going to be administering the server once I head back to the 
states.


I've replied to your statements inline below to the best of my 
ability.  Please take a look.


On Sat, Apr 25, 2009 at 5:19 PM, Reuben K. Caron
reu...@laptop.org mailto:reu...@laptop.org wrote:

Daniel,

I am sorry to hear about all your difficulties. I'd like to work
with you to get this to work.

If you cannot enter the ejabberd web interface to setup the online
group then XOs will not collaborate.

I'd like to know about your hardware, 2 nics or 1?

We have one LAN card for ethernet, but have also installed a wireless 
networking card for communication with Access Points.  That should 
work, right?  I'm really no IT professional... :) 



I'm sure you have read through this but please be sure to follow
this line by line:

http://wiki.laptop.org/go/XS_Installing_Software#Initial_Configuration

One particular point I'd like to make in the instructions is this:

---Set the hostname of the machine like this (until we fix bug
8983) by editing /etc/sysconfig/network to set
HOSTNAME=schoolserver.example.org http://schoolserver.example.org


contents of /etc/sysconfig/network:
NETWORKING=yes
HOSTNAME=schoolserver.lccnyola.org http://schoolserver.lccnyola.org 
~

~
/etc/sysconfig/network 2L, 50C


--and restarting.

 
We had this problem yesterday when we left, and when i arrived this 
morning I had to turn the server back on (it had powered off overnight 
due to the generator being shut down and the UPS running out of 
juice).  I'm fairly certain that we tried rebooting a couple of times 
during the day yesterday as well.  I'm certain that we used the 
command shell to: service ejabberd restart   many many times both 
days.  This would cover the restarting, right? 



It is important to restart before moving on; otherwise, the
ejabberd db will be intialized using the 

Re: [Server-devel] Server strategy Nauru

2009-04-25 Thread Daniel Drake
2009/4/24 david da...@leeming-consulting.com:
 Hello,

 I am in Nauru where they have an OLPC program. I need to give some general 
 advice on the strategy for providing server access.

 I understand that version 0.5 can only work with 40-50 connected, registered 
 XOs simultaneously (or is it the other way round). Version 0.6 will cater for 
 groups, so one could register XOs in class groups, and theoretically any 
 number of XOs per server.

v0.5 works with 90 laptops in my tests. (90 isn't the limit, thats
just the maximum number of laptops that were on-hand)
but the user experience is not brilliant - the laptops slow down,
especially when looking at the neighborhood view.

 (Question - can laptops be registered to multiple groups but select which 
 group they connect to? I am thinking of an example where teachers used team 
 teaching between two classes using the Chat activity in PNG, so it would be 
 useful if that was possible and not lock the laptops into a single server 
 group)

No, there is no such sugar interface. But maybe it will be possible to
dynamically adjust your group(s) in the moodle interface that martin
is working on.

 Nauru has only a few schools, which can easily be interconnected with point 
 to point wireless links. The main school where the current 200 laptops are 
 being used in 6 year 2 classes, will shortly be expanded to consolidate all 
 year 1-3 students (about 800) on the same site. There will then be about 18 
 classrooms on the site.

 I assume that one server machine with access points or AAs in each of these 
 classes would not be sufficient (and some redundancy would be desirable). 
 With the long term development of the XS in mind, what would be the 
 recommended set up for this school (800 students, 18 classes, fairly small 
 site easily wired up with APs and with reliable power)

I did some investigation on this and I was unable to find any actual
deployments of this scale that use the XS. In Paraguay we are
deploying in some large schools, the largest having 800 laptops but
only 400 at a time (morning/afternoon shifts) and it is appears
largely unknown how the XS will hold up. I think Nepal is in a similar
situation. In Paraguay we only handed out the laptops this week, and
not enough children have registered to the XS to make judgement just
yet.

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


Re: [Server-devel] Fwd: Hoping for assistance with XS 0.5 configuration difficulties (ejabberd)

2009-04-25 Thread Martin Langhoff
On Sat, Apr 25, 2009 at 7:23 PM, Reuben K. Caron reu...@laptop.org wrote:
 We just can't access the admin inteface at http://192.168.0.162:5280/admin,
 we keep getting 401 unauthorized), read every wiki page that sounded
 remotely relevant, etc.

 Where is this IP coming from? How are you changing this?

Good point! Daniel, please, start from the beginning reinstalling the
server from the start, and follow my guide. NO OTHER GUIDE. Also --
skip the optional bits. Stick to the core guide.

 Martin, also note (below) they have one nic.. Can you remind us what the
 default behavior is for one nic?

A single NIC will defaiult to being the WAN NIC (on the assumption
that AAs will be connected). So use xs-swapnics to turn the single NIC
into a LAN port.

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] Hoping for assistance with XS 0.5 configuration difficulties (ejabberd)

2009-04-25 Thread Martin Langhoff
Let's keep the list in the loop.

On Sat, Apr 25, 2009 at 7:51 PM, Daniel Bennett dant...@gmail.com wrote:
 Re-installing to the letter with one exception.  I'm checking the box to add
 the GNOME installation.  It should help us if we want to email anything in
 the future, etc.

It will fail to install, and gnome is just not on the CD.

Please followthe instructions.

 The 'acl line' is my shorthand reference to a fix mentioned in nearly every
 solution to this problem found when googling: ejabberd 401 unauthorized

Don't. The right acl is already set in the config file, and you are
probably editing the wrong config file anyway.

 we aren't an OLPCorps Africa deployment

Ok! No problem

 Thanks again for the help.  I'll cross my fingers on this clean install!

No problem. But do follow the instructions! :-)



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] Eth 1 swap issue 0.5

2009-04-25 Thread david
Martin et al,

I am about to upgrade the Nauru 0.4 server overnight and want to know about any 
remaining issues with 0.5, remember there was an issue with having to swap the 
two Ethernet ports, when Eth0 is used for Internet and Eth1 for the APs?  Or 
something? Does the latest version 0.5.2 correct that?


David Leeming
Leeming International Consulting
P.O. Box 652, Honiara, Solomon Islands 
Tel: (677) 76396
About me: http://wikieducator.org/User:Leeming


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


[Server-devel] Filtering and authentication

2009-04-25 Thread david
Can anyone refer me to how to set up content filtering on the XS 0.5, or maybe 
the connection with the public Internet can be pointed to an online proxy 
service so the filtering is done online. This is a temporary request from the 
Nauru OLPC committee. They will be using a Content Keeper to filter all 
Education Dept Internet access at the gateway but it's not set up yet.

Secondly, can we add password authentication to XOs logging on to the XS? The 
issue is again unauthorised access to the Internet through the XS.

I will have to look at what Pia has done again.

David Leeming
Leeming International Consulting
P.O. Box 652, Honiara, Solomon Islands 
Tel: (677) 76396
About me: http://wikieducator.org/User:Leeming


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


Re: [Server-devel] Filtering and authentication

2009-04-25 Thread Daniel Drake
2009/4/25 david da...@leeming-consulting.com:
 Can anyone refer me to how to set up content filtering on the XS 0.5, or 
 maybe the connection with the public Internet can be pointed to an online 
 proxy service so the filtering is done online. This is a temporary request 
 from the Nauru OLPC committee. They will be using a Content Keeper to filter 
 all Education Dept Internet access at the gateway but it's not set up yet.

http://wiki.paraguayeduca.org/index.php/Squidguard
It's in spanish but the commands should be self explanatory...

 Secondly, can we add password authentication to XOs logging on to the XS? The 
 issue is again unauthorised access to the Internet through the XS.

I don't have any immediate ideas and I haven't heard of any
deployments doing this. I'd suggest looking at squid's capabilities to
start.

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