Re: Activities owned by root in recent xo-1.5 builds?

2010-06-29 Thread Daniel Drake
On 28 June 2010 14:52, Chris Ball c...@laptop.org wrote:
 Hi,

    This is os203 (sorry! Should have mentioned it -- )

 Ooh, thanks for noticing that.  In that case, I can look farther back
 in the history and decide to blame:

 http://dev.laptop.org/git/projects/olpc-os-builder/commit/?id=fb74bbaf81fe2d095fbadefaea218fdb740e93f2

 Dan, did you intend not to perform the chown -R in the systemwide case?

oops, thats a mistake. chown should be done in both cases. Sorry!

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


Re: [Sugar-devel] Sugar with a virtual (onscreen) keyboard

2010-06-29 Thread Sayamindu Dasgupta
On Wed, Jun 23, 2010 at 1:58 AM, Sayamindu Dasgupta sayami...@gmail.com wrote:
 On Fri, Jun 18, 2010 at 9:04 AM, Gary Martin garycmar...@googlemail.com 
 wrote:
 Hi Sayamindu,

 On 17 Jun 2010, at 13:16, Sayamindu Dasgupta wrote:

 [Apologies for the cross-posting]

 Hello,
 Thanks to the pointers provided by Peter Robinson, I got the Meego
 FVKBD (Free Virtual Keyboard)¹ running along with Sugar.
 A problem with the current FVKBD is that it supports only one base
 layout. Even variants of that layout (eg: CapsLock enabled, Symbols,
 etc) are treated as temporary, which means that you press the Caps
 key, enter a capital letter, and immediately after that, it gets reset
 back to the base layout (lower case qwerty).
 I wanted something which would be similar to the existing physical
 keyboards that we ship with the XO machines - with a dedicated key to
 switch between different scripts in the same keyboard. I had to extend
 the code of FVKBD to implement that, and with the modified FVKBD, I
 have spun a live-cd ISO (based on the current SOAS). You can download
 it from http://dev.laptop.org/~sayamindu/sugar-vkbd-test/sugar-vkbd-test.iso

 Wow, big thanks for launching into this. For anyone not sure how to try the 
 iso, I'm on a Mac and just used Virtual Box to create a new empty Fedora VM, 
 no HD, and just point to the iso as the boot CD. Started up just fine, 
 keyboard is already open to type in your user name (of course this is all 
 read only, any changes you make will be gone after a reboot).



...snip


 Sayamindu, what kind'a feedback/assistance would be most useful? Is it too 
 soon to start collating notes and screen shots on a wiki page somewhere?

 Yes - I think we should start putting all of this in a wiki.


I have put in some of my thoughts and ideas into the wiki :
http://wiki.sugarlabs.org/go/Features/Onscreen_Keyboard

Thanks,
Sayamindu

-- 
Sayamindu Dasgupta
[http://sayamindu.randomink.org/ramblings]
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] Sugar with a virtual (onscreen) keyboard

2010-06-29 Thread Gary Martin
Hi Sayamindu,

On 29 Jun 2010, at 22:25, Sayamindu Dasgupta sayami...@gmail.com wrote:

 On Wed, Jun 23, 2010 at 1:58 AM, Sayamindu Dasgupta sayami...@gmail.com 
 wrote:
 On Fri, Jun 18, 2010 at 9:04 AM, Gary Martin garycmar...@googlemail.com 
 wrote:
 Hi Sayamindu,
 
 On 17 Jun 2010, at 13:16, Sayamindu Dasgupta wrote:
 
 [Apologies for the cross-posting]
 
 Hello,
 Thanks to the pointers provided by Peter Robinson, I got the Meego
 FVKBD (Free Virtual Keyboard)¹ running along with Sugar.
 A problem with the current FVKBD is that it supports only one base
 layout. Even variants of that layout (eg: CapsLock enabled, Symbols,
 etc) are treated as temporary, which means that you press the Caps
 key, enter a capital letter, and immediately after that, it gets reset
 back to the base layout (lower case qwerty).
 I wanted something which would be similar to the existing physical
 keyboards that we ship with the XO machines - with a dedicated key to
 switch between different scripts in the same keyboard. I had to extend
 the code of FVKBD to implement that, and with the modified FVKBD, I
 have spun a live-cd ISO (based on the current SOAS). You can download
 it from 
 http://dev.laptop.org/~sayamindu/sugar-vkbd-test/sugar-vkbd-test.iso
 
 Wow, big thanks for launching into this. For anyone not sure how to try the 
 iso, I'm on a Mac and just used Virtual Box to create a new empty Fedora 
 VM, no HD, and just point to the iso as the boot CD. Started up just fine, 
 keyboard is already open to type in your user name (of course this is all 
 read only, any changes you make will be gone after a reboot).
 
 
 
 ...snip
 
 
 Sayamindu, what kind'a feedback/assistance would be most useful? Is it too 
 soon to start collating notes and screen shots on a wiki page somewhere?
 
 Yes - I think we should start putting all of this in a wiki.
 
 
 I have put in some of my thoughts and ideas into the wiki :
 http://wiki.sugarlabs.org/go/Features/Onscreen_Keyboard

Thanks, that's a good set of notes. I'll add some of my scrawl to the talk page.

FWIW: My iPad testing using RDP has only been partially successful so far. Have 
been using the iTap RDP client to connect to the Virtual Box built in RDP 
support:

Pros: Pretty fast for a remote session; no redraw or graphics issues; can run 
the VM headless from the host; sound is remotely relayed (half second delay so 
not too great for UI feedback testing); uses 100% fullscreen so a 1024x768 
Sugar VM looks great on an iPad (iTap uses three finger gestures to invoke its 
local onscreen controls so you can pretend they don't exist).

Cons: Mouse cursor for clicks are not aligned correctly most of the time (still 
trying to track this issue down, may be client vs. host pointer related); due 
to the cursor alignment issues you need to invoke a hold gesture to drag the 
visible cursor to where you want to make a click (slow and defeats the goal of 
touch screen testing); iPad main virtual keyboard not correctly communicating 
with the VM (all the custom iTap keys work, esc, function keys, ctrl, alt, 
cursors etc, but the main keyboard letters do not get through) — which makes 
using your fvkbd image a must have ;)   

Regards,
--Gary

 Thanks,
 Sayamindu
 
 -- 
 Sayamindu Dasgupta
 [http://sayamindu.randomink.org/ramblings]
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [Sugar-devel] Sugar with a virtual (onscreen) keyboard

2010-06-29 Thread Gary Martin
On 30 Jun 2010, at 00:18, C. Scott Ananian csc...@laptop.org wrote:

 On Tue, Jun 22, 2010 at 4:28 PM, Sayamindu Dasgupta sayami...@gmail.com 
 wrote:
 - Ideally something (Gnome I assume?) should trigger the keyboard overlay 
 when you focus on a text field, perhaps with some hints about what the 
 'return' key behaviour should do (or expose a tab key as that is usually 
 the other common text field navigation method). Dismissing the keyboard 
 overlay when a text field is defocused would also be ideal.
 
 AFAIK, this requires a GTK+ module to be loaded. I'm still trying to
 write a proof of concept implementation of this - it seems that
 there's no documentation anywhere for writing GTK+ modules :-(
 
 Yeah, I gave up and just used LD_PRELOAD when I had this problem.  If
 you want to try the quick-and-dirty way for a proof of concept, this
 might be handy:
  http://dev.laptop.org/git/users/cscott/journal2/tree/
 
 Do all of firefox/xulrunner/chrome use GTK widgets for text entry?
 I'm nervous that some programs might not pop up the keyboard
 appropriately.
 
 You could add a gesture to force the keyboard up even for badly
 behaved applications.  I think the iPad/iPhone gesture for that is
 dragging your finger from the bottom of the screen to the top.

FWIW: There is no global system gesture or button on the iPad for revealing the 
virtual keyboard. Selecting any text widget will reveal it; app developers can 
programatically reveal it (say if they have a custom canvas, our Labyrinth 
activity would fall in this category); a few individual apps from 3rd parties 
(none I can see from Apple) have added their own floating semi transparent 
keyboard icon usually in the far lower right screen corner, in one case (a text 
chat app) this just seems like poor design, in the others I can remember it's 
for cases where there is no sane way to know if the keyboard is needed (VNC, 
RDP clients).

There are no keyboard only iOS devices, and all app developers knew from day 1 
that devices were touch only, so we are in a slightly different position with 
needing to support both key and keyless devices, and activities that were 
written without touch input in mind... So I'm sure we will need a fallback 
button. Sayamindu device frame seems a good choice, once we have a touch 
gesture to reveal the frame that is ;)   

Anyone know what the planned physical buttons may be for the XO-3? If Sugar was 
native on iPad hardware, I'd certainly want the single home button to reveal 
the frame, with perhaps a double click of it switching to the Sugar favourites 
ring view.

Regards,
--Gary 

  --scott
 
 -- 
 ( http://cscott.net/ )
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


[Server-devel] Site files only visible to first course creator

2010-06-29 Thread David Leeming
Using the first course creator,  have made a group of users course creators
in system roles, and in front page roles, but none of them can see Site
Files. Objective is to be able to upload to the server.

 

Any ideas? Does it take time to propagate through the system?

 

David Leeming

 

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


Re: [Server-devel] Cancel: Site files only visible to first course creator

2010-06-29 Thread David Leeming
It works OK - ignore this! It just took a while to take effect.

 

 

 

Using the first course creator,  have made a group of users course creators
in system roles, and in front page roles, but none of them can see Site
Files. Objective is to be able to upload to the server.

 

Any ideas? Does it take time to propagate through the system?

 

David Leeming

 

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


Re: [Server-devel] Static IP and DNS problems

2010-06-29 Thread Martin Langhoff
On Tue, Jun 29, 2010 at 1:43 AM, David Leeming
da...@leeming-consulting.com wrote:
 I tried to set up the WAN interface with a static IP address and DNS
 pointing at the gateway, following instructions at

It is all pretty straightforward -- but and DNS pointing at the
gateway sounds suspicious. Where did you add that dns pointing at
the gateway?

 What should I be looking for?

 - Is bind running correctly on the XS? To understand this... - are
there any interesting msgs in /var/log/messages.log from named ? Do
the following commands work... (executed on the XS)

   dig google.com @localhost
   dig `hostname -f` @localhost

 - Is /etc/resolv.conf correctly pointing to the named running on the XS?

hth,



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] Static IP and DNS problems

2010-06-29 Thread Tom Mitchell
On Tue, Jun 29, 2010 at 9:34 AM, Martin Langhoff
martin.langh...@gmail.com wrote:
 On Tue, Jun 29, 2010 at 1:43 AM, David Leeming
 da...@leeming-consulting.com wrote:
 I tried to set up the WAN interface with a static IP address and DNS
 pointing at the gateway, following instructions at

 It is all pretty straightforward -- but and DNS pointing at the
 gateway sounds suspicious. Where did you add that dns pointing at
 the gateway?


Tell us more about the local site setup.

DNS at the gateway is common in a DHCP world especially
behind a NAT router.  It should be possible to see what
name servers the NAT router or Gateway is connected to
by connecting to the configuration tool and then test them
with dig or host.   Another tool traceroute can let you
see if you have connectivity to the name server.   A static
address must not be in the DHCP servers pool of addresses.


 What should I be looking for?

  - Is bind running correctly on the XS? To understand this... - are
 there any interesting msgs in /var/log/messages.log from named ? Do
 the following commands work... (executed on the XS)

   dig google.com @localhost
   dig `hostname -f` @localhost

  - Is /etc/resolv.conf correctly pointing to the named running on the XS?


Two interesting google hosts are public name servers:
$ host 8.8.8.8
8.8.8.8.in-addr.arpa domain name pointer google-public-dns-a.google.com.
$ host 8.8.4.4
4.4.8.8.in-addr.arpa domain name pointer google-public-dns-b.google.com.

These name servers can be used on a command line:
$ host www.google.com 8.8.8.8
Using domain server:
Name: 8.8.8.8
Address: 8.8.8.8#53
Aliases:

www.google.com is an alias for www.l.google.com.
www.l.google.com has address 74.125.19.104
www.l.google.com has address 74.125.19.103
www.l.google.com has address 74.125.19.147
www.l.google.com has address 74.125.19.99


N.B. that localhost is not resolved by google.
This can be important and is commonly solved
by /etc/hosts and placing a host reference in
host.config.

So, do check /etc/host.config  you can have the local
file /etc/hosts inspected by the resolver code first
by setting placing hosts as the first tool in
the resolver line and follow that with DNS ( bind )
   $ cat /etc/host.conf
   multi on
   order hosts,bind

This lets your localhost line in /etc/hosts be seen.
It also lets you name hosts on the inside of a
NAT that uses private networks.
   192.168.0.0 – 192.168.255.255
   172.16.0.0 – 172.31.255.255
   10.0.0.0 – 10.255.255.255
  and watch for the zero configuration IP address space
  169.254.0.0/16 as described in RFC 3927

http://en.wikipedia.org/wiki/Private_network

Private networks are interesting.   They cannot
be auto routed and there is no global reverse
lookup

Name servers  for private networks are interesting.
They are a couple cases, the ``easy'' one is
where all the network is routed and no private
networks are involved.   Private networks are
more interesting because outside of the private
network a ``smart'' router's address is returned
while inside local private network numbers are
returned.

Debugging requires knowing if private net numbers
are being used and if the name server is returns
two views one for outside lookup and another
of inside lookups.  Netmasks?? this is another
topic of interest.   Netmasks establish broadcast
conventions that are important for many services.

One tactic is to take advantage of local /etc/host
resolution and fill in many of the interesting lookups by hand while
debugging a name server.  Once the debugging is
finished comment out or delete the hand made edits
to avoid future confusion (important).

An XS server can sit inside or on the edge of
a local network so the local decisions for setting
up a network environment can be important.



 hth,

 m
 --
  martin.langh...@gmail.com
  mar...@laptop.org -- School Server Architect
-- 
T o m   M i t c h e l l
mitch-at-niftyegg-dot-com
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel