450 pixels is too short. Making it not hard-coded would be nice, though.
[invirt/packages/invirt-web.git] / templates / vnc.tmpl
index 752f784..a0b8b01 100644 (file)
@@ -7,16 +7,23 @@ Console to $machine.name
 
 #def body
 <h1>Console</h1>
+#if not $on
+<p> Your machine appears to be off.</p>
+#else if not $has_vnc
+<p> Your machine appears to not be accepting VNC connections. Perhaps you have a ParaVM machine?</p>
+#end if
 <p>Here is a console to ${machine.name}.</p>
-<APPLET CODE="VncViewer.class" ARCHIVE="../VncViewer.jar"
-        WIDTH="800" HEIGHT="632">
+<APPLET CODE="VncViewer.class" ARCHIVE="https://$hostname:446/static/VncViewer.jar"
+        WIDTH="100%" HEIGHT="1000">
+<PARAM NAME="PASSWORD" VALUE="moocow">
 <PARAM NAME="PORT" VALUE="10003">
 <PARAM NAME="HOST" VALUE="$hostname">
 <PARAM NAME="VMNAME" VALUE="$machine.name">
 <PARAM NAME="AUTHTOKEN" VALUE="$authtoken">
 <PARAM NAME="SocketFactory" VALUE="VNCProxyConnectSocketFactory">
 </APPLET>
-<!-- 
+<p><strong>Tip:</strong> At a Linux boot prompt, try setting <tt>fb=false</tt> to disable the framebuffer.  If you don't, your machine will run just fine, but this applet's display of the console will suffer artifacts.</p>
+#*
 java VncViewer HOST black-mesa PORT 10003 VMNAME tabbott_test AUTHTOKEN quentin SocketFactory VNCProxyConnectSocketFactory
--->
+*#
 #end def