Great work rpconnect! I will test it on the A780 tomorrow. It's getting too late for me to try tonight.
for the fun of it I grabbed the boa webserver package (kind of a micro version of apache) from the gumstix build root and compiled it against the phone kernel and what do you know - it worked!!
Attached it my temporary working directory that I just tar'ed off of the phone.
To Install: copy boa_stuff.tar.gz to /diska and untar/zip it there with: tar -zxvf boa_stuff.tar.gz (it should end up in /diska/boa_stuff)
To Run: telnet to the phone and start boa with the command: /diska/boa_stuff/boa -c /diska/boa_stuff
To test: you can either test the demo web page by going to the file /diska/boa_stuff/www/index.html from the opera "file" selection, or (assuming that you are connected to a PC) simply enter the phone's ip address as the web-address, for example: "http://169.254.142.2".
I'd like to make an EZX-based manager to manage the webserver, and the install and locations of the files should be a lot cleaner, but if anyone has any suggestions or questions just let me know.
I have tested this on an e680(flashed to i) but don't see any reason why it wouldn't work on any of the EZX phones.
Great work rpconnect! I will test it on the A780 tomorrow. It's getting too late for me to try tonight.
what does this webserver can do?
can we create app to config ezx?
Visit my Blog here.http://my.opera.com/eakrin
Good jobs .. Waiting to support dinamic script like php or cgi ..![]()
@al750n and eakrin
i am by far no html expert, but as I was going through the boa and its configuration documentation it looks like cgi and php are supported, so in theory we could create a web-based ezx configuration app.
Actually a web-based ezx config app, or any other html app, would be nice as it wouldnt require an official install (e.g. the way the mpkg updates the application database, or even worse, if you have to go in and edit it by hand). For me I do have to use the "file" access part of opera to get to the internal html code; in theory you should be able to go to the loopback device, but because opera insists on using its own gprs connection, and my pre-paid T-mobile account wont allow any http traffic, opera with loopback won't work for me. It might be possible to get it to work w/ mack's fake GRPS module, but i haven't had time to try it out thoroughly.
the web page that is included is just a simple stupid index.html with two figures; i have no prior experience w/ html or cgi, perl, or php scripting, but as soon as I figure out a good way to set up a boa install I want to look into executing system commands via html.
so far i think this was the easiest port i've tried, now i should go back and try some other packages from the gumstix build root.... but there just isn't enough time.....
if I do want to make system calls via http, can anyone suggest a good starting point? which might be easiest, perl, cig, php? sorry for all the newb questions...
@rpc
Vote for php .. I think with php we can make a widely range system call .. This is a simple example how to call ls command via php ..
Code:<?php echo '<pre>'; // Outputs all the result of shellcommand "ls", and returns // the last output line into $last_line. Stores the return value // of the shell command in $retval. $last_line = system('ls', $retval); // Printing additional info echo ' </pre> <hr />Last line of the output: ' . $last_line . ' <hr />Return value: ' . $retval; ?>
@al750n
hot digity damn! this is exactly what I was hoping for!!!! thanks!!!!!!
i've never done any real html or scripting, but now that i have a webserver running on the phone and my gumstix i'm starting to realize the potential.
i'll start poking around the web to get some php background, thanks again!
now, with the bt ppp stuff, if i can figure out the system calls to get the camera data off the i2c bus we could have a regular web-cam.
i'ts possible to use the shell as CGI???
@rpconnect
thanks, is a nice work!
The BOA-Webserver run on my a780 phone ---cool!
To access of “intern files” I have try file://localhost/diska/boa_stuff/www/index.html in the address bar.
Kawa
@XWolf
i have no idea yet, but i'm looking into it
@kawa0815
thanks for the tip about going to "localhost/..../index.html", but for me this still doesn't work (I dont have official internet access via GPRS so even though it should only be going back to the localhost and not accessing the general internet, stupid T-mobile keeps blocking me)