Difference between revisions of "HitchhikersGuide"
Jump to navigation
Jump to search
Line 77: | Line 77: | ||
==== SSH into your Pre ==== | ==== SSH into your Pre ==== | ||
# ssh -p 222 $USER@$IP | # ssh -p 222 $USER@$IP | ||
+ | ## You can find your IP on your Pre with: ifconfig | grep addr: | ||
=== Tips === | === Tips === |
Revision as of 21:15, 11 September 2009
Palm Pre Hitchhikers Guide
Making it Hackable
Enable Developer Mode
- From the Pre home screen, without any apps open, simply start typing and type: upupdowndownleftrightleftrightbastart
- Click on "Developer Mode Enabler"
- Slide "Developer Mode" to ON
- Click "Reset the Device." This just reboots the device. Why they chose the word "Reset" is a mystery.
Installing WebOS Quick Install
You will need Preware which is an application management suite. To install Preware (as well as other applications), you will need WebOS Internals, which is a Java application that talks to the Pre.
- Go to http://forums.precentral.net/homebrew-apps/194832-webos-quick-install.html
- At the bottom of the first post, there is an "Attached Files" section. Click on the WebOSQuickInstall.jar link. You will need to register for the forum system (Ugh! But oh well).
- Once you're registered, save the file WebOSQuickInstall.jar to some directory on your computer.
- Download http://palm.cdnetworks.net/rom/pre_p100eww/webosdoctorp100ewwsprint.jar
- Place this file in the same directory as WebOSQuickInstall.jar
- Rename webosdoctorp100ewwsprint.jar to WebOSDoctor.jar
- For Windows 7:
- Follow the instructions here: http://www.webos-internals.org/wiki/Novacom_with_Windows_7
- When you run NovacomInstaller*.msi, it won't really say "finished installing" or anything like that, but novacomd.exe is running.
Installing Preware
(See also http://www.webos-internals.org/wiki/Tutorials_webOS_Installing_An_Ipk#WebOS_Quick_Install_Method)
- Attach your Pre with a USB cable to your computer. Choose "Just Charge." Even though it's "just charging," the computer has access to the device.
- Double click on WebOSQuickInstall.jar
- On first launch, there will be a first-time setup popup asking which device you want to use. Choose "USB Device" which is the Pre.
- On the right, there are 3 buttons, a plus, a minus, and harddrive with a green arrow. The harddrive button is a "Download Apps" button. Click this.
- From the drop down at the top, choose "WebOS-Internals Feed (all)"
- Check "Package Manager Service" and click Download
- Click Close
- Click Install
- Click the download button again
- Check "Preware" and click Download
- Click Close
- Click Install
Hacking
You must first install the terminal application before doing anything else.
Install a Terminal Application
- Open WebOSQuickInstall.jar
- Click the download button
- From the drop down, select "WebOS-Internals Feed (Pre)"
- Check "Terminal Service Plugin"
- Click Download
- Click Close
- Click Install
- Click the download button
- From the drop down, select "WebOS-Internals Feed (all)"
- Check "Terminal"
- Click Download
- Click Close
- Click Install
- See Application:Terminal for information and key combos.
First Steps
Summarized from Next steps
- Open Terminal
- cd /tmp
- wget http://tinyurl.com/n8q2vy
- mv n8q2vy optware-bootstrap.sh
- sh optware-bootstrap.sh
- Choose a user name which you will later use to be able to ssh into your Pre.
- You may get a "bad password" warning if you typed in a weak password. This is not a critical error, you can continue re-typing your password the second time to confirm it. You can always change it later with passwd $USER
- source /etc/profile.d/optware
Install Bash
Summarized from Setup Bash
- ipkg-opt install bash
- There is no way at this time to type the backslash (\), so it's best to use vi to edit /etc/shells
- Put this into /etc/shells:
/bin/ash
/bin/sh
/opt/bin/bash
- Change your default shell to /opt/bin/bash by editing the last portion for your user (and for root) in /etc/passwd
SSH into your Pre
- ssh -p 222 $USER@$IP
- You can find your IP on your Pre with: ifconfig | grep addr:
Tips
- If you're SSHed into your Pre and you want to watch its CPU or memory as you do things, on your pre type:
watch vmstat 2 5