Re: [Server-devel] [support-gang] jffs2 vs ubifs vs ext4 space-efficiency question

2015-12-23 Thread Gonzalo Odiard
Would be nice explore F2FS (Flash-Friendly File System)

https://en.wikipedia.org/wiki/F2FS

On Tue, Dec 22, 2015 at 6:40 PM, Martin Langhoff <martin.langh...@gmail.com>
wrote:

> On Tue, Dec 22, 2015 at 4:28 PM, James Cameron <qu...@laptop.org> wrote:
> > Yes, jffs2 compresses data.  That's why it is so slow.  That's why SD
> > card is faster than it should be otherwise.
>
> +1 on James reply. Also a quick note: AIUI, jffs2 gets much of its
> storage advantage from better packing of directory structures &
> metadata.
>
> The overall compression savings include these, and look great. The
> files contents are not _that_ compressible :-)
>
>
>
> m
> --
>  martin.langh...@gmail.com
>  -  ask interesting questions
>  - don't get distracted with shiny stuff  - working code first
>  ~ http://docs.moodle.org/en/User:Martin_Langhoff
> ___
> Server-devel mailing list
> Server-devel@lists.laptop.org
> http://lists.laptop.org/listinfo/server-devel
>



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


Re: [Server-devel] [XSCE] Proposal : Disable pathagar installation by default

2015-09-12 Thread Gonzalo Odiard
Just to report, Pathagar upstream merged the pull request mentioned
previously:

https://github.com/PathagarBooks/pathagar/commits/master

On Fri, Sep 11, 2015 at 1:47 PM, Anish Mangal <anis...@umich.edu> wrote:

> To be honest, I haven't tested extensively. Here's what works:
>
> 1. Install goes cleanly
> 2. Website opens
> 3. I can log in
> 4. I can upload a book
> 5. I can download a book
>
> Havent tested tags, searching etc.
>
> On Fri, Sep 11, 2015 at 10:08 PM, Gonzalo Odiard <godi...@gmail.com>
> wrote:
>
>> Great!
>>
>> On Fri, Sep 11, 2015 at 1:36 PM, Anish Mangal <anis...@umich.edu> wrote:
>>
>>> Update:
>>>
>>> Using django-taggit, it works!!
>>>
>>> Here are the changes I made...
>>>
>>> (1) Use --use-wheel flag
>>> (2) Change version to 0.14.0
>>>
>>> diff --git a/roles/pathagar/tasks/main.yml
>>> b/roles/pathagar/tasks/main.yml
>>> index 57a05fe..2e6ff08 100644
>>> --- a/roles/pathagar/tasks/main.yml
>>> +++ b/roles/pathagar/tasks/main.yml
>>> @@ -44,7 +44,7 @@
>>>  - Django==1.4.5
>>>  - django-tagging==0.3.1
>>>  - django-sendfile==0.3.6
>>> -- django-taggit==0.10
>>> +- django-taggit==0.14.0
>>>  - lxml==3.4.4
>>>when: not {{ use_cache }} and not {{ no_network }}
>>>tags:
>>> @@ -52,14 +52,14 @@
>>>
>>>  - name: Install pathagar requirements in a virtualenv
>>>pip: name={{ item }}
>>> -   extra_args="--no-index --find-links=file://{{ pip_packages_dir
>>> }}"
>>> +   extra_args="--no-index --use-wheel --find-links=file://{{
>>> pip_packages_dir }}"
>>> virtualenv={{ pathagar_venv }}
>>> virtualenv_site_packages=yes
>>>with_items:
>>>  - Django==1.4.5
>>>  - django-tagging==0.3.1
>>>  - django-sendfile==0.3.6
>>> -- django-taggit==0.10
>>> +- django-taggit==0.14.0
>>>  - lxml==3.4.4
>>>
>>>  - name: Create pathagar postgresql user
>>>
>>>
>>>
>>>
>>> On Fri, Sep 11, 2015 at 9:05 PM, Anish Mangal <anis...@umich.edu> wrote:
>>>
>>>> Perhaps the version should be 0.14.0 there? I'll give it a go :)
>>>>
>>>> On Fri, Sep 11, 2015 at 8:54 PM, Jerry Vonau <m...@jvonau.ca> wrote:
>>>>
>>>>>
>>>>>
>>>>> > On September 11, 2015 at 9:41 AM Gonzalo Odiard <godi...@gmail.com>
>>>>> > wrote:
>>>>> >
>>>>> >
>>>>> > Hi Anish,
>>>>> >
>>>>> > I have been contributing recently to Pathagar, and is true that
>>>>> > development
>>>>> > is a little dormant,
>>>>> > but I think is not broken, but maybe need a different configuration
>>>>> than
>>>>> > in
>>>>> > xsce.
>>>>> > They have a pull request waiting to merge (for a long time) [1]
>>>>> > that request django-taggit==0.14.0, maybe you can try with that?
>>>>> >
>>>>> > Also I was not able to use pathagar with Postgress as is configured
>>>>> in
>>>>> > xsce, but could be a mistake I did.
>>>>> >
>>>>> > Please try to contact Pathagar devels, and fond a solution.
>>>>> >
>>>>> > Gonzalo
>>>>> >
>>>>> > [1] https://github.com/PathagarBooks/pathagar/pull/65
>>>>> >
>>>>> > On Fri, Sep 11, 2015 at 11:25 AM, Anish Mangal <anis...@umich.edu>
>>>>> wrote:
>>>>> >
>>>>> > > Hi,
>>>>> > >
>>>>> > > Pathagar has been broken for QUITE some time on master, and it
>>>>> fails
>>>>> > > (without fail) on a fresh install. I propose that we disable it
>>>>> > > completely
>>>>> > > until fixed by maintainer.
>>>>> > >
>>>>> > > Sorry for sounding a bit harsh - master is broken by default due to
>>>>> > > this.
>>>>> > >
>>>>> > > Will happily create a PR if people agree.
>>>>> > >
>>>>> > > FWIW, here's the log from the latest run (centos-7-x64 on an
>>>>

Re: [Server-devel] [XSCE] Proposal : Disable pathagar installation by default

2015-09-11 Thread Gonzalo Odiard
2015.4-py2.py3-none-any.whl;
> unknown archive format: .whl
>   Skipping link
> file:///opt/schoolserver/pip-packages/Internet-in-a-Box-0.5.10.tar.gz;
> wrong project name (not django-taggit)
>   Skipping link
> file:///opt/schoolserver/pip-packages/Flask-Babel-0.9.tar.gz; wrong project
> name (not django-taggit)
>   Skipping link
> file:///opt/schoolserver/pip-packages/Flask-AutoIndex-0.5.tar.gz; wrong
> project name (not django-taggit)
>   Skipping link
> file:///opt/schoolserver/pip-packages/Flask-SQLAlchemy-2.0.tar.gz; wrong
> project name (not django-taggit)
>   Skipping link
> file:///opt/schoolserver/pip-packages/SQLAlchemy-1.0.8.tar.gz; wrong
> project name (not django-taggit)
>   Skipping link file:///opt/schoolserver/pip-packages/Whoosh-2.7.0.tar.gz;
> wrong project name (not django-taggit)
>   Skipping link
> file:///opt/schoolserver/pip-packages/backports.lzma-0.0.3.tar.gz; wrong
> project name (not django-taggit)
>   Skipping link
> file:///opt/schoolserver/pip-packages/repoze.lru-0.6.tar.gz; wrong project
> name (not django-taggit)
>   Skipping link file:///opt/schoolserver/pip-packages/Babel-2.0.tar.gz;
> wrong project name (not django-taggit)
>   Skipping link
> file:///opt/schoolserver/pip-packages/speaklater-1.3.tar.gz; wrong project
> name (not django-taggit)
>   Skipping link
> file:///opt/schoolserver/pip-packages/Flask-Silk-0.2.tar.gz; wrong project
> name (not django-taggit)
>   Skipping link file:///opt/schoolserver/pip-packages/Whoosh-2.6.0.zip;
> wrong project name (not django-taggit)
>   Skipping link file:///opt/schoolserver/pip-packages/Django-1.4.5.tar.gz;
> wrong project name (not django-taggit)
>   Skipping link
> file:///opt/schoolserver/pip-packages/django-tagging-0.3.1.tar.gz; wrong
> project name (not django-taggit)
>   Skipping link
> file:///opt/schoolserver/pip-packages/django-sendfile-0.3.6.tar.gz; wrong
> project name (not django-taggit)
>   Skipping link
> file:///opt/schoolserver/pip-packages/Django-1.8.4-py2.py3-none-any.whl;
> unknown archive format: .whl
>   Skipping link
> file:///opt/schoolserver/pip-packages/Unidecode-0.04.18.tar.gz; wrong
> project name (not django-taggit)
>   Skipping link
> file:///opt/schoolserver/pip-packages/django_taggit-0.10-py2.py3-none-any.whl;
> unknown archive format: .whl
>   Skipping link file:///opt/schoolserver/pip-packages/lxml-3.4.4.tar.gz;
> wrong project name (not django-taggit)
>   Could not find any downloads that satisfy the requirement
> django-taggit==0.10
>
> Cleaning up...
>
>   Removing temporary dir /usr/local/pathagar/venv/build...
> No distributions at all found for django-taggit==0.10
>
> Exception information:
> Traceback (most recent call last):
>   File
> "/usr/local/pathagar/venv/lib/python2.7/site-packages/pip/basecommand.py",
> line 134, in main
> status = self.run(options, args)
>   File
> "/usr/local/pathagar/venv/lib/python2.7/site-packages/pip/commands/install.py",
> line 236, in run
> requirement_set.prepare_files(finder, force_root_egg_info=self.bundle,
> bundle=self.bundle)
>   File "/usr/local/pathagar/venv/lib/python2.7/site-packages/pip/req.py",
> line 1085, in prepare_files
> url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
>   File
> "/usr/local/pathagar/venv/lib/python2.7/site-packages/pip/index.py", line
> 265, in find_requirement
> raise DistributionNotFound('No distributions at all found for %s' %
> req)
> DistributionNotFound: No distributions at all found for django-taggit==0.10
>
>
> --
> Anish
>



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


Re: [Server-devel] [XSCE] Proposal : Disable pathagar installation by default

2015-09-11 Thread Gonzalo Odiard
Great!

On Fri, Sep 11, 2015 at 1:36 PM, Anish Mangal <anis...@umich.edu> wrote:

> Update:
>
> Using django-taggit, it works!!
>
> Here are the changes I made...
>
> (1) Use --use-wheel flag
> (2) Change version to 0.14.0
>
> diff --git a/roles/pathagar/tasks/main.yml b/roles/pathagar/tasks/main.yml
> index 57a05fe..2e6ff08 100644
> --- a/roles/pathagar/tasks/main.yml
> +++ b/roles/pathagar/tasks/main.yml
> @@ -44,7 +44,7 @@
>  - Django==1.4.5
>  - django-tagging==0.3.1
>  - django-sendfile==0.3.6
> -- django-taggit==0.10
> +- django-taggit==0.14.0
>  - lxml==3.4.4
>when: not {{ use_cache }} and not {{ no_network }}
>tags:
> @@ -52,14 +52,14 @@
>
>  - name: Install pathagar requirements in a virtualenv
>pip: name={{ item }}
> -   extra_args="--no-index --find-links=file://{{ pip_packages_dir }}"
> +   extra_args="--no-index --use-wheel --find-links=file://{{
> pip_packages_dir }}"
> virtualenv={{ pathagar_venv }}
> virtualenv_site_packages=yes
>with_items:
>  - Django==1.4.5
>  - django-tagging==0.3.1
>  - django-sendfile==0.3.6
> -- django-taggit==0.10
> +- django-taggit==0.14.0
>  - lxml==3.4.4
>
>  - name: Create pathagar postgresql user
>
>
>
>
> On Fri, Sep 11, 2015 at 9:05 PM, Anish Mangal <anis...@umich.edu> wrote:
>
>> Perhaps the version should be 0.14.0 there? I'll give it a go :)
>>
>> On Fri, Sep 11, 2015 at 8:54 PM, Jerry Vonau <m...@jvonau.ca> wrote:
>>
>>>
>>>
>>> > On September 11, 2015 at 9:41 AM Gonzalo Odiard <godi...@gmail.com>
>>> > wrote:
>>> >
>>> >
>>> > Hi Anish,
>>> >
>>> > I have been contributing recently to Pathagar, and is true that
>>> > development
>>> > is a little dormant,
>>> > but I think is not broken, but maybe need a different configuration
>>> than
>>> > in
>>> > xsce.
>>> > They have a pull request waiting to merge (for a long time) [1]
>>> > that request django-taggit==0.14.0, maybe you can try with that?
>>> >
>>> > Also I was not able to use pathagar with Postgress as is configured in
>>> > xsce, but could be a mistake I did.
>>> >
>>> > Please try to contact Pathagar devels, and fond a solution.
>>> >
>>> > Gonzalo
>>> >
>>> > [1] https://github.com/PathagarBooks/pathagar/pull/65
>>> >
>>> > On Fri, Sep 11, 2015 at 11:25 AM, Anish Mangal <anis...@umich.edu>
>>> wrote:
>>> >
>>> > > Hi,
>>> > >
>>> > > Pathagar has been broken for QUITE some time on master, and it fails
>>> > > (without fail) on a fresh install. I propose that we disable it
>>> > > completely
>>> > > until fixed by maintainer.
>>> > >
>>> > > Sorry for sounding a bit harsh - master is broken by default due to
>>> > > this.
>>> > >
>>> > > Will happily create a PR if people agree.
>>> > >
>>> > > FWIW, here's the log from the latest run (centos-7-x64 on an
>>> intel-nuc)
>>> > >
>>> > > TASK: [pathagar | Remove if exist pathagar rpm version]
>>> > > ***
>>> > > ok: [127.0.0.1]
>>> > >
>>> > > TASK: [pathagar | Install pathagar pre requisites]
>>> > > 
>>> > > changed: [127.0.0.1] =>
>>> > >
>>> (item=python-virtualenv,python-pip,python-psycopg2,mod_wsgi,libxml2-devel,libxslt-devel)
>>> > >
>>> > > TASK: [pathagar | Create destination folder]
>>> > > **
>>> > > changed: [127.0.0.1]
>>> > >
>>> > > TASK: [pathagar | Create books destination folder]
>>> > > 
>>> > > changed: [127.0.0.1]
>>> > >
>>> > > TASK: [pathagar | Clone pathagar repo]
>>> > > 
>>> > > changed: [127.0.0.1]
>>> > >
>>> > > TASK: [pathagar | download pathagar requirements in a virtualenv]
>>> > > *
>>> > > ok: [127.0.0.1] => (item=Django==1.4.5)
>>> > > ok: [127.0.0.1] => (item=django-tagging==0.3.1)
>>> > > 

Re: [Server-devel] Installing pathagar in xsce master

2015-06-18 Thread Gonzalo Odiard
Hi Anish,
I was working with upstream (pathagar) solving a lot of little issues I
found,
and adding some optional features needed by Sora's deployment.
You can see my work here
https://github.com/PathagarBooks/pathagar/commits/master

Until now, I have tested install Pathagar with the role provided by xsce,
on a centos 7.1 in a vm, but couldn't finish due to this error  with
Postrgress.

In the field, we installed manually pathagar on a xsce 5.1 and is working
ok,
using a sqlite database.

If you can test, would be great.

Gonzalo

On Thu, Jun 18, 2015 at 4:08 AM, Anish Mangal anishmangal2...@gmail.com
wrote:

 Hi Gonzalo,

 Thanks for working on this. I can help with testing (on x64-centos) .. did
 you make any progress on this?

 Pathagar has been problematic in the past, and Miguel has a workaround and
 it was good for a while, before (I guess) it broke again :/

 Best,
 Anish


 On Mon, Jun 15, 2015 at 4:17 AM, Gonzalo Odiard godi...@sugarlabs.org
 wrote:

 Could be related to


 https://github.com/XSCE/xsce/commit/5d330f883cf6ddf92818b34e649aa9f6f4b8efe5
 ?

 Gonzalo

 On Sun, Jun 14, 2015 at 7:38 PM, Gonzalo Odiard godi...@sugarlabs.org
 wrote:

 I am trying to install Pathagar on a CentOs 7.1 vm using
 the method detailed here https://github.com/XSCE/xsce
 and modifying the file /opt/schoolserver/xsce/vars/local_vars.yml
 to add the line: pathagar_enabled: True

 Later I run:

 ./runoption pathagar

 And start to install but finish with a error:

 PLAY [all]
 

 GATHERING FACTS
 ***
 ok: [127.0.0.1]

 TASK: [postgresql | Install postgresql packages]
 **
 ok: [127.0.0.1] = (item=postgresql,postgresql-server)

 TASK: [postgresql | Create postgresql-xs systemd service]
 *
 ok: [127.0.0.1]

 TASK: [postgresql | Create postgres data directory]
 ***
 ok: [127.0.0.1]

 TASK: [postgresql | Discover if the postgresql database data directory
 has already been created] ***
 ok: [127.0.0.1]

 TASK: [postgresql | Initialize the postgres db]
 ***
 skipping: [127.0.0.1]

 TASK: [postgresql | Configure postgres]
 ***
 ok: [127.0.0.1]

 TASK: [postgresql | Disable stock postgresql service]
 *
 skipping: [127.0.0.1]

 TASK: [postgresql | Enable postgresql service]
 
 skipping: [127.0.0.1]

 TASK: [pathagar | Remove if exist pathagar rpm version]
 ***
 ok: [127.0.0.1]

 TASK: [pathagar | Install pathagar pre requisites]
 
 ok: [127.0.0.1] =
 (item=python-virtualenv,python-pip,python-psycopg2,mod_wsgi)

 TASK: [pathagar | Create destination folder]
 **
 ok: [127.0.0.1]

 TASK: [pathagar | Create books destination folder]
 
 ok: [127.0.0.1]

 TASK: [pathagar | Clone pathagar repo]
 
 ok: [127.0.0.1]

 TASK: [pathagar | download pathagar requirements in a virtualenv]
 *
 ok: [127.0.0.1] = (item=Django==1.4.5)
 ok: [127.0.0.1] = (item=django-tagging==0.3.1)
 ok: [127.0.0.1] = (item=django-sendfile==0.3.6)
 ok: [127.0.0.1] = (item=django-taggit==0.10)

 TASK: [pathagar | Install pathagar requirements in a virtualenv]
 **
 ok: [127.0.0.1] = (item=Django==1.4.5)
 ok: [127.0.0.1] = (item=django-tagging==0.3.1)
 ok: [127.0.0.1] = (item=django-sendfile==0.3.6)
 ok: [127.0.0.1] = (item=django-taggit==0.10)

 TASK: [pathagar | Create pathagar postgresql user]
 
 failed: [127.0.0.1] = {failed: true}
 msg: unable to connect to database: could not connect to server: No such
 file or directory
 Is the server running locally and accepting
 connections on Unix domain socket /var/run/postgresql/.s.PGSQL.5432?


 FATAL: all hosts have already failed -- aborting

 PLAY RECAP
 
to retry, use: --limit @/root/xsce.retry

 127.0.0.1  : ok=13   changed=0unreachable=0
  failed=1

 Any idea about what could be the problem?

 I have tried run:

 ./runoption postgresql

 But the result and retry, but the result is the same.

 In a separated note, I have sent a pr to update the pathagar repository
 and
 dependencies https://github.com/XSCE/xsce/pull/324

 --
 Gonzalo Odiard

 SugarLabs - Software for children learning




 --
 Gonzalo Odiard

 SugarLabs - Software for children learning

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




 --
 Anish




-- 
Gonzalo Odiard

SugarLabs - Software for children learning
___
Server-devel mailing list
Server-devel@lists.laptop.org
http

Re: [Server-devel] Trying to access a school server from the outside world

2015-06-16 Thread Gonzalo Odiard
I would need access 'lascahobas' server, because the new server is not
available yet.
Could you provide me the client information needed?
Sorry to bother, I didn't used openvpn before.

Gonzalo


On Tue, Jun 16, 2015 at 12:51 PM, George Hunt georgejh...@gmail.com wrote:

 I thought I had already set you up for using the Amazon passthrough. But
 here are the steps:


1. There is a user at the https://50.17.210.12:943/admin/ port with
username:gonzalo and a password I will send separately.
2. Sign on there and change your password. You can use this sign on at
any time to see if the sora server client connection is available at the
passthrough.
3. Then you will need to create a new user without administrative
privileges that will become the server's client connection to the vpn. The
generation of the keys for the sora server is triggered by accessing
https://50.17.210.12:943/ (without admin), and logging on with the
credentials you created when you set up the sora server user.
4. When you make this https:// access, the amazon openvpn application
will offer to let you download the openvpn client application.  I have
usually yum installed openvpn already. Hit refresh, and you will be given
a choice to download an unattended access key file.
5. Download the cient.ovpn file and change it so something similar
to the username you created. Place it in the /etc/openvpn/ directory of
sora server

 Sorry I missed your request when it came 3 days ago.


 On Sat, Jun 13, 2015 at 7:54 PM, Gonzalo Odiard godi...@sugarlabs.org
 wrote:

 Could I use your passthrough server to access Sora server?
 What we should do setup it?

 Gonzalo

 On Sat, Jun 13, 2015 at 4:16 PM, George Hunt georgejh...@gmail.com
 wrote:

 Typically a server is behind some sort of NAT device, and some sort of
 firewall, and most likely has a variable ip address assigned by the ISP's
 dhcpd.  The trick is to have the server initiate an outgoing conversation
 to a device on the internet that is always on.  I purchased a micro
 instance on amazon cloud for the purpose.

 The amazon instance generates keys for clients which permits passthrough
 conversations between any clients. There's two levels of authentication --
 1. need a vpn key to connect to the amazon instance, and 2. need
 authentication at the ssh port of the target (preferably a public key in
 .ssh/authorized_keys on the target -making dictionary attacks less likely).

 But I'm becoming a fan of teamviewer. You need to install Xorg, and I
 usually install XFCE because it's pretty light weight. Up until now, I've
 resisted a GUI for servers.



 On Sat, Jun 13, 2015 at 2:25 PM, Tim Moody t...@timmoody.com wrote:

 I should also have mentioned that we have started using TeamViewer on
 some of the servers which allows a session on the server without using the
 vpn hub.

 ___
 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




 --
 Gonzalo Odiard

 SugarLabs - Software for children learning





-- 
Gonzalo Odiard

SugarLabs - Software for children learning
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Trying to access a school server from the outside world

2015-06-16 Thread Gonzalo Odiard
Thanks!

On Tue, Jun 16, 2015 at 12:51 PM, George Hunt georgejh...@gmail.com wrote:

 I thought I had already set you up for using the Amazon passthrough. But
 here are the steps:


1. There is a user at the https://50.17.210.12:943/admin/ port with
username:gonzalo and a password I will send separately.
2. Sign on there and change your password. You can use this sign on at
any time to see if the sora server client connection is available at the
passthrough.
3. Then you will need to create a new user without administrative
privileges that will become the server's client connection to the vpn. The
generation of the keys for the sora server is triggered by accessing
https://50.17.210.12:943/ (without admin), and logging on with the
credentials you created when you set up the sora server user.
4. When you make this https:// access, the amazon openvpn application
will offer to let you download the openvpn client application.  I have
usually yum installed openvpn already. Hit refresh, and you will be given
a choice to download an unattended access key file.
5. Download the cient.ovpn file and change it so something similar
to the username you created. Place it in the /etc/openvpn/ directory of
sora server

 Sorry I missed your request when it came 3 days ago.


 On Sat, Jun 13, 2015 at 7:54 PM, Gonzalo Odiard godi...@sugarlabs.org
 wrote:

 Could I use your passthrough server to access Sora server?
 What we should do setup it?

 Gonzalo

 On Sat, Jun 13, 2015 at 4:16 PM, George Hunt georgejh...@gmail.com
 wrote:

 Typically a server is behind some sort of NAT device, and some sort of
 firewall, and most likely has a variable ip address assigned by the ISP's
 dhcpd.  The trick is to have the server initiate an outgoing conversation
 to a device on the internet that is always on.  I purchased a micro
 instance on amazon cloud for the purpose.

 The amazon instance generates keys for clients which permits passthrough
 conversations between any clients. There's two levels of authentication --
 1. need a vpn key to connect to the amazon instance, and 2. need
 authentication at the ssh port of the target (preferably a public key in
 .ssh/authorized_keys on the target -making dictionary attacks less likely).

 But I'm becoming a fan of teamviewer. You need to install Xorg, and I
 usually install XFCE because it's pretty light weight. Up until now, I've
 resisted a GUI for servers.



 On Sat, Jun 13, 2015 at 2:25 PM, Tim Moody t...@timmoody.com wrote:

 I should also have mentioned that we have started using TeamViewer on
 some of the servers which allows a session on the server without using the
 vpn hub.

 ___
 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




 --
 Gonzalo Odiard

 SugarLabs - Software for children learning





-- 
Gonzalo Odiard

SugarLabs - Software for children learning
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


[Server-devel] Installing pathagar in xsce master

2015-06-14 Thread Gonzalo Odiard
I am trying to install Pathagar on a CentOs 7.1 vm using
the method detailed here https://github.com/XSCE/xsce
and modifying the file /opt/schoolserver/xsce/vars/local_vars.yml
to add the line: pathagar_enabled: True

Later I run:

./runoption pathagar

And start to install but finish with a error:

PLAY [all]


GATHERING FACTS
***
ok: [127.0.0.1]

TASK: [postgresql | Install postgresql packages]
**
ok: [127.0.0.1] = (item=postgresql,postgresql-server)

TASK: [postgresql | Create postgresql-xs systemd service]
*
ok: [127.0.0.1]

TASK: [postgresql | Create postgres data directory]
***
ok: [127.0.0.1]

TASK: [postgresql | Discover if the postgresql database data directory has
already been created] ***
ok: [127.0.0.1]

TASK: [postgresql | Initialize the postgres db]
***
skipping: [127.0.0.1]

TASK: [postgresql | Configure postgres]
***
ok: [127.0.0.1]

TASK: [postgresql | Disable stock postgresql service]
*
skipping: [127.0.0.1]

TASK: [postgresql | Enable postgresql service]

skipping: [127.0.0.1]

TASK: [pathagar | Remove if exist pathagar rpm version]
***
ok: [127.0.0.1]

TASK: [pathagar | Install pathagar pre requisites]

ok: [127.0.0.1] =
(item=python-virtualenv,python-pip,python-psycopg2,mod_wsgi)

TASK: [pathagar | Create destination folder]
**
ok: [127.0.0.1]

TASK: [pathagar | Create books destination folder]

ok: [127.0.0.1]

TASK: [pathagar | Clone pathagar repo]

ok: [127.0.0.1]

TASK: [pathagar | download pathagar requirements in a virtualenv]
*
ok: [127.0.0.1] = (item=Django==1.4.5)
ok: [127.0.0.1] = (item=django-tagging==0.3.1)
ok: [127.0.0.1] = (item=django-sendfile==0.3.6)
ok: [127.0.0.1] = (item=django-taggit==0.10)

TASK: [pathagar | Install pathagar requirements in a virtualenv]
**
ok: [127.0.0.1] = (item=Django==1.4.5)
ok: [127.0.0.1] = (item=django-tagging==0.3.1)
ok: [127.0.0.1] = (item=django-sendfile==0.3.6)
ok: [127.0.0.1] = (item=django-taggit==0.10)

TASK: [pathagar | Create pathagar postgresql user]

failed: [127.0.0.1] = {failed: true}
msg: unable to connect to database: could not connect to server: No such
file or directory
Is the server running locally and accepting
connections on Unix domain socket /var/run/postgresql/.s.PGSQL.5432?


FATAL: all hosts have already failed -- aborting

PLAY RECAP

   to retry, use: --limit @/root/xsce.retry

127.0.0.1  : ok=13   changed=0unreachable=0failed=1


Any idea about what could be the problem?

I have tried run:

./runoption postgresql

But the result and retry, but the result is the same.

In a separated note, I have sent a pr to update the pathagar repository and
dependencies https://github.com/XSCE/xsce/pull/324

-- 
Gonzalo Odiard

SugarLabs - Software for children learning
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Installing pathagar in xsce master

2015-06-14 Thread Gonzalo Odiard
Could be related to

https://github.com/XSCE/xsce/commit/5d330f883cf6ddf92818b34e649aa9f6f4b8efe5
?

Gonzalo

On Sun, Jun 14, 2015 at 7:38 PM, Gonzalo Odiard godi...@sugarlabs.org
wrote:

 I am trying to install Pathagar on a CentOs 7.1 vm using
 the method detailed here https://github.com/XSCE/xsce
 and modifying the file /opt/schoolserver/xsce/vars/local_vars.yml
 to add the line: pathagar_enabled: True

 Later I run:

 ./runoption pathagar

 And start to install but finish with a error:

 PLAY [all]
 

 GATHERING FACTS
 ***
 ok: [127.0.0.1]

 TASK: [postgresql | Install postgresql packages]
 **
 ok: [127.0.0.1] = (item=postgresql,postgresql-server)

 TASK: [postgresql | Create postgresql-xs systemd service]
 *
 ok: [127.0.0.1]

 TASK: [postgresql | Create postgres data directory]
 ***
 ok: [127.0.0.1]

 TASK: [postgresql | Discover if the postgresql database data directory has
 already been created] ***
 ok: [127.0.0.1]

 TASK: [postgresql | Initialize the postgres db]
 ***
 skipping: [127.0.0.1]

 TASK: [postgresql | Configure postgres]
 ***
 ok: [127.0.0.1]

 TASK: [postgresql | Disable stock postgresql service]
 *
 skipping: [127.0.0.1]

 TASK: [postgresql | Enable postgresql service]
 
 skipping: [127.0.0.1]

 TASK: [pathagar | Remove if exist pathagar rpm version]
 ***
 ok: [127.0.0.1]

 TASK: [pathagar | Install pathagar pre requisites]
 
 ok: [127.0.0.1] =
 (item=python-virtualenv,python-pip,python-psycopg2,mod_wsgi)

 TASK: [pathagar | Create destination folder]
 **
 ok: [127.0.0.1]

 TASK: [pathagar | Create books destination folder]
 
 ok: [127.0.0.1]

 TASK: [pathagar | Clone pathagar repo]
 
 ok: [127.0.0.1]

 TASK: [pathagar | download pathagar requirements in a virtualenv]
 *
 ok: [127.0.0.1] = (item=Django==1.4.5)
 ok: [127.0.0.1] = (item=django-tagging==0.3.1)
 ok: [127.0.0.1] = (item=django-sendfile==0.3.6)
 ok: [127.0.0.1] = (item=django-taggit==0.10)

 TASK: [pathagar | Install pathagar requirements in a virtualenv]
 **
 ok: [127.0.0.1] = (item=Django==1.4.5)
 ok: [127.0.0.1] = (item=django-tagging==0.3.1)
 ok: [127.0.0.1] = (item=django-sendfile==0.3.6)
 ok: [127.0.0.1] = (item=django-taggit==0.10)

 TASK: [pathagar | Create pathagar postgresql user]
 
 failed: [127.0.0.1] = {failed: true}
 msg: unable to connect to database: could not connect to server: No such
 file or directory
 Is the server running locally and accepting
 connections on Unix domain socket /var/run/postgresql/.s.PGSQL.5432?


 FATAL: all hosts have already failed -- aborting

 PLAY RECAP
 
to retry, use: --limit @/root/xsce.retry

 127.0.0.1  : ok=13   changed=0unreachable=0
  failed=1

 Any idea about what could be the problem?

 I have tried run:

 ./runoption postgresql

 But the result and retry, but the result is the same.

 In a separated note, I have sent a pr to update the pathagar repository
 and
 dependencies https://github.com/XSCE/xsce/pull/324

 --
 Gonzalo Odiard

 SugarLabs - Software for children learning




-- 
Gonzalo Odiard

SugarLabs - Software for children learning
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Trying to access a school server from the outside world

2015-06-13 Thread Gonzalo Odiard
Could I use your passthrough server to access Sora server?
What we should do setup it?

Gonzalo

On Sat, Jun 13, 2015 at 4:16 PM, George Hunt georgejh...@gmail.com wrote:

 Typically a server is behind some sort of NAT device, and some sort of
 firewall, and most likely has a variable ip address assigned by the ISP's
 dhcpd.  The trick is to have the server initiate an outgoing conversation
 to a device on the internet that is always on.  I purchased a micro
 instance on amazon cloud for the purpose.

 The amazon instance generates keys for clients which permits passthrough
 conversations between any clients. There's two levels of authentication --
 1. need a vpn key to connect to the amazon instance, and 2. need
 authentication at the ssh port of the target (preferably a public key in
 .ssh/authorized_keys on the target -making dictionary attacks less likely).

 But I'm becoming a fan of teamviewer. You need to install Xorg, and I
 usually install XFCE because it's pretty light weight. Up until now, I've
 resisted a GUI for servers.



 On Sat, Jun 13, 2015 at 2:25 PM, Tim Moody t...@timmoody.com wrote:

 I should also have mentioned that we have started using TeamViewer on
 some of the servers which allows a session on the server without using the
 vpn hub.

 ___
 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




-- 
Gonzalo Odiard

SugarLabs - Software for children learning
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Trying to access a school server from the outside world

2015-06-13 Thread Gonzalo Odiard
Thanks Tim and all by the information.
I was using TeamViewer with Sora server, but is terribly slow.

Gonzalo

On Sat, Jun 13, 2015 at 3:25 PM, Tim Moody t...@timmoody.com wrote:

 I should also have mentioned that we have started using TeamViewer on some
 of the servers which allows a session on the server without using the vpn
 hub.

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




-- 
Gonzalo Odiard

SugarLabs - Software for children learning
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


[Server-devel] Trying to access a school server from the outside world

2015-06-12 Thread Gonzalo Odiard
Hi,
I am trying to help Sora who installed a XSCE, and we need
configure some of the services.
What is the best way to access remotely?
It's possible do ssh to the external ip or is blocked in some way?
Anything else?

-- 
Gonzalo Odiard

SugarLabs - Software for children learning
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


[Server-devel] White list on xsce

2015-06-12 Thread Gonzalo Odiard
There are a white list configured in the xsce server?
If yes, how can be changed?
Thanks,

-- 
Gonzalo Odiard

SugarLabs - Software for children learning
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] [XSCE] Towards CentOS 7.1 on ARM?

2015-04-23 Thread Gonzalo Odiard
You should ask to Peter Robinson, he is involved in ARM support
on Red Hat. CentOS for the school server have a lot of sense.

Gonzalo

On Thu, Apr 23, 2015 at 4:36 PM, Adam Holt h...@laptop.org wrote:

 Not really 7.1 but the 2nd release of CentOS 7 sure has an ugly name!
 http://seven.centos.org/2015/03/centos-7-1503-is-released/

 Jim Perrin cites some progress getting CentOS running on ARM -- does this
 help us yet?
 http://seven.centos.org/2015/03/building-centos-linux-7-for-armv8/
 http://seven.centos.org/2015/03/centos-linux-7-and-arm/

 Does Jon Nettleton have a better strategy entirely?


 On Thu, Apr 23, 2015 at 1:50 PM, George Hunt georgejh...@gmail.com
 wrote:


 Tim

 Adam wanted me to discuss centos with Fiji. So I tried to do an install
 of current master on Centos.

 The kalite-serve enable timed out, and it looks from the log that it
 might have been creating datasets when ansible yanked it away.  Have you
 discovered how to recover from this situation?

 On Thu, Apr 23, 2015 at 10:45 AM, Tim Moody t...@timmoody.com wrote:

 My plan has been to add this capability to the admin console.  I was
 thinking just recursive wget, but if there is something higher level that
 would be great.

 So far you can download and install zims and launch Kalite to get
 videos.  I want to add the collections Rachel, IIAB, and Bernie (if Tony is
 interested ) and then move on to html-based sites.

 Sent from my BlackBerry(R) PlayBook(tm)
 www.blackberry.com

 --
 *From:* Anish Mangal anis...@umich.edu
 *To:* xsce-devel xsce-de...@googlegroups.com, server-devel 
 server-devel@lists.laptop.org
 *Sent:* 23 April, 2015 7:07 AM
 *Subject:* [XSCE] httrack web based interactive site crawler

 Hi,

 I found this amazing software that can be configured and interactively
 crawls and keeps offline copies of websites.

 http://www.httrack.com/page/1/en/index.html

 Is useful for including custom content. An educator could bundle a
 website of their choice using this tool, which, though not perfect for
 cases where there are youtube videos, is useful for other media - pdf,
 documents etc.

 Perhaps there is a case for including this in xsce?

 Best,
 Anish

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




-- 
Gonzalo Odiard

SugarLabs - Software for children learning
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] make-server-delegations output and importing to XS

2010-04-26 Thread Gonzalo Odiard
Ok, Anything like this?

Gonzalo

On Fri, Apr 23, 2010 at 12:54 PM, Martin Langhoff martin.langh...@gmail.com
 wrote:

 On Thu, Apr 22, 2010 at 4:50 PM, Daniel Drake d...@laptop.org wrote:
  OK, no problem.
  Just curious though, whats the justification behind this? is there an
  existing project that runs in this way?
  The single file model just doesn't seem so scalable.

 Thanks!  If we have a utility script that splits up such a file, I am
 happy.

 From the PoV of the programmers of the inventory systems we interop
 with, the simplest thing is to export a single file. That is what I
 want to ask from inventory backends.

 A single file simplifies little corner cases like what when a school
 disappears / stops having XOs ? (empty file? file removal?).

 There are number of such corner cases, and  by putting them clearly on
 our side of the interoperability we make them our problem, and we can
 work to make sure we handle them correctly.

 cheers,



 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




-- 
Gonzalo Odiard
Responsable de Desarrollo
Sistemas Australes


make-list-by-school.sh
Description: Bourne shell script
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] make-server-delegations output and importing to XS

2010-04-26 Thread Gonzalo Odiard
I can do a python version.
I don't like having hundreds of files opened, it's ok with you?

Gonzalo

On Fri, Apr 23, 2010 at 4:27 PM, Martin Langhoff
martin.langh...@gmail.comwrote:

 On Fri, Apr 23, 2010 at 1:17 PM, Gonzalo Odiard godi...@gmail.com wrote:
  Ok, Anything like this?

 That's the idea... though one thing we might need to be aware of: CSV
 files can have quoted values, and even commas within them. Some
 exporters may even escape quotes within the value...

 That's why I've used python for the other scripts that handle CSV input...




 cheers,



 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




-- 
Gonzalo Odiard
Responsable de Desarrollo
Sistemas Australes
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel