View Single Post
Old 01-19-2009, 02:23 PM   #1
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Lightbulb Xiliad: a small webserver running on your iLiad

Hello All,

EDIT:
  • 10 nov 2009: update 1.1: new installer (compatible with recent Lua package), recent Lua package.



Original message:

The attached file contains a small web server (the installer is 300kB) that runs on your Iliad. It is written in Lua; which is included in the 300kB
  • Unpack the installer anywhere, for example in 'documents' on on your memory card (this creates a directory 'xiliad')
  • Navigate to xiliad and click 'Run Xiliad, the Iliad Web Server'
  • Activate your network (wired or wireless)
  • Point your browser (PC) to http://ip.of.your.iliad:8080/
  • Browse

Notes:
  • The server has dynamic pages (pages with Lua code in it, just like php can do)
  • You can also browse on the Iliad: configure Dillo to start at http://127.0.0.1:8080/
  • The first time Xiliad is started, it will install Lua on the Iliad. If you want, you can remove it with ipkg remove lua5.1-iliad
  • Xiliad uses no cpu while waiting for a request; it just sleeps

Purpose: Xiliad is a 'proof of concept' kind of thing. It shows that Lua runs efficiently on the Iliad. It's not very useful as is, but the potential of a scriptable web server is great: it could be used for remote installation and configuration of software via a web interface.

Please play with it, and let me know what you think!

EDIT: 3 hours after posting, this post is the first Google result for 'Xiliad'

PS: see https://dev.mobileread.com/trac/luailiad for more info about Lua on the Iliad
Attached Thumbnails
Click image for larger version

Name:	pc.png
Views:	277
Size:	110.1 KB
ID:	21761   Click image for larger version

Name:	iliad.png
Views:	297
Size:	60.9 KB
ID:	21762  
Attached Files
File Type: gz Xiliad-1.1.tar.gz (299.6 KB, 149 views)

Last edited by hansel; 11-14-2009 at 02:43 PM. Reason: typo
hansel is offline   Reply With Quote