/vnc-over-gif

Primary LanguageJavaScript

vnc-over-gif

Serves screen updates as animated gif over http. Based on node-gif by Peteris Krumins and node-rfb2

Requirements

  • running vnc server
  • node 0.8 (see issue #2)
  • netscape 2.0+

Installation

npm install -g vnc-over-gif

Usage

start server:

$> PORT=4455 vnc-over-gif

open url in the browser - http://localhost:4455/screen.gif?host=localhost&port=5900&password=secret

Interactivity

Preliminary support has been added for keyboard and mouse interactivity. To use, load the js.html file instead, like so:

http://localhost:4455/js.html?host=localhost&port=5900&password=secret

  • requires Javascript, US layout keyboards
  • events (including keystrokes) are sent to the remote server only when the mouse cursor is over the GIF image (otherwise they're sent to the browser).
  • browser-recognised keystrokes (like Ctrl-N, Ctrl-T, etc) will only be passed through by Firefox -- other browsers don't allow these to be overridden and will fire their usual browser actions.

FAQ

Here

Links

HN discussion

Inspired by this tweet

Animated gif as data transport

Animated gif binary format

JS-only gif encoding libraries: gif.js, omggif

Bitdeli Badge