How to manage files on your webOS device from your computer

by Jake on 5/06/2011

So you need to get that sweet new album on your device that you totally just got so you can listen to it in the car. Oh wait, you left your cable back at the office with your Touchstone. How are you going to get files to your device? Well there’s always WiFi Media Sync by 8-Bit but (due to limitations of webOS) you can only sync one file at a time, and the standalone server may not work for everyone, or some may prefer a more direct method. (Also check out Gemini File Manager)There’s a solution that actually isn’t as popular as it should be. It’s called OpenSSH. The optware tools have been in Preware for a long time, but many webOS users either haven’t heard of it, or are too nervous to venture. Fear not my friend, it’s easier than you think.

The information I use is directly from WebOS Internals’ page on OpenSSH Install. I don’t take credit for this tutorial, but I wish to spread it to more people to make their lives easier.

Step 1(Option 1): If you don’t already have Preware, follow these instructions, otherwise download and install all dependencies for OpenSSH SFTP Server and Xecutah/XTerm/XServer.WTerm/WOSQI CMD will NOT work, I’ve tested.

After finish installing, open Xecutah and start XTerm.

Please check and double check everything you type before you hit enter.

 

Once again, these instructions are directly from WebOS Internals’ site.

Step 2: Once it’s open, type the following things, at the end of each line you hit enter. So for example you would type cd / then hit enter.


(Keep in mind, each step is one line, Step 4 is all one line)

  1. cd /
  2. /opt/bin/ssh-keygen
  3. Press ↵(Enter) to accept the default filename. When prompted, press ↵(Enter) twice for a blank password.
  4. mv /home/root/.ssh/id_rsa.pub /home/root/.ssh/authorized_keys
  5. cp /home/root/.ssh/id_rsa /media/internal/id_rsa 

Close XTerm

Step 3: Transfer keys to your computer
Connect your device to your computer via USB and put it in USB Drive mode (possibly for the last time!) Copy the id_rsa file from the phone to your computer’s hard drive and remember where you saved it.You can “eject” the device’s drive and unplug the USB cable.

Step 4: Configure FileZilla and connect to your phone
If you don’t already have it, download and install the FileZilla client on your computer. The reason it’s best to use FileZilla is because FileZilla automatically converts that id_rsa file into a .ppk which is a PuTTY private key file.

To add your SSH private key, Start FileZilla and under Edit > Settings > SFTP, click “Add keyfile…” and locate the id_rsa file you saved earlier
click “Yes” to convert it to a .ppk file FileZilla can use

You can give it any name and save it to a permanent location where it will be available whenever you need to connect
Time to connect. Go to File > Site Manager and create a new site with the following settings:

    • Host: Your device’s local IP address over Wi-Fi (tap the name of your Wi-Fi connection for its current IP) see here
    • Port: Leave blank
    • Protocol: SFTP – SSH File Transfer Protocol
    • Logon type: Normal
    • User: root
    • Password: Delete whatever is in the password field, leave blank

Click the advanced tab and set the Remote Directory to /media/internal/
Click Connect

It should work! If it does not, feel free to e-mail me. If you still do not feel comfortable doing all this, I highly recommend WiFi Media Sync.

 

EXAMPLE USAGE IDEAS:

  • Edit a file, perhaps a stylesheet or code
  • Transfer music to your device
  • Essentially anything that requires you to plug in your USB cable!

There are 12 comments in this article:

  1. 5/06/2011SmartFah says:

    Does this also work for sending files from your phone to your computer? I buy most of music through the Amazon MP3 App, and would like to be able to transfer them to my computer without using the cable.

  2. 5/06/2011Jake says:

    If they appear in as files in /media/internal/, sure. You should drag and drop in FileZilla.

  3. 5/06/2011Panagiotis says:

    Good info for all to know. BTW the images of what key to press after the word “Press” in step 2 doesn’t render when displayed on the Pre’s browser – they just appear as empty boxes.

  4. 5/06/2011SmartFah says:

    Thanks. I will definitely take advantage of this. I always hated having to plug & unplug my Toucstone to use the USB cord, and transfer files.

    This is good to know.

  5. 5/06/2011Jake says:

    They’re just the Return key symbol. Like the arrow.

  6. 6/06/2011Panagiotis says:

    That’s what I figured, but it could be confusing if they don’t know that. Might want to replace them with an actual image of the key or spell out return.

  7. 13/06/2011Rod says:

    Jake,

    Priceless info…Thanks allot brotha. I could get neither Terminal nor SDLTerminal working on my Pre2 so I used novaterm and followed the rest of the instructions and it all worked like a charm.

    …you da man!!!

  8. 21/06/2011Palm Pixi (Sprint) & Home Brew Ramp -up - TreoCentral.com says:

    [...] via the FTP protocol, either through WiFi/3G/USB Cable? – A killer SSH client Check this out: How to manage files on your phone from your computer [Tutorial] | WebOS World [...]

  9. 28/06/2011New and Happy! Some Qs - PreCentral Forums says:

    [...] 2, this MIGHT help you. I don't know about iMacs but it works on mine. How to manage files on your phone from your computer [Tutorial] | WebOS World __________________ Add more HD space to your Pre/Pixi by installing Zumodrive and [...]

  10. 1/07/2011fubber says:

    I think you missed a step in your instructions?
    After converting to a ppk file you need to open this file then hit connect…

  11. 16/07/2011Transferring files to TP takes forever... - PreCentral Forums says:

    [...] How to manage files on your phone from your computer [Tutorial] | WebOS World 10x as fast. __________________ Add more HD space to your Pre/Pixi by installing Zumodrive and Dropbox! My apps: WebOS World Services(TP Version coming soon) [...]

  12. 8/08/2011Jake says:

    Email me

Write a comment:

  • Articles (3)
  • Device Services (1)
  • Enyo (3)
  • News (5)
  • Parts (1)
  • Research (1)
  • Tips (2)
    • wowAppTips (1)

  • RSS Feed of the articles
  • RSS Feed of the comments
Email: contact@webosworld.com
Twitter: @webosworld @villo

WebOS World is powered by vostok