» Content »pkg://gtk-vnc-0.4.4.tar.bz2:456119
/ info downloads
README for plugin
by Richard W.M. Jones <email@example.com>
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 (http://multimedia.cx/diamondx/).
The code is not enabled by default. To enable, at the top-level
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 (gtk-vnc-plugin.so).
The 'make install' rule installs the plugin (gtk-vnc-plugin.so) in the
site-wide Mozilla plugins directory ($libdir/mozilla/plugins).
For a single user install you can also do this:
cp gtk-vnc-plugin.so $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:
File name: gtk-vnc-plugin.so
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:
Both host and port are required, otherwise the plugin (currently)
won't do anything.
* Try to get it working in other browsers.
* Compile on Windows.
* Get desktop-resize working properly.
* 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
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 1Search over 15 billion files
© 1997-2017 FileWatcher.com