If you're already a member of the webOS 2.0 Early Access program, then you've already got all the tools you need to dive in to this workshop. Otherwise, here's what you need to do to get set up:
- Visit developer.palm.com and click Download SDK
- Follow the directions for your operating system to install the SDK and VirtualBox
- Download this backported version of node that works on webOS v1.4.5
- Start the emulator by typing
palm-emulator
or clicking on the icon it installed (depending on your OS) - Open a terminal and type
novaterm
to open a shell on the emulator - Change to the internal drive:
cd /media/internal
- Download the zip file to the emulator/phone:
wget http://nodejs.org/nodeFor145.tar.gz
- Unzip the file:
tar -xzvf nodeFor145.tar.gz
- Install node by creating prepending it to the system path:
echo "export PATH=/media/internal/node/bin:\$PATH" >> /etc/profile
- Log out with Control+d and log back in with
novaterm
- Verify it works by typing:
which node
(If you're on an actual device, there are alternate binaries in the node/bin folder)
To forward port 9000 from the emulator to your local computer do this:
VBoxManage setextradata "SDK 1.4.5.465 (320x400)" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 9000
VBoxManage setextradata "SDK 1.4.5.465 (320x400)" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 9000
VBoxManage setextradata "SDK 1.4.5.465 (320x400)" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP
Once you have typed the above commands, you need to close the Guest Machine (a reboot won't be sufficient).