Instruction of using Haiku remote desktop

I was able to make this work by slightly modified original instructions.

Setup
On haiku box:

  1. git clone https://github.com/novnc/websockify.git

On another box:

  1. wget https://git.haiku-os.org/haiku/plain/src/tools/html5_remote_desktop/HaikuRemoteDesktop.html
  2. wget https://git.haiku-os.org/haiku/plain/src/tools/html5_remote_desktop/HaikuRemoteDesktop.js

Usage
On haiku box

  1. cd websockify
  2. python3 -m websockify 5000 localhost 5001
  3. (From another terminal) TARGET_SCREEN=5001 Terminal (Can be another application than Terminal)

On other box

  1. Open HaikuRemoteDesktop.html in a browser
  2. Type in host ip and port (5000) and connect

Note
If you’re running haiku in a VM with a NAT network card setup you will need to set up port forwarding. In virtual box:

  1. Open VM settings, click network, then advanced:
  2. Click port forwarding, and add a new rule like below (replace with actual guest IP if it is different).
  3. This rule routes port 5000 on the guest (haiku VM) to 127.0.0.1:2222 (localhost port 2222). So now on the host machine the RD can be accessed by putting 127.0.0.1:2222 into the remote desktop html
    image
  4. Voila
4 Likes