Re: [Sugar-devel] Sugar Activities and Permission Errors
On Fri, Jan 22, 2010 at 07:34:30PM +0100, Bert Freudenberg wrote: Actually it applies *only* to XOs running 0.82. No newer Sugar version has Rainbow, the security framework. Not SoaS, and not even the XO-1.5, sadly. This isn't quite correct. While no distribution installs it by default, the Sugar supports modern versions of Rainbow and Debian even packages it. It hasn't been tested much, though - this is one of the areas we could use some help with. IOW: Most users running 0.84+ won't have Rainbow (enabled), but we're working on it, so make sure your activities only write to the places mentioned in the API documentation. CU Sascha -- http://sascha.silbe.org/ http://www.infra-silbe.de/ signature.asc Description: Digital signature ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Sugar Activities and Permission Errors
On Fri, Jan 22, 2010 at 12:27:32PM -0500, Francis Xavier Fitzpatrick wrote: Great, I'll check it out. Does this apply to Sugar .82.1 too? As I said, we're working with OLPCs. Especially there. :) Feel free to ask again if you encounter any other obstacle (or don't solve your current one); either on this list or on #sugar (irc.freenode.net). PS: Nitpick: You're probably talking about XO-1's - OLPC is the legal entity that distributes them. With the XO-1.5 being shipped soon it's getting more important to make that distinction. CU Sascha -- http://sascha.silbe.org/ http://www.infra-silbe.de/ signature.asc Description: Digital signature ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Sugar Activities and Permission Errors
On Fri, Jan 22, 2010 at 13:34, Bert Freudenberg wrote: > Actually it applies *only* to XOs running 0.82. No newer Sugar version has > Rainbow, the security framework. Not SoaS, and not even the XO-1.5, sadly. Although hopefully we'll be able to reinclude Rainbow in future Sugar versions. -- Luke Faraone http://luke.faraone.cc ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Sugar Activities and Permission Errors
Actually it applies *only* to XOs running 0.82. No newer Sugar version has Rainbow, the security framework. Not SoaS, and not even the XO-1.5, sadly. - Bert - On 22.01.2010, at 18:27, Francis Xavier Fitzpatrick wrote: > Great, I'll check it out. Does this apply to Sugar .82.1 too? As I said, > we're working with OLPCs. > > Fran > > On Fri, Jan 22, 2010 at 12:03 PM, Sascha Silbe > wrote: > On Fri, Jan 22, 2010 at 11:38:02AM -0500, Francis Xavier Fitzpatrick wrote: > > I was able to get a few of the games to start up correctly, but whenever > they try to download a file from Google Docs I get a permission error. > Short answer (others will hopefully be more elaborate, but this might get you > on track already): Take a look at the "Writable Directories" section [1] of > the low-level activity API documentation. > > > [1] > http://wiki.sugarlabs.org/go/Development_Team/Low-level_Activity_API#Writable_Directories > > CU Sascha ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Sugar Activities and Permission Errors
Francis, Activities cannot be made to run as root. However, there should be no need whatsoever to do this. You can download files from a website using code like that in the "Get Internet Archive Books" activity. That Activity uses http to download books from the Internet Archive website. The permissions may be on the Google Docs side, in which case running as root isn't going to help. Maybe you could move the file to someplace else, or include it in the Activity bundle? James Simmons > Date: Fri, 22 Jan 2010 11:38:02 -0500 > From: Francis Xavier Fitzpatrick > Subject: [Sugar-devel] Sugar Activities and Permission Errors > To: sugar-devel@lists.sugarlabs.org > Message-ID: > <28a1b5a1001220838x6f270d51o5d17840d67780...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Hello! > > I've just begun working on a few activities that a class at my University > made last semester. The class made three different games (in Python) and > then tried to port them to the OLPC and run them as a sugar activity. > > I was able to get a few of the games to start up correctly, but whenever > they try to download a file from Google Docs I get a permission error. I > started off by changing the permissions of the file location to 777, which > didn't work, and then just to be sure I changed the permissions of the > entire activity folder to 777... still no luck. > > To be absolutely sure that this is a permission problem, I would like to run > the activity as root. Is this possible? Or does anyone have any better > ideas? > > Thank you, > Fran Fitzpatrick > -- next part -- > An HTML attachment was scrubbed... > URL: > http://lists.sugarlabs.org/archive/sugar-devel/attachments/20100122/51908be5/attachment-0001.htm ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Sugar Activities and Permission Errors
Great, I'll check it out. Does this apply to Sugar .82.1 too? As I said, we're working with OLPCs. Fran On Fri, Jan 22, 2010 at 12:03 PM, Sascha Silbe < sascha-ml-ui-sugar-de...@silbe.org> wrote: > On Fri, Jan 22, 2010 at 11:38:02AM -0500, Francis Xavier Fitzpatrick wrote: > > I was able to get a few of the games to start up correctly, but whenever >> they try to download a file from Google Docs I get a permission error. >> > Short answer (others will hopefully be more elaborate, but this might get > you on track already): Take a look at the "Writable Directories" section [1] > of the low-level activity API documentation. > > > [1] > http://wiki.sugarlabs.org/go/Development_Team/Low-level_Activity_API#Writable_Directories > > CU Sascha > > -- > http://sascha.silbe.org/ > http://www.infra-silbe.de/ > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.9 (GNU/Linux) > > iQEcBAEBAgAGBQJLWdplAAoJELpz82VMF3Da9rEH/j785ZJ/VAB8/lJkxSATAEiM > zpKXXHwlFHkRg+IiMSEjA05pStrAOxHNuOyghvQS3IabA2c3BsnfUpxhdrX6i4Qn > LYt/rNhxYUo3Fn/ZDS165PdQWhB7H/WscS1u/4fFDZdkd5CAPiuA8K0We5fVabt6 > AeUH28ed6EASDuMGHKQC74H+Gz1S34JrWY4lNrB3fVnQbYyogH5ghM0GK5K/WClB > wv7dJWGn6/2bD1Ep8XZzWrHTwWnbfXqrccqugW+6ThhWJnpGGJOtNfKbwXkzWhka > 7a0PHnsT+dqTHx5Xy/DKr51QQzZH+enpxeBsqBBLK7o218+2Z5OU4IY726fvcIA= > =B3M2 > -END PGP SIGNATURE- > > ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Sugar Activities and Permission Errors
On Fri, Jan 22, 2010 at 11:38:02AM -0500, Francis Xavier Fitzpatrick wrote: I was able to get a few of the games to start up correctly, but whenever they try to download a file from Google Docs I get a permission error. Short answer (others will hopefully be more elaborate, but this might get you on track already): Take a look at the "Writable Directories" section [1] of the low-level activity API documentation. [1] http://wiki.sugarlabs.org/go/Development_Team/Low-level_Activity_API#Writable_Directories CU Sascha -- http://sascha.silbe.org/ http://www.infra-silbe.de/ signature.asc Description: Digital signature ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] Sugar Activities and Permission Errors
Hello! I've just begun working on a few activities that a class at my University made last semester. The class made three different games (in Python) and then tried to port them to the OLPC and run them as a sugar activity. I was able to get a few of the games to start up correctly, but whenever they try to download a file from Google Docs I get a permission error. I started off by changing the permissions of the file location to 777, which didn't work, and then just to be sure I changed the permissions of the entire activity folder to 777... still no luck. To be absolutely sure that this is a permission problem, I would like to run the activity as root. Is this possible? Or does anyone have any better ideas? Thank you, Fran Fitzpatrick ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel