1<!-- index.vnc - default html page for Java VNC viewer applet. On any file 2 ending in .vnc, the HTTP server embedded in Xvnc will substitute the 3 following variables when preceded by a dollar: USER, DESKTOP, DISPLAY, 4 APPLETWIDTH, APPLETHEIGHT, WIDTH, HEIGHT, PORT, PARAMS. Use two dollar 5 signs ($$) to get a dollar sign in the generated html. --> 6 7<HTML> 8<head> 9<TITLE> 10$USER's $DESKTOP desktop ($DISPLAY) 11</TITLE> 12</head> 13<APPLET CODE=VncViewer.class ARCHIVE=java-applet/VncViewer.jar 14 WIDTH=$APPLETWIDTH HEIGHT=$APPLETHEIGHT> 15<param name=PORT value=$PORT> 16<param name="Open New Window" value=yes> 17</APPLET> 18<br/> 19<br/> 20 21If the above Java applet does not work, you can also try the new JavaScript-only <a href="http://kanaka.github.com/noVNC/">noVNC</a> viewer. You will need a HTML5-capable browser though. 22<script language="JavaScript"> 23 <!-- 24 function start_novnc(){ 25 var host = document.location.hostname; 26 // If there are at least two colons in there, it is likely an IPv6 address. Check for square brackets and add them if missing. 27 if(host.search(/^.*:.*:.*$/) != -1) { 28 if(host.charAt(0) != "[") 29 host = "[" + host; 30 if(host.charAt(host.length-1) != "]") 31 host = host + "]"; 32 } 33 open("novnc/vnc_auto.html?host=" + host + "&port=$PORT&true_color=1"); 34 } 35 --> 36</script> 37<form name="novnc_button_form"> 38 <input type="button" name="novnc_button" value="Click here to connect using noVNC" onClick='start_novnc()'> 39</form> 40 41<br/> 42<br/> 43<br/> 44<A href="http://libvncserver.sf.net/">LibVNCServer/LibVNCClient Homepage</A> 45</HTML> 46