Re: [Server-devel] Test

2018-03-29 Thread Martin Langhoff
Is this the real James Cameron?



m

On Thu, Mar 29, 2018, 7:00 PM James Cameron  wrote:

> Test message.  Random words.
>
> akimbo halfpennies lama griffins regressed happen priors maternal
> davis torrens devalues sven discombobulates convection determinant
> equestrian grungier mornings launching stallone werewolves ayala
> karroo spontaneity convex salivated waterspout awing creditors
> manipulates dispensation brigands earthier evocation repudiating
> crater busts scrubbers nutrias buffering parkway sawmill courtlier
> griffins cloakroom subtle gayle aberration la submarines astrophysics
> spineless feats overcasts proper tucson imagine brobdingnag marc
> percentile marks thousand tailspins engorges qatar emulation pet
> spattering pedro cleat overspreading disease windmilling saigon
> chances informally corkscrews charismatics chagrins microscopy stabbed
> discredit watchwords indispensables hyphenated pandemic smugger
> uncoordinated combating sequencer trailing agricola striking
> inextricably allegories funnels importuning scions calvinist
> underwriting chartering trackers dewdrops tutoring muscle retorted
> barefooted nautili ports esoterically guess hoarding bludgeons buggies
> previewers doggy admonished flooder currants swedes shortcakes subsume
> ruination stumping paramedic dispossessed crucifixes socialise
>
> --
> James Cameron
> http://quozl.netrek.org/
> ___
> Server-devel mailing list
> Server-devel@lists.laptop.org
> http://lists.laptop.org/listinfo/server-devel
>
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] [support-gang] jffs2 vs ubifs vs ext4 space-efficiency question

2015-12-22 Thread Martin Langhoff
On Tue, Dec 22, 2015 at 4:28 PM, James Cameron  wrote:
> Yes, jffs2 compresses data.  That's why it is so slow.  That's why SD
> card is faster than it should be otherwise.

+1 on James reply. Also a quick note: AIUI, jffs2 gets much of its
storage advantage from better packing of directory structures &
metadata.

The overall compression savings include these, and look great. The
files contents are not _that_ compressible :-)



m
-- 
 martin.langh...@gmail.com
 -  ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 ~ http://docs.moodle.org/en/User:Martin_Langhoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] [support-gang] [Sugar-devel] how to remove WiFi credential/history from Sugar?

2015-09-25 Thread Martin Langhoff
NM has this info somewhere. Play with nmcli to try find it, manipulate it.



m

On Fri, Sep 25, 2015 at 2:54 PM, Adam Holt  wrote:

> On Fri, Sep 25, 2015 at 1:56 PM, Paul Fox  wrote:
>
>> try:
>> cd /etc
>> sudo grep -R  .
>>
>
> It responds, as expected:
> /etc/sysconfig/network-scripts/ifcfg-WAN:ESSID=
>
>
>> cd /home/olpc
>> sudo grep -R  .
>>
>
> No results at all.  I ran "find . -name **" from both places
> as well.
>
> Profound mystery!  Somewhere in the bowels of Fedora presumably?  To
> triple-check all assumptions, I've rebooted many times and the
> very-much-passworded WiFi auto-connects every time.  (Auto-connected from
> Sugar anyway, though not auto-connecting from Gnome seemingl, when I tried
> rebooting from Gnome back into Gnome).
>
>
>> on older releases, sugar kept the network config separate, under
>> /home/olpc/.sugar, i think.  it took a while before gnome and
>> sugar wifi configs were synced.
>>
>> paul
>> =-
>>  paul fox, p...@laptop.org
>>
>
>
> --
> Unsung Heroes of OLPC, interviewed live @ http://unleashkids.org !
>
> ___
> Devel mailing list
> de...@lists.laptop.org
> http://lists.laptop.org/listinfo/devel
>
>


-- 
 martin.langh...@gmail.com
 -  ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 ~ http://docs.moodle.org/en/User:Martin_Langhoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Upgrade many machines

2014-01-09 Thread Martin Langhoff
On Thu, Jan 9, 2014 at 7:33 PM, James Cameron qu...@laptop.org wrote:
 No reason, thanks for reminding me.  I guess xs-rsync on the local
 server?

yep

 - oatslite to send the upgrade msg
 - XOs need to be registered
 - xs-rsync to host the new img

There are several possible gotchas I have not thought through, and I
no longer remember in clear enough detail. Signed vs unsigned, OATs
keys (master or delegated), whether olpc-update has any showstopper
bugs in this specific configuration, etc.

So it might not be feasible with the given configuration. However, it
might be worthwhile to upgrade to a state where the next upgrade can
be handled with this mechanism...



m
-- 
 martin.langh...@gmail.com
 -  ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 ~ http://docs.moodle.org/en/User:Martin_Langhoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Does XSCE need a new Home?

2013-12-02 Thread Martin Langhoff
On Fri, Nov 29, 2013 at 8:13 AM, George Hunt georgejh...@gmail.com wrote:
 When I was first exploring the process of building something on top of
 schoolserver 0.7, I found ancestry of different components (documented at
 http://schoolserver.wordpress.com/xs-installation/rpm-heritage/). I think we
 should contact the most recent contributors to these ancestral repos, and
 with their cooperation/approval, move them to github.com.

I'll be glad to help find any missing git branch / source for rpms. If
something doesn't match it is probably some oversight of mine, and I
should be able to hunt down the right item.

 How to pay for a server somewhere?

TBH, moving forward, I'd just use Fedora infra. But there's some work
to be done for that.

I'd be happy to chip in, in any case. Contact me privately if needed.

Cannot invest much actual time, unfortunately. I've taken a shift
towards family time, which had been suffering for a while...



m
-- 
 martin.langh...@gmail.com
 -  ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 ~ http://docs.moodle.org/en/User:Martin_Langhoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Running complete Wikipedia offline

2012-12-12 Thread Martin Langhoff
On Wed, Dec 12, 2012 at 4:28 PM, Sameer Verma sve...@sfsu.edu wrote:
 I've been debating the possibility of running a *complete* copy of
 Wikipedia (txt and images) offline on the XS. At this point, the
 targets are English (https://en.wikipedia.org) and Hindi
 (https://hi.wikipedia.org).

It would be trivial. Get the HTML-formatted dumps, serve them statically.

My only comment is... let us know about the on-disk space usage once
it's unpacked (du -sh /path/to/wikipedia )


m
--
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] armv7hl vs armv7l

2012-07-06 Thread Martin Langhoff
On Fri, Jul 6, 2012 at 6:52 AM, George Hunt georgejh...@gmail.com wrote:
 I'm glad that the trimslice generated rpms I have will be usable.  I'll
 need to learn how to override the default arch, so that yum will do what I
 want it to do. But I have google for that!

You should not need to override the arch. The kernel may report armv7l
but all the installed packages are armv7hl, and rpmbuild should DTRT.

cheers,



m
--
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] Moodle broken with 0.94 datastore?

2012-06-12 Thread Martin Langhoff
On Thu, Jun 7, 2012 at 3:38 PM, Jerry Vonau jvo...@shaw.ca wrote:
 current entries in /library/user/SN.  Any thoughts on how to proceed?

Needs fixing :-/ Sameer is right.


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] Collaboration XO-1 with XS

2012-04-28 Thread Martin Langhoff
When the problem happens, it'll be interesting to see the output of
olpc-netstatus and olpc-xos cmdline utilities on XOs that have trouble and
on those that don't.

There's additional debugging info you can get from ejabberd on the XS.

There's a page in the wiki (in the XS techniques page?) that lists all the
debugging/diagnostics steps for collaboration.

What James mentions is correct, too. A reconnection is what is probably
fixing it.

hth,

m
On Apr 28, 2012 5:14 AM, David Leeming da...@leeming-consulting.com
wrote:

 **

 Hi James,

 I have been fairly familiar some time with using the basic default
 installation of the XS. It is specifically the combination of XO-1 build
 883 / Sugar 0.94.1 with XS0-0.6 which has thrown up some issues - with
 collaboration.

 A typical situation when we observe this recently: a workshop with 20
 teachers, all who have freshly installed release 11.3.0 on their XO-1sand 
 registered on the workshop XS and restarted. All have been accessing
 the Moodle pages with no problems and the links to the public content in
 the /library folder. I will have been using the XS network wirelessly to
 an XO that is running Classroom Broadcast Activity, with no difficult
 whatsoever. So there is no need to ping the server to understand that the
 XOs are all properly connected and registered, although I take your point
 and would have done more diagnostics if i knew how to isolate the issue
 with the collaboration problem we experienced.

 We were able to replicate the issue on identically set-up servers. The
 issue is: not all the other connected XOs appear in the neighbourhood
 view, and when trying to demonstrate collaboration using the set up above,
 it was only rarely that the sharing icon appeared on other XOs
 neighbourhood view even though all else seemed to be working fine. I
 tried using the discard network history with a few XOs only once at the
 end of the workshop, and we then run out of time. I tried again with my
 own setup later, using two XOs only, and replicated the issue but the
 discard history did not work then. So that might not be useful
 information.

 Perhaps I should rephrase my question:

 Was it intended that collaboration should work with XO-1s running release
 11.3.0 using the XS-0.6 default installation?

 Secondary question, if this is not working, and I have made no
 customisation other than add some links using aliases presented as links
 on the Moodle home page, what can I do to trouble shoot?

 David Leeming

 -Original Message-
 From: qu...@us.netrek.org [mailto:qu...@us.netrek.orgqu...@us.netrek.org]
 On Behalf Of James Cameron
 Sent: Friday, 27 April 2012 7:39 a.m.
 To: David Leeming
 Cc: 'XS Devel'; 'OLPC Devel'
 Subject: Re: [Server-devel] Collaboration XO-1 with XS

 On Fri, Apr 27, 2012 at 06:38:00AM +1000, David Leeming wrote:

  [...] we work around it by for instance using ?discard network

  history? which seems to help.

 I was deeply involved in the discard network history feature at one

 point in development, and at the time the only thing it did was to

 remove access point names (ESSIDs) from the list of known access points.

 I've just checked the code and that is still only what it does.

 So I'm surprised it is having an effect.  But congratulations for

 finding it does have an effect.

 I know nothing about the network at the location.  Is there more than

 one access point name available?

 If so, at the time of the problem, the reason the button is having an

 effect may be because a disconnection has led to the laptop associating

 with another access point, and pressing the button would prevent that.

 If not, then the button is only serving to disconnect the laptop from

 the network.  You may find the same effect to occur by clicking on the

 access point in the network neighbourhood view.

 Lastly, whether activities are open at the time of the forced disconnect

 and reconnect may be interesting.

 Next time, please do some technical diagnosis at the time of the problem

 ... use Terminal activity to ping the server.  As I have recently seen

 examples of TP-Link with OpenWRT access points that silently block data

 flow, it reminds me that some diagnosis is worth doing.  In the cases I

 observed, data flow was restored by reconnecting.  That you currently

 reconnect to work around the problem may be a coincidence, or it might

 be this same kind of problem.

 --

 James Cameron

 http://quozl.linux.org.au/

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


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


Re: [Server-devel] Browse or Moodle-XS error - Redirect Loop Redirection limit reached

2012-04-23 Thread Martin Langhoff
On Mon, Apr 23, 2012 at 7:39 AM, David Leeming
da...@leeming-consulting.com wrote:
 Also found a file named.run which is nearly 1GB in size, – I gather this is
 a debugging file, can I disable the function that generates it? Will

Normally named.run should only contain a number, a small integer.

If you restart the server, after having removed named.run, and let it
run for a while, what happens with named.run ?

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] Looking for new low power server hardware candidate

2012-04-13 Thread Martin Langhoff
On Fri, Apr 13, 2012 at 12:28 AM, Sridhar Dhanapalan
srid...@laptop.org.au wrote:
 appliance runs nothing more than ejabberd. There's no moodle, dhcp,
 dns or other services.

How does the appliance get a domain name?

 Then the children just set a collaboration server to connect to in the
 Network CP applet. They use the address of the appliance for their
 classroom. This achieves a segregation effect in a simple way.

How do kids know what domain name to put in there? Isn't it a complex
and error-prone step?

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] Looking for new low power server hardware candidate

2012-04-12 Thread Martin Langhoff
On Thu, Apr 12, 2012 at 5:24 AM, Peter Robinson pbrobin...@gmail.com wrote:
 think the Trimslice H is going to one of the best models as you can
 put a decent HDD in there and have a self contained unit, although I
 would love a dual eth option.

It has a HDD bay! Yay! Wanna!



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] Looking for new low power server hardware candidate

2012-04-11 Thread Martin Langhoff
On Tue, Apr 10, 2012 at 10:55 PM, John Watlington w...@laptop.org wrote:
 Why not an XO-1.75 ?

Good point. And XO + AP + HDD would work fantastic.

George, how many users per server? If 100, an XO-1.75 will do ok.
Want to sign up for the Contributors Programme (search in the wiki for
the URL).

XO-1.75, Plug or Trimslice will do fine with a recent Fedora for ARM
(from the upcoming F17 series) -- we just need to recompile the XS
specific packages. Most of them will just work. AFAIK, ejabberd and
xs-config will need some work, and I can help you with those.

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] Looking for new low power server hardware candidate

2012-04-11 Thread Martin Langhoff
On Wed, Apr 11, 2012 at 5:29 AM, George Hunt georgejh...@gmail.com wrote:
 When I took the picture in the following url, I was focusing on what it
 would take to run off of 12V deep cycle battery:

 http://schoolserver.wordpress.com/xs-installation/xs-0-7-running-on-xo-1-5/

That's very cool!

 I'm concerned with packaging,  and physical robustness in a real school
 setting.  Maybe we could get someone with ME skills to dream up a cheap
 package for all the accessory items.

I can't speak much about ME, but I can suggest looking at some TP-LINK
and Sapido branded small APs that take USB power. You can have a
USB-powered HDD as well, and you still have a free USB port on the XO.

 At the fall 2011 summit, there was a general call for a turnkey XS that
 just worked.  If we could solve the form factor problem, the XO1.75 might
 be a good solution.

I'm exploring that path with a variant of the Dreamplug, but that
won't happen overnight.

 I think it was Sameer who was telling me that in Australia, they are
 thinking about one XS per classroom. In that setting, seems to me that
 XO1.75 (even with only 512MB memory) would be more than adequate.

One XS per classroom is a _bad_ idea for other reasons. One AP per
classroom is a good idea, OTOH, and an XO-1.75 can probably handle a
mid-sized school OK.

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] XS on ARM update.

2012-04-11 Thread Martin Langhoff
On Wed, Apr 11, 2012 at 12:13 PM, rihowa...@gmail.com
rihowa...@gmail.com wrote:
 I have been meaning to email you an update about XS on ARM for a while.
 I had to take a hiatus from what I was doing with it, but started back on it 
 a while back.

Great that you're back on track. True, Fedora branches were
unpredictable, but the F17 push is solid. That's where it's at.

 Note that currently Puppet relies on some hard coded intel specific code.

Oh really? I'm assuming it'd be in the facter code, using lspci and
dmidecode to get the facts about hardware?

Short term it only needs to handle a missing lspci and dmidecode
without panicking -- XO hardware is pretty fixed for a given model
anyway -- long term, Puppet will want to datamine sysfs where
available. Not sure if it'll replace lspci in all cases, but on HW
that doesn't have a PCI bus, well... :-)

 I would like to chat with you some time about this as I want to discuss what 
 is essential
 for the XS and which is the correct git branches etc to pull from for some 
 olpc specific bits.

Let's flesh it out here. What are your doubts?

AFAIK, most things we have for the XS should work on latest F17 ARM,
some things will need a rebuild from SRPM. Exceptions:

 - There is a tricky situation with ejabberd which will need careful
handling. See the mailing list archive. For XS 0.7 we found the
problem late and IIRC the fix we applied there won't work for F17. So
some work is needed here.

 - xs-configuration handling of network-- note that this is _optional_.

 - All the services will be using old style init scripts. We need to
invest time in either testing that they work with systemd (compat
isn't perfect), or porting them to systemd (and testing that they work
too ;-) ).

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] Looking for new low power server hardware candidate

2012-04-11 Thread Martin Langhoff
On Wed, Apr 11, 2012 at 11:57 PM, Sridhar Dhanapalan
srid...@laptop.org.au wrote:
 Why is it such a bad idea?

 The thought was to do away with registration, moodle and other
 unnecessary services and focus only on the XMPP server.

You want to run a network of federated XMPP servers? It's madness.

Rather, it's not madness, but until demonstrated/automated otherwise
it's a high-maintenance-per-classroom setup. And the federated XMPP
stuff isn't widely used == widely tested.

We get obvious and clear bugs in parts of the XMPP implementation that
are used (or should be used) _everywhere_. And this is on what is
reportedly the best XMPP implementation available. My appetite for
putting an exotic feature into use in the _middle_ of a deployment
plan is... just not there.

In any case, what's the upside of one-XS-per-classroom? Cost,
administration, reliance on federated-XMPP all seem downsides/risks to
me.

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] Looking for new low power server hardware candidate

2012-04-10 Thread Martin Langhoff
On Mon, Apr 2, 2012 at 2:03 AM, George Hunt georgejh...@gmail.com wrote:
 I left my fitpc2 and msi servers in the Philippines, hoping they would be
 pressed into service in a classroom situation.  So now I'm in the market for
 another toy.

If you have time towork with us through some hitches, I'd recommend an
ARM server. At this stage I'd say one of the Marvell/Globalscale
Plug servers (dreamplug for example), or a trimslice.

Either option will need a combination of the OS on internal SD/eMMC
and the storage on an ext HDD (via USB probably).

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] xs-pkgs

2012-03-30 Thread Martin Langhoff
On Mar 29, 2012 5:52 PM, Tim Moody timmo...@sympatico.ca wrote:
 (btw installing straight from cd never worked for me as it failed on the
disk partitioning regardless of the options I chose)

I've seen that happen when the disk has strange partitioning information.
Anaconda queries the disk, gets confused, and eventually dies. We had this
after trying to use a HW RAID, and then abandoning that plan for SW RAID.
The RAID controller had written some odd partitioning data on the disks.

Can't remember what we did to un-jinx it. Probably switched to a VT early
under the installer and used fdisk to write some bog-standard partition
anaconda could make sense of :-)

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


[Server-devel] oatslite under RHEL/CentOS x86_64

2012-03-27 Thread Martin Langhoff
We just had some fun debugging of oatslite on CentOS 6.2 x86_64. A
quick note of warning in case someone else is mad or foolish enough to
try it too :-)

The short version of it is: bitfrost is currently broken on 64 bits.

This is what an XS based on CentOS x86_64 needs to run oatslite:

 - latest bitfrost.i686 (from an XO repo)
 - python.i686
 - an extracted python2.6 binary from python.i686 -- I used
rpmdev-extract and installed the binary as /usr/bin/python2.6-i686

Using python2.6-i686, oatslite now signs the messages correctly.

The root cause seems to be a problem in the Pyrex bindings to
libtomcrypt / TomsFastMath. Maybe ctypes would be better here.

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] oatslite under RHEL/CentOS x86_64

2012-03-27 Thread Martin Langhoff
On Tue, Mar 27, 2012 at 12:35 PM, Daniel Drake d...@laptop.org wrote:
 On Tue, Mar 27, 2012 at 10:34 AM, Reuben K. Caron reu...@laptop.org wrote:
 Does this effect xs-activation installed on XS 0.7?

 XS-0.7 is 32-bits only.

Yeah, and there be dragons in the 64 bit path, confirmed. I got the burn scars.



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] XO/XS Networking Issues

2012-03-17 Thread Martin Langhoff
You have a chicken-and-egg problem there. Maybe you can download the
rpms you need from another computer?


m

On Sat, Mar 17, 2012 at 8:16 AM, Shaun Pickford
shaun.pickf...@gmail.com wrote:
 I am currently in Haiti working to set up a school server in a partner
 school that has ~20 XO's.  We have XS running on a Fit-PC2 and are able to
 connect to the School Server from our test XO.  Our ideal next step is
 providing internet connectivity to the XO's through the server.  To
 accomplish this, we hope to utilize a Natcom 3G card connected to one of the
 USB ports.  It seems like all we need to do is install wvdial, but I'm
 getting a Couldn't resolve host 'mirrorlist.centos.org' error.  I
 currently have no other way to connect the server to the internet (there is
 wifi at our hotel, but I'm not sure how to connect the XS or even if I
 can?).

 I'm sure this is an easy fix, I just don't know what commands I need and am
 having trouble finding them in the XS documentation on laptop.org.

 Thank you to anyone who can help out!

 (PS: I leave the country Monday morning to return to the states, so the
 faster I hear back, the better!)

 -Katelyn Doran

 Sent from my iPad

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




-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] XS on XO

2012-02-23 Thread Martin Langhoff
On Feb 23, 2012 10:27 AM, Daniel Drake d...@laptop.org wrote:
 Another option you may wish to explore is running CentOS6 with the
 OLPC kernel on the XO. (but I haven't really thought this through,
 might be missing something obvious)

That sounds like a good approach to me. Given the python incompat, I'd try
this next.

cheers,

m
{ Martin Langhoff - one laptop per child }
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] XS on XO

2012-02-22 Thread Martin Langhoff
I'd recommend, on XO-1.5

- take a 11.x.y buid
- use the yum repos dsd prepared for XS, groupinstall the right group
(OLPC School Server?)
- disable the prefdm service (remove/rename /etc/init/prefdm)
- disable NM service, enable the 'network' service (using chkconfig)

F14 and RHEL/CentOS6.2 are very close, the only incompat I am aware of is
the Erlang runtime, so you probably need to rebuild ejabberd...

Let us know what you find!


m
On Feb 22, 2012 9:08 PM, Sameer Verma sve...@sfsu.edu wrote:

 So, to start looking into XS on XO (1 or 1.5) using the CentOS6.2 or
 compatible + EPEL + OLPC XS repo is 11.3.0 a good place to start, or
 12.1.0 or I shouldn't waste my time as yet?

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

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


Re: [Server-devel] XS-0.7 beta 1 released

2012-02-15 Thread Martin Langhoff
On Wed, Feb 15, 2012 at 10:03 AM, Daniel Drake d...@laptop.org wrote:
 In /isolinux/isolinux.cfg, upgradeany is used with full install
 options, think that will force anaconda into upgrade mode.

 This was copied over from the earlier XS-0.7 work. I see that XS-0.6
 does not include this option. Any idea why, and what the implications
 are? Should we be including the option or not?

The option is there to allow an upgrade from a different (yet
rpm-based) distro, as identified by the 'product' field (2nd line) in
.discinfo.

Looking at the 0.7 beta1 iso, it still identifies itself as OLPC
School Server, so upgradeany is not needed to upgrade from 0.6. It is
needed to upgrade from a vanilla CentOS.

AFAIK, upgradeany won't force upgrade mode -- full install mode is
always available, and upgrade is only available if the installed
partitions have some RPM-based OS somewhere.

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] XS-0.7 beta 1 released

2012-02-14 Thread Martin Langhoff
On Tue, Feb 14, 2012 at 6:55 PM, James Cameron qu...@laptop.org wrote:
 CD?  Haven't used one of those for a while.  You might use it as a media
 file for VirtualBox or some other software, in order to avoid burning to
 CD.

Heh. What you do, is use livecd-iso-to-disk to prep a USB stick as a
bootable installer.



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] XS on Ubuntu - what is the status?

2012-02-12 Thread Martin Langhoff
Hi Adam,

with the cleanup and reorganization work that's being done for xs-0.7, it
is now a lot more reasonable to say that the XS software and configuration
could be ported/packaged to Debian/Ubuntu.

There is of course work to do on that track -- some of the most trivial
packages may just install using alien, but there are packages that you'll
definitely want packaged natively, accounting for the specifics of the
Debian world. And parts of xs-config will need to have an alternative
Debian implementation.

It's not a huge amount of work.

If you look up in our archive, I haven't been very positive in the past
about a debian or ubuntu version, beause before this reorganization it
would have meant a significant fork and a distraction.

So maybe now's the time for it :-) -- OLPC won't work on it directly, but
we can sure help debianistas/ubunteros...


m
On Feb 9, 2012 11:47 AM, FWiOO Adam Jurkiewicz adam.jurkiew...@fwioo.pl
wrote:

 My dears,
  I'm volunteer of Foundation of Free and Open Source Software and I'm
 working on Ubuntu Remix for Schools in Poland.There will be a new
 project called Digital school here, which will start in next few
 months. The founder is Minister of Education.

 I want to build XS-server based on Ubuntu 10.04 LTS, because I don't
 know Fedora so good as Ubuntu. Also, the Ubuntu is much more
 recognizable in Poland.

 I found on web discussion:
 http://comments.gmane.org/gmane.linux.laptop.olpc.server.devel/1420

 But I cannot find any farther informations. Could anyone explain me, is
 it possible to run XS on Ubuntu?

 Best regards,
 Adam
 --
 Adam Jurkiewicz
 Wolontariusz Fundacji Wolnego i Otwartego Oprogramowania
 http://wioowszkole.org | http://facebook.com/abix.linux


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

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


Re: [Server-devel] XS-0.7 review round 3

2012-02-11 Thread Martin Langhoff
On Friday, February 10, 2012, Daniel Drake wrote:

 Everything acked so far has been pushed and built, output is at
 http://dev.laptop.org/xs/repos/stable/olpc/xs-0.7/i386/

 Pending items are:

 1. Moodle - needs 'pu' branch review, and the possible updates you
 mentioned.
 For now, the repo above includes a RPM from the pu branch (just
 temporarily so that I can build).


Your patches look good. I am a bit concerned that mod_admin_extra might
have changed the parameter quoting rules (for the better  saner!). IOWs,
is ejabberdctl_escapeshellarg() still needed? If things work well and your
Online group is named Online (instead if 'Online' with the single quotes as
part of the string...) then it's fine...


 2. xs-activation - this wasn't working, pushed a new 'pu' branch for
 review.


On plane at the moment, will review asap :-)


 3. Version numbers of the components. I haven't bumped any of them.
 Some had already been bumped for the 0.7 release when it was looking
 like it might be F11/F14-based. Which ones should I bump? ds-backup,
 idmgr, xs-activation, xs-activity-server, xs-config, xs-rsync,
 xs-tools


Jerry spun an Australian XS build based on my partial work, IIRC. Maybe
he used those numbers. And then again, it's a small number of machines that
have Jerry managing them, so can't be a big issue.

4. I put xs-release as version 6 (matching epel and centos packages),
 with Epoch 1 so that it is seen as an upgrade over the current
 xs-release-9 in XS-0.6. Is that OK?


Yep, that's right.

  I've done an install based on the above repo and done quite a bit of

 testing, things are looking good. We're close!


Sounds fantastic!

cheers,




m


-- 
 mar...@laptop.org -- Software Architect - OLPC
 - 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] XS-0.7 CentOS6.2 rebase - other pending items

2012-02-10 Thread Martin Langhoff
On Thu, Feb 9, 2012 at 5:48 PM, Daniel Drake d...@laptop.org wrote:
 I now have an XS fully up and running and passing all my basic tests.
 Here are the remaining items that need addressing before we have a
 test release:

Great news.

 ejabberd - see the other thread. Need to decide on forking the package
 as 'ejabberd' or 'ejabberd-xs' to move forward.

I prefer ejabberd + a custom revision prefix. I see you intend to
blacklist ejabberd from the main epel repo.

For users that install CentOS and *then* install our stuff, we may
need to add a warning if we don't see our custom revision prefix. It's
gotta be a soft warning 'cause we don't really know if it's wrong or
not.

Alternatively,  we could make our ejabberd package provide
ejabberd-xs or something like that, and xs-config depend on it.

If a later ejabberd release has a means to enable the behaviour we
want, we can teach xs-config about depending on that one instead.

 moodle - pu branch ready for review. If you're going to pull in moodle
 updates as well, now is the time :)

Great. I'll review a bit later.

 I have tested this quite well, including the interaction with mod_admin_extra.

Excellent.

 xs-release - how do we go forward with this? I think we should drop
 the old approach (of *replacing* the system release package) and take
 the epel-release approach of just (additionally) installing our repo
 files

Absolutely. It's a bit more tricky with the blacklisting of ejabberd
you're proposing but yeah.

 But I'm not sure how you want this in git - existing branch of
 existing repo, new repo? Or maybe I could create a new
 packages/xs-release repo, with all the files contained in the spec
 file repo (i.e. doesn't pull in a tarball, just ships the trivial repo
 files directly).

Your packages/xs-release plan sounds ok. That was _never_ actually
used, unless Jerry based something on it, so I'd say it's ok to wipe
it.

Otherwise just wipe master and reshape it in any way you want...

 xs-logos - Haven't really looked what this has. Given that we don't
 face copyright/trademark restrictions of the logo package in CentOS,
 can we just drop this?

I think it's ok to skip it for now, but we'll bring it back .

 usbmount - I had to update to the latest version. It no longer uses
 any patches (they are all obsolete/upstream)

that's good news!

. How do I take care of
 this w.r.t. your existing usbmount git repository, where you actually
 forked the source? Perhaps we could just drop/obsolete that git repo,
 and create a new packages/usbmount repo with the simple .spec file?

Yep, a fedpkg style repo (thjat's what I prep'd the packages directory for.

For those cases, we'll work on getting them into Fedora/EPEL infra,
but _after_ this release cycle.

 olpc-xs-builder - pu branch ready for review.

Looks good,
 - where do you maintain the groups file?
 - does the resulting .iso file convert and now run nicely from USB
media? this used to be flakey...

 xs-setup during the install, since the user might choose a hostname
 that doesn't start with schoolserver.

True, we hadn't considered that.

. The installation instructions
 will require the user to run xs-setup after the install completes.

That's perfectly acceptable. Worse things have happened at sea.

 repos - I have reorganised slightly http://dev.laptop.org/xs/
 repos is now a subdirectory there, which will be our main URL from now on.
 But the other URLs still work: http://dev.laptop.org/xsrepos/
 http://dev.laptop.org/~martin/xsrepos
 Also, I have created aliases at http://dev.laptop.org/xs/stable and
 http://dev.laptop.org/xs/testing for the repos. This means that if we
 update the DNS of fedora.laptop.org, we will fix yum update / yum
 install for the existing XS's in the field, which use such addresses.
 What do you think?

Oh thanks! Yes please!

 I had to bring some packages in from Fedora, these are:

 bitfrost-1.0.15-3.el6.i686.rpm - not in RHEL/EPEL. Recompiled for EL6
 from rawhide.
 mtd-utils-1.3.1-3.fc14.i686.rpm - dep of bios-crypto, imported from F14

 kernel-2.6.42.2-1.fc15.i686.rpm - as previously agreed, imported from F15
 (kernel-* subpackages too)
 grubby-7.0.16-5.fc15.i686.rpm - dep of kernel, imported from F15
 linux-firmware-20110601-1.fc15.noarch.rpm - dep of kernel, imported from F15
 module-init-tools-3.16-2.fc15.i686.rpm - dep of kernel, imported from F15
 acpid-2.0.9-1.fc14.i686.rpm - imported from F14. Needed for compat
 with new kernel.

 rssh-2.3.3-2.el6.i686.rpm - imported from EPEL-6 updates
 syck-python-0.61-12.el6.i686.rpm - dep of ds-backup, not in RHEL/EPEL.
 F14 version recompiled for EL6.
 syck-0.61-12.el6.i686.rpm - dep of syck-python

I'm surprised the list is so short!

 Is it OK to stick these in the core xs-0.7 RPM repo, or would you
 prefer a separate fedora-ports repo to be created? (I vote just the
 one :))

Just one. Going foward, we'll push to get those packages in
Fedora/EPEL (where possible) so we migrate towards the fedpkg/koji
infra.

AIUI, 

Re: [Server-devel] ejabberd-2.1.10 issues

2012-02-09 Thread Martin Langhoff
On Thu, Feb 9, 2012 at 3:46 PM, Daniel Drake d...@laptop.org wrote:
 As you've seen - getting this old version to build is difficult.
 Getting it to run is even harder.

Yep. Was just a stab in the alternative path. Now that you've
root-cause'd the issue, things look better.

 I think I've found the issue: it is a client bug, now exposed through
 ejabberd getting stricter:
 https://support.process-one.net/browse/EJAB-1533
 https://bugs.freedesktop.org/show_bug.cgi?id=45853

 And I have an ejabberd patch to apply (attached) until we've fixed the

Right, so you have a partial revert of the strict patch at EJAB-1434
- you plan sounds good.

 Would you prefer for this fork to be named 'ejabberd' (with xs-setup
 modifying the EPEL repo file to exclude ejabberd upgrades from epel),
 or ejabberd-xs as before?

This merits a 'release' identifier, but we're only carrying 1 patch
over CentOS, and done the work to split the init script and config off
to xs-config, so keeping the ejabberd name makes sense.




m
-- 
 mar...@laptop.org -- Software Architect - OLPC
 - 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] XS rebase review

2012-02-08 Thread Martin Langhoff
On Tue, Feb 7, 2012 at 5:58 PM, Daniel Drake d...@laptop.org wrote:
 Ready for the next round of reviews for the XS work. I've now
 performed basic testing of all aspects of the system, so I feel this
 is ready for merging and wider testing.

Thanks!

 xs-config: pu branch recreated. Changes since yesterday:

I think that the new pu branch you pushed out is incomplete. It has a
very short run of patches, a massive diff from the pu I reviewed, and
it ends at

  11bdbdb Add setup.d hooks

Maybe a git push is needed :-)

 ds-backup: pu branch ready for review

Looks good.  We'll make a server  client release together. I have a
buglet to fix client-side.

 idmgr: pu branch ready for review

Much nicer layout, thanks! In fact, if you want to move it to
/var/lib, or /library... you got my nod as well.

Request: list_registration is a command for sysadmins;
 - rename it (xs-list-registration?), put it on the path
 - maybe make it root-only?

 xs-activation: pu branch ready for review
 xs-activity-server: pu branch ready for review

Looking good!

 xs-rsync: pu branch ready for review

Nice detail on the xz support!

 xs-tools: pu branch ready for review

Looks good.

 Remaining bits from the core packages:

 Moodle - seemed to fail on first boot, worked on second.  Using
 moodle-xs-1.9.5.xs2-1.xs11.noarch. Need to dig further.

I'll look into merging w 1.9.x latest, for security and stable
goodies. How much time have we got?

 ejabberd - runs, accepts connection, but shows no presence info. Need
 to look into this.

Hmmm, perhaps it's not getting the automagic Online group created?
Look in the ejabberd-xs.init script, run the commands from
setup_online_srg() by hand. The change in the ejabberd control module
changed the syntax of commands slightly.

 Which moodle branch should I be working with?

Branch mdl19-xs from
git+ssh://dev.laptop.org/git/users/martin/moodle.git

cheers,



m
-- 
 mar...@laptop.org -- Software Architect - OLPC
 - 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] XS rebase review

2012-02-08 Thread Martin Langhoff
On Wed, Feb 8, 2012 at 2:23 AM, rihowa...@gmail.com rihowa...@gmail.com wrote:
 Which releases of erlang and ejabbered are you using?

I unfortunately don't have the version number handy, but this should
help: this coming XS release only ships a configuration and init
scripts for ejabberd -- it's based on RHEL6.2/CentOS6.2, using the
ejabberd versions included in the OS.

Current ejabberd does not need any changes -- only configuration -- to
do what we need :-)

cheers,


m
-- 
 mar...@laptop.org -- Software Architect - OLPC
 - 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] XS rebase review

2012-02-08 Thread Martin Langhoff
On Wed, Feb 8, 2012 at 5:55 AM, Tabitha Roder tabi...@tabitha.net.nz wrote:
 I have likely missed some previous discussions, but are we moving to Moodle
 2.x or staying with Moodle 1.9.x on XS?

Daniel is doing a very focused update of the XS, to run on a more
current Linux base (CentOS6.x/RHEL6.x). So no major component overhaul
is happening in this fast and furious dev cycle...

 How important is it to stay current with moodle.org releases?

No need to rub it in :-{ -- we're woefully out of date.

Here's the good news:

 - dsd is taking on a significant overhaul that gets us on current
long-term-support RHEL/CentOS

 - it's likely that Jerry will take on some maintenance, to take the job further

 - this means that when I set some time aside for the XS, most
components are well cared for, and I can focus on Moodle!

 - we're well over the hump w XO-1.75! so that time aside for the XS
is closer to reality...

now, all we need is a weekend to recharge the batteries, and we're sorted.




m
-- 
 mar...@laptop.org -- Software Architect - OLPC
 - 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] New XS release very soon

2012-02-08 Thread Martin Langhoff
On Tue, Feb 7, 2012 at 3:16 PM, Daniel Drake d...@laptop.org wrote:
 On Tue, Feb 7, 2012 at 2:07 PM, Sameer Verma sve...@sfsu.edu wrote:
 How will this play with XS on ARM?

 It won't at all, yet.

 However, the liberation of the packages from the base install is the
 first step in this direction.

Yep - we plan to continue this work to make available packages for F17 on ARM.

The work that Daniel's doing makes our packages suitable for inclusion
in Fedora proper.


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] New XS release very soon

2012-02-08 Thread Martin Langhoff
On Tue, Feb 7, 2012 at 11:59 AM, Daniel Drake d...@laptop.org wrote:
 As agreed and directed by Martin this will become the next OLPC XS release.

And you can't imagine how pleased I am with this!

 Here in Nicaragua, the Zamora Teran Foundation has the task *this
 month* of deploying One Laptop per Child to every child on the
 mythical and beautiful island of Ometepe

These guys are fantastically crazy, in the best of ways.




m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] XS rebase review

2012-02-08 Thread Martin Langhoff
On Wed, Feb 8, 2012 at 8:59 AM, Daniel Drake d...@laptop.org wrote:
 Pushed an old branch - please look again now.

Looks great.

The only problem is the name - rename pu to master.

 ds-backup: pu branch ready for review

 Looks good.  We'll make a server  client release together. I have a
 buglet to fix client-side.

 OK, hopefully this will be ready today or tomorrow? :)

Heh, I'll try. It's trivial though -- the client code is reading from /ofw

 idmgr: pu branch ready for review

 Much nicer layout, thanks! In fact, if you want to move it to
 /var/lib, or /library... you got my nod as well.

 Request: list_registration is a command for sysadmins;
  - rename it (xs-list-registration?), put it on the path
  - maybe make it root-only?

 I'll do that, I assume this gets your approval once those changes are
 put in place so that I can push today?

Yep - agreed, approved.

 Remaining bits from the core packages:

 Moodle - seemed to fail on first boot, worked on second.  Using
 moodle-xs-1.9.5.xs2-1.xs11.noarch. Need to dig further.

 I'll look into merging w 1.9.x latest, for security and stable
 goodies. How much time have we got?

 Need to get it done this week really - latest on Monday.
 Hoping to be able to release this on Wednesday 15th for deployment at
 test schools in Managua on Thursday 16th.

Damned tight. I have a ramp process to see through to completion, and
it's been rather busy. Will give it a shot tomorrow.

 ejabberd - runs, accepts connection, but shows no presence info. Need
 to look into this.

 Hmmm, perhaps it's not getting the automagic Online group created?
 Look in the ejabberd-xs.init script, run the commands from
 setup_online_srg() by hand. The change in the ejabberd control module
 changed the syntax of commands slightly.

 The online group is created. Any further debugging hints appreciated,
 I'm not exactly sure where to start.

[ we're debugging this on irc right now ]




m
-- 
 mar...@laptop.org -- Software Architect - OLPC
 - 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] CentOS hardware support doubts

2012-02-03 Thread Martin Langhoff
On Fri, Feb 3, 2012 at 9:07 AM, Daniel Drake d...@laptop.org wrote:
 I'm worried about the expertise required in order to identify such
 repos and packages. We need this process to be doable without me in
 the room.

Agreed.

 I assume that RHEL is pretty good for server-class hardware found in
 US/EU; I can imagine why the support of desktop-class hardware found
 in the poorer parts of latin america may be lesser so.

Grumble. And we know where our users are.

 I haven't yet found a case where the F9--C6 upgrade adds hardware
 support for any hardware that we have here.

That's all around bad news.

 I like your idea of using a F16 kernel on top of CentOS 6.2. So far,
 his seems to be working fine (and solves all of the compatibility
 problems mentioned above). If this continues to work I would like to
 push it as the default for XS install media.

The F15 version of the same kernel that Peter proposes seems sane to me.

Still, it's a surprise to me.




m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] CentOS hardware support doubts

2012-02-02 Thread Martin Langhoff
On Tue, Jan 31, 2012 at 2:30 PM, Daniel Drake d...@laptop.org wrote:
 However, having installed/run CentOS 6.2 for the first time I now have
 my doubts about this. I installed it on a server where the network
 interface does not appear with F9 (but does work with more recent
 Fedora). With CentOS, the same problem as F9 is presented: no network
 adapter.

 Digging further, I see that support was added to the Linux kernel for
 this particular network adapter (Atheros AR8152) on February 16th

I assume here that CentOS is reasonably in sync with RHEL. Does
http://elrepo.org/bugs/print_bug_page.php?bug_id=126 help? More
generally, does any of the external repos have a kmod-staging or
kmod-atl1e that works for you?

My assumption is that RHEL/CentOS have fairly decent hardware support
from backported drivers, some in the RH kernels, EPEL or external
repos (in order of decreasing quality expectations...).

I wonder if you've been unlucky in the mix of hw you got there; or
whether the driver support situation for essential things like NICs
and disk controllers is weaker than I had expected. Maybe others with
more practical experience with current RHEL/CentOS can comment...?

We should keep in mind that any LTS OS will have to rely on driver
packages and/or kernel updates to support current hw... of course we
want something reasonably sane and straightforward. But having to
handle some extra driver installs isn't in itself a big deal.

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] [Sugar-devel] Sugar Server project initiation announce

2011-06-10 Thread Martin Langhoff
On Thu, Jun 9, 2011 at 1:51 PM, Aleksey Lim alsr...@activitycentral.org wrote:
 In fact, the project started three weeks ago but for now some of its core
 purposes became more clear, ie, ready for announcing.

You guys are *weird*.

I've been hearing from AC for a while that you'd help with XS, in
private, and in grandiloquent public posts. I never received a single
patch, rpm, or anything usable.

Recently, Aleksey has been hacking on XS things, and that's excellent.
And I apologize for not being more available -- I am working against
some very tight and non-negotiable deadlines on the XO-1.75 project.
Other times I have made myself available aplenty (with David van
Assche for example).

From Aleksey's efforts, I was expecting some patches, updated spec
files, some reason to be happy.

Instead, you announce that you fork or start from scratch (unclear to
me which). There aren't major technical disagreements, or social
disagreements -- at most you could complain that I've been a bit MIA
for the last couple weeks.

And you fork after a long long track record of promises -- in private
and in public -- of working on the XS. Promises that were never
followed up -- plenty of cookie licking if you want. Did anything
ever happen with the plans announced at
https://lists.ubuntu.com/archives/ubuntu-sugarteam/2010-October/002451.html
?

You also announce this as a 'Sugar project' -- are those discussed
with the board? If so... is there a 'check with current maintainer'?
Or people make them up at will?

Beyond my irritation, I hope this one goes well, and leads somewhere.
The XS needs love. A fork for the fun of it isn't exactly love but
hey.


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] OLPC Australia XS concerns

2011-06-10 Thread Martin Langhoff
Hi Brian,

that doesn't sound pretty. Who did you receive the server from? What
deployment are you part of?

The server -- can boot from USB or from a CD? Perhaps you can boot
from a linux live CD or live USB to diagnose?

cheers,


m

On Fri, Jun 10, 2011 at 5:00 PM, HALL,Brian C
brian.hal...@uwimona.edu.jm wrote:
 Good Day,



 I recently received an OLPC school server. When I booted it, I got the
 error: “Disk Boot Failure, Insert System Disk and Press Enter”





 Could anyone assist me with this issue?





 Thanks in advance,

 Brian Hall



 From: server-devel-boun...@lists.laptop.org
 [mailto:server-devel-boun...@lists.laptop.org] On Behalf Of Anna
 Sent: Friday, June 10, 2011 4:54 PM
 To: Martin Langhoff
 Cc: Sridhar Dhanapalan; XS Devel
 Subject: Re: [Server-devel] OLPC Australia XS concerns



 On Fri, Jun 10, 2011 at 11:16 AM, Martin Langhoff
 martin.langh...@gmail.com wrote:



 the XO's WLAN can be the AP

 Note that running hostap is not a trivial endeavour.

 Unless something's changed recently since the last time I looked, the XO's
 wifi chip doesn't support hostapd.  The best I've been able to kludge
 together (back when I used the XO as a portable XS to tote to training
 sessions) was a USB-Ethernet adapter on eth1 connected to an old Linksys
 AP.  If wifi was available, the XO's WLAN worked as eth0.

 Anna Schoolfield
 Birmingham

 

 No virus found in this message.
 Checked by AVG - www.avg.com
 Version: 10.0.1382 / Virus Database: 1513/3692 - Release Date: 06/10/11



-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] [Dextrose] [Sugar-devel] Sugar Server project initiation announce

2011-06-10 Thread Martin Langhoff
On Fri, Jun 10, 2011 at 10:44 PM, David Farning
dfarn...@activitycentral.com wrote:
 You are 100% correct in these criticisms and concerns about Activity Central. 
 We
 are a new company working in a new market. Failures and mistakes are 
 inevitable.
 If you have been hurt by those mistakes, I apologize and accept full
 responsibility for them.

Hi David! Look -- thanks for being so frank and open. Past it the
past, and I've made mistakes aplenty myself. What I was trying to say
was: you seem to be doing the same thing again. Like now. I mean --
today.

How 'bout taking a slightly different tack? You just posted last week
about cookie licking, which if you think about it... that perhaps
applies to those big Ubuntu announcements last year for example.
Perhaps could apply to this server thing -- we don't know yet. As I
said, I frankly hope I am wrong.

Anyway -- of course there may be business reasons for your forking. Happens.

It's just that on the working with the existing project, the score
isn't looking too good. I mean -- Aleksey subscribed to the xs-devel
list, and his first message there was the opener of this thread.

Classic.



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with big announcements  - 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] e: Regarding my OLPC XS Wishlist (Abhishek Singh)

2011-06-07 Thread Martin Langhoff
On Mon, Jun 6, 2011 at 12:30 PM, TONY ANDERSON tony_ander...@usa.net wrote:
 Meanwhile I have posted my version of the wish list as a wiki page:

 http://wiki.sugarlabs.org/go/School_Server_Wish_List

Ntoe that people go to our wiki in search for documentation. That is
your _personal_ wishlist. Please move it to a personal page.

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] Regarding my OLPC XS Wishlist

2011-06-02 Thread Martin Langhoff
On Thu, Jun 2, 2011 at 5:20 AM, Aleksey Lim alsr...@activitycentral.org wrote:
 btw, I'm planing to use Prosody instead of ejabberd. I have really bad
 experiance w/ ejabberd - on jabber.sugarlabs.org it eats too many
 resources for regular 10-30 online users. Prosody is slim and light app
 and it alsready works fine w/ sugar-0.88.

Have you spent any time learning how to configure ejabberd? Diagnosing
your problem? Discussing it on the ejabberd mailing list?

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] Regarding my OLPC XS Wishlist

2011-06-02 Thread Martin Langhoff
On Thu, Jun 2, 2011 at 11:56 AM, Aleksey Lim
alsr...@activitycentral.org wrote:
 Have you spent any time learning how to configure ejabberd? Diagnosing
 your problem? Discussing it on the ejabberd mailing list?

 Well, I assume OLPC people did it many times before me, I just reused their
 experience tryinhg to follow wiki.l.o docs and using native packages from
 fedora.

Yes -- everytime we saw a perf problem we diagnosed. Right now we
don't see performance problems when load testing the XS.

If you see perf problems in your specific setup, I can only suggest
you diagnose -- perhaps with the help from the ejabberd developers via
their mailing list.

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] [Dextrose] Regarding my OLPC XS Wishlist

2011-06-02 Thread Martin Langhoff
On Thu, Jun 2, 2011 at 9:31 PM, Bernie Innocenti ber...@sugarlabs.org wrote:
 Thanks. Send me your public ssh key, I'll give you access to the machine

Sorry - no time, 1.75 has a pretty rigid timeline! When I did have
time to work on ejabberd, I did as described and worked a charm. Also
-- I don't claim to be an ejabberd expert. Talk with the experts, not
with me :-)

The binaries are those in latest stable XS -- but keep in mind
performance under pressure is closely coupled with the version of the
ejabberd runtime.

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] XS wishlist

2011-05-31 Thread Martin Langhoff
On Fri, May 27, 2011 at 12:30 PM, Sameer Verma sve...@sfsu.edu wrote:
 Came across this via Twitter: http://asingh.com.np/blog/olpc-xs-my-wishlist/

Yeah - unfortunate that it didnt get posted here.

 Porting XS to new version of Fedora
 Support for multiple architecture

Yes - squarerly in my plans. I have the mixed fortune of being tasked
with steering a sizable part of the engineering behind XO-1.75; so
that's what's breaking my back ATM.

OTOH, the next XS I'll probably have running on ARM too -- oh, ah, you
meant 64 bits... that too ;-)

Note that the plan is to aim for F14 and RHEL/CentOS/Scientific Linux
version 6 (or 6.x). The XS packages will probably be in EPEL, with a
group, so you can add the EPEL repos, and groupinstall XS Server.

 Basic Self Tests

That's hard, specially combined with the make it more modular and
flexible requests.

 Inclusion of new packages

Sure -- once we're on top of a recent Fedora/RH/CentOS/ScL... however

 systemd: a replacement for SysVinit and Upstart that acts as a system
 and session manager.

Unlikely. Breaks too many things at the moment, benefits _desktops_,
and causes duplicate work in the face of RH6. Will wait-and-see.

 usb-modeswitch: a library/utility for handling Mode-Switching USB
 Devices on Linux. This package is required to access internet through
 3G cards (e.g. Mobile broadband).
 ipcheck: a Dyndns.org client to register your dynamic IP address. It
 helps to configure the server with dynamic dns and with port

all yes'ses

 forwarding enabled on the Internet gateway, eases accessing the
 schoolserver from anywhere on the Internet.

Ugh -- no. It'll get me one happy user (the requester) and a long list
of admins trying to kill me.

 MySQL: a relational database server, and a de-facto backend for many
 services. Also it would be good to ditch PostgreSQL for Moodle. MySQL
 management is easy than PostgreSQL and there is more documentation,
 community support and human resource for MySQL.

NO. Getting MySQL to run correctly and reliably is much harder than
running Pg. This is one requester that knows how to run MySQL badly.

Here's your test: step 1 - run a busy mySQL install; step 2 - unplug
power cord at random times; step 3 - boot and see how mySQL behaves,
and the state of the data. Lather, rinse, repeat.

 PHP with required extensions: a powerful server-side HTML embedded
 scripting language. OLE Nepal’s digital library “E-Pustakalaya” runs
 on PHP and MySQL. Also we might need some PHP extensions like
 php-mysql, php-gd, php-xml.

Someone is just NOT using the XS and writing random stuff. PHP and the
php-xml and php-gd extensions are installed and in use on the XS.

 Python 2.x and Python 3.x: an interpreted, interactive,
 Expect:
 libicu and unicode support
 tzdata and extensions:

Oh man. Next we're gonna hear that it'd be good to have the XS run linux!

I abandon right here.



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] [Sugar-devel] [IAEP] copy files to/from server

2011-05-18 Thread Martin Langhoff
On Tue, May 17, 2011 at 5:15 PM, Martin Abente
martin.abente.lah...@gmail.com wrote:
 I still didn't make up my mind about which technical approach should I
 take in order to get this working, but I guess people already started
 sharing some ideas. And I would appreciate more ideas and discussion
 before I get to that point.

ok - some notes from me on this topic

For file management, I very strongly recommend using WebDAV. It is a
bit less efficient than real network file system protocols, but the
benefits are many:
   - more flexibilty
   - closer to you and me in the stack - you can easily find WebDAV
toolkits in HLLs that allow you to expose your data as files and
directories over WebDAV, as well as client implementations
   - it deals reasonably gracefully with intermittent connectivity
(SMB/CIFS, NFS, etc get you nasty system freezes if the server
disappears)
   - wide range of (fairly well behaved) client and server implementations
   - a good test suite for the server side
   - On the XS side... Moodle has a WebDAV implementation and Apache
has one too.

From the department of optimizations to keep in mind early (but
implement late...) -- if ds-backup is working correctly, you'll have
most of the content already on the XS. Might be a nice optimisation to
skip transferring it -- if you have a msg exchange *before* the WebDAV
(or other) file transfer.

 The very basic requirement is: each children must have its private
 cloud volume, where they can drop their files in the same way they
 interact with physical external storage devices.

Why would I drop the file there? In my understanding, what you want to
do with it is *publish* it.

 On top of that we can do a lot of things that might be very useful for
 teachers daily in the classrooms.

Yeah - *publish it to my classroom group* -- via Moodle. I've worked
for ~10 years with teachers and that's what they want to do 99.9% of
the time -- publish it to the group. If we do that nicely, we're
golden.

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] What rpm packages would you include for the XS?

2011-04-08 Thread Martin Langhoff
On Fri, Apr 8, 2011 at 12:24 PM, Jerry Vonau jvo...@shaw.ca wrote:
 I have put together a running F11 based XS-server package. This soon to

Nice.

 What would you like to see on the install iso that you would find
 useful?

Puppet
wwwoffle
opendns client


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] Hibrid configuration for the XS-server|XS inside a network

2011-04-03 Thread Martin Langhoff
On Sun, Apr 3, 2011 at 11:23 AM, Alvar Maciel al...@tuquito.org.ar wrote:
 My name is Alvar Maciel, I'm from Argentina and in our school we are trying
 to use the moodle of the XS-Server.

Hi Alvar!

Jerry Vonau has done some very good work on this track. I don't
recommend at all a VM.

Instead, install a vanilla F9, and then pick the packages you need
from our XS rpm repo
http://xs-dev.laptop.org/xsrepos/testing/olpc/9/i386/

You'll probably need some bits from the xs-config package.

I am trying to make this kind of setup easier in the next XS release
-- unfortunately it's pretty hard with the current XS :-/

Again, Jerry's work on that track is very helpful -



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] Network Backup of Journal Video Items

2011-03-29 Thread Martin Langhoff
On Sat, Mar 26, 2011 at 5:24 AM, Sebastian Silva
sebast...@sugarlabs.org wrote:
 So now I'm going to try and ease the workflow by having each laptop transmit
 asynchroniously what they record

You may want to ask Jon Nettleton for some experimental patches for
record he's mentioned recently, using webm+matroska.

Not sure how they'll fare on XO-1, but on a fast storage they may give
you what you want.

Hi-res on XO-1 sure is a challenge.

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] Network Backup of Journal Video Items

2011-03-24 Thread Martin Langhoff
Hi Sebastian,

can you tell us a bit more?

You be recording with XO-1 units... using Record in Sugar? What
version of Sugar and Record? Or you'll use gstreamer directly to the
server?

One possibility would be to write to an NFS share -- but 'realtime'
recording of videos over wlan is tricky and likely to fail. The wlan
connection can easily get interference from external sources or just
contention (from too many users on the same AP or frequency).

If it's possible, recording locally and then having a backup or
explicit upload/copy is the most reliable method.

Local recording on an XO-1 is limited by the JFFS2 storage -- if you
are prepared to use something other than standard Record, you may be
able to capture at high resolution and store without compression (or
with minimal compression) writing straight to a fast USB Flash
storage, or an SD card.

This will give you the best starting quality -- which you'll need as
you're intending to use this for a documentary.

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] Help buying server for XS

2011-03-24 Thread Martin Langhoff
Hola Omar!

Guillermo's notes are good -- he is getting good results with that hardware.

Some more info

 - Access Points tested with XO-1 and XO-1.5
   http://wiki.laptop.org/go/Wireless_access_point_compatibility

 - Some recommended HW and notes on how to choose HW - also look at
the server sizing section
   http://wiki.laptop.org/go/XS_Recommended_Hardware

 - In terms of numbers of access points, you need to plan a bit. We
usually recommend 1 AP per 40 active users, you also have to consider
the number of kids in a classroom, whether walls block RF or not,
school layout, etc.

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] callhome script

2011-03-08 Thread Martin Langhoff
It's unfortunately broken. I half-fixed it for La Rioja (Argentina)
but don't have a copy with me.

Even fixed, it needs additional infra to collect the pubkeys of all
the XSs. In LR we did it with puppet.

At the end of the day, what you _really_ want is puppet :-)

http://wiki.laptop.org/go/XS_Puppet



m

On Tue, Mar 8, 2011 at 4:21 AM, Sameer Verma sve...@sfsu.edu wrote:
 Found the callhome script on the XS (0.6). Has anyone used it in the
 field? Is it documented/recommended? I'm looking at it as an
 alternative to setting up a openvpn tunnel from an XS to a public IP
 someplace.

 cheers,
 Sameer
 --
 Dr. Sameer Verma, Ph.D.
 Associate Professor, Information Systems
 Director, Campus Business Solutions
 San Francisco State University
 http://verma.sfsu.edu/
 http://opensource.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




-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] Modularizing the school server

2011-03-04 Thread Martin Langhoff
On Sun, Feb 20, 2011 at 12:45 AM, David Farning
dfarn...@activitycentral.com wrote:
 Over the past couple of months Activity Central has be looking at the
 possibility of puppetizing school server setup.

Hi David(s),

a couple of weeks have gone by since your msg. And we've been in touch
in private for a bit longer on this (puppet/xs) topic.

Is there any working code? Any concrete progress in any direction
towards something tangible? If so, it'll make me enormously happy.
Draft code more than welcome.

I much prefer patches, and scripts over announcements ;-)

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] Re-registering an XO against an XS

2011-03-01 Thread Martin Langhoff
On Tue, Mar 1, 2011 at 2:03 AM, Sridhar Dhanapalan
srid...@laptop.org.au wrote:
 Here's a scenario:

  1. child's XO stuffs up
  2. XO's OS is re-flashed
  3. XO is registered again against the XS
  4. XO has its backups restored from the XS
  5. collaboration, classroom segregation, etc. work as before

That just works as long as the mobo (sn/uuid) stays the same.

 Alternatively, what if the XO is broken and replaced instead of just
 re-imaged? Can the child get back onto the network and pick up from
 where they left off?

Also works but child will need help from teacher (actually, a user
with course creator privileges) to connect his old account to the
new one.

So second scenario looks like

  1. child's XO stuffs up
  2. XO's hw is replaced (different sn/uuid)
  3. XO is registered again against the XS
  3.1 course-creator connects the accounts
  4. XO has its backups restored from the XS
  5. collaboration, classroom segregation, etc. work as before

I wonder who architected this gem... ;-)

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] Created '/git/packages' for fedpkg-style repos, reorganized XS source repos

2011-02-14 Thread Martin Langhoff
In dev.laptop.org, I created /git/packages -- to store git repos that
follow the fedpkg style. Very useful for any packages that aren't in
Fedora, or where we patch or frob the pkg slightly.

And converted almost all the XS-related packages to use this infra. Changes

 - Trimmed trailing '.git' from the repo path. You will have to edit
your .git/config file to match. I fixed all references to the affected
repos in wiki.laptop.org .

 - Split off the spec files to their own fedpkg-style repos

 - The fedpkg-style repos have their funny branch setup. I removed any
strange branch setup from the actual source repos.

 - There were 2 invisible pam_sotp repos tracking spec and patches
under /git/users/martin/ -- merged the good bits in them, fedpkg'd the
results. Now lives under /git/packages as it should.

This affects

  pam_sotp
  xs-activation
  xs-activity-server
  xs-logos
  xs-otp
  xs-release
  xs-rsync
  xs-tools

moodle and xs-config will see a major revamp, so I haven't attacked them yet.

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] wwwoffle?

2011-02-09 Thread Martin Langhoff
On Wed, Feb 9, 2011 at 8:18 PM, Dan Zubey dzu...@openincident.com wrote:
 Just out of curiosity, what issues have you seen with squid? I've run it for
 many many years, and would be curious to hear what problems you've seen.

Search the list archive for squid and memory :-)

 Nope. :) The part I was trying to avoid was switching squid on and off, and
 keeping track of it's state. It's not hard to *do*, was just thinking of
 trying to keep the system simple.

up/down will be much simpler than nested quirky proxies...


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] wwwoffle?

2011-02-06 Thread Martin Langhoff
On Fri, Feb 4, 2011 at 8:58 PM, Dan Zubey dzu...@openincident.com wrote:
 Alright, sorry about the slow work on this..dayjob and all that. I've got a
 framework coming together however.

Excellent!

 One question though..both wwwoffle and squid can talk to an external proxy
 instead of pulling directly off the net.

 Would there be any advantage to running both simultaneously, and having one
 redirect to the other?

Well, squid is pretty quirky, I am trying to replace it, and some of
the possible replacements are quirky too (but in much better ways!)
:-)

If detecting the connectivity situation and switching is hard for you
right now, don't do that part. Let your stuff just be init script +
configs.

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] Recommended tropical island XS hardware

2011-02-03 Thread Martin Langhoff
On Thu, Feb 3, 2011 at 6:31 AM, Tom Parker t...@carrott.org wrote:
 Is there a recommended school server hardware these days?

Not really, but the market is moving in the right direction. Thise
fanless boxes you mention...

 The schools in question are probably less than 200 students each, so I'm
 guessing an Atom processor will be ok?

Definitely yes. With 1G RAM or so. Make sure to plan for the backup space.

 There are a few people building fanless no-name boxes based on the Intel
 D510MO motherboards. I'm running one of those very successfully as my
 own server, with a 3.5 harddrive it consumes about 25W when powered by
 a wide input PicoPSU and HP Laptop brick (35W with a no-name desktop
 power supply!). Is anyone running a schoolserver with one of these? How
 many students is it good for?

Assuming 1GB RAM should be ok for 200 users, not all concurrently
hitting it -- which may well be prevented/controlled by AP
infrastructure.

The key thing is having enough RAM. As long as the working set fits in
RAM, you get graceful degradation. If users manage to use too much RAM
on the server (where too much means part of the working set gets
pushed to swap) then performance drops immediately like a stone. The
server hits a metaphorical wall, and your users report that it has
'crashed'.

It hasn't really crashed, but it's gone from reasonable latency to
complete non-responsiveness.

IOWs, in case of doubt, beef up the RAM.


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] Question on number of iptables rules

2011-02-02 Thread Martin Langhoff
On Tue, Feb 1, 2011 at 6:28 PM, Anna ascho...@gmail.com wrote:
 My test XS at home has a FQDN and is open to the outside.  Therefore this is
 probably a pretty rare issue in XS land, but I thought I'd ask.

In general, I'd keep it closed. It's not designed as a full internet server.

 Getting them into /etc/sysconfig/olpc-scripts/iptables-xs is easy enough.  I
 pasted the IP data into a file named banned_ips.txt and ran this little
 script:

 #!/bin/bash
 for i in $( banned_ips.txt); do
 iptables -A INPUT -s $i -j DROP
 done

You could do the same from the init script even.

 Here's my question - is the XS networking going to get wonky with 894 extra
 iptables rules?

Short answer - no.

Slightly longer: no, but if the list grows and starts to cost you in
network perf, might be worth looking at ipset
http://www.netfilter.org/projects/ipset/index.html

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] HELP regarding ejabberd, getting not_allowed error.

2011-01-29 Thread Martin Langhoff
On Sat, Jan 29, 2011 at 3:13 AM, Xahid zahid.b...@gmail.com wrote:
 its working fine NOW,
 I logged on, using the 1st XO registered,

That is EXCELLENT! Great news.

How many XOs will the XS be serving? Are the APs working well?

 altho. my Part is finished here, but i would like to know, how to create
 course, and manage them ?

Creating and managing courses is based in Moodle -- use the Browse
activity, from the XO that has admin rights, and create a new course.
Assign roles (teachers, students) for the other XOs relative to that
course.

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] pungi vs anaconda buildinstall: TMPDIR works, local cache ignored...

2011-01-28 Thread Martin Langhoff
On Thu, Jan 27, 2011 at 10:08 PM, Sergio Monteiro Basto
ser...@sergiomb.no-ip.org wrote:
 I almost forgot , pungi (on buildinstall) also creates boot.iso which
 you may able to create usb boot disk ,

That's an excellent tip. Thanks!



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] XS-0.7 plans -- your thoughts please...

2011-01-28 Thread Martin Langhoff
On Thu, Jan 27, 2011 at 6:13 PM, Sameer Verma sve...@sfsu.edu wrote:
 Is that because the wlan card does not support hostap (I haven't
 verified this)?

Correct. We have experimental kernel patches + firmware for this but
they are very *very* green.

 What if the card simply ran in ad-hoc mode? It might
 support a small pool...

Ugh... I honestly prefer not to go there. Better to recommend a
USB-wlan that _can_ do hostapd.

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] HELP regarding ejabberd, getting not_allowed error.

2011-01-28 Thread Martin Langhoff
Hi Xahid!

On Fri, Jan 28, 2011 at 5:22 AM, Xahid zahid.b...@gmail.com wrote:
 NOW, all the XO can connect with XS easily using Wifi,

Excellent! Have you used the register option from the XOs? It
appears in the same menu where you have the 'shutdown' option.

After registering this way, old versions of the OS need to be
restarted (OS 8.2.1). New versions of the OS, just open the webbrowser
and go to the school server.

Note! The first XO to register + visit the XS homepage becomes
administrator on the XS :-)

 I already register the user admin by ejabberd ctrl utility .. with
 password default password

Do NOT use the ejabberdctl utility to register an admin user. That
step is from instructions that are old and wrong.

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] wwwoffle?

2011-01-28 Thread Martin Langhoff
On Fri, Jan 28, 2011 at 4:19 PM, Dan Zubey dzu...@openincident.com wrote:
 What about distributing an rpm package that additionally includes
 xs-specific scripts for wwwoffle, apache proxy configuration, and
 /etc/init.d ? That way there's no need to do sed re-configuration back and
 forth.

You get the config and scripts done, and I'll ge them merged into the
xs-config package :-)

We won't be sed'ing around too much :-) what we'll do is leave alone
the initscripts and config files from the vanilla packages, and use
our own. Think /etc/init.d/xs-wwwoffle which starts the woffle
service which dynamically brings wwoffle up and down according to
network conditions. It uses binaries pointing to a configuration in
/etc/xs-wwwoffle .

cheers.



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] XS-0.7 plans -- your thoughts please...

2011-01-27 Thread Martin Langhoff
On Thu, Jan 27, 2011 at 5:50 PM, Sameer Verma sve...@sfsu.edu wrote:
 Sorry about the delayed response (school is back in session), but can
 I assume that XS 0.7 will run on a XO 1.5?

Definitely on the wishlist, but not a given. Even if it does, one of
the desired features is very unlikely to happen: use the wlan as AP.



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] xs-activity-server dotted versions

2011-01-26 Thread Martin Langhoff
On Mon, Jan 24, 2011 at 3:53 PM, Jerry Vonau jvo...@shaw.ca wrote:
 If I revert this patch, I get the webpage to render the first time
 running /usr/bin/xs-regenerate-activities 
 /library/xs-activity-server/activities

 http://dev.laptop.org/git/users/martin/xs-activity-server.git/commit/?id=bd34ebabbe78971c82dfd909fdfa01939e521cda

Right, but then the bug comes back -- 2 is larger than 199.
Working on this --


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] xs-activity-server dotted versions

2011-01-26 Thread Martin Langhoff
On Wed, Jan 26, 2011 at 11:41 AM, Martin Langhoff
martin.langh...@gmail.com wrote:
 On Mon, Jan 24, 2011 at 3:53 PM, Jerry Vonau jvo...@shaw.ca wrote:
 If I revert this patch, I get the webpage to render the first time
 running /usr/bin/xs-regenerate-activities 
 /library/xs-activity-server/activities

 http://dev.laptop.org/git/users/martin/xs-activity-server.git/commit/?id=bd34ebabbe78971c82dfd909fdfa01939e521cda

 Right, but then the bug comes back -- 2 is larger than 199.
 Working on this --

Fixed and in olpcxs-testing repo for XS-0.6 users.

It was a bit more involved than initially thought. That lambda line is ugly.

http://dev.laptop.org/git/users/martin/xs-activity-server.git/commit/?h=f9/masterid=ded0039541292d6d8a23966900916ba3a68aca56

cheers,



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] xs-activity-server dotted versions

2011-01-26 Thread Martin Langhoff
On Wed, Jan 26, 2011 at 4:59 PM, Jerry Vonau jvo...@shaw.ca wrote:
 Yea thanks, just was looking at the git repo. Having 2 versions of the
 activity still rendered showing as link to the older version under the
 latest version, thought that was enough.

I don't fully understand. With my latest commit  rpm on f9, do you
get the desired behaviour?

 Any chance of getting F11 rpms up too?

No longer building for F11, sorry, but the F9 repo has an srpm that'll
rebuild correctly.

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - 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] HELP regarding ejabberd, getting not_allowed error.

2011-01-25 Thread Martin Langhoff
Copying list -

On Tue, Jan 25, 2011 at 12:34 PM, Martin Langhoff
martin.langh...@gmail.com wrote:
 On Tue, Jan 25, 2011 at 6:23 AM, Xahid zahid.b...@gmail.com wrote:
 I have ADD another Lan Card in the Server (thought, i need another one for
 Local Area Connection)
 so, its eth1
 but its not picking up the IP Adress,
 eth0 is connected with internet,
 how do i give the IP address to eth1 ?
 and how do I further more configure it ? (as I thought, it would be
 configure by ejabberd ?)

 When you have 2 network cards in an XS, the config scripts assume eth0
 is for WAN (connection to the internet, or an external network) and
 eth1 for the LAN.

 If you have an eth1 card, the XS will autoconfigure it to be attached
 to lanbond0 -- try ifconfig lanbond0 to see the ip addresses it has.

 If the cards are reversed, and you want to swap their roles, you can
 use xs-swapnics -- see
 http://wiki.laptop.org/go/XS_Techniques_and_Configuration

 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




-- 
 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] ejabberd online patch for Fedora's rpm...

2011-01-25 Thread Martin Langhoff
On Tue, Jan 25, 2011 at 1:47 PM, Peter Lemenkov lemen...@gmail.com wrote:
 Add yourself here:

Done

...
 Just don't break stuff. :)

No prob. I'll move slowly and ask you questions first :-)

thanks!!!


m
-- 
 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] HELP regarding ejabberd, getting not_allowed error.

2011-01-24 Thread Martin Langhoff
Info is interesting to the list, so re-posting there --

On Mon, Jan 24, 2011 at 8:14 AM, Martin Langhoff
martin.langh...@gmail.com wrote:
 On Mon, Jan 24, 2011 at 12:15 AM, Xahid zahid.b...@gmail.com wrote:
 hostname -f return
 schoolserver.schoolserver.pak.org

 Ok - then try

  ejabberctl register admin schoolserver.schoolserver.pak.org password

 Well, Admin account to configure further the school server using web based
 management tool ejabberd !

 The web interface to ejabberd is _disabled_, and in general, there is
 nothing to administer via ejabberd, it's all autoconfigured. Some
 stuff on the XS you can administer from Moodle, and other stuff from
 the command line.

 If you are reading pages in the wiki that tell you about ejabberd
 administration, you are probably reading old, incorrect pages.

 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




-- 
 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] pungi vs anaconda buildinstall: TMPDIR works, local cache ignored...

2011-01-24 Thread Martin Langhoff
Working with Pungi 2.1.4 to build the School Server OLPC spin (which
fir test purposes is being done on F14, though that's not the final
target).

- Seems like Pungi has for a long time avoided setting a smart TMPDIR
when calling anaconda's buildinstall. This uses a sizable chunk of
/tmp . I've pached  pypungi/__init__.py to set it, and it works fairly
well (for me at least). Was going to post a patch but v2.5.0 has been
completely reworked.

- The buildinstall process is dog slow for me -- because buildinstall
is ignoring the pungi cache and grabbing it all itself, again. Is this
expected? Should pungi add a repo of it's own local cache?

Looking at pungi's git repo, I ended up looking at Lorax code -- so I
gather patches to scratch my own itch won't be merged.

Keen on hearing when new pungi plus new lorax can build a F14 image.

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] Revisiting @online@ patch

2011-01-24 Thread Martin Langhoff
Hi list, hi Badlop!

In the process of building a new version of OLPC's School Server, I am
trying to solve the last patch we have that isn't in your tree.
(Thanks for all your help getting earlier patches merged! Also, happy
that you liked them :-) )

The patch implements @online@ -- and in the past it has been discussed
and rejected or delayed because it didn't implement @recent@ or
@nearby@ correctly. This was discussed back in

  https://support.process-one.net/browse/EJAB-456
  http://lists.jabber.ru/pipermail/ejabberd/2009-April/004901.html

In this updated version of the patch I have *dropped* @recent@ and
@nearby@ components, so we only have the part of the patch that...
_works_ and is actually used. I am testing this patch at the moment,
but I generally expect to confirm it works as expected in a few days.

Background:  OLPC makes extensive use of @online@ for small and
autoconfigured school servers. Anything larger than ~100 users, it
only makes sense to actually organize users in groups (as per their
classrooms) -- we do this via Moodle, which then manages SRGs calling
ejabberdctl calls.

In practice, we have found that those two modes (@online@ and managed
SRGs) fully cover our use cases. We don't use, and we don't think we
need @recent@ or @nearby@. Those parts of the earlier patches have
unfortunately never worked.

Review? Merge? Scream?

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
From f98185d4da9ed34df7e5e3bf7f0b8e4b1b169e6c Mon Sep 17 00:00:00 2001
From: Martin Langhoff mar...@laptop.org
Date: Mon, 24 Jan 2011 17:55:22 -0500
Subject: [PATCH] New version of the @online@ patch originally by Collabora.

Notes:

 - fixed a typo in is_user_in_group
 - simplified user_available and unset_presence hook handlers
 - the presence push is mediated via the group rather than
   per user - this may reduce memory footprint... _if_ ejabberd
   has some smart optimisation in that codepath
 - it assumes that any group with membership @online@ _displays_
   online as well -- this is a simplification and breaks the
   decoupling that ejabberd has in this regard.
---
 src/mod_shared_roster.erl |  154 -
 1 files changed, 137 insertions(+), 17 deletions(-)

diff --git a/src/mod_shared_roster.erl b/src/mod_shared_roster.erl
index 64a8291..2f23201 100644
--- a/src/mod_shared_roster.erl
+++ b/src/mod_shared_roster.erl
@@ -37,6 +37,8 @@
 	 process_item/2,
 	 in_subscription/6,
 	 out_subscription/4,
+	 user_available/1,
+	 unset_presence/4,
 	 register_user/2,
 	 remove_user/2,
 	 list_groups/1,
@@ -45,7 +47,7 @@
 	 delete_group/2,
 	 get_group_opts/2,
 	 set_group_opts/3,
-	 get_group_users/2,
+	 get_group_users/3,
 	 get_group_explicit_users/2,
 	 is_user_in_group/3,
 	 add_user_to_group/3,
@@ -85,6 +87,10 @@ start(Host, _Opts) -
 	   ?MODULE, get_jid_info, 70),
 ejabberd_hooks:add(roster_process_item, Host,
 		   ?MODULE, process_item, 50),
+ejabberd_hooks:add(user_available_hook, Host,
+		   ?MODULE, user_available, 50),
+ejabberd_hooks:add(unset_presence_hook, Host,
+		   ?MODULE, unset_presence, 50),
 ejabberd_hooks:add(register_user, Host,
 		   ?MODULE, register_user, 50),
 ejabberd_hooks:add(remove_user, Host,
@@ -109,6 +115,10 @@ stop(Host) -
 		  ?MODULE, get_jid_info, 70),
 ejabberd_hooks:delete(roster_process_item, Host,
 			  ?MODULE, process_item, 50),
+ejabberd_hooks:delete(user_available_hook, Host,
+			  ?MODULE, user_available, 50),
+ejabberd_hooks:delete(unset_presence_hook, Host,
+			  ?MODULE, unset_presence, 50),
 ejabberd_hooks:delete(register_user, Host,
 			  ?MODULE, register_user, 50),
 ejabberd_hooks:delete(remove_user, Host,
@@ -132,7 +142,7 @@ get_user_roster(Items, US) -
 		   GroupName,
 		   Acc2)
 			end
-		end, Acc1, get_group_users(S, Group))
+		end, Acc1, get_group_users(U, S, Group))
 	  end, dict:new(), DisplayedGroups),
 
 %% If partially subscribed users are also in shared roster, show them as
@@ -310,7 +320,7 @@ get_subscription_lists({F, T}, User, Server) -
 	lists:usort(
 	  lists:flatmap(
 	fun(Group) -
-		get_group_users(LServer, Group)
+		get_group_users(LUser, LServer, Group)
 	end, DisplayedGroups)),
 SRJIDs = [{U1, S1, } || {U1, S1} - SRUsers],
 {lists:usort(SRJIDs ++ F), lists:usort(SRJIDs ++ T)}.
@@ -329,7 +339,7 @@ get_jid_info({Subscription, Groups}, User, Server, JID) -
 		fun(User1, Acc2) -
 			dict:append(
 			  User1, get_group_name(LServer, Group), Acc2)
-		end, Acc1, get_group_users(LServer, Group))
+		end, Acc1, get_group_users(LUser, LServer, Group))
 	  end, dict:new(), DisplayedGroups),
 case dict:find(US1, SRUsers) of
 	{ok, GroupNames} -
@@ -371,7 +381,7

Re: [Server-devel] wwwoffle?

2011-01-22 Thread Martin Langhoff
Hi Dan!

Welcome to the jungle! I'm in the middle of prepping an XS release,
and yes, wwwoffle would be a nice thing to include.

If you search the list archives (google for
'site:lists.laptop.org/pipermail/server-devel wwwoffle') Anna has
written a bit of a howto and was keep on working towards making it a
script to run. She's interested in this as well, maybe you can
collaborate?

Another really interesting project would be to hop over to the
httpd-crcsync list, and offer a hand with it. Background:
wiki.laptop.org/go/Apache_Proxy_CRCsync . Alex tells me it's ready to
be packaged, so that's step one, with a couple of sample configs
inclded as documentation. And we'd need a script that sets it up as
downstream server, and another one for the upstream server. And
probably a few more things I'm not thinking of right now ;-)

cheers,



m

On Fri, Jan 21, 2011 at 7:44 PM, Dan Zubey dzu...@openincident.com wrote:

 Hi.

 I'm jumping in with my feet into the XS server environment; I'd like to
 help out where needed.

 I found the doc http://wiki.laptop.org/go/XS_Project_Ideas which is
 rather dated, but mentions the need for wwwoffle. I'm wondering if
 that's still a felt need where I could lend a hand, or if there's a
 different area I could focus?

 Thanks!

 -Dan Zubey
 ___
 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] HELP regarding ejabberd, getting not_allowed error.

2011-01-22 Thread Martin Langhoff
On Sat, Jan 22, 2011 at 3:55 AM, Xahid zahid.b...@gmail.com wrote:
 I've installed the OLPC School Server as per instructed at web site,
 http://wiki.laptop.org/go/School_server

Welcome! Glad that you're installing an XS. Let me see if I can help...

 [root@schoolserver]# ejabberctl status
 Mode ejabberd@schoolserver is started Status : Started
 ejabberd is running

 [root@schoolserver]# ejabberctl register admin schoolserver.pak.org password


 cant register user ad...@schoolserver.pak.org at
 node ejabberd@schoolserver : not_allowed

Interesting. What does `hostname -f` say on that server? Also, can you
tell us more about what you want an 'admin' account for?

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] The old xs-livecd is the new olpc-xs-builder

2011-01-21 Thread Martin Langhoff
On Thu, Jan 20, 2011 at 3:45 PM, Martin Langhoff
martin.langh...@gmail.com wrote:
 While not as modular and elegant as olpc-os-builder, we do have a
 collection of tools and configs that, operated correctly, build XS
 isos for installation. This can be useful to prepare a custom
 auto-intalling iso with preconfigured settings.

  http://dev.laptop.org/git/projects/olpc-xs-builder

The current scripts (just committed) are based on pungi and a comps
file. This is _trivial_ compared to the overcomplicated mess we had
before.

Perhaps it's experience in wrestling with revisor and earlier versions
of pungi. Maybe it's Jerry's better-way-to-do-it recommendations that
have finally reached an active neuron in my skull.

The key trick is splitting the Pungi process; stop it before it makes
the ISO -- edit/overwrite the bits we want, and then make the ISO. See
http://dev.laptop.org/git/projects/olpc-xs-builder/commit/?id=9093a4c380d0394c957f547c593a28db68f5b512

The package definition on both ks files is going to get slimmed down
to @OLPC-XS methinks.

Jerry,

 - is there anything else we should whack before ISOing the ISO? I
just reviewed the mkslim script but it's unclear to me what was
getting cut out.
 - is there anything we want to include so that turning that ISO into
a bootable/installable USB is easier?

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] XS-0.7 plans -- your thoughts please...

2011-01-19 Thread Martin Langhoff
On Tue, Jan 18, 2011 at 2:29 PM, Martin Langhoff
martin.langh...@gmail.com wrote:
 So -- going back on the traffic we've see in the last 24 months, what
 would you highlight? What have people asked for (that wasn't
 easy/trivial/possible)? What problems have we heard that were hard to
 diagnose...?

Thanks for the ideas, pointers and 'gotcha' warnings! Excellent stuff.

I've drafted http://wiki.laptop.org/go/User:Martinlanghoff/XS_0.7_plan

Graphical UIs... is the only item mentioned here I say no to. I won't
recommend them, and won't do anything to help them happen, as they
lead to (a) actions on important files/dirs from a graphical file
manager, and (b) users trying to use the System - Administration GUI
panels to manage the server, which is guaranteed to *explode* in many
tiny pieces.

Of course, there are too many things listed there already :-) so I'm
gonna have to focus on some.

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] XS-0.7 plans -- your thoughts please...

2011-01-19 Thread Martin Langhoff
On Wed, Jan 19, 2011 at 12:12 AM, rihowa...@gmail.com
rihowa...@gmail.com wrote:
 The Fedora 13 ARM port is intended to be a complete a port as possible and 
 should have the bits required as a base for the XS.

Excellent news!

 I hope you keep the Fedora RPMs as RHEL6/CentOS6 do not support ARM.

My sincere hope is that the SRPMs will rebuild transparently. If
there's a working ARM port, we can make a repo available.

 In my review of the make files for XS-0.6 I have noticed that the 
 architecture is hardcoded in a number of places.  It would be nice if these 
 were parameterized.

Right -- let me know if anything is clearly wrong anywhere.

 The other area that seems a bit strange is how flat the git is for the XS 
 components.  They all seem to be at the top level. It would be nice if they 
 hung off a top level XS project directory with a master make file that passed 
 arch type, etc., to the component make files. This would make it simpler to 
 clone all the bits.

I don't understand this -- can you explain more?

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] Pungi features - (was: Is pungi the preferred composer for installers?)

2011-01-19 Thread Martin Langhoff
On Wed, Jan 19, 2011 at 5:38 PM, Bruno Wolff III br...@wolff.to wrote:
 Pungi is what is used for the install images released by the Fedora Project.
 So for install images it makes sense to use that tool.

Thanks! So we turn to trying to do what I used to do with revisor,
which I am not sure pungi supports

 - A custom, locally defined comps file -- how is that done for Spins?
For example, how would you build the server spin based on the files at
http://dmach.fedorapeople.org/server-spin/ ?

 - Can I copy a kickstart file in the resulting iso?

 - Can I set the syslinux menu? What I normally do is set the defaul
menu item to use the provided ks...

thanks!

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] XS-0.7 plans -- your thoughts please...

2011-01-18 Thread Martin Langhoff
Ay ay ay!

This last 12 months have been frantic, as I've ended up biting off a
ton more than common sense would recommend to chew. And then chewing,
slowly, awkwardly. Good things have come out of the hard work of this
year, but the XS has been delayed.

One good piece of news is that I've helped deploy more XSs in the
field, both in person and through this list. So I think we have good
feedback on what to streamline and make easier.

And I have a window of time to hack on it. So... the plan is roughly
the same as it was in
http://lists.laptop.org/pipermail/server-devel/2009-October/004139.html
- except that I'll start drafting the build on top of F14.

My actual plan is to have the packages for RHEL6 / CentOS6, which will
give us a more stable platform. With less churn, I get to spend more
of my limited time on interesting work :-)

So -- going back on the traffic we've see in the last 24 months, what
would you highlight? What have people asked for (that wasn't
easy/trivial/possible)? What problems have we heard that were hard to
diagnose...?

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] Notes on Flashing the NAND over the LAN

2011-01-18 Thread Martin Langhoff
On Sun, Jan 16, 2011 at 9:21 PM, Anna ascho...@gmail.com wrote:
 With the release of 10.1.3, I thought I'd revisit flashing an XO over the
 LAN.  Here are my notes, if anyone's interested.

Interesting!

For a full reflash, as James pointed out, NANDBlaster wins. But if you
have laptops out there with an earlier 10.1.x, the local XS can serve
incremental update images for olpc-update :-)

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] documentación hacerca de los scri ps del bios-crypto del XS

2011-01-05 Thread Martin Langhoff
2011/1/5 Kevin Mauricio Benavides Castro webmaster.ac@gmail.com:
 he buscado información acerca de los scrips del  bios-crypto del XS

Dentro del bios-crypto, hay un par de READMEs que tienen info (rpm -ql
olpc-bios-crypto lista todos los archivos... )

Esos READMEs están en cada XS, y online los puedes ver en

http://dev.laptop.org/git/bios-crypto/tree/cli.README
http://dev.laptop.org/git/bios-crypto/tree/build/README

Y el antitheft howto en wiki.laptop.org

abrazos,


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] One server NIC - using Sugar on Linux, not OLPCs

2010-12-31 Thread Martin Langhoff
On Fri, Dec 31, 2010 at 4:44 PM, Rob Echlin r...@echlin.ca wrote:
 I tried xs-swapnics, but that did not put the LAN stuff on eth0.

What it does is -- it changes config so the NIC you have is now eth1.
That eth1 does not directly have an IP, but is bonded into
'lanbond0' which does.

As Tom mentions, the XS wants to run the network, so hook that NIC
to an AP that doesn't do NAT and does not give DHCP leases. Must
behave as a real dumb AP :-) not as a smartypants router+AP.

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] Connecting the a Schoolserver via SSH

2010-12-22 Thread Martin Langhoff
On Tue, Dec 21, 2010 at 6:09 PM, Dr. Gerald Ardito
gerald.ard...@gmail.com wrote:
 I was testing the server with about 12 XOs today. They all connected fine
 and had internet connections. But the performance seemed slow. It took
 several seconds for pages to load at times.

Gerald,

you need to diagnose where the problems are. They may be at more than one layer.

 = Is there wifi interference?

- Do you see other APs in the same frequency, or in overlapping
frequencies? You need about 4 channels of separation -- for example,
put your AP in channel 11 -- and make sure there are no other APs
using ch 7, 8 9 or 10. We recommend you use only channels 1, 6 and 11.

- Can a small number of XOs ping the AP with relatively stable low
latency? (ensure there is no other traffic with that AP at the same
time) If there are no APs in overlapping channels, there may still be
cordless phones using the 2.4GHz band, microwave ovens...

 = Is DNS fast or slow? Use the command time dig somedomain.org,
testing for the FQDN of the XS itself, plus regional domains, plus
int'l domains.

 = Is HTTP slow? Use `curl -o /dev/null http://schoolserver/ ` , which
will give you timings, to see if the XS homepage is slow to fetch. Try
the same with http://google.com/ for an external URL.

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] Cloning and hardware addresses

2010-12-03 Thread Martin Langhoff
On Thu, Dec 2, 2010 at 3:53 PM, David Leeming
da...@leeming-consulting.com wrote:
 Sub note to this. I found I had to delete the file altogether. Then it works. 
 It regenerates the file with the new hardware addresses so if the HDD is 
 moved again, I guess this step needs repeating.

Yes. And if the NICs are replaced too.

It's not enough however (from a correctness PoV) when cloning a disk.
There's a number of files that get generated on first boot -- the ssh
key files come to mind (/etc/ssh/ssh_host_* ) . The postgres'
server.crt too.

Unfortunately there isn't an easy command on linux distros to return
the OS to a 'pristine' state (IIRC, there's one on Solaris).

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] XS on ASUS Eee PC Network Driver Missing

2010-12-03 Thread Martin Langhoff
On Thu, Dec 2, 2010 at 12:44 PM, Andra DuPont andradup...@gmail.com wrote:
 I'm installing XS 0.6 on an ASUS Eee PC with an Atheros AR8132 Network Chipset
 which is not supported on the current XS distribution.

Looks like you need http://partner.atheros.com/Drivers.aspx - grab the
linux driver. It has a readme that looks promising.

It'll probably require that you install gcc, make, and the kernel headers.




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] XS on ASUS Netbook - Display Problem

2010-12-02 Thread Martin Langhoff
On Thu, Dec 2, 2010 at 11:34 AM, Andra DuPont andradup...@gmail.com wrote:
 Martin,
 Success...

Glad to hear!

 You may want to consider adding this to future server releases, assuming that 
 it doesn't
 cause problems on other platforms.

When I get some time to work on the next release, we should revisit
this with you.

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] XS on ASUS Netbook - Display Problem

2010-12-01 Thread Martin Langhoff
On Wed, Dec 1, 2010 at 10:03 AM, Andra DuPont andradup...@gmail.com wrote:
 I have installed XS 0.6 on an ASUS 1005PEB Eee PC. The server is running fine 
 except that the screen went dark at server start-up right after the starting 
 udev was displayed on the screen. My screen stays dark and can only be reset 
 by restoring the default bios settings. Then it gets set dark again at server 
 startup at the starting udev process.

 Any idea what rule or other change I could make to keep the screen from going 
 dark?

Strange! Can you post /var/log/messages and the output from dmesg from
that server, right after booting?

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] XS on ASUS Netbook - Display Problem

2010-12-01 Thread Martin Langhoff
On Wed, Dec 1, 2010 at 8:14 PM, Andra DuPont andradup...@gmail.com wrote:
 So apparently one of the drivers that is installed is conflicting with the 
 screen brightness.

Your analysis seems 100% correct.

I'd suggest -

 - run lsmod, it'll tell you what modules are being loaded - one of
them will be controlling your video card -- for example an i915 card
loads intel_agp, drm and i915

 - name those modules in /etc/modules/blacklist.conf so they don't get loaded

but I agree with you, it's very strange that you need to go through this dance.

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] pgsql-xs fail during boot process

2010-11-21 Thread Martin Langhoff
Hi Dudley,

apologies about the delay. Your email is a bit confusing -- are you
having problems with pgsql-xs failing to start during the boot
process? Or are you having problems with apache serving the html
content? Or both?

 - Maybe your /library partition is full?

 - Does Postgresql report errors? You should post the postgresql logs,
which will be under /library/pgsql-xs

 - Does Apache report errors? You should post /var/log/httpd/error.log

cheers,


m

On Fri, Nov 19, 2010 at 11:55 AM, Dudley Daduwe
ddaduwe.olpc...@gmail.com wrote:
 Hi All,

 I have a XS server which works fine. I have decided to install
 additional content onto the library. After completing copying, I then
 created the Alias using nano /etc/httpd/conf.d/html.conf. How can I
 resolve this problem.

 Thank you,

 Dudley Daduwe
 ___
 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] named + OpenDNS

2010-11-08 Thread Martin Langhoff
Hola Guillermo!

comments below...

On Sat, Nov 6, 2010 at 6:05 PM, Guillermo Narvaez gnrvz...@gmail.com wrote:
 We did changes on the named-xs-conf.in to use OpenDNS servers. Just adding:
 forwarders { 172.18.0.1; ip_opendns1; ip_opendns2;};

Don't put your own IP address in the forwarders!

Just

forwarders { 208.67.222.222; 208.67.220.220; };

 We did tests to verify if the laptops share they activities and the
 result was OK for the sharing and OK for the filter via OpenDNS

Ok.

 can somebody recommend a test to verify the fully functionality of the
 schoolserver?

I don't have a full test, sorry!

I can suggest...

 - check the laptops can associate to the AP (check in the XS logs
that it's the XS providing the DHCP leases!)

 - Can laptops register?

 - Once registered, do laptops use Gabble (instead of Salut)?
olpc-netstatus will tell you. Do they see eachother? Can they
collaborate?

 - On the XS, after a few hs, you should see the backup directory
populated with files from users

 - Users should be able to access Moodle, auto-login must wokr after
registration

 - When in Moodle, click on the top-right link that has your nickname.
Then click on 'backup'. Your backed up files should be displayed.

 - OpenDNS -- try one of their example blocked domains, is it
blocked for the laptops? Add a domain to the blacklist of your
account. Restart named (in case it was cached). Test it from the
laptops (reboot the laptop first in case it was cached). Is it
blocked?

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] Jabber presence under NAT named under DMZ issues

2010-11-08 Thread Martin Langhoff
On Fri, Nov 5, 2010 at 10:19 PM, Anna ascho...@gmail.com wrote:
 After a couple of recent power outages and some disappointed users, I tried
 out the XS on an XO again, which I'll call XSXO from now on.

An XO-1 is a tiny, tiny server. Bear in mind I would not expect it to
handle much more than 20~30 users.

Additionally, the USB-Ethernet dongles cause a ton of IRQ noise, so if
there is a bit of traffic, the CPU gets swamped with handling network
activity. One of the nice things of modern network cards (PCI, etc) is
that they have gotten really good avoiding raising IRQs, doing DMA,
etc. You cannot do any of that with a USB-Ethernet.

 Initially, I set this up for /etc/sysconfig/network-scripts/ifcfg-eth0-local

I assume you ran xs-swapnics at some point?

 All was going well, except that the ejabberd presence
 service kept resetting at the top of the hour, every hour.


 But then named never comes back up:
...
 school.internal.zone.db:4: schoolserver...@\@basednsna...@\@: bad owner name

that means that the domainconfig didn't work.

Any logs from ejabberd itself?



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] automount external HD

2010-10-18 Thread Martin Langhoff
On Mon, Oct 18, 2010 at 2:56 PM, Sameer Verma sve...@sfsu.edu wrote:
 I haven't tested it, but if you create 92-mount.rules (or whatever 90
 something is available) in /etc/udev/rules.d with this...

 SUBSYSTEM==block, run+=/bin/mount -a

It's a clever move, but after thinking about it, it is actually pretty
dangerous. So it'll work for it will probably mess up your XS big
time values work.



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] automount external HD

2010-10-18 Thread Martin Langhoff
On Thu, Oct 14, 2010 at 1:15 AM, Sameer Verma sve...@sfsu.edu wrote:
 I am using XS-on -XO1 version 0.6.

Excellent!

 I want to use an external USB hard drive and mount it as /library at
 boot time. I have added a line in /etc/fstab

 /dev/sda1   /library    ext3   defaults   0  0

as others have noted, you probably want auto in there. The udev
mount -a trick is good too.

This is something I wanted to support on 0.6 but ran out of time, and
has been simmering in the back of my mind for a while. This thread
make me think a bit about it, and made me realise that it is currently
probably pretty dangerous.

Here is what is dangerous: we need /library mounted very early, and
always mounted. Else, data corruption and general messiness looms.
What counts on /library ? In order of seriousness...

 - PostgreSQL has it's DB there. And if its datadir is not there, the
init script will assume it's first boot and initialise the directory.

 - Moodle -- needs Pg, if it finds an empty DB it will initialise one.

 - idmgr -- registration creates a userdir there. If it's not mounted,
it will create userdirs under the directory used for the mountpoint.
(Or maybe a soft failure)

 - backups -- probably a soft failure if /library isn't there

 - apache, xs-activation -- soft failures due to missing data

To handle this in a less risky manner, we'd need the main services to
only run if the real library is there. With that in place, the udev
trick would need to extend to re-starting some services, or the
services would need a supervisor script listening for the mount
via inotify.

Which is a lot of garbled talk to mean: it'll be fine for a test
server. Where we need this to be bulletproof and failsafe, lots of
work to do...

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] automount external HD

2010-10-16 Thread Martin Langhoff
On Sat, Oct 16, 2010 at 2:00 AM, Sameer Verma sve...@sfsu.edu wrote:
 something up, or do I mess with /etc/usbmount/usbmount.conf? Not sure

IIRC -- haven't looked at usbmount code or docs in a while... you
should be able to config usbmount to recognize that drive somehow and
mount it in a particular mountpoint / partition.

Research required :-)


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] PDA mambot on XS

2010-10-01 Thread Martin Langhoff
On Fri, Oct 1, 2010 at 6:39 AM, David Leeming
da...@leeming-consulting.com wrote:
 No-one has replied to this, but I remain interested in a mobile friendly
 plugin for the XS.

I personally don't even know what mambot is (and I'm under a pile of
hi-pri work).

If you outline goals more openly maybe someone can help you...

Or (in the opposite direction)if you outline specific technical
challenges in installing mambot,...



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] Enable group info for yum to use

2010-09-30 Thread Martin Langhoff
Hi Jerry,

On Tue, Sep 28, 2010 at 5:42 PM, Jerry Vonau jvo...@shaw.ca wrote:
 Think I found the place to enable the yum group that I spoke of earlier,
 patch is against xs-release. Now with createrepo creating the group

thanks! I like that. With this, we can kill the ugly xs-pkgs.

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] Puppet @ XS

2010-09-30 Thread Martin Langhoff
Hi list,

Amongst many things that have kept me away from doing XS dev work,
I've recently been working with the local team for de La Rioja
(Argentina) deployment.

One of the key topics was remote admin, as they have a fast-growing
number of XSs. So it was a good chance to rip into Puppet. The result
is a set of sample Puppet configurations. As an old isconf hand, I was
very gladly surprised with Puppet... and then I realised it's all Luke
Kanies' work! (See
http://madstop.com/2008/11/01/a-short-history-of-puppet-pt1/ )

 =http://wiki.laptop.org/go/XS_Puppet follows =

Most OLPC deployments have a large number of schools. When deploying
School Servers, this means there is a large number of XSs. Managing
them is a challenge.

We use [http://www.puppetlabs.com/puppet/introduction/ Puppet] to run
the administration of these servers. Puppet is an outstanding server
management tool, well known, and extensively documented.

To keep matters simple and scalable, we use some specific techniques:

* We focus on maintaining all the XSs with the exact same code and
configuration. Where some XSs must behave differently, we handle that
in the code deployed to the XS itself. For an example of this in
action, see how the httpd service picks an appropriate configuration
at startup.
* We use a tiny part of the power of Puppet to keep things simple.
Puppet is enormously powerful, and can lead to complex configurations.

= Getting started =

Set up a Puppeteer -- the 'configuration server'. This server needs
to have a stable FQDN and to be reachable by all the XSs (usually this
means a public IP address). See the excellent
[http://docs.puppetlabs.com/ puppet documentation] on how to setup a
Puppet server. Grab the example configuration we provide below.

== Installing Puppet in your XS==

On XS-0.6, you will need to

* Install puppetd and all its dependencies (TODO: list the dependencies)
* Install an /etc/sysconfig/puppetd file naming the FQDN of your puppeteer
* Set the service to run (and start it up)

== Get started with the example configuration ==

We have an example configuration, based on an actual deployment
successfully using Puppet
http://dev.laptop.org/git/users/martin/puppet-example.git/tree/

See the [http://dev.laptop.org/git/users/martin/puppet-example.git/tree/README
README] and the actual config files and scripts for working
configurations and code.

=Puppet Documentation=

Puppet has excellent and extensive documentation. Sometimes it is
daunting -- puppet allows very fine grained control of what is on
every server. We only use a small part of Puppet, so you can skip the
complex parts.

* http://docs.puppetlabs.com/
* [http://apress.com/book/view/9781430230571 Pro Puppet, by James
Turnbull, Avi Miller]
* [http://apress.com/book/view/1590599780 Pulling Strings with Puppet:
Configuration Management Made Easy, by James Turnbull]
* 
[http://groups.google.com/group/puppet-users/browse_thread/thread/b6db63f1bb84166e?fwc=1
Puppet Users list discussion about Puppet on the XS]

=To Do=

* Document how to bootstrap this from kickstart
* Implement usbmount scripts to hook into puppet, so disconnected XSs
can read configuration from a USB disk


-- 
 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] Observations and question about http://wiki.laptop.org/go/XS_Software_Repositories

2010-09-27 Thread Martin Langhoff
On Mon, Sep 27, 2010 at 9:59 AM, Peter Robinson pbrobin...@gmail.com wrote:
 There's more details about ARM on Fedora on the project page (which
 also links to the arm mailing list etc).

 http://fedoraproject.org/wiki/Architectures/ARM

Yeah, but I looked at it earlier today and it still touts the F-12
build as the latest.

The list archive shows someone asking last month about F-13 images,
and getting no answer.

So to an outsider it looks like F-12 is the latest. Is that so?



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] oatslite: Report stolen and fix

2010-08-28 Thread Martin Langhoff
Working in LR, fixed a bug in oatslite, plus minor improvements. Maybe
we are looking at the wrong repo or otherwise using stale code?

The code as-is could not have worked as it's missing a \n that is
required in the format...

cheers,


m
-- 
 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
From ba7ed795d9874dce629f3693357662d42efb842d Mon Sep 17 00:00:00 2001
From: Martin Langhoff mar...@laptop.org
Date: Fri, 27 Aug 2010 20:36:08 -0300
Subject: [PATCH] Report stolen msgs to syslog

---
 oatslite |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/oatslite b/oatslite
index a459eec..db4ef91 100755
--- a/oatslite
+++ b/oatslite
@@ -137,6 +137,7 @@ def stolen_hash(sn, nonce):
 			uuid = line[len(srch):]
 			tag = %s:%s:STOLEN % (uuid,nonce)
 			print Reporting stolen machine:, sn
+			syslog.syslog(Reporting stolen - %s % sn)
 			break
 
 	if tag is None:
-- 
1.7.2.1

From c8c1dbffee539185ed94f784f0457922736facec Mon Sep 17 00:00:00 2001
From: Martin Langhoff mar...@laptop.org
Date: Fri, 27 Aug 2010 19:43:53 -0300
Subject: [PATCH] Fix msg signing, fix STOLEN tag

The signature part of the OAT messsage was missing
its trailing newline. Fixed.

The STOLEN tag was somehow being represented as an int.
Ensure sane treatment as string.
---
 oatslite |8 +---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/oatslite b/oatslite
index 089fdab..a459eec 100755
--- a/oatslite
+++ b/oatslite
@@ -106,6 +106,7 @@ def make_credential(sn, obj):
 		buf_sig = pysign.sign_buffer(priv, buf)
 		sig = pysign.sig01(pub, buf_sig)
 
+	sig = sig+\n
 	return ('sig', 1, [sig])
 
 def get_lease(sn):
@@ -133,17 +134,18 @@ def stolen_hash(sn, nonce):
 	for line in stolen_list:
 		if line.startswith(srch):
 			line = line.rstrip()
-			tag = line[len(srch):] + : + nonce + :STOLEN
+			uuid = line[len(srch):]
+			tag = %s:%s:STOLEN % (uuid,nonce)
 			print Reporting stolen machine:, sn
 			break
 
 	if tag is None:
 		# not found in list
 		# we don't know the UUID so we can't follow the spec and return a hash
-		# of UUID:nonce, so we'll just return a random hash.
+		# of UUID:nonce, so we'll just return some other hash.
 		# it's important to always return a tag (even if not stolen) so that
 		# OATS messages including the tag can't be simply dropped by a filter
-		tag = str(random.getrandbits(64))
+		tag = %s:%s % (sn,nonce)
 
 	return hashlib.sha256(tag).hexdigest()
 
-- 
1.7.2.1

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


  1   2   3   4   5   6   7   8   9   10   >