Using Palm Pre to test for usb networking
I have a headless box that isn't talking out its ethernet port. I wondered if it would network over usb. My Pre is on a NAT wifi network so I couldn't reach it directly.
1. Connect to pre with novaterm
root@palm-webos-device:/# ssh -f -N -n -R 9999:localhost:222 drewp@bigasterisk.com
2. On bigasterisk.com, ssh -p 9999 localhost
3. Unplug pre usb, take it to the computer for testing
4. On the new ssh connection, watch dmesg and ifconfig for action.
It might have been a bit easier to turn off pre wifi and ssh to it over the sprint network, although my connection would have been slower.
How to connect a Palm Pre to an IMAP account over SSL with a self-signed certificate
Self-sign a new certificate:
openssl genrsa -out self1-ca.key 1024
openssl req -new -key self1-ca.key -out self1-ca.csr
(common name is the same thing you'll put in the 'incoming mail server' hostname field, e.g. 'bigasterisk.com')
openssl x509 -req -days 3650 -in self1-ca.csr -signkey self1-ca.key -out self1-ca.crt
Plug the Pre into a USB port, mount the drive if needed:
sudo mount /dev/sdb /mnt
cp self1-ca.key /mnt/self1-ca.pem
Unplug Pre. Device Information app, More Info button, top menu, Certificate Manager. '+' icon in bottom-left; pick the self1-ca.pem file.
Back in the mail app, add an account, set incoming mail server 'encryption' field to SSL.
Related:
ssl configuration for dovecot IMAP server
more straightforward instructions on making a self-signed cert
Atom feed of this blog