logo       Dave's Online Memory
dave's iPAQ stuff: internal web site You: 38.107.191.89 Tuesday Mar 16, 2010 3:32PM PDT
Background |   Security |   Configuration |   File List |   Download screen shot

Background

When 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...

Security

I'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.

Configuration

First, 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):

	cd /home/httpd/html
	tar zxpf /root/site.tgz

Third, to enable cgi in the web server, add the following line to /etc/thttpd.conf:

cgipat=/cgi/*

That says that the /home/httpd/html/cgi directory contains cgi scripts.

Fourth, restart the web server to pick up the changes:

	/etc/init.d/thttpd stop
	/etc/init.d/thttpd start

Last, but not least, edit the /etc/dillorc file to point to the new site:

home=http://127.0.0.1/

Fire up dillo, and hit the Home button. Enjoy!

File List

Here'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

Download

You can get it here: site.tgz [3kb]

ipaqMore iPAQ stuff here

Enjoy!
...dave

...dave


silly cat image Top of Page FEEDBACK      Comments, Corrections & Questions welcome