Prev | Current Page 309 | Next

Chris Tyler

"X Power Tools"

..which hasn??™t started yet! It??™s the classic chicken-andegg
problem.
The solution is to serve the web page and Java applet from a normal web server. In
order to run as an applet in the default Java security model, the VNC server will have
to be on the same system as the web server.
14.12
14.12 Accessing VNC Securely Using SSH 205
To configure this using Apache:
1. Create a new subdirectory within your Apache DocumentRoot (or any directory
served by Apache):
blue$ mkdir vnc
2. Copy the VNC Java applet files to that directory:
blue$ cp /usr/share/vnc/classes/* vnc
3. Rename the index.vnc file to index.html and hardcode any values that would normally
be substituted if the page was served by the Xvnc web server??”so, all of
the strings starting with $. For the applet HEIGHT, use the height of the Xvnc
server geometry, plus 20 pixels for the Java applet??™s controls (which will appear
at the top of the display). For example, to adjust the TightVNC version of the
page for use with an 800 ?— 600 server on port 5940:

<br>VNC Remote Acces<br>
WIDTH=800 HEIGHT=620>




297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321