Updated - thttpd webserver for maemo
May 12, 2006 on 9:50 am | In maemo, nokia770 |I have repackaged the debian arm thttpd webserver for the 770. At this point it is completely functional, but the package lacks some of the niceties that I expect of finished packages. Such as a script to clean up orphan logs and pid files, or a script to create a link in the /etc/init.d directory or start automatically at reboot. I will get to that later.

At this point i am trying to figure out how to use this server standalone (ie when i am not internet connected). Opera keeps complaining about a lack of connection and doesn’t really seem comfortable displaying a webpage without an active connection.
To install the package do the following:
Install
- Install the thttpd package
- Open xterm, enter ’sudo gainroot’
- enter ’su -’
- enter ‘ln -s /var/lib/install/etc/init.d/thttpd /etc/init.d/thttpd’
- enter ‘/etc/init.d/thttpd start’ to start the server.
- the webserver is now serving on http://127.0.0.1:8000.
The configuration files are located at /var/lib/install/etc/thttpd. The server is running as user ‘user’ and is serving to all requests and hosts - which means your 770 is externally browsable. If you want to restrict access to local only, add a ‘host=127.0.0.1′ line to /var/lib/install/etc/thttpd/thttpd.conf.
Content is located at /var/lib/install/var/www and should be set to world readable.
For more information on the server go to http://www.acme.com/software/thttpd/
NOTE - This is not a maemo port. Just a repackage of the debian arm thttpd package located at packages.debian.org.
ubergEEk
Update - I have found a way to create a fake connection that doesnt turn on the wifi at http://maemo.org/maemowiki/DummyIAP. It appears to work and once validated it will become part of my installation script. thanks to Andrew Barr for the quick response on the lists.
PS - Like everything else on this blog, use at your own risk. Just because it worked for me, does not mean I assume responsibility for anything you do.
No Comments yet »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds.
Valid XHTML and CSS. ^Top^