Re: Rainbow problems

2008-06-14 Thread Benjamin M. Schwartz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

kawk wrote:
| I'm having a bit of trouble with Rainbow in one of the activities I'm
| writing, FiftyTwo. I've attached the logs that I'm getting, for reference.
|
| Basically, FiftyTwo worked on build 656, which did not have the Rainbow
| security system. Now that I've upgraded to 703, it no longer works.
|
| AFAIK, Rainbow is supposed to limit access outside of the temporary user
| it creates, and FiftyTwo is violating that and accessing
| ~/Activities/FiftyTwo.activity/data, which is apparently outside the
| scope that Rainbow allows.
|
| Anyone have any suggestions?

You want to access $SUGAR_ACTIVITY_ROOT/data.  The path listed above is
equivalent to $SUGAR_BUNDLE_PATH/data , which is different.

- --Ben
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhUfY0ACgkQUJT6e6HFtqR5CACeKuUoaDMcgZXRmVsjPdBn/dmk
1pYAn3djs6BlCnFKyUJFJidpCdahEMAD
=9Ut+
-END PGP SIGNATURE-
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Rainbow problems

2008-06-14 Thread Korakurider
Hi.
You could review
http://wiki.laptop.org/go/Low-level_Activity_API#Security and adjust
your activity.
hope this helps.

On Sun, Jun 15, 2008 at 9:52 AM, kawk <[EMAIL PROTECTED]> wrote:
> I'm having a bit of trouble with Rainbow in one of the activities I'm
> writing, FiftyTwo. I've attached the logs that I'm getting, for reference.
>
> Basically, FiftyTwo worked on build 656, which did not have the Rainbow
> security system. Now that I've upgraded to 703, it no longer works.
>
> AFAIK, Rainbow is supposed to limit access outside of the temporary user
> it creates, and FiftyTwo is violating that and accessing
> ~/Activities/FiftyTwo.activity/data, which is apparently outside the
> scope that Rainbow allows.
>
> Anyone have any suggestions?
>
> KAWK
>
> ___
> Devel mailing list
> Devel@lists.laptop.org
> http://lists.laptop.org/listinfo/devel
>
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Rainbow problems

2008-06-14 Thread kawk
I'm having a bit of trouble with Rainbow in one of the activities I'm
writing, FiftyTwo. I've attached the logs that I'm getting, for reference.

Basically, FiftyTwo worked on build 656, which did not have the Rainbow
security system. Now that I've upgraded to 703, it no longer works.

AFAIK, Rainbow is supposed to limit access outside of the temporary user
it creates, and FiftyTwo is violating that and accessing
~/Activities/FiftyTwo.activity/data, which is apparently outside the
scope that Rainbow allows.

Anyone have any suggestions?

KAWK

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


Re: Koji Tags for 8.2.0

2008-06-14 Thread Michael Stone
On Sat, Jun 14, 2008 at 08:06:04AM -0400, Mikus Grinbergs wrote:

I believe that you are correct that the URLs in /etc/yum.repos.d/olpc*
are incorrect for our F-9 work. 

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


Re: Upgrade G1G1 using autoreinstallation method

2008-06-14 Thread Pia Waugh
Hi,



> I just found this which might help. Similar problem with that AP. Might
> help.
> 
>   http://forums.speedguide.net/showthread.php?t=223860

"t works!!! I took a risk and went backwards in the firmware. First I
tried 2.10, which appeared to be just about the same as the mysterious
shipping firmware (2.11) that is not on their website."

It is a slightly different use case but sounds like something to try.

Cheers,
Pia

-- 
OLPC Australia   http://olpc.org.au/
Linux Australia http://linux.org.au/
Open Source Industry Australia   http://osia.net.au/
Software Freedom Day  http://softwarefreedomday.org/
 
"There is no darkness but ignorance." - William Shakespeare
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Upgrade G1G1 using autoreinstallation method

2008-06-14 Thread Pia Waugh
Hi David,



> To see if we could duplicate our problem, we tried with another AP: We have
> a VSAT set up near the village where we are deploying a trial with 50
> children in PNG. It has a reliable wireless AP and you can associate both
> "grown up" laptops and XOs no problems. The XOs will then see the Internet
> and also other XOs and the activities will share OK. This AP has a DHCP
> server on the wireless side. In fact, there is no other as the AP connects
> straight to the VSAT modem, which does not have DHCP set up, via a switch.
> If one pulls the cable out on the LAN side of the AP the XOs cease to share
> and quickly drop out and look for the mesh. So, this duplicated the problem
> I described.

I just found this which might help. Similar problem with that AP. Might
help.

  http://forums.speedguide.net/showthread.php?t=223860

> I am now told that a jabber service is needed to keep the XOs interested and
> reliably collaborating, that maybe is the cause? Do you concur? 

That shouldn't impact them getting a DHCP address though, I'm not sure.

Cheers,
Pia

-- 
OLPC Australia   http://olpc.org.au/
Linux Australia http://linux.org.au/
Open Source Industry Australia   http://osia.net.au/
Software Freedom Day  http://softwarefreedomday.org/
 
"Today a young man on acid realized that all matter is merely energy
  condensed to a slow vibration, that we are all one consciousness
 experiencing itself subjectively, there is no such thing as death,
   life is only a dream, and we are the imagination of ourselves. Here's
Tom with the weather." - Bill Hicks
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [sugar] Recent Updates to Sugar Almanac

2008-06-14 Thread Faisal Anwar
Thanks! I'll make an effort to include these in the almanac.

Faisal

On Fri, Jun 13, 2008 at 10:31 PM, Martin Sevior <[EMAIL PROTECTED]>
wrote:

> Hi Faisal,
>   You might want to gather together the documentation we wrote
> for abiwidget which explains how to embed the collaborative Rich Text
> widget (as used by write) in python programs.
>
> The links are on our wiki here:
>
>
> http://www.abisource.com/wiki/AbiWidget
>
> http://www.abisource.com/wiki/PyAbiWord
>
> Cheers
>
> Martin
>
>
> On Fri, 2008-06-13 at 17:34 -0400, Faisal Anwar wrote:
> > Hello All,
> >
> > As many of you know, I'm writing up a sugar almanac to help new
> > sugar/python developers get up and running with creating useful
> > activities. I will try to send frequent updates in terms of what has
> > been added. In addition to using the documentation, I'd appreciate it
> > if people familiar with the different modules I am writing can send
> > any better or alternative code examples to the ones that I have
> > written. Review and feedback is ALWAYS appreciated.
> >
> > This week, I have updated the section on how to do many of the basic
> > activity creation tasks (see
> > http://wiki.laptop.org/go/Sugar.activity.activity). In addition, I've
> > provided some basic examples of how to read and write your activity to
> > the datastore so that it can be resumed later from the journal. Below
> > is a list of the different how to's contained in this section of the
> > almanac. Hope some of these ring a bell in terms of what you all are
> > trying to get done!
> >   * 1 Helper Functions in sugar.activity.activity
> >   * 1.1 How do I get the file path for my activity bundle?
> >   * 1.2 How do I get the file path where I can write files
> > programmatically?
> >   * 1.3 How do I get the name of my activity?
> >   * 2 Class: Activity
> >   * 2.1 How do I set the canvas (main work area) of my
> > activity to a specific UI widget?
> >   * 2.2 What are activity id's? How do I obtain the
> > activity id for an instance of my activity?
> >   * 2.3 How do I create a new activity that is derived
> > from the base Activity class?
> >   * 2.4 How do I implement a write_file method for my
> > activity in order to persist my activity in the
> > journal?
> >   * 2.5 How do I implement a read_file method for my
> > activity so that I can resume activities from the
> > sugar journal?
> >   * 3 Class: ActivityToolbox (Toolbox)
> >   * 3.1 What is the standard toolbox needed in most
> > activities and how do I create it?
> >   * 3.2 How do I get a handle on the standard activity
> > toolbar given an ActivityToolbox object?
> >   * 4 Class: ActivityToolbar (gtk.Toolbar)
> >   * 5 Class: EditToolbar (gtk.Toolbar)
> >   * 5.1 How do I add a standard edit toolbar to my
> > activity?
> >   * 5.2 How do I hide a button in the edit toolbar that is
> > not needed in my activity?
> >   * 5.3 How do I disable and enable a button on the edit
> > toolbar?
> >
> > You can also find the homepage for the documentation at
> > http://wiki.laptop.org/go/Sugar-api-doc.
> >
> >
> > Best,
> >
> >
> > Faisal
> > ___
> > Sugar mailing list
> > [EMAIL PROTECTED]
> > http://lists.laptop.org/listinfo/sugar
>
>
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [PATCH #3355] Add sysfs support for powering down the OLPC 88W8838 wireless chip.

2008-06-14 Thread Deepak Saxena
On Jun 13 2008, at 20:05, Chris Ball was caught saying:
> Hi Deepak,
> 
>> I think the preffered way to do this is via sscanf() of the
>> incoming buffer as you can catch errors such as non-integer
>> input. simple_stroul() will just return 0 which is not what we
>> want.
> 
>> I'd also change the mode to 0400 as this is a write-only bit.
> 
>> My preffered option is to make it r/w, call it wlan_enabled and
>> than we could check the state via the file too by storing the
>> current setting.
> 
> All applied in the replacement patch below.  Thanks!

Looks good. 

~Deepak


-- 
Deepak Saxena <[EMAIL PROTECTED]>
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Koji Tags for 8.2.0

2008-06-14 Thread Mikus Grinbergs
> Is the piece we're missing the correlation with koji branches /
> repository names?

One problem I have with the current olpc3-19 build is that when I 
use 'yum', it offers to download some packages named "f7".

Should the /etc/yum.repos.d in olpc3-19 be limited to "f9" only ?

mikus

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


RE: Upgrade G1G1 using autoreinstallation method

2008-06-14 Thread David Leeming
Hi John,

To see if we could duplicate our problem, we tried with another AP: We have
a VSAT set up near the village where we are deploying a trial with 50
children in PNG. It has a reliable wireless AP and you can associate both
"grown up" laptops and XOs no problems. The XOs will then see the Internet
and also other XOs and the activities will share OK. This AP has a DHCP
server on the wireless side. In fact, there is no other as the AP connects
straight to the VSAT modem, which does not have DHCP set up, via a switch.
If one pulls the cable out on the LAN side of the AP the XOs cease to share
and quickly drop out and look for the mesh. So, this duplicated the problem
I described.

I am now told that a jabber service is needed to keep the XOs interested and
reliably collaborating, that maybe is the cause? Do you concur? 

I do appreciate your help...

David Leeming
Cc: John Watlington; 'Bert Freudenberg'; [EMAIL PROTECTED]
Subject: Re: Upgrade G1G1 using autoreinstallation method


Not knowing more about what you've done, I have
to ask a lot of v. simple questions.

When you say "move on", you have manually associated each
laptop with the AP once, right ?   And the ESSID hasn't changed ?

How realiable is the failure ?   Do all XOs "move on" to mesh
mode, or is this only a problem with a (random) few ?

How many XOs on each channel ?

You could be seeing a failure of DHCP to actually occur.
Have you checked /var/log/messages on a failing laptop ?

Cheers,
wad

On Jun 13, 2008, at 5:45 PM, David Leeming wrote:

> Thanks John, but I did realise that simple fact. The APs do have  
> DHCP server
> set up. They still move on.
>
> David Leeming
> Technical Advisor, People First Network
> Tel: +677 76396(m) 24419(h) 26358 (w)
> www.leeming-consulting.com
>
> -Original Message-
> From: John Watlington [mailto:[EMAIL PROTECTED]
> Sent: Saturday, 14 June 2008 12:44 a.m.
> To: David Leeming
> Cc: John Watlington; 'Bert Freudenberg'; [EMAIL PROTECTED]
> Subject: Re: Upgrade G1G1 using autoreinstallation method
>
>
> On Jun 12, 2008, at 5:10 PM, David Leeming wrote:
>
>> Thanks - solved. It's all there on the wiki, yes (blush). We have a
>> lot of
>> time pressures imposed by the political realities here, with 20+
>> countries
>> each with their own government and process to go through, etc. I do
>> appreciate your help!
>>
>> Do you also know about access points, it was stressed at the  
>> Countries
>> meeting in Boston that 30+ XOs in one classroom do not collaborate
>> very
>> efficiently and the preferred method is to use an AP to enable
>> collaboration/sharing in the classroom, even if there is no
>> Internet access.
>> We have had some D-Link DWL2100 APs sent to us for this purpose and
>> what
>> happens is that if there is no Internet connection the XOs do not
>> associate
>> themselves persistently with the APs but "hang up" and go looking
>> for the
>> mesh. Do you know anything about that?
>
> Yes.   If there is no school server, and no other connection to the
> Internet,
> then you will have to let one of the APs provide DHCP service.   If
> the laptops
> connect to an AP, but aren't issued an address via DHCP, they move  
> on...
>
>> David Leeming
>>
>> -Original Message-
>> From: Bert Freudenberg [mailto:[EMAIL PROTECTED]
>> Sent: Thursday, 12 June 2008 7:28 p.m.
>> To: David Leeming
>> Cc: [EMAIL PROTECTED]
>> Subject: Re: Upgrade G1G1 using autoreinstallation method
>>
>>
>> On 12.06.2008, at 05:53, David Leeming wrote:
>>
>>> How can I upgrade G1G1 XO-1s using the auto-reinstallation method
>>> with a flash drive? We have 100 to update here in PNG and it is
>>> impossible to use olpc-update as the connectivity is so poor. We
>>> have a flash drive with the new image 703 on it, and I successfully
>>> updated a B4. But when I try a G1G1 laptop, even with pressing the
>>> game keys it just boots normally without updating. I know I have
>>> some gaps in my knowledge regarding the keys and security for the
>>> G1G1 laptops, but unfortunately I need a quick answer. Much
>>> appreciate any help.
>>
>> Make sure it is the signed build (called "703" not "update.1-703"),
>> and remember you need an activity pack, too. See here:
>>
>>  http://wiki.laptop.org/go/Secure_Upgrade
>>
>> - Bert -
>>
>>
>> ___
>> Devel mailing list
>> Devel@lists.laptop.org
>> http://lists.laptop.org/listinfo/devel
>

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


Re: Usage monitoring: any experience?

2008-06-14 Thread Pia Waugh
Hi there,



> Our grassroot at OLPC France made a small "deployment" lately in a school
> (so far with one XO, no more) and we would like to monitor the activity of
> the users (activities, connections, load, etc.) as per day, week, etc.

We have a similar problem in OLPC Australia, and we are planning on using
the backup function of the server to monitor the journals. This way you'll
get an overview of all the users activity. We were planning on either
finding existing efforts or writing some sort of monitoring of the journals
so teachers can keep an eye on the student activities. It turns out it will
also be really useful for monitoring which applications are most popular,
how they are used, etc, etc.

> OLPC France may contribute to such an activity if there is sufficient
> interest among the other developers.

It'll be good to see if others respond, but regardless OLPC Australia would
also like to help with this project.

Cheers,
Pia

-- 
OLPC Australia   http://olpc.org.au/
Linux Australia http://linux.org.au/
Open Source Industry Australia   http://osia.net.au/
Software Freedom Day  http://softwarefreedomday.org/
 
   "He who loves the world as his body may be entrusted with the empire."
 - Lao-tzu
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Usage monitoring: any experience?

2008-06-14 Thread s . boutayeb
Hi,

Our grassroot at OLPC France made a small "deployment" lately in a school (so
far with one XO, no more) and we would like to monitor the activity of the users
(activities, connections, load, etc.) as per day, week, etc.

Of course, such monitoring activity will be more useful for our next projects in
the following weeks or months (we hope to get some XOs soon via the
developer's program) and we are planning to realize this monitoring activity
both during and after the deployments.

Do you have any experience in the matter?

OLPC France may contribute to such an activity if there is sufficient interest
among the other developers.

Thank you for your comments

Best regards,

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