The Following 3 Users Say Thank You to leetnoob For This Useful Post: | ||
![]() |
2011-01-28
, 12:48
|
|
Posts: 302 |
Thanked: 193 times |
Joined on Oct 2008
@ England
|
#2
|
more info about it here: http://www.floodgap.com/httpi/
unzip it and put it into /user/home (must be this directory)
create a directory /user/home/webroot
chmod u+rwx /user/home/httpi
stick a perl cgi script into /user/home/webroot
e.g.
hello.cgi
print "<h1>Hello everyone</h1>";
then: chmod u+rwx /home/user/webroot/hello.cgi for good measure (I'm sure chmod u+rwx /home/user/webroot would suffice)
start the webserver with the command
/user/home/httpi
fire up the maemo web browser and point it to
http://nokia-n900:9090/hello.cgi
Nice things about this:
1. The webserver itself is written in perl and runs in the background as a daemon. No other perl packages need to be installed. It's standalone and it runs as the user, no need for root access.
2. It's a very mature and stable server
3. It uses no cpu while hanging around waiting for a request, so no drain on battery
4. the perl interpreter is already loaded in order to run the webserver itself, so doesn't need to be activated again to run your script (speedy and uses less memory)
I'm sure with clever uses of graphics,css,ajax and other web techniques perl programmers could make pseudo maemo GUI looking web apps.
I think this could open up the way for more app development on maemo and indeed meego.