Filewatcher File Search File Search
Content Search
» » » » gtk-vnc-0.4.0.tar.gz » Content »
pkg://gtk-vnc-0.4.0.tar.gz:675623/gtk-vnc-0.4.0/plugin/  info  downloads


  README for plugin
  by Richard W.M. Jones <>

This is a web browser plugin featuring a Gtk VNC widget which can be
embedded in a web page.

This code is primarily an example of how to write such a plugin.  You
could use it directly, but it's more likely that you'll want to
customise it for particular situations.

The plugin supports all browsers which supply the NPAPI and XEmbed
APIs.  This includes all modern Mozilla/Firefox-derived browsers on
Unix, and [untested] WebKit-based browsers (eg. Konqueror, Safari) and

All the code is based on Adobe's demonstration XEmbed-based browser
called DiamondX (


The code is not enabled by default.  To enable, at the top-level
directory do:

  ./configure --enable-plugin

You will need the following APIs/header files for this to work:

  npapi.h           (from a Firefox or Mozilla development package)


  X11/Xlib.h        (X11 development package)

  NSPR              (Netscape Portable Runtime development package)

Other plugins usually come with their own npapi.h and npupp.h, copied
from the Mozilla source code.  However since in Fedora we ship a
'firefox-devel' package which contains these headers (albeit in a
rather inconvenient location), I have not duplicated them here.

If configuration was successful then the usual 'make' at the toplevel
will build the plugin (


The 'make install' rule installs the plugin ( in the
site-wide Mozilla plugins directory ($libdir/mozilla/plugins).

For a single user install you can also do this:

  cp $HOME/.mozilla/plugins

For other browsers, you'll need to find out where they keep their


Restart your browser.  In the location bar, type:


Amongst your other plugins you should see the GTK-VNC plugin:

  GTK-VNC plugin

  File name:
  VNC (remote desktop) viewer plugin

  MIME Type              Description    Suffixes        Enabled
  application/x-gtk-vnc  VNC viewer     gtk-vnc         Yes

If that appears, then next edit the test.html page in the current
directory.  You will need to change the source of this page to point
to a working VNC server (eg. a machine on your local network).

Then load the edited 'test.html' page into your browser, and you
should see a VNC widget and the desktop of the remote server.


The basic embedding HTML code is:

  <embed type="application/x-gtk-vnc"
    host="" port="5900">

Both host and port are required, otherwise the plugin (currently)
won't do anything.

Future work

* Try to get it working in other browsers.
* Compile on Windows.
* Get desktop-resize working properly.
* Allow remote control from Javascript.
* Allow authentication methods to be specified as parameters.


If you install this plugin, then any web page could invoke it.

Specific security implications of this are:

(1) Malicious web page could cause your browser to connect to any IP
address/port, even addresses behind a firewall.  If you allow the
plugin to be controlled by Javascript, and to communicate back
success/failure indications, then this would allow a hacker to probe
ports which they might otherwise not have access to.

(2) A web page could connect to a malicious VNC server.  The Gtk-VNC
widget is not hardened against responses from malicious VNC servers
which might provide faulty responses, causing Gtk-VNC to crash or be
Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2017