|
|
| dave's iPAQ stuff: internal web site | You: 38.103.63.58 | Thursday Nov 20, 2008 10:54PM PST |
|---|
Background |
Security |
Configuration |
File List |
Download
BackgroundWhen I first acquired my new iPAQ, I had much to learn and configure. I usually do all my work from the command line, but this proved difficult. I had to figure out how to launch a terminal window in such a way as to be able to read it, size it so that it didn't cover the xstroke window, and for that matter - learn how to use xstroke. Not complaining, mind you, but there was much else to do without fooling with that stuff. I routinely write stuff for various web sites, and the folks who put together the Familiar linux distro had thoughtfully included the Dillo web browser and even a web server, thttpd! It was a natural. It only took an hour or so to configure the server, and create a simple diagnostic cgi that called standard system tools. It's not much, but it saves me much typing, searching for menus, and looking throughout /proc for that elusive setting... SecurityI'd never run this on a wide-open, non-firewalled, non-NAT'd server. There are really no security checks done on the cgi input. It was designed for internal use only! Keep that in mind when you finally get that ethernet or wireless card up and running. ConfigurationFirst, download the tarball with the web site files. See below. Second, If you've not configured a web site yet, and wish to simply install this one, simply do the following (this assumes that you downloaded the file to /root):
Third, to enable cgi in the web server, add the following line to /etc/thttpd.conf:
That says that the /home/httpd/html/cgi directory contains cgi scripts. Fourth, restart the web server to pick up the changes:
Last, but not least, edit the /etc/dillorc file to point to the new site:
Fire up dillo, and hit the Home button. Enjoy! File ListHere's a list of the files in that archive. One html page, one cgi script, and a few images (the cat's an old sidekick of mine): cgi/ cgi/diags img/ img/dir.gif img/black.png img/info.gif img/links.gif img/cat.jpg index.html DownloadYou can get it here: site.tgz [3kb]
Enjoy!
|
...dave
|
|
Top of Page | FEEDBACK Comments, Corrections & Questions welcome |
|