Page 4 of 9 FirstFirst ... 23456 ... LastLast
Results 61 to 80 of 162

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: PDF/CHM/DOC/XLS/photo viewer - all-in-one Safari/Lighttpd based (complete instruct.)

  1. #61
    still stucked at: "2. Check if Lighttpd is installed correctly. Point your iPhone browser to 127.0.0.1 and you should be greeted by Lighttpd welcome screen."

    i got the "404"-problem. how can this be? i just have installed PHP and Lighttpd without any modifications yet.

  2. #62
    Quote Originally Posted by Broken_Halo View Post
    -V-O-Y-A-G-E-R-

    Thank you for your reply
    my question is how do I add files to .dirlist (I would really appreciate it if you can guide me step by step)

    By the way when using Mobile TextEdit and editing then saving - most times the changes don't even happen. The file goes to the way it was before. I don't understand this. I try rebooting the phone to see if changes may take effect that way but no dice.

    I am running a iPhone unlocked with ziphone on 1.1.4 that my brother got me from NYC. I am in Greece now and am trying to figure this out and it's driving me up the wall.
    How (exactly) step by step) do I add either word documents, or PDF files to my iPhone or .dirlist? What do I use can i move the PDF files on my iPhone using MobileFinder (and I don't even know how to do that) can I send them through wifi using DropCopy?
    Do I transfer using dock and some other program maybe the Mac utilities program Terminal.app ? - and if so what command lines do I type to send the files to iphone and to the .dirlist so I can see them in my web.browser and what address do I type in the web browser.
    I am really confused . . . .
    Did you see my post earlier?

    OK I assume you are on a MAC:

    1) download Transmit ftp program or any GUI SFTP program for MAC
    (I use transmit)

    2) follow ftp program instructions to connect to your iphone via SSH
    (you will need to know the IP address of your phone. Found in settings)

    3) prepare the files you want to transfer
    (doc,txt,rtf,etc...)

    4) in Transmit: navigate to var/root/Sites.

    5) place documents in that folder

    6) go to safari in iphone

    7) go to http://127.0.0.1

    8) Fini

  3. #63
    Yeah, does anybody know of a way to increase the filesize in safari? Unfortunately I'm continually getting the "Safari can't open the page because it is too large" message

  4. #64
    Quote Originally Posted by sl0h View Post
    still stucked at: "2. Check if Lighttpd is installed correctly. Point your iPhone browser to 127.0.0.1 and you should be greeted by Lighttpd welcome screen."

    i got the "404"-problem. how can this be? i just have installed PHP and Lighttpd without any modifications yet.

    Did you reboot your iPhone? You should have It's necessary for Lighttpd to get goin'.


    Quote Originally Posted by sabanir View Post
    Did you see my post earlier?

    OK I assume you are on a MAC:

    1) download Transmit ftp program or any GUI SFTP program for MAC
    (I use transmit)

    2) follow ftp program instructions to connect to your iphone via SSH
    (you will need to know the IP address of your phone. Found in settings)

    3) prepare the files you want to transfer
    (doc,txt,rtf,etc...)

    4) in Transmit: navigate to var/root/Sites.

    5) place documents in that folder

    6) go to safari in iphone

    7) go to http://127.0.0.1

    8) Fini
    True. But even easier solution for people on Mac is to install AFPd from installer (Network section) and you'll have your iPhone as a remote disk, available for you via Finder

  5. #65
    ye i did... well now i have done a restore and alsmot everything works perfect!
    i made an easy index.html with a link to a pdf... i go to 127.0.0.1 and that works great. BUT, if i delete my index.html and go to 127.0.0.1 i get the "404 - not found" error. same if i try to go to my PDF dir: 127.0.0.1/PDF/ (and yes, i have created dirs and upload pdfs..

    i have used ur zip file and all, but i cant get this to work without a index file... i want it to look like this:


    also if i try to point out the dir-generator: "127.0.0.1/.dirlist/dir-generator.php" i get this error: "403 - Forbidden".
    Last edited by sl0h; 2008-03-26 at 07:05 PM.

  6. #66
    Quote Originally Posted by -V-O-Y-A-G-E-R- View Post
    Did you reboot your iPhone? You should have It's necessary for Lighttpd to get goin'.




    True. But even easier solution for people on Mac is to install AFPd from installer (Network section) and you'll have your iPhone as a remote disk, available for you via Finder
    First of all, I would like to thank each and every one of you for trying to help me.
    I feel like a medieval princess and all knights are coming to my rescue
    For a woman I feel very flattered . . .

    Now unfortunately either gremlins have entered my iPhone in an coup to conspire against me or I am slowly loosing my mind . . .

    I have installed AFPd for the second time activated it by running the program even restarted my iPhone and it still neglects to appear on my computers finder as a remote disk. I have tried 3 different MACs 2 laqptops and one PowerMac still nothing.

    I have downloaded Transmit to my desktop in an attempt to send files that way but after trying to log in to my iPhones ip address (which I found using Safari webpage "What's my IP") using FTP protocol it only shows a folder that is titled "denied" and I cannot view or transfer anything. In the protocol menu there is no tab for SSH and FTP according to their instructions is the simplest.

    So I am sitting here shrugging my shoulders with my hands in the air . . .
    now what?
    Why are my macs refusing to see a remote disk (iPhone through AFPd)?
    Why do I get that strange folder in Transmit that says "denied"?
    What am i doing wrong?
    what else do i need to do?

    Please help

  7. #67
    For all those wondering what the maximum PDF size is: I've done a bit of searching and found out that the max cache given to safari for a web page on the iPhone is 10mb. So I'm guessing that if you keep your PDFs (or jpegs) below 10mb it should load ok. Can anybody confirm this?

  8. #68
    I agree with -V-O-Y-A-G-E-R- ,

    AFPd would be an easier solution. BUT, (LOL) I have the same problem...I CAN"T GET IT TO WORK! (LOL). I have 2 laptops and 2 towers and I can't get any of them to see my iphone through AFPd! It frustrated me to no end so I gave up on it. I try it again every now and then but still no go.

    Halo, let's give this one more try... The best way to see your actual IP for me is to go (in iPhone) to settings--->General--->Network--->Wi-F--->(your network name)

    Click the blue arrow to the right of the network you are connected to. This will give you your actual IP for your connection. (if you are using airport base station then it might start with 10.,Mine starts with 195.)

    [I am not familiar with the webpage you went to...but, IMHO just by the nature of connecting to an outside source would make it just a little unreliable for me]

    Now launch transmit (version 3.6.4 is the one I use).
    Make sure SSH is active on your iPhone.

    IN transmit: go to the favorites tab at the Title bar between Transfer and Windows.
    Click "add to favorites"

    When the drop down menu opens, make sure you click the triangle next to "more options" if it says "fewer options" then leave it alone.

    Choose a nickname for the favorite
    Put your IP in the field marked "Server"
    User Name: root
    Password: alpine

    Protocol: SFTP
    Remote Path: /

    click OK

    now in the main transmit window click on the favorites button next to the Connect button on the right of the interface. It will take a little while to connect the first time so be patient. it will ask you for permission to continue. Go Ahead.

    Once it connects you should see the file directory for your iPhone. You can now drag and drop files and folders between your mac and the phone!

    Now when ever you need to go into your phone and set permissions (through get info), you will be able to launch transmit and click on your phones nickname. If the IP address changes (new setup at your home, new router, etc...) you can just look in the iphone and put the new IP in transmit by going to "edit favorites".
    Last edited by sabanir; 2008-03-27 at 12:29 AM.

  9. #69
    Very nice job! Thanks! (everything works perfect (1.1.4)).

  10. #70
    Quote Originally Posted by sabanir View Post
    I agree with -V-O-Y-A-G-E-R- ,

    AFPd would be an easier solution. BUT, (LOL) I have the same problem...I CAN"T GET IT TO WORK! (LOL). I have 2 laptops and 2 towers and I can't get any of them to see my iphone through AFPd! It frustrated me to no end so I gave up on it. I try it again every now and then but still no go.

    Halo, let's give this one more try... The best way to see your actual IP for me is to go (in iPhone) to settings--->General--->Network--->Wi-F--->(your network name)

    Click the blue arrow to the right of the network you are connected to. This will give you your actual IP for your connection. (if you are using airport base station then it might start with 10.,Mine starts with 195.)

    [I am not familiar with the webpage you went to...but, IMHO just by the nature of connecting to an outside source would make it just a little unreliable for me]

    Now launch transmit (version 3.6.4 is the one I use).
    Make sure SSH is active on your iPhone.

    IN transmit: go to the favorites tab at the Title bar between Transfer and Windows.
    Click "add to favorites"

    When the drop down menu opens, make sure you click the triangle next to "more options" if it says "fewer options" then leave it alone.

    Choose a nickname for the favorite
    Put your IP in the field marked "Server"
    User Name: root
    Password: alpine

    Protocol: SFTP
    Remote Path: /

    click OK

    now in the main transmit window click on the favorites button next to the Connect button on the right of the interface. It will take a little while to connect the first time so be patient. it will ask you for permission to continue. Go Ahead.

    Once it connects you should see the file directory for your iPhone. You can now drag and drop files and folders between your mac and the phone!

    Now when ever you need to go into your phone and set permissions (through get info), you will be able to launch transmit and click on your phones nickname. If the IP address changes (new setup at your home, new router, etc...) you can just look in the iphone and put the new IP in transmit by going to "edit favorites".
    Dear Sabanir,

    I after nearly 18 hours spent fighting within the dungeons and dragons of the iPhone I finally figured AFPd to work.

    Ok well no one will tell you that you have to go to iPhone settings sleep - (never). Go to your finder menu on top and go across to "go" then scroll down to connect to server and tap it. If everything goes well a "connect to server" box will pop up which will show three buttons on the bottom "remove", "browse" and "connect". (I spent about 4 hour alone there. I typed in the server address slot "afp://89.204.119.118" my iPhone ip address. It showed up on the Finder as connected but WTF?!? no iPhone which I name "Broken Halo".)
    What you should do in the "Connect to Server" box is press the "browse" button and when the network box appears look for your iPhone in the columns on the right. Then click on it. Then in the next column a network icon with then iPhone name and a "connect" button below will appear.
    Another network box named "connect to server" will pop up. It will have the tab checked off "Registered User" checked off. In the box for name you will put (u guessed it) "root" and in the box below for password you will put in "alpine". Then press connect.
    Now another box will pop up that will say "localhost" under that "Select volumes to mount"
    and my volumes are as follows:
    Mobile's Home Dir
    Root File System
    Root's Home Dir

    Select "Root File System"

    and then on the bottom press "ok"
    A Root File System icon will appear all the way on the left hand screen of the finder.
    then in the next column (to the right) go and tap on the "private" folder
    in the following column (to the right) tap on the "var" folder
    in the the next column (to the right) tap "root" folder
    and in the next column (to the right) tap on the "sites" folder
    This is where you will put all PDF. XLS, WORD, Documents, everything . . .
    . . .just make sure the names are too long or you will confronted with a warning box . . .

    This is the only way- I know how to do it. I took me literally a whole hight and another whole day . . .
    If there is a easier way with AFPd - let the experts speak . . . me, I am a lolely medical resident, that needed to read literature & notes on & to the way to work on the Metro . . .

    Thank you again everyone . . .

  11. The Following User Says Thank You to Broken_Halo For This Useful Post:

    sabanir (2008-03-29)

  12. #71
    ok now i solved my problem by my self again....

    i have been using the SSH client FileZila, and did a manually rename of the dirlist... and i have not got this to work... just the 404 not found error...

    today i tried another SSH client; WinSCP, and did the command: "mv dirlist .dirlist" instead of the manuall rename... after that i restarted the phone and now everything works great!! thx for this great mod!!

  13. #72
    What's Jailbreak?
    Join Date
    Mar 2008
    Location
    Hong Kong
    Posts
    19
    Thanks
    1
    Thanked 12 Times in 7 Posts

    check for my modified script at http://www.modmyi.com/forums/showthread.php?t=88821

  14. #73
    I did essentially the same thing: change the paths from root to mobile. Things magically started working as advertised. This is a great mod. Thanks chadcham for the post and voyager for dreaming this up! For me, this is a "killer app".

    Steve

  15. #74
    Updated sources with kane.lai's updates.
    Thanks kane.lai!

    Changelog:

    FIXED: the original script fails to enter directory/file which contains the "#" character in directory name or filename
    FIXED: when the length of file/dir is too long, the ">" at the right of the line get overlapped. now it's fixed.
    ADD: the original script only shows 127.0.0.1 as the root folder name. i've added a constant in the script that allows the user to customize the name. i preset it as "Library"
    ADD: web clip icon support. just put an icon named "apple-touch-icon.png" in the ".dirlist" folder (or use the one i attached). and try to add the web page to the home screen
    ADD: the page auto scroll to hide the address bar of safari (only if the length of the list of files reached a full screen of safari)
    Last edited by -V-O-Y-A-G-E-R-; 2008-03-28 at 01:42 PM.

  16. The Following User Says Thank You to -V-O-Y-A-G-E-R- For This Useful Post:

    sabanir (2008-03-29)

  17. #75
    It works perfect on firmware 1.1.4 but CHM file can't read


  18. #76
    Default installer does it all!
    Quote Originally Posted by -V-O-Y-A-G-E-R- View Post
    Well, this is not much of a work once you download Lighttpd and PHP...I doubt BB or other guys would bother with scripting
    Feel free to ask them if you would like
    first of all thanks, u did a great job. I installed the latest version of installer, then installed lighttppd, then PHP, and I didn't have to modify anything to make the viewer work. All i did was to follow the advice of afiedrich (thanks) for creating a folder named docs (private/var/root/sites/docs) and just dropped my documents there with ibrickr and it worked wonderfully. Keep it up

  19. #77
    Halo,
    Sorry been out of town for a few days. Thank you for the walk through! that is what I was looking for. Keep it up and we'll make a geek out of you yet! LOL! Nice job!

    -V-O-Y-A-G-E-R-,
    Thank you for such a great app!

    Here is one for the group to ponder if you dare :
    I read somewhere that you could use this setup to make web apps "native" by hosting them locally. Anybody have instructions on how to do that?
    Last edited by sabanir; 2008-03-29 at 11:34 AM.

  20. #78
    Quote Originally Posted by mtt09mtt View Post
    Still have this problem, Lighttpd is ok - i installed and got welcome screen but could not install PHP. i even cannot install any soft from site "Conceited". may be my fw is 1.1.4 or the problem of "Conceited" site.

    Is there any other way to install PHP from other sources ?

    Please help. many thanks Mr. V-O-Y-A-G-E-R !
    Can any one help me ??? Try and fail always

    Thanks,

  21. #79
    Pls, how made localhost adress - http://localhost/, because work only http://127.0.0.1/
    but i want http://localhost/

    Thnks. / FW 1.1.4

  22. #80
    I don't want to read all 78 posts here, but has anyone pointed out yet that the safari file:// patch allows all this to be done without any daemons running?
    -BigBoss
    Please do not send me messages here as I never check them. If you need to contact me, send me an email. My contact info is easy to find from inside Cydia.

  23. The Following User Says Thank You to BigBoss For This Useful Post:

    -V-O-Y-A-G-E-R- (2008-03-30)

Page 4 of 9 FirstFirst ... 23456 ... LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •