Punt the "moocow" VNC password - it's dumb, and we already have our
[invirt/scripts/vnc-client.git] / invirt-vnc-client
index ad5cce2..186a0a8 100755 (executable)
@@ -159,12 +159,12 @@ def main():
             sys.exit(2)
         from subprocess import PIPE, Popen
         try:
-            p = Popen(["remctl", "remote", "control", args[0], "vnctoken"],
+            p = Popen(["remctl", "xvm-remote.mit.edu", "control", args[0], "vnctoken"],
                       stdout=PIPE)
         except OSError:
             if verbose: print "remctl not found in path. Trying remctl locker."
             p = Popen(["athrun", "remctl", "remctl",
-                       "remote", "control", args[0], "vnctoken"],
+                       "xvm-remote.mit.edu", "control", args[0], "vnctoken"],
                       stdout=PIPE)
         authtoken = p.communicate()[0]
         if p.returncode != 0:
@@ -201,7 +201,8 @@ def main():
     else:
         reactor.listenTCP(listen[1], ProxyFactory(connect_host, connect_port, authtoken, machine))
     
-    print "Ready to connect. Connect to %s:%s (display %d) now with your VNC client. The password is 'moocow'." % (listen[0], listen[1], listen[1]-5900)
+    print "Ready to connect. Connect to %s:%s (display %d) now with your VNC"
+    print "client. There should be no password." % (listen[0], listen[1], listen[1]-5900)
     print "You must connect before your authentication token expires at %s." % \
           (time.ctime(token_expires))