Page 2 of 3 FirstFirst 123 LastLast
Results 21 to 40 of 45
  1. #21  
    Well I've had a little bit of success with this... after much kludging around

    I could webdav in to /media/internal and get the initial folder listing but any attempt to browse below that would get me 403 errors.

    What did work for me was:
    • SCP'ed in (as root) and created a "www" folder under /media/internal.
    • Changing server.document-root = "/media/internal" to server.document-root = "/media/internal/www" in lighttpd.conf.
    • Restarted my Pre.

    After that I can get in and add and delete files and folders with no problems through XP Explorer and GoodSync. So it would appear to be a permissions problem with /media/internal itself. That's only guesswork though as I'm kinda new to all this.

    One thing that's making things drag is when I make any changes to the conf file I have to reboot the Pre for those changes to take hold. I've tried running /opt/etc/init.d/S80lighttpd restart via SSH but I get:
    Starting web server: lighttpd
    2010-02-19 12:48:57: (network.c.345) can't bind to port: 443 Address already in use
    And the changes don't take. If anyone can tell me how to do a full restart of the server without restarting my phone it'd sure speed things up

    This is far from ideal as there's plenty files I'd like to get to in the USB partition but it'll certainly work for syncing music and the like.

    EDIT: "killall lighttpd" followed by "/opt/etc/init.d/S80lighttpd start" does the job of restarting lighttpd with new conf settings in place.
    Last edited by Norf; 02/19/2010 at 07:59 AM.
  2. #22  
    OK... more kludging around and I have a fully browsable USB partition via webdav

    Turns out it wasn't my previous "solution" [read: guessfest] of pointing it at a subfolder. It was the fact I'd disabled the conditional url check for the webdav options in the conf file. To re-cap... I:

    Edited /opt/etc/lighttpd/lighttpd.conf using WinSCP and commented out the conditional check for the webdav options so:
    $HTTP["url"] =~ "^/($|/)" {
    webdav.activate = "enable"
    webdav.is-readonly = "disable"
    webdav.sqlite-db-name = "/opt/var/run/lighttpd/lighttpd.webdav_lock.db"
    }
    became
    # $HTTP["url"] =~ "^/($|/)" {
    webdav.activate = "enable"
    webdav.is-readonly = "disable"
    webdav.sqlite-db-name = "/opt/var/run/lighttpd/lighttpd.webdav_lock.db"
    # }
    Saved that back to the Pre, restarted lightpd and I'm now good to go.

    So the problem appears to be with the regular expression used in $HTTP["url"] =~ "^/($|/)". My little brain melts at the mere thought of regular expressions so I won't pretend to know exactly what it's checking for... but I'm guessing it's only enabling webdav on the root folder and not any subfolders. I'm going to quit while I'm ahead and go play with webdav

    Many thanks to all for getting me this far. It's a much friendlier solution than SFTP.
  3.    #23  
    Yes, you're right, the expression was the error. I tried it too and now it works.

    Another thing: you have to use upstart to start/stop lighttpd as this:

    Code:
    # stop mobi.optware.lighttpd
    # start mobi.optware.lighttpd
    I'll update the wiki post about this.
  4. #24  
    Great. And thanks for the start stop commands
  5. #25  
    Hey

    I got a weird problem: I installed it with the script today, but when i try to access it, I get 404 error page. Any idea what is wrong?

    Edit:

    I fixed the 404 Error by allowing directory listing.

    Problem I still have is, that windows does not recognize it with the credentials. It just says "not a valid folder"

    any ideas on that error?
    Last edited by eu_nobo; 02/24/2010 at 04:23 PM.
  6. aric's Avatar
    Posts
    104 Posts
    Global Posts
    108 Global Posts
    #26  
    Hi,

    I've been able to get this to partially work: am only able to transfer files from the Pre, not to it.

    I'm using OS X 10.6.2, and get an error code -36. I did a little research and it seems this is a new issue that appeared in 10.6.2!! I don't want to "roll back" to an earlier version, so for now file transfer is only a one way street! Unfortunately, the wrong way!
  7. #27  
    debilater,
    i installed lighttpd and ran your script, using terminus since terminal still not working, but there are multiple errors (...return value 4), etc. since i can't scroll up, the first one is see is 'cannot find package lighttpd check the spelling or perhaps run 'ipkg update''. the specific line errors i see are 1 & 331, and it ends saying it cannot start lighttpd.
    is there a new script for 1.4?
    is there any way to get a log of what goes on in terminus to put up so it can be reviewed?
    what can i do?
    thanks
  8. #28  
    Quote Originally Posted by debilater View Post
    As I already mentioned in another thread you can install a WebDAV server on your palm and connect to it using native operating system methods (MacOSX Finder, Windows File Explorer) to transfer files to and from the palm. In that post I described how to do that with "pyDav", a python webdav server. But this didn't work with Windows Vista and were unsecure.

    Now I figured out a new method, which is secure (connection is encrypted and password protected) and works on Vista too. I attached some screenshots how it looks on mac and vista.

    You have to install lighttpd, a lightweigt HTTP server offering some additional modules, one of them being mod_webdav. The software is available via Optware.

    Since the installation is somewhat complicated I created an installer script which does every required tasks to enable WebDAV on the palm.

    You'll need root access on the palm and Optware installed.

    Download the attached script, upload it to your palm (e.g. using scp) and execute it:

    Code:
    root@palm-webos-device: # sh /opt/home/scip/install-webdav-0.0.1.txt
    The installer will ask you for a username and a password!

    Note:
    Connect using the URL that the installer displays upon completion (or find the ip address of your phone and use https://your-ip-address/. When connecting a popup will appear informing you that the remote server (your palm!) uses an untrusted certificate, acknowledge that. Then you will be asked for the username and password you entered during installation.

    How to connect to the webdav directory:
    MaxOSX: Connecting to a WebDAV server
    MS Vista: How to Map WebDAV folder Under Vista/XP


    --------------------------

    In the next time I'm planning to write a java service to enable/disable webdav and add/modify users along with an app to control it. Stay tuned.
    Since we are using the command line already why not just use wget to retrieve the script and place it into a temp dir... is there anyway to host the file somewhere so its possible?

    this might work for now
    Code:
    wget http://download831.mediafire.com/wcnnzg1vg9jg/1m4iwuu2zky/install-webdav-0.0.1.txt
    Last edited by jack87; 04/06/2010 at 05:34 PM.
    MatterOfFactJack
  9. #29  
    what temp directory are you saving to here?
  10. #30  
    could you please help.
    i reinstalled lighttpd after the 1.4 update and finally was able to get 'localhost' to access folders and then also from browser on PC. i installed webdav using your script and got the attached screen from terminal.
    now i can't access folders from 'localhost' (unable to load page...error loading page. [111]) nor PC. when i try to map phone using the phone IP from my PC, the UID/password prompt comes up and when i enter them (it lets me try twice) it says the folder i entered does not appear to be valid.
    is there something i am missing or not doing?
    please let me know how to fix this.
    thank you.
    Ev
    Attached Images Attached Images
  11. #31  
    Quote Originally Posted by bliip1234 View Post
    what temp directory are you saving to here?
    are you asking me? im not i just posted the wget out as an option for people who know what they are doing and the url.. as for me i dont know much im a pretty much noob...

    the purpose was to display the url rather then an attachment to a post for either the dev or another user to post instructions or just simply use it themselves.. i was having issue installing it kept getting errors (the the wget but when running the sctip)
    MatterOfFactJack
  12. #32  
    Allright, I totally not get this and really would like to use wifi access through Windows Explorer.

    What I did:
    - Install optware via preware, install lightywebserver via preware.
    - Using webos quickinstall I copied the script to /opt/home/scip/
    - I ran the script using novacom root access: sh /opt/home/scip/install-webdav-0.0.1.txt

    This is what I got:

    sh /opt/home/scip/install-webdav-0.0.1.txt
    Set / rw
    Installing lighttpd
    Nothing to be done
    An error ocurred, return value: 4.
    Collected errors:
    Cannot find package lighttpd.
    Check the spelling or perhaps run 'ipkg update'
    Installing openldap-libs
    Nothing to be done
    An error ocurred, return value: 4.
    Collected errors:
    Cannot find package openldap-libs.
    Check the spelling or perhaps run 'ipkg update'
    Creating dummy openssl.cnf
    Generation SSL Cert
    Generating a 1024 bit RSA private key
    ....................++++++
    .......++++++
    unable to write 'random state'
    writing new private key to '/opt/etc/lighttpd/server.pem'
    -----
    You are about to be asked to enter information that will be incorporated
    into your certificate request.
    What you are about to enter is what is called a Distinguished Name or a DN.
    There are quite a few fields but you can leave some blank
    For some fields there will be a default value,
    If you enter '.', the field will be left blank.
    -----
    Organization Name (company) [My Palm Pre]:Organizational Unit Name (department,
    division) []:Email Address []:Locality Name (city, district) [Phone]:State or PrPrPr
    ovince Name (full name) [Anywhere]:Country Name (2 letter code) [NA]:Common Name
    (hostname, IP, or your name) []:Creating lighttpd config
    Creating lock directory for webdav LOCK and UNLOCK operations
    Rewriting lighttpd startup script
    /opt/home/scip/install-webdav-0.0.1.txt: line 1: cannot create /opt/etc/init.d/S
    80lighttpd: nonexistent directory
    Creating upstart script
    Enter a username [palm]: ****
    ****

    Enter a password: Creating digest file
    Starting lighttpd
    /opt/home/scip/install-webdav-0.0.1.txt: line 331: /opt/etc/init.d/S80lighttpd:
    not found
    Installation of WebDAV backends successful.
    Now connect to WebDAV from your PC to the service URL https://192.168.2.110/
    Set / ro
    That´s as far as I got. I made sure that lighty webserver was running using the command: netstat -an | egrep "443.*LISTEN" before starting the script.

    Any help or more detailed description on how to make this work would be highlöy appreciated, thank you all in advance!
  13. #33  
    +1- essentially same error message i got. i can browse the files from IE, but not map to them w explorer. could someone please let us know if the script needs changing before running on some peoples phones?
    thanks
  14. #34  
    I give this thread another push in hopes of one of you bright minds can help us out to get this working. Any help on this is really appreciated! Thank you all in advance.
  15. #35  
    At install, and after running

    /opt/etc/init.d/S80lighttpd start
    I get a
    /opt/etc/init.d/S80lighttpd not found
    error
  16. #36  
    Quote Originally Posted by everette13 View Post
    could you please help.
    i reinstalled lighttpd after the 1.4 update and finally was able to get 'localhost' to access folders and then also from browser on PC. i installed webdav using your script and got the attached screen from terminal.
    now i can't access folders from 'localhost' (unable to load page...error loading page. [111]) nor PC. when i try to map phone using the phone IP from my PC, the UID/password prompt comes up and when i enter them (it lets me try twice) it says the folder i entered does not appear to be valid.
    is there something i am missing or not doing?
    please let me know how to fix this.
    thank you.
    Ev
    I believe its the same issue as this too, any ideas?
  17. #37  
    basically, for some reason we don't have /opt/etc/init.d/S80lighttpd

    is their any way of getting this? I assume its a file in the lightldp lib?
  18. #38  
    well, I've just had to take my pre to the doctor, so I'l give this another go.....once I download ALL the patches, apps and hacks again!!!
  19. #39  
    Just curious, but their is no way of doing something like this, that doesn't rely on a LAN connection? maybe using 3G?
  20. #40  
    still, not working!Is this because of a new version of lightly?
Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Posting Permissions