[Server-devel] public folders in xs 0.6

2010-06-04 Thread Kevin Mauricio Benavides Castro
hola a todos los de la lista

tengo un problema he creado una carpeta en /library/mycarpeta

he hice un archivo en /ect/httpd/conf.d/

ahi cree el archivo xs-library-mycarpeta.conf

dento del archivo hay

Alias /public/ /library/public
Directory /library/public
  Order allow,deny
  Allow from all
  Options Indexes FollowSymLinks

  AllowOverride None

pero dentro de la carpeta que cree publica
creo otras adicionales y dentro de ellas archivos y no entra dentro de
las carpetas que yo he creado apartir de la public

es mas ni los pdf me habre??





/Directory



adicional

-- 
Abrazoss..

Kevin Mauricio Benavides Castro
XO and XS Technical Support
Member of the Volunteer Group for OLPC and sugarlabs
www.wiki.laptop.org/go/user/kevin.benavides

http://www.sistemascastros.netne.net/
-
Linux User: #12356
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Public folders

2010-04-07 Thread Andra DuPont
Tim,
Here is an explanation of what happened.

With your original syntax, Alias will replace /public/ with /library/public 
browsing to
http://schoolserver/public' would not have invoked the Alias. I would have to 
type
http://schoolserver/public/;  Which would invoke the alias and take me to 
/library/public

Because I was not invoking the Alias, I was still going to
/var/www/html/public   which did
not exist. Once I created it, I could go there and see the index of the items I 
placed in it, but
I couldn't access them because clicking on a file link would invoke the Alias 
which replaced
/public/ with /public so I was getting.../publicfile.pdf   which of 
course is wrong.

The proper format is:

Alias /public /library/public
Directory /library/public 
Order allow,deny
Allow from all
Options Indexes FollowSymLinks
AllowOverride None
/Directory

On Apr 6, 2010, at 7:10 PM, Tim Moody wrote:

 The standard apache config file, httpd.conf in /etc/httpd/conf, or in our 
 case the file httpd-xs.conf, sets the base location as
 DocumentRoot /var/www/html.  So you don't actually need an Alias or 
 directory directive to get to /var/www/html/public via 
 http://schoolserver/library/public.  Alias /public/ overrides that.
 
 Note that David also has his files in /library/Schools-Wikipedia, the reason 
 being that the stock xs install doesn't allocate much space to the root 
 partition where /var/www/html is found.  It puts library on a separate volume 
 with most of the disk there, so you will run out of space in /var/www/html 
 fairly quickly.
 
 It sounds to me like your Alias and Directory directives are not doing 
 anything.  Perhaps the file is not getting loaded.  If you look at the
 
 What happens if you access http://schoolserver.asilong.org/activities?
 
 - Original Message - From: Andra DuPont andradup...@gmail.com
 To: Tim Moody timmo...@sympatico.ca
 Cc: server-devel@lists.laptop.org
 Sent: Tuesday, April 06, 2010 6:22 PM
 Subject: Re: [Server-devel] Public folders
 
 
 
 On Apr 6, 2010, at 5:30 PM, Tim Moody wrote:
 
 Did you restart the web server with service httpd restart?  What does 
 service httpd configtest say?
 
 Yes, http://schoolserver.asilong.org/public should be right, though the 
 shorter form worked for me as well.
 
 http://schoolserver/library/public should not work because of the Alias 
 statement.
 
 Are you on XS 0.6?
 
 Have you looked for errors in the web server logs in /var/log/httpd?
 The error log has the answer. I put my public folder in /library but 
 according to the error log, the
 server is going to   /var/www/html/public  This is where David Leeming has 
 his. I don't know where
 the server gets told where the base or home location is for the 
 schoolserver, but apparently
 it is set to /var/www/html for http requests. I'm learning.
 
 So Tim, why does your server go to /library ???
 
 I changed the conf file to:
 
 Alias /public/ /var/www/html/public
 Directory /var/www/html/public
 
 Works like a champ.
 
 
 Are the permissions on /library/public the same as 
 /library/xs-activity-server and those on xs-library-public.conf the same as 
 xs-activity-server.conf?
 
 Can you paste the contents of xs-library-public.conf into an email.
 
 - Original Message - From: Andra DuPont andradup...@gmail.com
 To: Tim Moody timmo...@sympatico.ca
 Cc: server-devel@lists.laptop.org
 Sent: Tuesday, April 06, 2010 3:08 PM
 Subject: Re: [Server-devel] Public folders
 
 
 Tim,
 I am also looking for a way to have a digital library of .pdf files etc.
 that can be accessed by any XO on an XS server. I have tried the
 approach you outlined, but when I use Browse to go to
 http://schoolserver/public it is not found. The server responds:
 
 The requested URL /public was not found on this server.
 
 My server domain is asilong.org, so my actual URL is
 http://schoolserver.asilong.org/public
 (this is as it should be right?)
 
 I have tried going to schoolserver/library/public but it is not found either.
 
 In terminal, I can go to the directory /library/public and my documents
 are in the directory.
 
 I doubled checked the xs-library-public.conf file in
 the /etc/httpd/conf.d directory for typos but couldn't find any.
 
 Any guess as to why I can't get to the files from Browse?
 
 Thanks,
 Andy
 
 On Apr 2, 2010, at 6:13 PM, Tim Moody wrote:
 
 I created a directory public under /library into which I copied a few pdfs.
 
 I created a file xs-library-public.conf in /etc/httpd/conf.d which contains
 
 Alias /public/ /library/public
 Directory /library/public
 Order allow,deny
 Allow from all
 Options Indexes FollowSymLinks
 AllowOverride None
 /Directory
 
 After service httpd restart I get an index of the pdfs from
 http://schoolserver/public
 
 --
 
 Message: 1
 Date: Fri, 2 Apr 2010 06:41:51 +1000
 From: David Leeming da...@leeming-consulting.com
 Subject: [Server-devel] Public folders
 To: 'XS Devel

Re: [Server-devel] Public folders

2010-04-07 Thread Tim Moody
Glad you figured it out; I'm sure you're right.  Not sure where I got the extra 
/ or why it worked on my server.
  - Original Message - 
  From: Andra DuPont 
  To: Tim Moody 
  Cc: XS Devel 
  Sent: Wednesday, April 07, 2010 11:05 AM
  Subject: Re: [Server-devel] Public folders


  Tim,
  Here is an explanation of what happened.


  With your original syntax, Alias will replace /public/ with 
/library/public browsing to
  http://schoolserver/public' would not have invoked the Alias. I would have 
to type
  http://schoolserver/public/;  Which would invoke the alias and take me to 
/library/public


  Because I was not invoking the Alias, I was still going to
/var/www/html/public   which did
  not exist. Once I created it, I could go there and see the index of the items 
I placed in it, but
  I couldn't access them because clicking on a file link would invoke the Alias 
which replaced
  /public/ with /public so I was getting.../publicfile.pdf   which of 
course is wrong.


  The proper format is:


  Alias /public /library/public
  Directory /library/public 
  Order allow,deny

  Allow from all

  Options Indexes FollowSymLinks

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


Re: [Server-devel] Public folders

2010-04-06 Thread Andra DuPont
Tim,
I am also looking for a way to have a digital library of .pdf files etc.
that can be accessed by any XO on an XS server. I have tried the
approach you outlined, but when I use Browse to go to
http://schoolserver/public it is not found. The server responds:

The requested URL /public was not found on this server.

My server domain is asilong.org, so my actual URL is
http://schoolserver.asilong.org/public
(this is as it should be right?)

I have tried going to schoolserver/library/public but it is not found either.

In terminal, I can go to the directory /library/public and my documents
are in the directory.

I doubled checked the xs-library-public.conf file in
the /etc/httpd/conf.d directory for typos but couldn't find any.

Any guess as to why I can't get to the files from Browse?

Thanks,
Andy

On Apr 2, 2010, at 6:13 PM, Tim Moody wrote:

 I created a directory public under /library into which I copied a few pdfs.
 
 I created a file xs-library-public.conf in /etc/httpd/conf.d which contains
 
 Alias /public/ /library/public
 Directory /library/public
  Order allow,deny
  Allow from all
  Options Indexes FollowSymLinks
  AllowOverride None
 /Directory
 
 After service httpd restart I get an index of the pdfs from 
 http://schoolserver/public
 
 --
 
 Message: 1
 Date: Fri, 2 Apr 2010 06:41:51 +1000
 From: David Leeming da...@leeming-consulting.com
 Subject: [Server-devel] Public folders
 To: 'XS Devel' server-devel@lists.laptop.org
 Message-ID: 01cad1db$c2141720$463c45...@com
 Content-Type: text/plain; charset=us-ascii
 
 Using the XS installed with default settings.
 
 
 
 I have been making folders public in /var/www/html and am able to view sub
 folders to be listed. I.e. if there is no specific html file, the whole
 contents of the folder appear in the browser. Fine that is what I want.
 
 
 
 However, when copying content into that folder I rapidly run out of space.
 It seems that the main disk space is in an another partition where the
 folder /library is located. This makes sense (i.e. to have a lot of room 
 in
 the library...)
 
 
 
 Therefore, I copied my public content into sub folders under the directory
 /library and made the whole of /library public using the html.conf file 
 with
 Aliases pointing to my specific subfolders.
 
 
 
 However, under /library it won't allow contents of subfolders to be listed
 (unless there is an index file in which case it opens that by default, but 
 I
 want the folder contents listed in some cases.
 
 
 
 Help?
 
 
 
 David Leeming
 
 
 ___
 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] Public folders

2010-04-06 Thread Andra DuPont
On Apr 6, 2010, at 4:50 PM, David Leeming wrote:

 Andra,
 
 Have you added a new conf file, to declare the folders public?

Yes, I followed Tim's note and named my conf file xs-library-public.conf
as I noted in my last email.

I don't think the name of the conf file matters, as any .conf file placed
in the /etc/httpd/conf.d directory gets appended to the main configuration.

 
 Use nano or other text editer to create a file html.conf in
 /etc/httpd/conf.d/ and add the below, with a new entry for each alias. It's
 case sensitive remember. 
 
 Then the below should be available at http://schoolserver/MyFolders

What do you mean by the below should be available? Do you mean
the files in the /library/public directory should be availalble (that is
what I was expecting, but as I mentioned, my browser can't find it.)

I am wondering if I have to do something to tell the server where the
starting level is, because it does not seem to be going to /library/public,
but to some other directory.

 
 Alias /MyFolders /library/public
 Directory /library/public
  Order allow,deny
  Allow from all
  Options Indexes FollowSymLinks
  AllowOverride None
 /Directory
 
 David Leeming
 
 
 -Original Message-
 From: server-devel-boun...@lists.laptop.org
 [mailto:server-devel-boun...@lists.laptop.org] On Behalf Of Andra DuPont
 Sent: Wednesday, 7 April 2010 6:09 a.m.
 To: Tim Moody
 Cc: server-devel@lists.laptop.org
 Subject: Re: [Server-devel] Public folders
 
 Tim,
 I am also looking for a way to have a digital library of .pdf files etc.
 that can be accessed by any XO on an XS server. I have tried the
 approach you outlined, but when I use Browse to go to
 http://schoolserver/public it is not found. The server responds:
 
 The requested URL /public was not found on this server.
 
 My server domain is asilong.org, so my actual URL is
 http://schoolserver.asilong.org/public
 (this is as it should be right?)
 
 I have tried going to schoolserver/library/public but it is not found
 either.
 
 In terminal, I can go to the directory /library/public and my documents
 are in the directory.
 
 I doubled checked the xs-library-public.conf file in
 the /etc/httpd/conf.d directory for typos but couldn't find any.
 
 Any guess as to why I can't get to the files from Browse?
 
 Thanks,
 Andy
 
 On Apr 2, 2010, at 6:13 PM, Tim Moody wrote:
 
 I created a directory public under /library into which I copied a few
 pdfs.
 
 I created a file xs-library-public.conf in /etc/httpd/conf.d which
 contains
 
 Alias /public/ /library/public
 Directory /library/public
 Order allow,deny
 Allow from all
 Options Indexes FollowSymLinks
 AllowOverride None
 /Directory
 
 After service httpd restart I get an index of the pdfs from 
 http://schoolserver/public
 
 --
 
 Message: 1
 Date: Fri, 2 Apr 2010 06:41:51 +1000
 From: David Leeming da...@leeming-consulting.com
 Subject: [Server-devel] Public folders
 To: 'XS Devel' server-devel@lists.laptop.org
 Message-ID: 01cad1db$c2141720$463c45...@com
 Content-Type: text/plain; charset=us-ascii
 
 Using the XS installed with default settings.
 
 
 
 I have been making folders public in /var/www/html and am able to view
 sub
 folders to be listed. I.e. if there is no specific html file, the whole
 contents of the folder appear in the browser. Fine that is what I want.
 
 
 
 However, when copying content into that folder I rapidly run out of
 space.
 It seems that the main disk space is in an another partition where the
 folder /library is located. This makes sense (i.e. to have a lot of room 
 in
 the library...)
 
 
 
 Therefore, I copied my public content into sub folders under the
 directory
 /library and made the whole of /library public using the html.conf file 
 with
 Aliases pointing to my specific subfolders.
 
 
 
 However, under /library it won't allow contents of subfolders to be
 listed
 (unless there is an index file in which case it opens that by default,
 but 
 I
 want the folder contents listed in some cases.
 
 
 
 Help?
 
 
 
 David Leeming
 
 
 ___
 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 mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Public folders

2010-04-06 Thread Tim Moody
Did you restart the web server with service httpd restart?  What does 
service httpd configtest say?

Yes, http://schoolserver.asilong.org/public should be right, though the 
shorter form worked for me as well.

http://schoolserver/library/public should not work because of the Alias 
statement.

Are you on XS 0.6?

Have you looked for errors in the web server logs in /var/log/httpd?

Are the permissions on /library/public the same as 
/library/xs-activity-server and those on xs-library-public.conf the same as 
xs-activity-server.conf?

Can you paste the contents of xs-library-public.conf into an email.

- Original Message - 
From: Andra DuPont andradup...@gmail.com
To: Tim Moody timmo...@sympatico.ca
Cc: server-devel@lists.laptop.org
Sent: Tuesday, April 06, 2010 3:08 PM
Subject: Re: [Server-devel] Public folders


Tim,
I am also looking for a way to have a digital library of .pdf files etc.
that can be accessed by any XO on an XS server. I have tried the
approach you outlined, but when I use Browse to go to
http://schoolserver/public it is not found. The server responds:

The requested URL /public was not found on this server.

My server domain is asilong.org, so my actual URL is
http://schoolserver.asilong.org/public
(this is as it should be right?)

I have tried going to schoolserver/library/public but it is not found 
either.

In terminal, I can go to the directory /library/public and my documents
are in the directory.

I doubled checked the xs-library-public.conf file in
the /etc/httpd/conf.d directory for typos but couldn't find any.

Any guess as to why I can't get to the files from Browse?

Thanks,
Andy

On Apr 2, 2010, at 6:13 PM, Tim Moody wrote:

 I created a directory public under /library into which I copied a few 
 pdfs.

 I created a file xs-library-public.conf in /etc/httpd/conf.d which 
 contains

 Alias /public/ /library/public
 Directory /library/public
  Order allow,deny
  Allow from all
  Options Indexes FollowSymLinks
  AllowOverride None
 /Directory

 After service httpd restart I get an index of the pdfs from
 http://schoolserver/public

 --

 Message: 1
 Date: Fri, 2 Apr 2010 06:41:51 +1000
 From: David Leeming da...@leeming-consulting.com
 Subject: [Server-devel] Public folders
 To: 'XS Devel' server-devel@lists.laptop.org
 Message-ID: 01cad1db$c2141720$463c45...@com
 Content-Type: text/plain; charset=us-ascii

 Using the XS installed with default settings.



 I have been making folders public in /var/www/html and am able to view 
 sub
 folders to be listed. I.e. if there is no specific html file, the whole
 contents of the folder appear in the browser. Fine that is what I want.



 However, when copying content into that folder I rapidly run out of 
 space.
 It seems that the main disk space is in an another partition where the
 folder /library is located. This makes sense (i.e. to have a lot of room
 in
 the library...)



 Therefore, I copied my public content into sub folders under the 
 directory
 /library and made the whole of /library public using the html.conf file
 with
 Aliases pointing to my specific subfolders.



 However, under /library it won't allow contents of subfolders to be 
 listed
 (unless there is an index file in which case it opens that by default, 
 but
 I
 want the folder contents listed in some cases.



 Help?



 David Leeming


 ___
 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] Public folders

2010-04-06 Thread David Leeming
Hi Andra, well it works OK for me. I am using an XS with pretty much default
config. In /etc/httpd/conf.d/ I have a file html.conf as follows. I can
browse pdf library or html pages as are found in the seven folders named
below, for instance by entering in the browser http://schoolserver/Public
will take me to /var/www/html/public and display anything inside or open a
default index file if found. I have created global links on the Moodle front
page to each. I am expecting to be able to move everything to /library and
make the contents list-able by using the extra lines mentioned previously.
Try comparing my approach to yours, maybe you missed something. It's very
easy to get the case wrong, for instance. 

Alias /Public /var/www/html/public
Alias /SPC /var/www/html/spc
Alias /eBooks /var/www/html/ebooks
Alias /OLPC-resources /var/www/html/olpc-resources
Alias /Schools-Wikipedia /library/Schools-Wikipedia
Alias /UNESCO-2008-SchoolNet /library/unesco-2008
Alias /UNESCO-2005-SchoolNet /library/unesco-2005

# Public web pages - must be publically accessible
Directory /var/www/html
  Order allow,deny
  Allow from all
/Directory

Directory /library
 Order allow,deny
 Allow from all
/Directory




David Leeming
Leeming Consulting, P.O. Box 652, Honiara, Solomon Islands
Tel: +677 747-6396 (m) 24419 (h) 
www.leeming-consulting.com


-Original Message-
From: Andra DuPont [mailto:andradup...@gmail.com] 
Sent: Wednesday, 7 April 2010 8:09 a.m.
To: David Leeming
Cc: XS Devel
Subject: Re: [Server-devel] Public folders

On Apr 6, 2010, at 4:50 PM, David Leeming wrote:

 Andra,
 
 Have you added a new conf file, to declare the folders public?

Yes, I followed Tim's note and named my conf file xs-library-public.conf
as I noted in my last email.

I don't think the name of the conf file matters, as any .conf file placed
in the /etc/httpd/conf.d directory gets appended to the main configuration.

 
 Use nano or other text editer to create a file html.conf in
 /etc/httpd/conf.d/ and add the below, with a new entry for each alias.
It's
 case sensitive remember. 
 
 Then the below should be available at http://schoolserver/MyFolders

What do you mean by the below should be available? Do you mean
the files in the /library/public directory should be availalble (that is
what I was expecting, but as I mentioned, my browser can't find it.)

I am wondering if I have to do something to tell the server where the
starting level is, because it does not seem to be going to /library/public,
but to some other directory.

 
 Alias /MyFolders /library/public
 Directory /library/public
  Order allow,deny
  Allow from all
  Options Indexes FollowSymLinks
  AllowOverride None
 /Directory
 
 David Leeming
 
 
 -Original Message-
 From: server-devel-boun...@lists.laptop.org
 [mailto:server-devel-boun...@lists.laptop.org] On Behalf Of Andra DuPont
 Sent: Wednesday, 7 April 2010 6:09 a.m.
 To: Tim Moody
 Cc: server-devel@lists.laptop.org
 Subject: Re: [Server-devel] Public folders
 
 Tim,
 I am also looking for a way to have a digital library of .pdf files etc.
 that can be accessed by any XO on an XS server. I have tried the
 approach you outlined, but when I use Browse to go to
 http://schoolserver/public it is not found. The server responds:
 
 The requested URL /public was not found on this server.
 
 My server domain is asilong.org, so my actual URL is
 http://schoolserver.asilong.org/public
 (this is as it should be right?)
 
 I have tried going to schoolserver/library/public but it is not found
 either.
 
 In terminal, I can go to the directory /library/public and my documents
 are in the directory.
 
 I doubled checked the xs-library-public.conf file in
 the /etc/httpd/conf.d directory for typos but couldn't find any.
 
 Any guess as to why I can't get to the files from Browse?
 
 Thanks,
 Andy
 
 On Apr 2, 2010, at 6:13 PM, Tim Moody wrote:
 
 I created a directory public under /library into which I copied a few
 pdfs.
 
 I created a file xs-library-public.conf in /etc/httpd/conf.d which
 contains
 
 Alias /public/ /library/public
 Directory /library/public
 Order allow,deny
 Allow from all
 Options Indexes FollowSymLinks
 AllowOverride None
 /Directory
 
 After service httpd restart I get an index of the pdfs from 
 http://schoolserver/public
 
 --
 
 Message: 1
 Date: Fri, 2 Apr 2010 06:41:51 +1000
 From: David Leeming da...@leeming-consulting.com
 Subject: [Server-devel] Public folders
 To: 'XS Devel' server-devel@lists.laptop.org
 Message-ID: 01cad1db$c2141720$463c45...@com
 Content-Type: text/plain; charset=us-ascii
 
 Using the XS installed with default settings.
 
 
 
 I have been making folders public in /var/www/html and am able to view
 sub
 folders to be listed. I.e. if there is no specific html file, the whole
 contents of the folder appear in the browser. Fine that is what I want.
 
 
 
 However, when copying content into that folder I

Re: [Server-devel] Public folders

2010-04-06 Thread Andra DuPont
David,
Thanks for the response. What you have working is great. I'm sure you're
right... I probably just have a typo somewhere. I am still checking. I should
also mention that I am running web caching from a program called wwwoffle.
It caches all external activity and serves it up well even when there is no
internet service, which squid does not handle well. wwwoffle does not seem
to bother moodle, so I wouldn't think it is the problem. My http-port is set to
3128 just like squid uses.

I'll keep plugging away and find out what is wrong soon. The info from Tim is 
very helpful.

On Apr 6, 2010, at 5:46 PM, David Leeming wrote:

 Hi Andra, well it works OK for me. I am using an XS with pretty much default
 config. In /etc/httpd/conf.d/ I have a file html.conf as follows. I can
 browse pdf library or html pages as are found in the seven folders named
 below, for instance by entering in the browser http://schoolserver/Public
 will take me to /var/www/html/public and display anything inside or open a
 default index file if found. I have created global links on the Moodle front
 page to each. I am expecting to be able to move everything to /library and
 make the contents list-able by using the extra lines mentioned previously.
 Try comparing my approach to yours, maybe you missed something. It's very
 easy to get the case wrong, for instance. 
 
 Alias /Public /var/www/html/public
 Alias /SPC /var/www/html/spc
 Alias /eBooks /var/www/html/ebooks
 Alias /OLPC-resources /var/www/html/olpc-resources
 Alias /Schools-Wikipedia /library/Schools-Wikipedia
 Alias /UNESCO-2008-SchoolNet /library/unesco-2008
 Alias /UNESCO-2005-SchoolNet /library/unesco-2005
 
 # Public web pages - must be publically accessible
 Directory /var/www/html
  Order allow,deny
  Allow from all
 /Directory
 
 Directory /library
 Order allow,deny
 Allow from all
 /Directory
 
 
 
 
 David Leeming
 Leeming Consulting, P.O. Box 652, Honiara, Solomon Islands
 Tel: +677 747-6396 (m) 24419 (h) 
 www.leeming-consulting.com
 
 
 -Original Message-
 From: Andra DuPont [mailto:andradup...@gmail.com] 
 Sent: Wednesday, 7 April 2010 8:09 a.m.
 To: David Leeming
 Cc: XS Devel
 Subject: Re: [Server-devel] Public folders
 
 On Apr 6, 2010, at 4:50 PM, David Leeming wrote:
 
 Andra,
 
 Have you added a new conf file, to declare the folders public?
 
 Yes, I followed Tim's note and named my conf file xs-library-public.conf
 as I noted in my last email.
 
 I don't think the name of the conf file matters, as any .conf file placed
 in the /etc/httpd/conf.d directory gets appended to the main configuration.
 
 
 Use nano or other text editer to create a file html.conf in
 /etc/httpd/conf.d/ and add the below, with a new entry for each alias.
 It's
 case sensitive remember. 
 
 Then the below should be available at http://schoolserver/MyFolders
 
 What do you mean by the below should be available? Do you mean
 the files in the /library/public directory should be availalble (that is
 what I was expecting, but as I mentioned, my browser can't find it.)
 
 I am wondering if I have to do something to tell the server where the
 starting level is, because it does not seem to be going to /library/public,
 but to some other directory.
 
 
 Alias /MyFolders /library/public
 Directory /library/public
 Order allow,deny
 Allow from all
 Options Indexes FollowSymLinks
 AllowOverride None
 /Directory
 
 David Leeming
 
 
 -Original Message-
 From: server-devel-boun...@lists.laptop.org
 [mailto:server-devel-boun...@lists.laptop.org] On Behalf Of Andra DuPont
 Sent: Wednesday, 7 April 2010 6:09 a.m.
 To: Tim Moody
 Cc: server-devel@lists.laptop.org
 Subject: Re: [Server-devel] Public folders
 
 Tim,
 I am also looking for a way to have a digital library of .pdf files etc.
 that can be accessed by any XO on an XS server. I have tried the
 approach you outlined, but when I use Browse to go to
 http://schoolserver/public it is not found. The server responds:
 
 The requested URL /public was not found on this server.
 
 My server domain is asilong.org, so my actual URL is
 http://schoolserver.asilong.org/public
 (this is as it should be right?)
 
 I have tried going to schoolserver/library/public but it is not found
 either.
 
 In terminal, I can go to the directory /library/public and my documents
 are in the directory.
 
 I doubled checked the xs-library-public.conf file in
 the /etc/httpd/conf.d directory for typos but couldn't find any.
 
 Any guess as to why I can't get to the files from Browse?
 
 Thanks,
 Andy
 
 On Apr 2, 2010, at 6:13 PM, Tim Moody wrote:
 
 I created a directory public under /library into which I copied a few
 pdfs.
 
 I created a file xs-library-public.conf in /etc/httpd/conf.d which
 contains
 
 Alias /public/ /library/public
 Directory /library/public
 Order allow,deny
 Allow from all
 Options Indexes FollowSymLinks
 AllowOverride None
 /Directory
 
 After service httpd restart I get an index of the pdfs from 
 http://schoolserver

Re: [Server-devel] Public folders

2010-04-06 Thread Andra DuPont

On Apr 6, 2010, at 5:30 PM, Tim Moody wrote:

 Did you restart the web server with service httpd restart?  What does service 
 httpd configtest say?
 
 Yes, http://schoolserver.asilong.org/public should be right, though the 
 shorter form worked for me as well.
 
 http://schoolserver/library/public should not work because of the Alias 
 statement.
 
 Are you on XS 0.6?
 
 Have you looked for errors in the web server logs in /var/log/httpd?
The error log has the answer. I put my public folder in /library but according 
to the error log, the
server is going to   /var/www/html/public  This is where David Leeming has his. 
I don't know where
the server gets told where the base or home location is for the 
schoolserver, but apparently
it is set to /var/www/html for http requests. I'm learning.

So Tim, why does your server go to /library ???

I changed the conf file to:

Alias /public/ /var/www/html/public
Directory /var/www/html/public

Works like a champ.

 
 Are the permissions on /library/public the same as 
 /library/xs-activity-server and those on xs-library-public.conf the same as 
 xs-activity-server.conf?
 
 Can you paste the contents of xs-library-public.conf into an email.
 
 - Original Message - From: Andra DuPont andradup...@gmail.com
 To: Tim Moody timmo...@sympatico.ca
 Cc: server-devel@lists.laptop.org
 Sent: Tuesday, April 06, 2010 3:08 PM
 Subject: Re: [Server-devel] Public folders
 
 
 Tim,
 I am also looking for a way to have a digital library of .pdf files etc.
 that can be accessed by any XO on an XS server. I have tried the
 approach you outlined, but when I use Browse to go to
 http://schoolserver/public it is not found. The server responds:
 
 The requested URL /public was not found on this server.
 
 My server domain is asilong.org, so my actual URL is
 http://schoolserver.asilong.org/public
 (this is as it should be right?)
 
 I have tried going to schoolserver/library/public but it is not found either.
 
 In terminal, I can go to the directory /library/public and my documents
 are in the directory.
 
 I doubled checked the xs-library-public.conf file in
 the /etc/httpd/conf.d directory for typos but couldn't find any.
 
 Any guess as to why I can't get to the files from Browse?
 
 Thanks,
 Andy
 
 On Apr 2, 2010, at 6:13 PM, Tim Moody wrote:
 
 I created a directory public under /library into which I copied a few pdfs.
 
 I created a file xs-library-public.conf in /etc/httpd/conf.d which contains
 
 Alias /public/ /library/public
 Directory /library/public
 Order allow,deny
 Allow from all
 Options Indexes FollowSymLinks
 AllowOverride None
 /Directory
 
 After service httpd restart I get an index of the pdfs from
 http://schoolserver/public
 
 --
 
 Message: 1
 Date: Fri, 2 Apr 2010 06:41:51 +1000
 From: David Leeming da...@leeming-consulting.com
 Subject: [Server-devel] Public folders
 To: 'XS Devel' server-devel@lists.laptop.org
 Message-ID: 01cad1db$c2141720$463c45...@com
 Content-Type: text/plain; charset=us-ascii
 
 Using the XS installed with default settings.
 
 
 
 I have been making folders public in /var/www/html and am able to view sub
 folders to be listed. I.e. if there is no specific html file, the whole
 contents of the folder appear in the browser. Fine that is what I want.
 
 
 
 However, when copying content into that folder I rapidly run out of space.
 It seems that the main disk space is in an another partition where the
 folder /library is located. This makes sense (i.e. to have a lot of room
 in
 the library...)
 
 
 
 Therefore, I copied my public content into sub folders under the directory
 /library and made the whole of /library public using the html.conf file
 with
 Aliases pointing to my specific subfolders.
 
 
 
 However, under /library it won't allow contents of subfolders to be listed
 (unless there is an index file in which case it opens that by default, but
 I
 want the folder contents listed in some cases.
 
 
 
 Help?
 
 
 
 David Leeming
 
 
 ___
 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] Public folders

2010-04-06 Thread Andra DuPont

On Apr 6, 2010, at 7:10 PM, Tim Moody wrote:

 The standard apache config file, httpd.conf in /etc/httpd/conf, or in our 
 case the file httpd-xs.conf, sets the base location as
 DocumentRoot /var/www/html.  So you don't actually need an Alias or 
 directory directive to get to /var/www/html/public via 
 http://schoolserver/library/public.  Alias /public/ overrides that.
 
 Note that David also has his files in /library/Schools-Wikipedia, the reason 
 being that the stock xs install doesn't allocate much space to the root 
 partition where /var/www/html is found.  It puts library on a separate volume 
 with most of the disk there, so you will run out of space in /var/www/html 
 fairly quickly.
 
 It sounds to me like your Alias and Directory directives are not doing 
 anything.  Perhaps the file is not getting loaded.

Yes I came to the same conclusion my Alias directive is not working.

 If you look at the
 
 What happens if you access http://schoolserver.asilong.org/activities?

The screen says:

Locally available activities

These activities are stored on the school server.

Then the screen is blank below (no activities listed)


 
 - Original Message - From: Andra DuPont andradup...@gmail.com
 To: Tim Moody timmo...@sympatico.ca
 Cc: server-devel@lists.laptop.org
 Sent: Tuesday, April 06, 2010 6:22 PM
 Subject: Re: [Server-devel] Public folders
 
 
 
 On Apr 6, 2010, at 5:30 PM, Tim Moody wrote:
 
 Did you restart the web server with service httpd restart?  What does 
 service httpd configtest say?
 
 Yes, http://schoolserver.asilong.org/public should be right, though the 
 shorter form worked for me as well.
 
 http://schoolserver/library/public should not work because of the Alias 
 statement.
 
 Are you on XS 0.6?
 
 Have you looked for errors in the web server logs in /var/log/httpd?
 The error log has the answer. I put my public folder in /library but 
 according to the error log, the
 server is going to   /var/www/html/public  This is where David Leeming has 
 his. I don't know where
 the server gets told where the base or home location is for the 
 schoolserver, but apparently
 it is set to /var/www/html for http requests. I'm learning.
 
 So Tim, why does your server go to /library ???
 
 I changed the conf file to:
 
 Alias /public/ /var/www/html/public
 Directory /var/www/html/public
 
 Works like a champ.
 
 
 Are the permissions on /library/public the same as 
 /library/xs-activity-server and those on xs-library-public.conf the same as 
 xs-activity-server.conf?
 
 Can you paste the contents of xs-library-public.conf into an email.
 
 - Original Message - From: Andra DuPont andradup...@gmail.com
 To: Tim Moody timmo...@sympatico.ca
 Cc: server-devel@lists.laptop.org
 Sent: Tuesday, April 06, 2010 3:08 PM
 Subject: Re: [Server-devel] Public folders
 
 
 Tim,
 I am also looking for a way to have a digital library of .pdf files etc.
 that can be accessed by any XO on an XS server. I have tried the
 approach you outlined, but when I use Browse to go to
 http://schoolserver/public it is not found. The server responds:
 
 The requested URL /public was not found on this server.
 
 My server domain is asilong.org, so my actual URL is
 http://schoolserver.asilong.org/public
 (this is as it should be right?)
 
 I have tried going to schoolserver/library/public but it is not found either.
 
 In terminal, I can go to the directory /library/public and my documents
 are in the directory.
 
 I doubled checked the xs-library-public.conf file in
 the /etc/httpd/conf.d directory for typos but couldn't find any.
 
 Any guess as to why I can't get to the files from Browse?
 
 Thanks,
 Andy
 
 On Apr 2, 2010, at 6:13 PM, Tim Moody wrote:
 
 I created a directory public under /library into which I copied a few pdfs.
 
 I created a file xs-library-public.conf in /etc/httpd/conf.d which contains
 
 Alias /public/ /library/public
 Directory /library/public
 Order allow,deny
 Allow from all
 Options Indexes FollowSymLinks
 AllowOverride None
 /Directory
 
 After service httpd restart I get an index of the pdfs from
 http://schoolserver/public
 
 --
 
 Message: 1
 Date: Fri, 2 Apr 2010 06:41:51 +1000
 From: David Leeming da...@leeming-consulting.com
 Subject: [Server-devel] Public folders
 To: 'XS Devel' server-devel@lists.laptop.org
 Message-ID: 01cad1db$c2141720$463c45...@com
 Content-Type: text/plain; charset=us-ascii
 
 Using the XS installed with default settings.
 
 
 
 I have been making folders public in /var/www/html and am able to view sub
 folders to be listed. I.e. if there is no specific html file, the whole
 contents of the folder appear in the browser. Fine that is what I want.
 
 
 
 However, when copying content into that folder I rapidly run out of space.
 It seems that the main disk space is in an another partition where the
 folder /library is located. This makes sense (i.e. to have a lot of room

Re: [Server-devel] Public folders

2010-04-06 Thread Andra DuPont
Tim,
Both my httpd.conf and httpd-xs.conf files have the line

Include conf.d/*.conf

To me that means that all files ending with .conf in the conf.d directory 
should be included.

Any ideas what is going on? How can I see if the xs-library-public.conf file is 
being included or not?

On Apr 6, 2010, at 7:10 PM, Tim Moody wrote:

 The standard apache config file, httpd.conf in /etc/httpd/conf, or in our 
 case the file httpd-xs.conf, sets the base location as
 DocumentRoot /var/www/html.  So you don't actually need an Alias or 
 directory directive to get to /var/www/html/public via 
 http://schoolserver/library/public.  Alias /public/ overrides that.
 
 Note that David also has his files in /library/Schools-Wikipedia, the reason 
 being that the stock xs install doesn't allocate much space to the root 
 partition where /var/www/html is found.  It puts library on a separate volume 
 with most of the disk there, so you will run out of space in /var/www/html 
 fairly quickly.
 
 It sounds to me like your Alias and Directory directives are not doing 
 anything.  Perhaps the file is not getting loaded.  If you look at the
 
 What happens if you access http://schoolserver.asilong.org/activities?
 
 - Original Message - From: Andra DuPont andradup...@gmail.com
 To: Tim Moody timmo...@sympatico.ca
 Cc: server-devel@lists.laptop.org
 Sent: Tuesday, April 06, 2010 6:22 PM
 Subject: Re: [Server-devel] Public folders
 
 
 
 On Apr 6, 2010, at 5:30 PM, Tim Moody wrote:
 
 Did you restart the web server with service httpd restart?  What does 
 service httpd configtest say?
 
 Yes, http://schoolserver.asilong.org/public should be right, though the 
 shorter form worked for me as well.
 
 http://schoolserver/library/public should not work because of the Alias 
 statement.
 
 Are you on XS 0.6?
 
 Have you looked for errors in the web server logs in /var/log/httpd?
 The error log has the answer. I put my public folder in /library but 
 according to the error log, the
 server is going to   /var/www/html/public  This is where David Leeming has 
 his. I don't know where
 the server gets told where the base or home location is for the 
 schoolserver, but apparently
 it is set to /var/www/html for http requests. I'm learning.
 
 So Tim, why does your server go to /library ???
 
 I changed the conf file to:
 
 Alias /public/ /var/www/html/public
 Directory /var/www/html/public
 
 Works like a champ.
 
 
 Are the permissions on /library/public the same as 
 /library/xs-activity-server and those on xs-library-public.conf the same as 
 xs-activity-server.conf?
 
 Can you paste the contents of xs-library-public.conf into an email.
 
 - Original Message - From: Andra DuPont andradup...@gmail.com
 To: Tim Moody timmo...@sympatico.ca
 Cc: server-devel@lists.laptop.org
 Sent: Tuesday, April 06, 2010 3:08 PM
 Subject: Re: [Server-devel] Public folders
 
 
 Tim,
 I am also looking for a way to have a digital library of .pdf files etc.
 that can be accessed by any XO on an XS server. I have tried the
 approach you outlined, but when I use Browse to go to
 http://schoolserver/public it is not found. The server responds:
 
 The requested URL /public was not found on this server.
 
 My server domain is asilong.org, so my actual URL is
 http://schoolserver.asilong.org/public
 (this is as it should be right?)
 
 I have tried going to schoolserver/library/public but it is not found either.
 
 In terminal, I can go to the directory /library/public and my documents
 are in the directory.
 
 I doubled checked the xs-library-public.conf file in
 the /etc/httpd/conf.d directory for typos but couldn't find any.
 
 Any guess as to why I can't get to the files from Browse?
 
 Thanks,
 Andy
 
 On Apr 2, 2010, at 6:13 PM, Tim Moody wrote:
 
 I created a directory public under /library into which I copied a few pdfs.
 
 I created a file xs-library-public.conf in /etc/httpd/conf.d which contains
 
 Alias /public/ /library/public
 Directory /library/public
 Order allow,deny
 Allow from all
 Options Indexes FollowSymLinks
 AllowOverride None
 /Directory
 
 After service httpd restart I get an index of the pdfs from
 http://schoolserver/public
 
 --
 
 Message: 1
 Date: Fri, 2 Apr 2010 06:41:51 +1000
 From: David Leeming da...@leeming-consulting.com
 Subject: [Server-devel] Public folders
 To: 'XS Devel' server-devel@lists.laptop.org
 Message-ID: 01cad1db$c2141720$463c45...@com
 Content-Type: text/plain; charset=us-ascii
 
 Using the XS installed with default settings.
 
 
 
 I have been making folders public in /var/www/html and am able to view sub
 folders to be listed. I.e. if there is no specific html file, the whole
 contents of the folder appear in the browser. Fine that is what I want.
 
 
 
 However, when copying content into that folder I rapidly run out of space.
 It seems that the main disk space is in an another partition where the
 folder

Re: [Server-devel] Public folders

2010-04-06 Thread Andra DuPont
Tim,
Earlier I noted that the /var/log/httpd/error_log had the error:

file does not exist: /var/www/html/publicSugar Manual.pdf

Notice that there is no / between public and Sugar Is that normal???

This could just be a bug in the way errors are logged, but I doubt it.
It seems that the code is generating a request with a syntax issue.
What do you think?

I am going to go look at the index file.


On Apr 6, 2010, at 7:22 PM, Andra DuPont wrote:

 file does not exist: /var/www/html/publicSugar Manual.pdf
 
 Notice that there is no space or / between public and Sugar Is that 
 normal???
 This could just be an error in the way errors are logged. Regardless, I cannot
 access the files listed in the index.

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


Re: [Server-devel] Public folders

2010-04-06 Thread Jerry Vonau
On Tue, 2010-04-06 at 21:52 -0400, Andra DuPont wrote:
 Tim,
 Earlier I noted that the /var/log/httpd/error_log had the error:
 
 file does not exist: /var/www/html/publicSugar Manual.pdf
 
 Notice that there is no / between public and Sugar Is that normal???
 

No, just wondering if your new proxy is able to be run as a transparent
proxy(don't have to configure the browsers for the proxy), squid is
setup as such. Did you, at some point run 
/etc/sysconfig/olpc-scripts/TURN_SQUID_ON? That would of added an
iptables redirect for all web requests. As a quick test could you do:

/etc/xs-config/altfiles/etc/sysconfig/olpc-scripts/TURN_SQUID_OFF
service iptables restart

and retry

Jerry
  

 This could just be a bug in the way errors are logged, but I doubt it.
 It seems that the code is generating a request with a syntax issue.
 What do you think?
 
 I am going to go look at the index file.
 
 
 On Apr 6, 2010, at 7:22 PM, Andra DuPont wrote:
 
  file does not exist: /var/www/html/publicSugar Manual.pdf
  
  Notice that there is no space or / between public and Sugar Is that 
  normal???
  This could just be an error in the way errors are logged. Regardless, I 
  cannot
  access the files listed in the index.
 
 ___
 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] Public folders

2010-04-06 Thread Andra DuPont
Problem solved see correction below.

On Apr 2, 2010, at 6:13 PM, Tim Moody wrote:

 I created a directory public under /library into which I copied a few pdfs.
 
 I created a file xs-library-public.conf in /etc/httpd/conf.d which contains
 
 Alias /public/ /library/public

The above line caused my requests to be missing a / after the directory name 
and the file.
I recommend changing the line to

Alias /public /library/public   or
Alias /public/ /library/public/

both seem to work the same, but I believe the first is preferred. That is the 
syntax
used in the xs-activity-server.conf file.


 Directory /library/public
  Order allow,deny
  Allow from all
  Options Indexes FollowSymLinks
  AllowOverride None
 /Directory
 
 After service httpd restart I get an index of the pdfs from 
 http://schoolserver/public
 
 --
 
 Message: 1
 Date: Fri, 2 Apr 2010 06:41:51 +1000
 From: David Leeming da...@leeming-consulting.com
 Subject: [Server-devel] Public folders
 To: 'XS Devel' server-devel@lists.laptop.org
 Message-ID: 01cad1db$c2141720$463c45...@com
 Content-Type: text/plain; charset=us-ascii
 
 Using the XS installed with default settings.
 
 
 
 I have been making folders public in /var/www/html and am able to view sub
 folders to be listed. I.e. if there is no specific html file, the whole
 contents of the folder appear in the browser. Fine that is what I want.
 
 
 
 However, when copying content into that folder I rapidly run out of space.
 It seems that the main disk space is in an another partition where the
 folder /library is located. This makes sense (i.e. to have a lot of room 
 in
 the library...)
 
 
 
 Therefore, I copied my public content into sub folders under the directory
 /library and made the whole of /library public using the html.conf file 
 with
 Aliases pointing to my specific subfolders.
 
 
 
 However, under /library it won't allow contents of subfolders to be listed
 (unless there is an index file in which case it opens that by default, but 
 I
 want the folder contents listed in some cases.
 
 
 
 Help?
 
 
 
 David Leeming
 
 
 ___
 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] Public folders

2010-04-03 Thread David Leeming
Thanks Tim that is what we wanted to know. 

David Leeming

-Original Message-
From: server-devel-boun...@lists.laptop.org
[mailto:server-devel-boun...@lists.laptop.org] On Behalf Of Tim Moody
Sent: Saturday, 3 April 2010 8:13 a.m.
To: server-devel@lists.laptop.org
Subject: Re: [Server-devel] Public folders

I created a directory public under /library into which I copied a few pdfs.

I created a file xs-library-public.conf in /etc/httpd/conf.d which contains

Alias /public/ /library/public
Directory /library/public
  Order allow,deny
  Allow from all
  Options Indexes FollowSymLinks
  AllowOverride None
/Directory

After service httpd restart I get an index of the pdfs from 
http://schoolserver/public

 --

 Message: 1
 Date: Fri, 2 Apr 2010 06:41:51 +1000
 From: David Leeming da...@leeming-consulting.com
 Subject: [Server-devel] Public folders
 To: 'XS Devel' server-devel@lists.laptop.org
 Message-ID: 01cad1db$c2141720$463c45...@com
 Content-Type: text/plain; charset=us-ascii

 Using the XS installed with default settings.



 I have been making folders public in /var/www/html and am able to view sub
 folders to be listed. I.e. if there is no specific html file, the whole
 contents of the folder appear in the browser. Fine that is what I want.



 However, when copying content into that folder I rapidly run out of space.
 It seems that the main disk space is in an another partition where the
 folder /library is located. This makes sense (i.e. to have a lot of room 
 in
 the library...)



 Therefore, I copied my public content into sub folders under the directory
 /library and made the whole of /library public using the html.conf file 
 with
 Aliases pointing to my specific subfolders.



 However, under /library it won't allow contents of subfolders to be listed
 (unless there is an index file in which case it opens that by default, but

 I
 want the folder contents listed in some cases.



 Help?



 David Leeming


___
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] Public folders

2010-04-02 Thread Tim Moody
I created a directory public under /library into which I copied a few pdfs.

I created a file xs-library-public.conf in /etc/httpd/conf.d which contains

Alias /public/ /library/public
Directory /library/public
  Order allow,deny
  Allow from all
  Options Indexes FollowSymLinks
  AllowOverride None
/Directory

After service httpd restart I get an index of the pdfs from 
http://schoolserver/public

 --

 Message: 1
 Date: Fri, 2 Apr 2010 06:41:51 +1000
 From: David Leeming da...@leeming-consulting.com
 Subject: [Server-devel] Public folders
 To: 'XS Devel' server-devel@lists.laptop.org
 Message-ID: 01cad1db$c2141720$463c45...@com
 Content-Type: text/plain; charset=us-ascii

 Using the XS installed with default settings.



 I have been making folders public in /var/www/html and am able to view sub
 folders to be listed. I.e. if there is no specific html file, the whole
 contents of the folder appear in the browser. Fine that is what I want.



 However, when copying content into that folder I rapidly run out of space.
 It seems that the main disk space is in an another partition where the
 folder /library is located. This makes sense (i.e. to have a lot of room 
 in
 the library...)



 Therefore, I copied my public content into sub folders under the directory
 /library and made the whole of /library public using the html.conf file 
 with
 Aliases pointing to my specific subfolders.



 However, under /library it won't allow contents of subfolders to be listed
 (unless there is an index file in which case it opens that by default, but 
 I
 want the folder contents listed in some cases.



 Help?



 David Leeming


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


Re: [Server-devel] Public folders

2010-04-01 Thread Andra DuPont
David's need for a public place to put files to be accessed by many (using 
XOs for the most part I assume), is similar to my post concerning a Server 
Library, to which I have had no replies. Is there a recommended approach to use 
for this?

Thanks,
Andy


On Apr 1, 2010, at 4:41 PM, David Leeming wrote:

 Using the XS installed with default settings.
  
 I have been making folders public in /var/www/html and am able to view sub 
 folders to be listed. I.e. if there is no specific html file, the whole 
 contents of the folder appear in the browser. Fine that is what I want.
  
 However, when copying content into that folder I rapidly run out of space. It 
 seems that the main disk space is in an another partition where the folder 
 /library is located. This makes sense (i.e. to have a lot of room in the 
 library...)
  
 Therefore, I copied my public content into sub folders under the directory 
 /library and made the whole of /library public using the html.conf file with 
 Aliases pointing to my specific subfolders.
  
 However, under /library it won’t allow contents of subfolders to be listed 
 (unless there is an index file in which case it opens that by default, but I 
 want the folder contents listed in some cases.
  
 Help?
  
 David Leeming
  
 ___
 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] Public folders in 0.6 - trials in Pacific

2009-12-20 Thread Martin Langhoff
On Sat, Dec 19, 2009 at 7:34 AM, David Leeming
da...@leeming-consulting.com wrote:
 It works beautifully.

Great!

 Just one question - how do I make the site files visible to users?

You should be able to link to it, and there should be no password
prompt. When you copy the link, what does it look like?

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] Public folders in 0.6 - trials in Pacific

2009-12-18 Thread David Leeming
Hi Martin,

It works beautifully.

Just one question - how do I make the site files visible to users? I can add
access to a directory of course files as a resource, and can happily upload
files as administrator, but can't see where to make the sites files -
general resources for all - visible. I tried guessing the URL as hinted at
in the process, but users can't access that link as it asks for a password
to login (although already logged in and accessing an open course)

David Leeming
Solomon Islands Rural Link 
http://www.leeming-consulting.com


-Original Message-
From: Martin Langhoff [mailto:martin.langh...@gmail.com] 
Sent: Tuesday, 15 December 2009 10:06 p.m.
To: David Leeming
Cc: server-devel@lists.laptop.org
Subject: Re: [Server-devel] Public folders in 0.6 - trials in Pacific

Hi David,

sorry about the delay. Great to hear 0.6 installed alright -- I assume
you got your XOs registered and auto-authenticating with Moodle...

On Sat, Dec 12, 2009 at 7:29 AM, David Leeming
da...@leeming-consulting.com wrote:
 All seems to be working OK. I am going to try setting up groups of users
 (classes) and see how that pans out. Is there any data and guidelines on
how
 far a single server can be stretched (number of users etc) ?

 - How powerful is the XS? -- amount of RAM, type, number and speed of
disks and CPU (in that order) affect the peak capacity it can sustain

-  How good is the network coverage? You are _very_ likely to saturate
a single AP with 20 XOs (between http traffic for moodle and other
network traffic such as presence) before you max the server.

- What will they use in Moodle? And how simultaneously? Hint: Quiz is
one of the heaviest modules, if you get a group of users and say
press 'start this quiz' on the count of 3 you're inciting murder of
your server because the spike of a bunch of users hitting it at
exactly the same time is hard to deal with.

Try with the quiz is timed, so read the intro paragraph and click on
'start' after you read it. That trick spreads the traffic that was
going to hit in 1s into maybe a minute or two, given the variation on
reading speeds of different people. Congrats -- your server now
handles 60x more traffic.

 I am sorry if this is covered in the list but can you confirm if there is
 any way to upload files to the server from an XO using moodle?

Yes - use the course files area for files related to a course
content. You have 'site files' too for stuff available to all. And
many modules allow file uploads (forum, assignment...).

 Last question, it will happen that user groups and all their data will
need
 to be migrated. Also backing up user data and then reloading that on a
 freshly configured server. What is the line on that?

If the 'migration' is to a replacement machine that will serve the
same users, easiest path is to clone the disk (for example with
rsync). Or just move the disk to a new machine.

The other option is to use the backup/restore tools for that too.
Daniel Drake wrote them, and documented their use in some messages
to this list (great if someone grabs his notes and sticks them in the
wiki ;-) ).

OTOH, if migration means that servers are going to be consolidated or
split, then it is a bitharder.


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] Public folders in 0.6 - trials in Pacific

2009-12-11 Thread David Leeming
Martin

 

I am just tuning in again to OLPC after some months, and am preparing for
some work in PNG, Tuvalu and FSM. I very quickly had 0.6 installed, and got
to grips with Moodle, very cool! I can do all I wanted with setting up links
to folders etc. Once again I get that wow feeling about the whole OLPC
thing.

 

All seems to be working OK. I am going to try setting up groups of users
(classes) and see how that pans out. Is there any data and guidelines on how
far a single server can be stretched (number of users etc) ? 

 

I am sorry if this is covered in the list but can you confirm if there is
any way to upload files to the server from an XO using moodle? 

 

Last question, it will happen that user groups and all their data will need
to be migrated. Also backing up user data and then reloading that on a
freshly configured server. What is the line on that?

 

 

 

David Leeming

Solomon Islands Rural Link 

http://www.leeming-consulting.com

 

From: server-devel-boun...@lists.laptop.org
[mailto:server-devel-boun...@lists.laptop.org] On Behalf Of David Leeming
Sent: Sunday, 18 October 2009 7:22 a.m.
To: 'server-devel'
Subject: [Server-devel] Public folders in 0.6

 

Great work XS team!

 

I just have a few minor issues as I get to know the new release. 

 

I have upgraded 0.5.2 to 0.6 successfully. I want the choice to use Moodle
or to be able to browse public folders of HTML content. Previously I did
this by adding a file html.conf to /etc/httpd/conf.d/ and then having a link
to those folders on the previous default Moodle page who.php

 

What would be the best way to do this with 0.6? At the moment none of the
content we had been using before is accessible because the server locks one
into a Moodle course-centric approach. What if you just want to browse
content? 

 

Secondly, if I create a course, can I create different formats such as
weekly, scorm and so on?

 

If I want to access my html content from a Moodle course approach, how do
I add a link to it from the Moodle course (as course creator)? Should I be
seeing a full range of  normal Moodle edit functions/

 

 

David Leeming

Solomon Islands Rural Link

Leeming International Consulting

P.O. Box 652, Honiara, Solomon Islands, South Pacific

Tel: +677 747-6396 (m) +677 24419(h) 

http://www.leeming-consulting.com

 

 

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


Re: [Server-devel] Public folders in 0.6

2009-10-18 Thread Martin Langhoff
On Sat, Oct 17, 2009 at 10:22 PM, David Leeming
da...@leeming-consulting.com wrote:
 Great work XS team!

Thanks!

 I have upgraded 0.5.2 to 0.6 successfully. I want the choice to use Moodle
 or to be able to browse public folders of HTML content. Previously I did
 this by adding a file html.conf to /etc/httpd/conf.d/ and then having a link
 to those folders on the previous default Moodle page “who.php”

IIRC you do have your content directory configured via a config file
in /etc/httpd/conf.d/ -- so all we need is a link from Moodle...

 - The who.php page won't be displayed anymore. If your users are
registered and you're using a modern-enough Browse, Moodle will
autologin.

 - The first user to autologin successfully gets to be a
'coursecreator' with rights to add content and courses. (See XS
Techniques page for more...) With this XO, you'll see a 'turn editing
on' in the homepage. Switch it on, and use the add a resource
dropdown to add the link.

 - If you want to do it moodle-centric, you can host the files in the
site files facility.

 Secondly, if I create a course, can I create different formats such as
 weekly, scorm and so on?

Yep, as usual w moodle.

 If I want to access my html content from a Moodle “course” approach, how do
 I add a link to it from the Moodle course (as course creator)? Should I be
 seeing a full range of  normal Moodle edit functions/

Yes. You can hit turn editing on and add it on the homepage. I can't
remember the default settings right now, you might need to go to the
homepage settings and enable has a content section for this to work.

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


[Server-devel] Public folders in 0.6

2009-10-17 Thread David Leeming
Great work XS team!

 

I just have a few minor issues as I get to know the new release. 

 

I have upgraded 0.5.2 to 0.6 successfully. I want the choice to use Moodle
or to be able to browse public folders of HTML content. Previously I did
this by adding a file html.conf to /etc/httpd/conf.d/ and then having a link
to those folders on the previous default Moodle page who.php

 

What would be the best way to do this with 0.6? At the moment none of the
content we had been using before is accessible because the server locks one
into a Moodle course-centric approach. What if you just want to browse
content? 

 

Secondly, if I create a course, can I create different formats such as
weekly, scorm and so on?

 

If I want to access my html content from a Moodle course approach, how do
I add a link to it from the Moodle course (as course creator)? Should I be
seeing a full range of  normal Moodle edit functions/

 

 

David Leeming

Solomon Islands Rural Link

Leeming International Consulting

P.O. Box 652, Honiara, Solomon Islands, South Pacific

Tel: +677 747-6396 (m) +677 24419(h) 

http://www.leeming-consulting.com

 

 

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