Re: [Server-devel] web file manager

2009-06-16 Thread David Van Assche
Might be worth taking a look at ifolder... http://www.ifolder.com/ifolder
Used to be an old netware project which novell has revived and thrown
into opensource domain... totally cross platform too...

kind regards,
David Van Assche

On Tue, Jun 16, 2009 at 6:44 PM, Rodolfo D. Arce
S. wrote:
> Hello:
>
> Just wanted to let you know that we are using a php file manager to
> upload files to the schoolserver and later shared through the apache
> web server.. we're using XS 0.5.2
>
> The project is called phpajaxfilemanager, and is open source, we
> placed in the /library/uploads directory in the schoolserver, don't
> forget to change permissions so apache can access them
>
> http://sourceforge.net/projects/pafm/
>
> We create to aliases in the webserver.. using a config file like
> this.. we changed values for the php.ini file from this configuration,
> and applied only to the alias, so no other aplications (like moodle)
> would be affected by this changes
>
> # /etc/httpd/conf.d/002-uploader.conf
> Alias /upload /library/uploads
> 
>  AllowOverride All
>  php_value upload_max_filesize 1000
>  php_value post_max_size 1000
>  Order allow,deny
>  Allow from all
> 
>
> Alias /files /library/uploads/files
> 
>  Options Indexes
>  Order allow,deny
>  Allow from all
> 
>
> With this two aliases.. the teachers can use the "upload" interface
> wich has a very simple authentication.. and the children or other
> teachers can access to the "files" aliases, without having to
> authenticate, and they wont be able to erase anything, upload or
> modify anything
>
> I'll admit that is not the safest way to share files using the
> schoolserver, but it works fine for us.. do you think that are other
> ways of doing this?? are other deployments using different methods??
>
> cheers.. R
> ___
> 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


[Server-devel] web file manager

2009-06-16 Thread Rodolfo D. Arce S.
Hello:

Just wanted to let you know that we are using a php file manager to
upload files to the schoolserver and later shared through the apache
web server.. we're using XS 0.5.2

The project is called phpajaxfilemanager, and is open source, we
placed in the /library/uploads directory in the schoolserver, don't
forget to change permissions so apache can access them

http://sourceforge.net/projects/pafm/

We create to aliases in the webserver.. using a config file like
this.. we changed values for the php.ini file from this configuration,
and applied only to the alias, so no other aplications (like moodle)
would be affected by this changes

# /etc/httpd/conf.d/002-uploader.conf
Alias /upload /library/uploads

  AllowOverride All
  php_value upload_max_filesize 1000
  php_value post_max_size 1000
  Order allow,deny
  Allow from all


Alias /files /library/uploads/files

  Options Indexes
  Order allow,deny
  Allow from all


With this two aliases.. the teachers can use the "upload" interface
wich has a very simple authentication.. and the children or other
teachers can access to the "files" aliases, without having to
authenticate, and they wont be able to erase anything, upload or
modify anything

I'll admit that is not the safest way to share files using the
schoolserver, but it works fine for us.. do you think that are other
ways of doing this?? are other deployments using different methods??

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


[Server-devel] the "first user is admin" moodle policy

2009-06-16 Thread Daniel Drake
Hi,

I don't feel that the "first user is admin" policy in the new XS-0.6 is
going to agree with deployment procedures that well, especially when you
are deploying XSes in number.

For example in Paraguay, we installed all the XSes at the office and a
separate team installed them in the schools. We might want the head of
the school to be the course creator person, but at that time we haven't
even assigned him/her a laptop so registering him would be impossible.

How about this instead: Nobody is course creator by default.
We add a command that can be run by root on the XS, which creates a new
user account with a chosen username and password that has admin rights?
And in addition, we add a similar command that can be used to promote an
already-registered XO to course creator, based on it's serial number.

xs-moodle-create-admin  
xs-moodle-set-xo-as-admin 

Daniel


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


Re: [Server-devel] Server configuration for static IP instead of DHCP

2009-06-16 Thread Martin Langhoff
On Tue, Jun 16, 2009 at 5:25 PM,  wrote:
> Maybe the WIKI need an update that include ... take a break and come back for 
> the cache stuff

Probably a strategic reboot is better, faster and clearer. You do need
it once you've set the domain.

If you

1 - install
2 - set the domain (which sets resolv.conf
3 - set the forwarders
4 - set ifcfg-eth0-local
5 - reboot

everything 'just works'. Once I make 0.6 an official release -- soon!
I promise! -- we can update the install guide with this info.

> Working normally..and I am amazed by the level of automation via the XS. Just 
> registered 2 XOs via wireless.

Great!

> Now I need to see how the Moodle could be a mix of external users and XOs 
> registered users. I use to have success login in with admin and the password 
> supplied to add newlanguage options. Any changes? I have not been login with 
> the combination recently?

Use the first registered XO -- which has 'course creator' rights in
Moodle. It can create new "normal" accounts, which login with
username/password.

If you want those accounts to be 'course creators' too, after creating
the accounts you can grant them the right from Users->Roles->Sitewide
roles (a standard Moodle procedure)

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] Server configuration for static IP instead of DHCP

2009-06-16 Thread tkkang
Maybe the WIKI need an update that include ... take a break and come back for 
the cache stuff  

Working normally..and I am amazed by the level of automation via the XS. Just 
registered 2 XOs via wireless. Now I need to see how the Moodle could be a mix 
of external users and XOs registered users. I use to have success login in with 
admin and the password supplied to add newlanguage options. Any changes? I have 
not been login with the combination recently?
 
Cheers


>-Original Message-
>From: Martin Langhoff [mailto:martin.langh...@gmail.com]
>Sent: Tuesday, June 16, 2009 10:59 PM
>To: tkk...@nurturingasia.com
>Cc: 'Sameer Verma', 'Rodolfo D. Arce S.', 'XS Devel'
>Subject: Re: [Server-devel] Server configuration for static IP instead of DHCP
>
>On Tue, Jun 16, 2009 at 4:24 PM,  wrote:
>> Thanks for all the advice and help. I went to sleep after setting it without 
>> success ... and came back after  work at it again - when I ping it works!!
>> Maybe the lesson is to wait for the network stuff to sort things out and be 
>> patient?
>
>Fantastic news! DNS/resolver stuff is sometimes cached so "going to
>sleep" is sometimes the right fix ;-)
>
>> Have set the forwarders commands to my actual DNS and the resolv.conf 
>> nameserver points to 172.18.0.1.
>
>Perfect-o.
>
>
>
>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] Server configuration for static IP instead of DHCP

2009-06-16 Thread Martin Langhoff
On Tue, Jun 16, 2009 at 4:24 PM,  wrote:
> Thanks for all the advice and help. I went to sleep after setting it without 
> success ... and came back after  work at it again - when I ping it works!!
> Maybe the lesson is to wait for the network stuff to sort things out and be 
> patient?

Fantastic news! DNS/resolver stuff is sometimes cached so "going to
sleep" is sometimes the right fix ;-)

> Have set the forwarders commands to my actual DNS and the resolv.conf 
> nameserver points to 172.18.0.1.

Perfect-o.



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] Server configuration for static IP instead of DHCP

2009-06-16 Thread tkkang
Thanks for all the advice and help. I went to sleep after setting it without 
success ... and came back after  work at it again - when I ping it works!!
Maybe the lesson is to wait for the network stuff to sort things out and be 
patient?

Have set the forwarders commands to my actual DNS and the resolv.conf 
nameserver points to 172.18.0.1.

My thanks to you all. Cheers


 

>-Original Message-
>From: Martin Langhoff [mailto:martin.langh...@gmail.com]
>Sent: Tuesday, June 16, 2009 03:58 PM
>To: 'Sameer Verma'
>Cc: tkk...@nurturingasia.com, 'XS Devel'
>Subject: Re: [Server-devel] Server configuration for static IP instead of DHCP
>
>On Mon, Jun 15, 2009 at 7:01 PM, Sameer Verma wrote:
>> Have you tried adding your ISP's DNS server(s) to the
>> /etc/named-xs.conf file as forwarders?
>
>Yep! that's the 2 steps needed for a static IP address on eth0
>
>- an ifcfg-eth0-local file as Rodolfo's example
>
>- upstream DNS servers set as forwarders
>
>Also, /etc/resolv.conf needs to be pointing to the DNS server on the
>XS. Otherwise the local names (needed for ejabberd and other services)
>will be missing (unless you configure the upstream DNS servers to
>serve them but that is more complicated).
>
>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
>


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


Re: [Server-devel] Server configuration for static IP instead of DHCP

2009-06-16 Thread Martin Langhoff
On Mon, Jun 15, 2009 at 7:01 PM, Sameer Verma wrote:
> Have you tried adding your ISP's DNS server(s) to the
> /etc/named-xs.conf file as forwarders?

Yep! that's the 2 steps needed for a static IP address on eth0

- an ifcfg-eth0-local file as Rodolfo's example

- upstream DNS servers set as forwarders

Also, /etc/resolv.conf needs to be pointing to the DNS server on the
XS. Otherwise the local names (needed for ejabberd and other services)
will be missing (unless you configure the upstream DNS servers to
serve them but that is more complicated).

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
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel