Prev | Current Page 311 | Next

Chris Tyler

"X Power Tools"


An SSH-enhanced version of the TightVNC Java applet is available
from the SSHTools project at http://sourceforge.net/projects/sshtools/??”
however, that project is not currently being maintained.
14.13 Embedding an X Application in a Web Page
Web applications have traditionally been designed around page-based interaction:
the server sends a page, the user fills in a form or clicks on a link, and then the server
sends another page. Ajax and similar approaches provide a more interactive
approach, but sometimes it would be ideal if we could embed remote access to a single
existing application into a web page??”for example, an interactive database
lookup application or a system monitoring tool. With a little scripting, VNC can do
the job.
Figure 14-1 shows an example: xboard and gnuchess embedded in a web page.
Any graphical X client can be embedded into a web page this way as long as Xvnc
runs on the same host as the web server in order to conform to the default Java
applet security model. Embedding the program requires you to define the embedded
program as a service on the host.
First, to set up the web page, create a subdirectory that is served by your web server
and place the VNC Java applet files in that subdirectory:
blue$ mkdir /ApacheDocumentRoot/chess
blue$ cp /usr/share/vnc/classes/* /ApacheDocumentRoot/chess
Create an index page (index.


Pages:
299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323
wyciągarki wróżby miłosne cukiernia-stykowscy.pl salon kosmetyczny kraków pompy ciepła