Adding Content

=Obtaining and preparing content=

Where to find content
You can download content from the Internet, either as compressed files or entire websites.
 * SOS Children's Village Wikipedia is a compressed file of Wikipedia content for children.
 * HTTrack is a tool to copy websites from the internet.

Compressing prior to upload
When using webmin file manger, it is necessary to compress your content before uploading; either using zip compression for Windows or tar compression for Linux.

WindowsXP

 * 1) Locate the top level folder containing the web content you wish to upload
 * 2) Right click on it and choose "send to -> Compressed (zipped) Folder"
 * 3) Rename the .zip file to whatever you want the name of the content on the server to be. The name of zip file become part of the file location on the server.
 * 4) * For example, if the .zip is called wikipedia, on IHL wikipedia.zip will be at  http://192.168.100.1/wikipedia .

Linux
$ tar -cf content.tar  Rename the .zip file to whatever you want the name of the content on the server to be. The name of zip file become part of the file location on the server.
 * For example, if the .tar is called wikipedia, on IHL wikipedia.tar will be at  http://192.168.100.1/wikipedia .

=Proper location for content on the IHL server= Any web content placed on the IHL server in the directory /var/www/ will be available to the client machines:

http:// / e.g. http://192.168.100.1/wikipedia

=Uploading content=



Using webmin (for content smaller than 2GB)
If your content compressed file (zip or tar) is smaller than 2GB, you can easily do the entire upload process from the IDL webmin interface.


 * 1) Point your web browser at http://:10000
 * 2) Log in with the administrator username and password
 * 3) Click the others button on the toolbar on the left side of the screen.
 * 4) Click File Manager once to open the file manager java application If you get messages about unsigned/invalid SSL certificates, click OK to make exceptions.
 * 5) Browse to the /var/www directory by double clicking folders on the left side pane of the file manager
 * 6) Click the upload button in the toolbar of the file manager
 * 7) In the popup window that opens, click the browse... button and select your zipped/tarred content
 * 8) Make sure Upload to directory is set to /var/www
 * 9) Make sure Convert Windows Newlines? is set to no
 * 10) Change Uncompress ZIP or TAR file? to Yes, then delete
 * 11) Upload as user should be set to root
 * 12) Open a new browser window and verify that your content is at http:// /

Using Webmin and a FTP Client for content larger than 2GB
Web browsers do not properly handle uploading files larger than 2GB via HTTP. If your zipped/tarred content is larger than 2GB, you will need to use this method to upload. This method is also faster than uploading via HTTP.

Change permissions on /var/www
The first time you upload content, you need to change the permissions of the /var/www directory so you have write permissions when you login with ftp. You only need to do this once.
 * 1) Log in to webmin
 * 2) Other > File Manager
 * 3) The web site's certificate cannot be verified. Do you want to continue? Click Yes
 * 4) Click the var folder on the left side. This will open the contents of the var folder on the right.
 * 5) In /var, click the www folder > Click Info in the toolbar [[image:IHL-content01.gif|none]]
 * 6) Under Ownership, type inveneo in the user and group fields
 * 7) In Apply changes to, choose This directory and all subdirectories > Click Save [[image:IHL-content02.gif|none|200px]]

Windows XP

 * 1) Download and install WinSCP
 * 2) Host name is , the standard IP of the server is 192.168.100.1
 * 3) User name is inveneo, use the administrator password > Login [[image:IHL-content03.gif|none|400px]]
 * 4) Continue connecting and add host key to the cache? Click Yes
 * 5) On left side of the window, browse to the location of the compressed content
 * 6) *The content should be in a compressed file, like a .zip file
 * 7) On the right side, browse to /var/www. By default, the location is /home/inveneo.  Do NOT upload to /home/inveneo.  You must upload to /var/www [[image:IHL-content04.gif|none|400px]]
 * 8) Drag the compressed file from the left side to the right side, under /var/www
 * 9) Make sure you are coping the file to /var/www/*.* > Click Copy[[image:IHL-content05.gif|none|400px]]
 * 10) Launch the webmin in Firefox
 * 11) Others > File Manager > var > www
 * 12) In this folder is the .zip you just uploaded [[image:IHL-content06.gif|none|400px]]
 * 13) Click/highlight the .zip file > Click Extract > Click Yes, then delete
 * 14) *This may take several minutes. Be patient.
 * 15) Change the file permissions for the newly extracted directory
 * 16) *Under Group, check Read and List
 * 17) *Under Other, check Read and List
 * 18) *Under Apply changes to, select This directory and all subdirectories

On a Thumb Drive

 * 1) Download the Linux version of Filezilla
 * 2) Unzip and untar it on the thumb drive
 * 3) To run, connect to any linux machine and doubleclick bin/filezilla
 * 4) Click New Site
 * 5) Enter FTP information for your IHL server:
 * 6) *Host: 
 * 7) *Servertype: SFTP -- SSH File Transfer Protocol
 * 8) *User:
 * 9) *Password:
 * 10) Click Connect
 * 11) In the right hand pane of Filezilla, navigate to /var/www
 * 12) Upload zipped/tarred content file
 * 13) Close filezilla
 * 14) Back in the browser webmin window, highlight the zipped/tarred archive file and click the extract button. (Check the box to delete the archive file after extracting)

On IDL
If you have Internet access, you can install FileZilla on an IDL client, as instructed in the IDL 3 Manual

Return to the Table of Contents