Re: [Server-devel] [UKids] Enthusiasm for a Centos School Server is wonderful

2015-03-29 Thread Sebastian Silva
For the Sugar Network project we used Selenium UI testing.
Basically you can record a standard interaction with a Firefox plugin [1].

This in turn produces scripts that can be used in a server with an
embedded firefox browser. At the time, I integrated this with the
Jenkins continuous integration system.

I recomend Selenium for semi-automated testing, that is, from your
browser. It helps to automate testing an entire workflow or use case,
for instance.

Helps to work in a more agile fashion.

The automated bit took a while to set up but did warn us early when
something broke. It would run all the tests for every git commit.

Hope it helps,
Sebastian

[1] http://docs.seleniumhq.org/projects/ide/


El 29/03/15 a las 11:58, Adam Holt escibió:
 On Sun, Mar 29, 2015 at 12:45 PM, George Hunt georgejh...@gmail.com
 mailto:georgejh...@gmail.com wrote:

 I woke up thinking that a little time spent on testing automation
 might be appropriate. And I'm searching for ideas.

 Tony presents a wrinkle I had not thought of: how to automate
 clicking on GUI buttons.

 I can extend Tim's test script, such that it queries the target
 for server mode(appliance, lan-contoller,gateway) and only tests
 the functions that are appropriate.

 Each machine, or at least software install, can be assigned a UUID.

 The test script could output a text file in sqlite format, as well
 as to the screen.

 One of the fields in the sqlite database could store the
 /etc/xsce/xsce.ini file, or we could parse that file, and populate
 individual fields, as appropriate.

 Sqlite is a  format that is recognized by couchdb, and I think
 couchdb can roll up to the cloud easily.

 Tim's cmdsrv interface seems to lend itself to automated testing
 pretty well -- in that a script can send events to the
 cmdsrv.socket, just like the GUI does.

 I don't know JavaScript and DOM well enough.  Are there ways that
 JS can click buttons in the proper sequence to test arbitrary GUI
 applications?

 I liked the laptop.org http://laptop.org page we had which had a
 matrix of services on one axis, and platforms on the other axis.
 The matrix started out untested (yellow), and turned green or red
 based upon test results.


 Specifically,
 http://wiki.laptop.org/go/XS_Community_Edition/0.4/Testing/Results

 Are there any other ideas?

  
 Am cc'ing server-devel in case others can recommend?


 On Sun, Mar 29, 2015 at 6:59 AM, Tim Moody t...@timmoody.com
 mailto:t...@timmoody.com wrote:

 George, I'm guessing that the 'it' in 'it doesn't work' is the
 install, which uses the HaitiOS script and is therefore
 dependent on a particular OS and machine.  The tests
 themselves should work on other XOs and to a lesser extent in
 other environments, except for the XO specific tests like
 idmgr and ds-backup that run as olpc.

 I have added instructions for manually installing to the README.

 Tony, a number of these tests connect to a particular url on
 the server and look for a known string in the result. 
 Probably your buttons could be tested this way.

 I'm sure there is a great deal more that needs to be added,
 but I find that this test runs in about 15 seconds and tells
 me if one of the things it knows about didn't get installed or
 isn't running.

 Anyone can feel free to add more tests.

 -Original Message-
 From: unleashk...@googlegroups.com
 mailto:unleashk...@googlegroups.com
 [mailto:unleashk...@googlegroups.com
 mailto:unleashk...@googlegroups.com] On Behalf Of Tony Anderson
 Sent: Saturday, March 28, 2015 11:33 PM
 To: unleashk...@googlegroups.com
 mailto:unleashk...@googlegroups.com
 Subject: Re: [UKids] Enthusiasm for a Centos School Server is
 wonderful

 Hi, George

 Automating tests for the school server would be wonderful but
 is clearly a major project.

 Currently I test manually by clicking all the buttons to see
 that I get the right response. Luckily, I don't have to deal
 with the many network environments that XSCE is attempting to
 support so that should make it simpler.

 However, the current content has 26 major buttons to be
 tested. Some of these (e.g. Gutenberg search) would require a
 succession of urls to get to the final deliverable.

 I have also added a learning management and library capability
 that would require test retrievals of database records
 (another 5 major buttons).

 Finally, I would need to have a test of the datastore
 backup/restore, collection of results of activities into the db.

 So, the manual tests are easy but it is hard to make sure you
 have completely tested 

Re: [Server-devel] [UKids] Re: XOs cannot act as WiFi access points

2015-03-16 Thread Sebastian Silva
Back then, I was dogfooding Sugar 0.94 because I had to deploy it to the
children of Peru. Also, you can image, I had various XOs around.

In my vision, Sugar should grow to be a useful desktop for a person of
any age who likes to learn with simplicity, collaboration and reflection.

If it's not too much to ask, I'd like it stunning as well.

That would be a topic for IAEP [Design] tag I guess.

:-)

Regards,
Sebastian


El 16/03/15 a las 21:36, James Cameron escibió:
 On Mon, Mar 16, 2015 at 09:30:30PM -0500, Jerry Vonau wrote:
 On March 16, 2015 at 9:23 PM James Cameron qu...@laptop.org wrote:
 There's no need to go as far as configuring as an access point when
 ad-hoc networking will work, with suitable configuration of the other
 laptops connecting to it.
 Has sugar addressed http://bugs.sugarlabs.org/ticket/3708?
 Why would you use Sugar?


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


Re: [Server-devel] [UKids] Re: XOs cannot act as WiFi access points

2015-03-16 Thread Sebastian Silva


El 16/03/15 a las 22:31, James Cameron escibió:
 Why would Google and the carriers want to have people bypass them?  It
 makes no business sense.  ;-)

Oh very timely with news about this beauty here:
https://github.com/matiasinsaurralde/facebook-tunnel

It's a tunnel for Internet traffic thru sponsored facebook chat,
bypassing the atrocious net-neutrality monster that is Zuckerberg's
Internet.Org initiative.

Could this perhaps ever be ported into an XO activity :-)

Pair it with hotspot mode and voilá, user liberation.

I bet they block it before a few months or less if it becomes easy to use.

Regards,
Sebastian

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


Re: [Server-devel] XOs cannot act as WiFi access points

2015-03-16 Thread Sebastian Silva
Hi Adam,

If I remember correctly, the /libertas /driver that is needed (for the
xo1 at least), in contrast to its name, actually is not completely free,
I don't remember if because of some firmware blobs.

Therefore, it was difficult or impossible for a driver programmer to set
the device to monitor mode required to host a hotspot. Not my area of
expertise, though.

Hopefully i'm wrong.

When doing a laptop project (or an education project that involves
laptops), next time, hopefully every component will respect user's
freedoms
https://www.fsf.org/resources/hw/endorsement/respects-your-freedom.
From looking at the consumer market, it will take a while.

Regards,
Sebastian


El 16/03/15 a las 21:06, Adam Holt escibió:
 Can someone remind me the reason that XO laptops (if I'm remembering
 correctly) cannot use their antennae/ears as a self-contained WiFi AP
 server?  (e.g. for tiny community/village libraries in very offline
 developing countries.  A very typical situation being: local librarian
 wants to use existing XO hardware, leaving a humble knowledge hotspot
 unpassworded and wide open to diverse WiFi devices, in the style of
 Internet-in-a-Box).

 Is it a HW and/or SW (http://en.wikipedia.org/wiki/HostAP) that
 prevents this, out of curiosity?

 --
 Unsung Heroes of OLPC, interviewed live @ http://unleashkids.org !


 ___
 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] XOs cannot act as WiFi access points

2015-03-16 Thread Sebastian Silva
Looking at the page that I linked, I think actually this product would
make it feasible, hopefully without too much fuss.
I guess the drivers should come preinstalled with the XO, not sure.

https://www.thinkpenguin.com/gnu-linux/penguin-wireless-n-usb-adapter-w-external-antenna-gnu-linux-tpe-n150usbl

It does respect your freedom, in any case.

I do think the XO would be an excellent option for otherwise low energy
server with an integrated UPS, but it's not a viable server platform for
running even light multi-user server apps. However, this might be just
perfect (or enough) for smaller remote schools.

Regards

El 16/03/15 a las 21:23, James Cameron escibió:
 There's no need to go as far as configuring as an access point when
 ad-hoc networking will work, with suitable configuration of the other
 laptops connecting to it.


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


Re: [Server-devel] Rpi2 now available, and loads current XSCE master

2015-03-10 Thread Sebastian Silva
While we were not looking:


  Windows 10 para Raspberry Pi 2

http://dev.windows.com/es-es/featured/raspberrypi2support


El 26/02/15 a las 13:00, George Hunt escibió:
 Just got my second rpi, and discovered that they both failed until I
 used a more robust USB to micro USB power cable. 

 It's pretty fast, for just 3watts, including the USB wifi dongle.

 To get the full install on fc21, I needed to comment out ajenti at
 /opt/schoolserver/xsce/roles/8-tools/meta/main.yml

 The base software, with rpi loader and kernel, is available
 at http://www.digitaldreamtime.co.uk/images/Fidora/21/ (based on a
 minumal 173MB download)

 There's a rtc that mounts on the accessory connectors of the rpi
 at http://www.amazon.com/gp/product/B00MCNMR8G

 I'm still fiddling to get a USB wifi driver, and there's still lots of
 testing. But completing the install process is significant in itself.
 Once I get it all tested, I'll post an image. I'll be about 2GB in size.


 ___
 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] UEFI workaround?

2014-10-31 Thread Sebastian Silva

If at all possible, the first thing to do is disable secure uefi boot.

The only distro that I've found has out of the box support for secure 
boot is the Ubuntu family. Maybe there are others.


Some firmwares don't support legacy boot anymore, so even unsecured, 
they need to boot using UEFI (make sure you install the proper 
bootloader).


I've succeeded with Archlinux, and had to learn all about EFI booting. 
I recommend this step to Tony, then he can apply the knowledge to 
fedora. They have pretty good docs: 
https://wiki.archlinux.org/index.php/UEFI


It's possible to install a fedora chroot under any system, but it's not 
ideal.


Governments and deployments should really know better than buying 
crippled hardware. Perhaps this is an area where this community could 
produce formal recommendations that we would distribute to the people 
on charge of buying the hardware. It should really be a policy and even 
law.


--
Sebastian Silva
icarito #sugar #somosazucar (freenode IRC)
Somos Azúcar - Fuente Libre - Sugar Labs

Las maestras y los maestros democráticos intervenimos en el mundo a 
través del cultivo de la curiosidad - P.Freire


El vie, 31 de oct 2014 a las 11:50 AM, Adam Holt h...@laptop.org 
escribió:
Tony Anderson’s is leaving to Africa in 6 days, assisting many 
different school server deployments, and needs help getting around 
secure BIOS/firmware UEFI on the following platforms:


- NUC 34010 - BIOS upgrade solves this, by moving jumper and 
inserting USB memory stick containing newer Intel BIOS

- NUC 2820 - installs but doesn't boot
- Gigabyte Brix GB-BXBT-2807
- Zotac nano CI320
- Zotac ID81 Atom system but UEFI not Bios

Just in case you have any similar experience, please drop some hints, 
and he'll happily reply here with Tons of more details he's tried :)


--
Unsung Heroes of OLPC, interviewed live @ http://unleashkids.org !
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] The three step XSCE demo!

2013-11-19 Thread Sebastian Silva

Hi
I tried this but google drive problematic to download from as it 
requires to download from a browser. Not adequate for 1.6gb. Let me know 
if I can pick it up from a regular download place. Why is it so big?


Regards,
Sebastian

El 17/11/13 20:48, Anish Mangal escribió:
Download the XSCE Virtualbox appliance from here 
https://docs.google.com/file/d/0B3eW2YPe6koIVXRVbDhSR0xXQ1U (approx 
1.6 GB)


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


Re: [Server-devel] The three step XSCE demo!

2013-11-19 Thread Sebastian Silva
Thanks that will be simpler. Actually I'm more interested in what a good 
dev environment would be in order to contribute.

Do I need to make a fedora chroot?

Regards,
Sebastian

El 19/11/13 09:51, Anish Mangal escribió:
I tried uploading it to xsce.activitycentral.com 
http://xsce.activitycentral.com, but I ran out of space in my user 
dir. Normally the appliance is 1.3G, but this also has 400mb of IIAB 
test dataset.


I'll give it another shot in another area where there is some free 
space, and get back.



On Tue, Nov 19, 2013 at 7:24 PM, Sebastian Silva 
sebast...@fuentelibre.org mailto:sebast...@fuentelibre.org wrote:


Hi
I tried this but google drive problematic to download from as it
requires to download from a browser. Not adequate for 1.6gb. Let
me know if I can pick it up from a regular download place. Why is
it so big?

Regards,
Sebastian

El 17/11/13 20:48, Anish Mangal escribió:

Download the XSCE Virtualbox appliance from here
https://docs.google.com/file/d/0B3eW2YPe6koIVXRVbDhSR0xXQ1U
(approx 1.6 GB)





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


Re: [Server-devel] Questions for today

2013-08-10 Thread Sebastian Silva

Hi Tony,

The people developing the Sugar Network are an international team 
comprising people from different backgrounds.


Sugar Network is not a cloud-based resource. It is an offline / online 
decentralized communication mechanism which runs at three levels 
(everyone seems to love cake charts):


SUGAR NETWORK DIAGRAM

  +~~~+
  | network.sugarlabs.org |// instance runs backend node + frontend 
web service

  +---+
 / /restful API*/ / // ability clone + sync entire SN database 
even over USB (sneakernet)

 +---+
 | optional schoolserver | // instance too, runs backend node + 
frontend web service

 +---+
/ /same restful API*/   /  // gives access to resources at server or 
central server

+---+
| laptop with SN plugin |  // XO clients have special view in sugar 
to access

+~~~+

(*) http://wiki.sugarlabs.org/go/Platform_Team/Sugar_Network/API

The Sugar Network is designed to transport abstract objects across the 
connected/disconnected gap by leveraging schoolservers to concentrate 
user interactions and contributions and providing a workflow for 
synchronization, with or without a central server.


Find information about the (still untested!) design of sneakernet 
functionality at:

http://wiki.sugarlabs.org/go/Deployment_Platform/Sneakernet

At the moment, only XO users are authenticated to the network (using 
sugar's crypto keys). Web users are demo.


Please try it and let us know how we can improve it, and do join the 
conversation at https://groups.google.com/forum/#!forum/sugar-network 
https://groups.google.com/forum/#%21forum/sugar-network (in cc) for 
technical questions.


Best regards,
Sebastian



El 08/08/13 05:40, Tony Anderson escribió:

Hi, Sebastian

My concern was email access in deployments which only have access to the
Internet by taking a usb drive to an internet cafe. I thought that 
Peru was
developing such a capability at least for software distribution. The 
deployments
I am working with do not have access to the internet and so are unable 
to use

cloud-based resources.

Tony


On 08/08/2013 11:39 AM, Sebastian Silva wrote:

El 06/08/13 08:33, Tony Anderson escribió:
As mentioned, there are server developments at many deployments. 
What would be great is a co-operative team that would work to 
provide capabilities in a way that can be distributed widely. I am 
sure that Peru is working on a method to deliver email via usb drive 
(and internet cafes). I just don't have any visibility in the method 
taken, the technology employed, or whether the development can be 
applicable outside of Peru.


We've made a significant effort to have all of our development 
visible upstream:

http://git.sugarlabs.org/network
http://git.sugarlabs.org/platform

Also most of our technical and non-technical documentation is in English:
http://wiki.sugarlabs.org/go/Sugar_Network
http://wiki.sugarlabs.org/go/Platform_Team/Sugar_Network

We are server-solution-agnostic and merely provide a set of 
specialized services packaged for major distributions at this time. 
To take advantage of all Sugar Network capabilities, a patched Sugar 
shell is necessary (SN-plugin). It adds a special view to participate 
in the Sugar Network.


It is interesting that we are specifically trying to tackle the 
downstreams/upstream cooperation/distribution issue. Still, we're not 
planning to add an email gateway to the Sugar Network at this time, 
but expect most communication to happen over the Sugar Network 
support forums / knowledge base, which is also accessible using a 
regular browser:

http://network.sugarlabs.org/

Regards,
Sebastian




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


Re: [Server-devel] Questions for today

2013-08-08 Thread Sebastian Silva

El 06/08/13 08:33, Tony Anderson escribió:
As mentioned, there are server developments at many deployments. What 
would be great is a co-operative team that would work to provide 
capabilities in a way that can be distributed widely. I am sure that 
Peru is working on a method to deliver email via usb drive (and 
internet cafes). I just don't have any visibility in the method taken, 
the technology employed, or whether the development can be applicable 
outside of Peru.


We've made a significant effort to have all of our development visible 
upstream:

http://git.sugarlabs.org/network
http://git.sugarlabs.org/platform

Also most of our technical and non-technical documentation is in English:
http://wiki.sugarlabs.org/go/Sugar_Network
http://wiki.sugarlabs.org/go/Platform_Team/Sugar_Network

We are server-solution-agnostic and merely provide a set of specialized 
services packaged for major distributions at this time. To take 
advantage of all Sugar Network capabilities, a patched Sugar shell is 
necessary (SN-plugin). It adds a special view to participate in the 
Sugar Network.


It is interesting that we are specifically trying to tackle the 
downstreams/upstream cooperation/distribution issue. Still, we're not 
planning to add an email gateway to the Sugar Network at this time, but 
expect most communication to happen over the Sugar Network support 
forums / knowledge base, which is also accessible using a regular browser:

http://network.sugarlabs.org/

Regards,
Sebastian
___
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-26 Thread Sebastian Silva
Martin,
Thanks for your response.
Originally I thought I would transmit video directly with gstreamer to 
the server.
I've been following 
http://wiki.laptop.org/go/Gstreamer#Doing_live_streaming_video_from_an_xo
and so far I've had mixed luck. I think you're right the WLAN is not 
good enough for doing this reliably.

So now I'm going to try and ease the workflow by having each laptop 
transmit asynchroniously what they record
The idea is to save locally and not have to go laptop by laptop 
recovering video material.
So I'm going to try and suggest to use File Share Activity:
http://wiki.sugarlabs.org/go/Activities/FileShare
I'm still trying to get the server component to fetch all files.
I will probably patch the activity to be able to share all video journal 
items.

We will use record unless we can come up with a clever gst-launch line 
that will record in hi-res to USB,
and a way to share those files as well.

It will be the children who record so the user experience must be pretty 
simple and friendly.

Our working document for the project is:
http://openetherpad.org/requerimientos-neokinok-escuelab
the event will document the experience in native communities in Lima and 
the highlands of Puno:
http://escuelab.org/contenido/amtawi

Thanks for your suggestions
Sebastian
I cc other in the team to keep them on the loop.

El 24/03/11 14:15, Martin Langhoff escribió:
 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


-- 
Sebastian Silva
Oversight Board Member
Sugar Labs

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


[Server-devel] Network Backup of Journal Video Items

2011-03-23 Thread Sebastian Silva
Hi!
I'm preparing a solution for an event in Lima and Puno, Perú, where they 
indend to film a documentary using XO-1 laptops.
I'll try to use gstreamer to send video that will be recorded on a server.
I'd like it if you had suggestions for me.

As an alternative I'd like it if we could backup tranparently when there 
are video items in the journal that are favorited.
So how should I setup this the easiest? The site won't have Internet. Do 
i need XS or can I set this up with an existing Ubuntu?

Thanks
Sebastian

-- 
Sebastian Silva
Oversight Board Member
Sugar Labs

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