Results 1 to 13 of 13
  1.    #1  
    Hi, hundreds of people on this forum will have done this using a similar method, or maybe even went about it differently. All the info on how to 'root' your Pre is on PreCentral and Webos-internals.org but is difficult to find it in one place. I have only had my Pre for a few weeks, installed a few apps and patches but wanted to mod a few icons because I wasn't keen on some of them, but I needed to look at & access the 'root' of my Pre to modify them. After reading up, this is what I did (PS: I'm running a PC with 32bit XP Professional and my Pre is a UK GSM model (on O2) with webos v1.3.1 so some of the software versions you use may need to be different!)


    1. On your PC install VirtualBox (I used 3.0.10-54097-Win.exe, newer versions now available!)

    2. make sure VirtualBox is not running

    3. Install Palm Mojo SDK (use Palm_Mojo_SDK-Win-1.3.1-314-x86.exe .. this is for 32bit XP/Vista - other versions availabe)

    4. Unzip novaterm for windows (from novaterm-1.zip) into palm/sdk/bin directory (on PC).

    5. On the Pre .. run DevMode app. switch ON then Reset Pre when prompted. Connect Pre to PC via usb. On Pre select 'charge'.

    6. On the PC, run novaterm.exe (if this doesn't work, from Command line .. run novacom -t open tty:// )

    7. In novaterm, (this is to install Optware), enter these commands (one at a time, wait until commands finish running) ..
    [NOTE: replace ** with tt below, see Next steps - WebOS Internals ]

    cd /tmp
    wget h**p://gitorious.org/webos-internals/bootstrap/blobs/raw/master/optware-bootstrap.sh
    sh optware-bootstrap.sh
    source /etc/profile.d/optware


    8. Enter a Username and Password

    9. Reboot Pre, install Winscp onto PC (use winscp424setup.exe) , then run Winscp, at the Login screen enter .. Your Pre's ip: 192.168.0.4 (here is mine as an example), Port: 222, Username & Password (as above).

    10. To enable Permissions (to be able to modify files on the Pre) click on 'SFTP' (on the left & also in the Login screen), and paste this command in the protocol window: "sudo /opt/libexec/sftp-server" (without the quotes). Then in Winscp, use Putty (find icon top left) to unmount filesystem, login & type "sudo mount -o remount,rw /". Press <Return> key.

    11. once set up, to use .. check Pre is in DevMode (can be permamently turned ON or OFF), connect usb to pc, enter 'charge only' mode, run Winscp (via PC shortcut link). Browse to files to modify, copy to PC, modify, copy back to Pre.

    12. When finished any mods, return the file system back to 'read only' by typing "sudo mount -o remount,ro /" (without the quotes) as described in 10. Disconnect & reboot Pre when finished.

    13. Examples of where my icon files & folders are located ..

    Contact photos: var/luna/files
    Browser Icons: var/luna/data/browser/icons
    App icons: var/usr/palm/applications
    Photographs: media/internal/photos
    (also backup database at: var/luna/data/dbdata/palmdatabase.db3)


    Resources:

    Virtualbox: Downloads - VirtualBox
    Winscp: WinSCP :: Download
    Optware setup: Next steps - WebOS Internals
    PalmSDK/Novaterm info/downloads: Portal:Accessing Linux - WebOS Internals
    PalmSDK links:
    (software) Registration
    (instructions) Getting Started €“ webOSdev €“ Palm
    DevMode: App available via PreWare on Pre.
    PreWare: info at .. http://forums.precentral.net/palm-pr...ml#post2040315
    Your Pre's IP address: Can be found in your Pre's WiFi Preferences (I'm using my Pre via my PCs wireless router). Or using this .. http://www.precentral.net/homebrew-apps/myip or this .. http://www.precentral.net/homebrew-apps/what-my-ip


    I don't think I've missed anything out, I'm no expert .. I'm not even sure what Optware does exactly and I might even have installed something I didn't need, but installing as above worked for me ! Read the instructions in the 'Resources' links carefully. Don't blame me if anything goes wrong. Feel free to add to these instructions or amend/comment on it.

    Also, Thanks to everyone who has helped me.
    Last edited by Northernlanes; 12/15/2009 at 10:47 AM. Reason: added more info about enabling permissions
  2. #2  
    Nice article
    Former: Visor, Prism, VisorPhone, Treo 270,Treo 650, Centro Now: Pre
  3. #3  
    Sorry, Noob question, but what exactly is "rooting your pre"?
  4.    #4  
    Its sort of going beyond just accessing photos, music etc from your pc via usb, you can access/modify system files/folders in your Pre by doing this..
  5. #5  
    Quote Originally Posted by Nachtswerg View Post
    Nice article
    yes , I second that!
  6. #6  
    northernlanes

    excellent instructions, and I followed them to the letter.
    However, my novaterm prompt is root@palm-webos-device:/#

    instead of root@castle.

    So, cd /tmp doesnt work nor does wget.

    Did i do something wrong?
    How to proceed?

    Thanks
  7. #7  
    Quote Originally Posted by NABRIL15 View Post
    northernlanes

    excellent instructions, and I followed them to the letter.
    However, my novaterm prompt is root@palm-webos-device:/#

    instead of root@castle.

    So, cd /tmp doesnt work nor does wget.

    Did i do something wrong?
    How to proceed?

    Thanks
    Prior to 1.3.1 it was root@castle, After 1.3.1 it was changed to root@palm-webos-device.

    youll also need to run the command to make the system writable:
    Code:
    mount -o remount,rw /
    Please hit the thanks button if I helped you

    If you've enjoyed my patches please feel free to donate towards further development.

    Follow the link below.


  8. #8  
    thanks 2slow. i tried the steps above without the mount command, and it all seemed to work. Things loaded, things installed.

    Should i redo with the mount command?
  9. #9  
    I am missing somthing between 9. and 10. about permission denied.
    I have two users, root and mynewuser, and the two dont meet.
    Why then cant I just log on to this thing as root using WinSCP or Bitwise ?
    arrrrrg !
    Which way to the java script for dummies thread ?
  10. Econdor's Avatar
    Posts
    76 Posts
    Global Posts
    77 Global Posts
    #10  
    is it possible to locate the icon files using 'internalz' and to use 'webos quick install' to receive/send the original/edited .png files?
  11. #11  
    Quote Originally Posted by econdor View Post
    is it possible to locate the icon files using 'internalz' and to use 'webos quick install' to receive/send the original/edited .png files?
    Yes!
    Please hit the thanks button if I helped you

    If you've enjoyed my patches please feel free to donate towards further development.

    Follow the link below.


  12. #12  
    do you know what the folder would be that i can replace the music player remix icon with the one that is themed for the standard music player?
  13. #13  
    SFTP session recieved the following error: sh:/opt/libexec/sftp-server: Permission denied

    I had Bitvise working but with mynewuser unprivledged acct, until I tried to use putty.
    This involved using keygen from the phone and copying it to my pc.
    When I gave up on using putty, Bitvise now only connects it's terminal window and not the SFTP. I reinstalled Open SSH on the phone and Bitvise on the pc, with the same result. Any of you linux gurus mind walking me through how I can undo keygen and fix Bitvise !?

Posting Permissions