Difference between revisions of "HitchhikersGuide"
Jump to navigation
Jump to search
(20 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
# Slide "Developer Mode" to ON | # Slide "Developer Mode" to ON | ||
# Click "Reset the Device." This just reboots the device. Why they chose the word "Reset" is a mystery. | # Click "Reset the Device." This just reboots the device. Why they chose the word "Reset" is a mystery. | ||
− | ==== Installing WebOS | + | ==== 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 | + | You will need Preware which is an application management suite. To install Preware (as well as other applications), you will need WebOS Quick Install, which is a Java application that talks to the Pre. |
# Go to http://forums.precentral.net/homebrew-apps/194832-webos-quick-install.html | # Go to http://forums.precentral.net/homebrew-apps/194832-webos-quick-install.html | ||
− | # At the bottom of the first | + | # 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. | # 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 | # Download http://palm.cdnetworks.net/rom/pre_p100eww/webosdoctorp100ewwsprint.jar | ||
Line 18: | Line 18: | ||
## Follow the instructions here: http://www.webos-internals.org/wiki/Novacom_with_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. | ## When you run NovacomInstaller*.msi, it won't really say "finished installing" or anything like that, but novacomd.exe is running. | ||
+ | |||
==== Installing Preware ==== | ==== Installing Preware ==== | ||
(See also http://www.webos-internals.org/wiki/Tutorials_webOS_Installing_An_Ipk#WebOS_Quick_Install_Method) | (See also http://www.webos-internals.org/wiki/Tutorials_webOS_Installing_An_Ipk#WebOS_Quick_Install_Method) | ||
Line 33: | Line 34: | ||
# Click Install | # Click Install | ||
=== Hacking === | === Hacking === | ||
+ | You must first install the terminal application before doing anything else. | ||
==== Install a Terminal Application ==== | ==== Install a Terminal Application ==== | ||
# Open WebOSQuickInstall.jar | # Open WebOSQuickInstall.jar | ||
Line 47: | Line 49: | ||
# Click Close | # Click Close | ||
# Click Install | # 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 | ||
+ | ## (Alternatively http://gitorious.org/webos-internals/bootstrap/blobs/raw/master/optware-bootstrap.sh) | ||
+ | # 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: | ||
+ | <code> | ||
+ | /bin/ash<br /> | ||
+ | /bin/sh<br /> | ||
+ | /opt/bin/bash<br /> | ||
+ | </code> | ||
+ | # 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 | ||
+ | ## Note that it is port 222, not the normal 22 | ||
+ | ## Use putty on Windows: http://www.chiark.greenend.org.uk/~sgtatham/putty/ | ||
+ | ## You can find your IP on your Pre with: ifconfig | grep addr: | ||
+ | |||
+ | === Searching for applications to install === | ||
+ | * sudo ipkg-opt list | grep ftp | ||
+ | |||
+ | === Installing applications === | ||
+ | * sudo ipkg-opt install $APP | ||
+ | |||
+ | === Tweaking the UI === | ||
+ | * Run WebOS Quick Install | ||
+ | * Click Tools -> Tweaks | ||
+ | * Any time you check or uncheck something, the Pre UI will reload. This takes some time, and when it comes back you have to re-click "Just Charge." | ||
+ | * Suggestions | ||
+ | ** Squarify the screen (for the Terminal) | ||
+ | |||
+ | === Tips === | ||
+ | * Copy one or more files to the Pre | ||
+ | <code> | ||
+ | scp -P 222 $LOCALFILE $USER@$IP:/var/home/$USER | ||
+ | </code> | ||
+ | * If you're SSHed into your Pre and you want to watch its CPU or memory as you do things, on your pre type: | ||
+ | <code> | ||
+ | watch vmstat 2 5 | ||
+ | </code> |
Latest revision as of 00:02, 12 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 Quick Install, 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
- Note that it is port 222, not the normal 22
- Use putty on Windows: http://www.chiark.greenend.org.uk/~sgtatham/putty/
- You can find your IP on your Pre with: ifconfig | grep addr:
Searching for applications to install
- sudo ipkg-opt list | grep ftp
Installing applications
- sudo ipkg-opt install $APP
Tweaking the UI
- Run WebOS Quick Install
- Click Tools -> Tweaks
- Any time you check or uncheck something, the Pre UI will reload. This takes some time, and when it comes back you have to re-click "Just Charge."
- Suggestions
- Squarify the screen (for the Terminal)
Tips
- Copy one or more files to the Pre
scp -P 222 $LOCALFILE $USER@$IP:/var/home/$USER
- 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