Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Latest commit

 

History

History
33 lines (26 loc) · 1.64 KB

nodeFor145.markdown

File metadata and controls

33 lines (26 loc) · 1.64 KB

Node on WebOS

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:

  1. Visit developer.palm.com and click Download SDK
  2. Follow the directions for your operating system to install the SDK and VirtualBox
  3. Download this backported version of node that works on webOS v1.4.5
  4. Start the emulator by typing palm-emulator or clicking on the icon it installed (depending on your OS)
  5. Open a terminal and typenovaterm to open a shell on the emulator
  6. Change to the internal drive: cd /media/internal
  7. Download the zip file to the emulator/phone: wget http://nodejs.org/nodeFor145.tar.gz
  8. Unzip the file:
    tar -xzvf nodeFor145.tar.gz
  9. Install node by creating prepending it to the system path: echo "export PATH=/media/internal/node/bin:\$PATH" >> /etc/profile
  10. Log out with Control+d and log back in with novaterm
  11. 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).