Join Today
+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1

    Default webserver on the phone with boa

    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.
    Attached Files Attached Files

  2. #2

    Default Re: webserver on the phone with boa

    Great work rpconnect! I will test it on the A780 tomorrow. It's getting too late for me to try tonight.

  3. #3

    Default Re: webserver on the phone with boa

    what does this webserver can do?
    can we create app to config ezx?
    Visit my Blog here.http://my.opera.com/eakrin

  4. #4
    Join Date
    Jul 2005
    Location
    Indonesia
    Posts
    238

    Default Re: webserver on the phone with boa

    Good jobs .. Waiting to support dinamic script like php or cgi ..
    Linux is an idea of OS without limitations
    http://ahmadimron.com/Images/ahmadimron.jpg

  5. #5

    Default Re: webserver on the phone with boa

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

  6. #6
    Join Date
    Jul 2005
    Location
    Indonesia
    Posts
    238

    Default Re: webserver on the phone with boa

    @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;
    ?>
    Linux is an idea of OS without limitations
    http://ahmadimron.com/Images/ahmadimron.jpg

  7. #7

    Default Re: webserver on the phone with boa

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

  8. #8

    Default Re: webserver on the phone with boa

    i'ts possible to use the shell as CGI???

  9. #9
    Join Date
    Dec 2005
    Location
    Germany
    Posts
    7

    Default Re: webserver on the phone with boa

    @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

  10. #10

    Default Re: webserver on the phone with boa

    @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)


 
+ Reply to Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 10-07-2009, 03:00 AM
  2. Replies: 1
    Last Post: 11-25-2008, 05:23 PM
  3. webserver on A1200
    By MajAfy in forum A1200 General Chat
    Replies: 1
    Last Post: 06-09-2008, 07:14 AM
  4. Replies: 3
    Last Post: 04-06-2007, 05:38 PM
  5. Problem setting up Phone Tools with a1200 (phone not listed)
    By rajarshi in forum A1200 General Chat
    Replies: 17
    Last Post: 10-28-2006, 04:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1