Re: [Server-devel] pathagar admin pass
Did you try `revreskoob` (bookserver reversed)? https://github.com/XSCE/xsce/blob/master/docs/CONFIG.rst#pathagar On Sat, Jun 7, 2014 at 7:41 PM, Sameer Verma sve...@sfsu.edu wrote: I'm helping Anish with a XSCE 0.5 server install. His bandwidth is extremely limited. Anyone know what the method for login/reset pass is for the admin side of pathagar as installed by ansible? The main.yml file (https://github.com/XSCE/xsce/blob/master/roles/pathagar/vars/main.yml) has a long string, but I suspect that isn't the password. cheers, Sameer -- Sameer Verma, Ph.D. Professor, Information Systems San Francisco State University http://verma.sfsu.edu/ http://commons.sfsu.edu/ http://olpcsf.org/ http://olpcjamaica.org.jm/ -- Miguel González migonzal...@gmail.com PGP ID: 0C63761BEEBD05D3 ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] New release xs-authserver 0.1.6 (included in XSCE 5.0)
On Thu, Feb 13, 2014 at 12:29 AM, Miguel González migonzal...@activitycentral.com wrote: I've just released a new minor version of xs-authserver [1]. Now it doesn't raise an error when the init database command is executed twice. This change fixes the problem with ansible task authserver | install xs-authserver from pypi failing when re running the playbook [2]. To update an installed XSCE server it's possible to simply run pip:: $ sudo pip install --upgrade xs-authserver 1: https://pypi.python.org/pypi/xs-authserver 2: See attached patch -- Miguel González Activity Central: http://www.activitycentral.com I did further testing and found another error. It was caused by Internet-in-a-box installing a previous version of Python flask. I had to change init database command to be backwards compatible. I released 0.1.7 with this change. Now, finally, `runansible` doesn't raise any errors. -- Miguel González Activity Central: http://www.activitycentral.com ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
[Server-devel] New release xs-authserver 0.1.6 (included in XSCE 5.0)
I've just released a new minor version of xs-authserver [1]. Now it doesn't raise an error when the init database command is executed twice. This change fixes the problem with ansible task authserver | install xs-authserver from pypi failing when re running the playbook [2]. To update an installed XSCE server it's possible to simply run pip:: $ sudo pip install --upgrade xs-authserver 1: https://pypi.python.org/pypi/xs-authserver 2: See attached patch -- Miguel González Activity Central: http://www.activitycentral.com From a6cb0c36bd8f9e20e6d75dffd8189b7675f73cb6 Mon Sep 17 00:00:00 2001 From: Miguel Gonzalez migonzal...@activitycentral.com Date: Thu, 13 Feb 2014 00:22:28 +0100 Subject: [PATCH] authserver: remove ignore_errors --- roles/authserver/tasks/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/roles/authserver/tasks/main.yml b/roles/authserver/tasks/main.yml index 49f95fb..dfd73c5 100644 --- a/roles/authserver/tasks/main.yml +++ b/roles/authserver/tasks/main.yml @@ -40,7 +40,6 @@ - name: init database command: xs-authserverctl initdb - ignore_errors: yes environment: XS_AUTHSERVER_DATABASE: /var/lib/xs-authserver/data.db -- 1.8.3.1 ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] The three step XSCE demo!
are probably going to need something for the LAN side (an access point). There are a few permutations here, but I will step back and let more the technical experts converse :-) Cheers, Anish On Wed, Nov 20, 2013 at 10:54 AM, Sebastian Silva sebast...@fuentelibre.org wrote: 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, 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 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) -- Miguel González Activity Central: http://www.activitycentral.com ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] [XSCE] End User Documentation / Basic Setup Guide / How to upload PDFs etc
On Sun, Nov 17, 2013 at 9:05 PM, Sameer Verma sve...@sfsu.edu wrote: (Snipped) A couple of notes on the *installation* of Pathagar, where we do have a bunch of problems: 1) The *current* version of Pathagar is borked. I haven't gone back to see where it fails or how, but there should be a prior version that works. There is also a version (patch) that apparently fixes the book edit and upload problem. I have not tested it. I hope someone else can take a look? https://github.com/PathagarBooks/pathagar/issues I'm the one who send this pull request. We are testing this patch and other changes also while trying to integrate pathagar book server in XSCE 0.5 release. The details are in 2 pull request in XSCE github repo [1]. 2) There seem to be multiple deployment approaches. We have PIP, RPM, fabric, and the good old way of installing and configuring by hand (which is what I follow, because I haven't had the time to test the other methods). At the OLPC SF Summit, Jerry told me that they have the RPM part addressed, but the current bug (cannot add/edit books) gets in the way. We are using ansible to deploy pathagar. Ansible uses a YAML playbook and I think it's possible to follow it even if you are not familiar with the tool [2]. Currently I get pathagar source code from a personal cloned repository that includes some patches over the current upstream master branch [3]. Hopefully the latest patch can address these things. As I said, I have more patched waiting to send upstream. Later, I'll send more details but just to the pathagar mail list. 1: https://github.com/XSCE/xsce/pull/47 and https://github.com/XSCE/xsce/pull/74 2: https://github.com/migonzalvar/xsce/blob/fa8292/roles/pathagar/tasks/main.yml 3: https://github.com/migonzalvar/pathagar/tree/xsce-devel -- Miguel González Activity Central: http://www.activitycentral.com ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] The three step XSCE demo!
On Mon, Nov 18, 2013 at 2:48 AM, Anish Mangal an...@activitycentral.com wrote: I didn't setup root login (or atleast don't know the password to it). So you won't be able to login to the XSCE once it's running. Should not be a huge issue just for end-user demo purposes. It is a vagrant generated virtual machine so: - the user/password are vagrant/vagrant - user 'vagrant' is in sudoers group - ssh access is possible using port in localhost I have an entry in .ssh/config so I can access using `ssh vagrant`: Host vagrant HostName 127.0.0.1 User vagrant Port UserKnownHostsFile /dev/null StrictHostKeyChecking no PasswordAuthentication no IdentityFile ~/.vagrant.d/insecure_private_key IdentitiesOnly yes LogLevel FATAL The insecure private key is available Github [1]. 1: https://github.com/mitchellh/vagrant/tree/master/keys -- Miguel González Activity Central: http://www.activitycentral.com ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
[Server-devel] Testing rpm dependencies of XSCE ansible version using a virtual package
To test hidden dependencies in current ansible implementation I've built a **virtual package called xsce-virtual.rpm** [1] that includes a `Provides` rule: ``` Provides: xs-config xs-tools ``` Installing it in the target machine, it is possible to install XSCE from source with ansible assuring that actual xs-config and xs-tools packages won't be installed. ``` $ sudo yum localinstall xsce-virtual-0.0-1479_g3ad13d3.noarch.rpm [...] Complete! $ yum whatprovides xs-config xs-tools xsce-virtual-0.0-1479_g3ad13d3.noarch : XSCE virtual package to isolate xs-config and xs-tool dependencies Repo: @/xsce-virtual-0.0-1479_g3ad13d3.noarch Matched from: Provides: xs-config xsce-virtual-0.0-1479_g3ad13d3.noarch : XSCE virtual package to isolate xs-config and xs-tool dependencies Repo: @/xsce-virtual-0.0-1479_g3ad13d3.noarch Matched from: Provides: xs-tools $ sudo yum install -y git ansible $ git clone https://github.com/XSCE/xsce $ cd xsce/ $ sudo ./runansible [...] $ yum list installed|grep ^xs xs-rsync.noarch 0.6.12.gabc8f49-1.fc17 @xs-extra xsce-virtual.noarch 0.0-1479_g3ad13d3 @/xsce-virtual-0.0-1479_g3ad13d3.noarch $ ``` Related with this, I cleaned dxs.spec from DXS branch and sent a pull request [2]: - include xsce.yml - substitute DXS for XSCE in paths and texts - add `Provides: ` directive for xs-config and xs-tools. To test, please install the rpm in the target machine and run ansible: ``` sudo yum localinstall xsce-server-0.0-1480_gb42a1de.noarch.rpm sudo runansible ``` See https://sugardextrose.org/issues/4827 for the rpm packages. Of course, packages can be built using ``rpmbuild -bb xsce-server.spec``. 1: https://gist.github.com/migonzalvar/7238367 2: https://github.com/XSCE/xsce/pull/22 -- https://github.com/XSCE/xsce/pull/22 Miguel González Activity Central: https://github.com/XSCE/xsce/pull/22 http://www.activitycentral.com ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] extension of Moodle authentication mechanism
On Mon, Oct 28, 2013 at 4:54 AM, George Hunt georgejh...@gmail.com wrote: I heard that someone at activitycentral was extending, augmenting the authentication used by Moodle, so that other web based services can climb on. It's called xs-autherserve and is a component in DXS initiative. If you install XSCE using ansible you will find it in http://schoolserver.local:5000. Can someone point me to the code? The source code is in https://github.com/migonzalvar/xs-authserver. ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel -- Miguel González Activity Central: http://www.activitycentral.com ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] extension of Moodle authentication mechanism
In fact, the only feature so far is mimic authentication mechanism used by Moodle. I documented [1] how Moodle's/XO autologin works and implemented it using Flask, the Python web micro framework. Next step will be to turn xs-authserver into an authorization server maybe using OAuth. This would allow to use xs-authserver as an identity provider by external services easily. If you have problems running xs-authserver, take a look to this issue [2] in DXS. 1: https://gist.github.com/migonzalvar/279de1bbf414df1fad8c 2: https://sugardextrose.org/issues/4759#note-3 On Mon, Oct 28, 2013 at 6:41 PM, David Farning dfarn...@activitycentral.com wrote: For full disclosure. This feature has been sitting on the side lines because of its kludginess. So, keep you hopes low :( On Mon, Oct 28, 2013 at 10:28 AM, George Hunt georgejh...@gmail.com wrote: Thank you. I'll spend some time studying it and try to write up some documentation, and use cases. On Mon, Oct 28, 2013 at 5:07 AM, Miguel González migonzal...@activitycentral.com wrote: On Mon, Oct 28, 2013 at 4:54 AM, George Hunt georgejh...@gmail.com wrote: I heard that someone at activitycentral was extending, augmenting the authentication used by Moodle, so that other web based services can climb on. It's called xs-autherserve and is a component in DXS initiative. If you install XSCE using ansible you will find it in http://schoolserver.local:5000. Can someone point me to the code? The source code is in https://github.com/migonzalvar/xs-authserver. ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel -- Miguel González Activity Central: http://www.activitycentral.com ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel -- David Farning Activity Central: http://www.activitycentral.com -- Miguel González Activity Central: http://www.activitycentral.com ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
[Server-devel] XSCE/xsce and activitycetral/dxs repository integration in a branch preserving history
My suggestion to integrate activitycetral/dxs into XSCE/xsce preserving history and using a branch for easier comparison is: 1. revert xsce/master to fa2d59, 2. create a 'dxs' branch 3. merge activitycentral/dxs commits to this new branch preserving history This new branch (XSCE/xsce@dxs) will be the canonical repository for the migration and everybody will pull request against this branch. Detailed procedure on a fresh repository 1. revert Clean repo: ``` git clone g...@github.com:XSCE/xsce.git cd xsce ``` The actual revert: ``` git revert -m 1 b1638cd --no-edit ``` Submit changes: ``` git push origin ``` 2. create branch ``` git branch dxs git checkout dxs git push origin dxs ``` 3. merge Fetch dxs repository: ``` git remote add dxs g...@github.com:activitycentral/dxs git fetch dxs ``` And now the critical part, the actual merge: ``` git merge --no-ff -s recursive -X ours --no-edit dxs/master ``` Push! ``` git push origin dxs So, anyone with write permission on xsce can do this. You can check how would be the resulting repo in my personal clone copy in https://github.com/migonzalvar/xsce. -- Miguel González Activity Central: http://www.activitycentral.com ___ Server-devel mailing list server-de...@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] [XSCE] xsce and ansible
(Sorry for cross posting) On Mon, Oct 21, 2013 at 3:59 PM, Tim Moody t...@timmoody.com wrote: The weekly XSCE call (Thur 2PM) was lightly attended last week because many were on their way to SF. But we did spend some time on the question of moving to ansible as an installation mechanism and the means and timing of doing so. The consensus on the call was that we should make the move, but that it should be gradual rather than sudden enlightenment. It turns out that because the directory structures of xs-config ( github.com/XSCE/xsce) and dxs (activitycentral/dxs ) are substantially different (everything in plugins.d in the former and in roles in the latter) there are no collisions in directory names, so dxs could just be copied into xs-config. So the process discussed is simply to combine both repos into xsce and then obsolete directories in plugins.d as confidence builds that the ansible playbook for a given feature works. It sounds doable. But not sure how the transition will be. This is one possible work breakdown in 3 phases: Phase 1. A per service approach I imagine we can substitute for example `named yes` in file xs-setup [1] for something like `ansible-playbook -i ansible_hosts named.yml --connection=local`. ``` num_ifaces=`ls /sys/class/net | wc | gawk '{print $1}'` if [[ $num_ifaces 2 ]]; then -named yes + ansible-playbook -i ansible_hosts named.yml --connection=local squid yes gateway yes dhcpd yes xs-setup-network touch /.olpcxs-net-configured fi ``` And the same for xs-setup.conf. Phase 2. xs-setup delegates entire sections to a playbook Instead of per service playbooks we'll have a playbook for every section: - gathering facts about network including interactive questions - installing core services - installation of additional services - wrapping up For example, for core services: ``` - num_ifaces=`ls /sys/class/net | wc | gawk '{print $1}'` - if [[ $num_ifaces 2 ]]; then - ansible-playbook -i ansible_hosts named.yml --connection=local -squid yes -gateway yes -dhcpd yes -xs-setup-network -touch /.olpcxs-net-configured - fi + ansible-playbook -i ansible_hosts core_services.yml --connection=local ``` Phase 3. xs-setup is just an ansible launcher ``` #!/bin/bash # xs-setup ansible-playbook -i ansible_hosts xs.yml --connection=local EOF ``` The main problem I see is how to share consistently information between xs-setup and ansible worlds. For those on the call, does this summarize what was said? For those not on the call, does this sound like a viable plan? Tim -- Miguel González Activity Central: http://www.activitycentral.com ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel