Toolbox package - v0.33

Changelog;

2008-03-22 - v0.21. Bug fixed in scripts for finding correct pid for telnetd
2008-03-23 - v0.3   thttpd compiled (thanks to Lundmans toolchain) and the binary 
                    is included in the httpd directory. index.html updated
2008-04-02 - v0.31  Again another q&d fix to get correct pid for telnet & httpd
2008-04-17 - v0.32  Small fix, cgi script output not displayed ok after April FW release, fixed.
2008-06-09 - v0.33  SMB changed in beta 080529? Transferred files now have different filepermission. 
		    New menu item to correct this now implemented. Run once (and reboot).
		    Processes menu item removed.


Installation
------------

Unpack the content of the zip file. Move the directory 'toolbox' with all of
its content to your samba-shared internal HDD. The 'toolbox' directory
must be placed in the root of the shared drive with the exact name of 'toolbox'
(without quotes...)

Note! If you want to use another name or path then you must change paths in almost
all of the cgi-scripts, html and config files

------------

Via your popcorn, browse to the toolbox directory and view the index.htm file.

You should now be presented with a 'Services Menu'. In here you can

1. Enable or disable the telnetd daemon.
   (Thanks to who ever it was compiling the busybox26 binary)
   
2. Enable or disable the TinyHTTPD server. Default config file included
   This lets your Popcorn act as a webserver with cgi capabilities. 
   Listens, by default configuration, on port 80. 
   
   Surf to http://<ip.of.pop.corn> when thttpd is enabled.
   
   The ws_config.cgi and share_config.cgi scripts are also slightly modified
   for thttpd and are included in the package. You can reach them at;
   
   http://<ip.of.pop.corn>/cgi/
   
   So this is one of two ways to run these scripts (see method no 2 below)
   
   Additional web content should be put in 'toolbox/httpd/www/'
   Config-file located in 'toolbox/httpd/etc/thttpd.conf'
   
   Note! TinyHTTPD gets problems when html files in /www has the file
   permission of 777 (this is how samba creates files) this must be corrected. 
   This is done by running 'Repair permissions' from the menu.
   
3. Reboot the system, make a reboot immediately.

4. Install webscripts.
   Lets you via a web browser connect to your popcorn and configure
   network shares and addresses for web services. No more fiddling
   with the remote with long URLs
   
   Surf to http://<ip.of.pop.corn>:8883/share_config.cgi or
   http://<ip.of.pop.corn>:8883/ws_config.cgi
   
   Hint, make a first test by making the 'Services menu' available as a webservice;
   Name: ToolBox Url: file:///opt/sybhttpd/localhost.drives/HARD_DISK/toolbox/index.htm
   
   IExplorer has some difficulties showing pages correctly, use FireFox if possible.
   
   Note! After a reboot the system removes symlinks created for the cgi scripts
         so the webscripts must be installed again.
         
5. Make ToolBox stuff executable - To correct file permission on the transferred 'toolbox' directories

------------

..and of course you use all of this at your own risk.

With some changes I guess all of this can be installed on a USB connected drive aswell.

Only tested with the latest firmware by 2008-06-09

hassex