Thursday, December 29, 2011

Virtual Keyboard on #Pre2 #webOS

Testing this on my Pre2 running #webOS 2.2.4 and works fine, so far :)

See the forum thread here, check out the #1 post, then follow the detail steps below:
1. Download luna.conf.patch for webOS 2.x from Arthur Thornton (on that #1 post)
3. Download VKB-1.1.4.zip (also on that #1 post, depending on your webOS version)
4. Install luna.conf.patch to your Pre 2 using webOS Quick Install



5. Unzip VKB-1.1.4.zip, you've got VKB.sh and send that file to your Pre 2 (e.g to /media/internal)



6. Accessing linux in your Pre 2 using webOS Quick Install or novaterm through Windows Command Prompt / Linux Terminal
7. Go to /media/internal directory: # cd /media/internal
8. Run this command: # VKB.sh -patch
9. Your Pre 2 will boot automatically
10. You've got the Virtual Keyboard by swiping up from gesture area

Tuesday, December 27, 2011

Live Partitioning HP TouchPad #webos

You can see the source of this blogpost here. I just re-write on my blogpost according to my own experience, trials and errors :)

I assume that you already have all requirement to connect to your TouchPad (Palm SDK, Linux Access, etc.)

Here's what you have to do:
1. Check the actual space used by /media/internal, write down or take screenshot
# df -h | grep internal

 2. Disconnect cryptofs
# pkill -SIGUSR1 cryptofs
3. Unmount /media/internal
# umount /media/internal
4. Verifying you have clean filesystem, before resizing (in my case, there are differences between boot sector and its backup, but I just choose 'no action' )
# /usr/sbin/fsck.vfat /dev/mapper/store-media
5. Verify how much space used by /media/internal
# lvscan | grep media

6. Decide and take space allocated for ext3fs partition (I took 2GB ext3fs partition for DebianChroot, so I resize /dev/mapper/store-media became 10.64G, from 12.64G)
# resizefat /dev/mapper/store-media 10.64G

7. # lvresize -L 10.64G /dev/mapper/store-media

8. Use free 2G partition to make ext3fs partition
# lvcreate -l 100%FREE -n ext3fs store
9. Format the partition with ext3 filesystem
# mkfs.ext3 /dev/mapper/store-ext3fs
10. Make the filesystem writable
# mount -o remount,rw /
11. Make mount directory
# mkdir /media/ext3fs
12. Add a line in /etc/fstab to automount ext3fs partition on boot up
# echo "/dev/mapper/store-ext3fs /media/ext3fs auto noatime 0 0" >> /etc/fstab
13. Make the filesystem back to read-only
# mount -o remount,ro /
14. Reboot
# reboot

That's it! And I'm pretty sure that you can apply this to any webOS devices :)

Thursday, October 27, 2011

Generate X.509 CER File For #webOS Using openssl

Recently I've got a problem with SSL certificate for outgoing mail server on my Palm Pre. Here's what the error look like:


I looked around in the internet to find a solutions, then I found this page (forgot about the link, but I'm certain that was Palm Support page) that says mail server's certificate should be in X.509 (CER) file format:


Already asked System Administrator to send me the file, but it takes too long. So initiatively I look another way to provide the certificate file myself, and I can do it using openssl command in Ubuntu Linux (You can use openssl in Windows as well). First, I create a script that generate the certificate I need from mail server, name the file any name you want (you can see in the script I used retrieve-cert.sh):
#!/bin/sh
#
# usage: retrieve-cert.sh remote.host.name [port]
#
REMHOST=$1
REMPORT=${2:-443}

echo |\
openssl s_client -connect ${REMHOST}:${REMPORT} 2>&1 |\
sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p'
Add execute (+x) on file properties, then run the files:
$ chmod + retrieve-cert.sh
$ ./retrieve-cert.sh mail.server.hostname 465 >> coid.cer
As you can see, I'm adding '>> mycert.cer' to save the results directly to mycert.cer file, at the command above. Sure I can add this to the script, but this way I can generate any file name I want :)

Then, you must convert that .cer file into X.509 format:
$ openssl x509 -in coid.cer -out coidx509.cer
And you're finish. You can send coidx509.cer file via email that already setup on your Pre, or you can transfer it via USB mode and open it using Internalz.

When you tap on that file, Certificates Manager window will open and ask what do you want to do with it:


Just tap on 'Trust Certificate'. If you want to see it later, open 'Device Info' on your launcher, then tap drop-down menu on top left, tap on 'Certificate Manager...'


That's it. I setup my mail account once again, and sure it can sent email without any error :)

Sunday, October 23, 2011

Recovery Mode in #webOS

Once, I had a difficulty to put my Pre in USB Update Mode. The usual way to turn off the device then turn it on again by holding down volume up button and power button didn't work. So I search the internet for any clue, and I found it here.

These what you need to do:
a. Connect the USB cable to the AC charger, then into a working outlet
b. Turn off your webOS device
c. Remove and reinsert the battery
d. Press and hold volume up button, and connect your USB cable (which already connected to AC charger and working outlet) to the device
Note: You can press and hold R key as an alternative to volume up button
e. Release the volume up button (or R key),  when the screen showing large USB icon







f. run webOS Doctor

I've tried this and it works. Hope this works for you, as well :)