8 &GetOptions("port=i"=>\$port, "password=s"=>\$password);
10 if (!on_path("v3_x0vncserver")) {
11 print "You do not have v3_x0vncserver available on your PATH.\n";
12 print "v3_vncserver requires this functionality.\n";
13 print "You probably need to add .../palacios/linux_usr to your path\n";
14 print "Or you need to build v3_x0vncserver.\n";
18 $#ARGV==0 or die "usage: v3_vncserver [--port=port] [--password=password] /dev/v3-vmN\n";
25 system "echo \"$password\" | vncpasswd -f > ./.vncpasswd";
27 system "v3_x0vncserver --PasswordFile=./.vncpasswd -rfbport $port $vm >/dev/null 2>&1 & echo \$! > ./.vncpid";
29 print STDERR "pid of server is stored in ./.vncpid\n";
30 print "You can now connect to port $port with password \"$password\"\n";
33 my $x = `which $_[0] 2>&1`;
34 if (!defined($x) || $x=~/no $_[0] in/) {