Fix rvid to VNC VMs for broader support of VNC clients, restoring some distros back

to working

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11557 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-02-11 13:49:33 +00:00
parent 0dbb16f638
commit 171220b2b5

View File

@ -13,9 +13,12 @@ if [ $rvid_vidproto = "vnc" ];then
export VNC_VIA_CMD='/usr/bin/ssh -o BatchMode=yes -f -L "$L":"$H":"$R" "$G" sleep 20'
(
flock 200
echo $rvid_password|vncviewer :$myport -via $rvid_server AutoSelect=0 FullColor=1 passwdInput=1 >& /dev/null &
echo -e "$rvid_password\n$rvid_password"|vncpasswd /tmp/rvidpass.$$ > /dev/null
#echo $rvid_password|vncviewer :$myport -via $rvid_server AutoSelect=0 FullColor=1 passwdInput=1 >& /dev/null &
vncviewer $rvid_server:$myport AutoSelect=0 FullColor=1 passwd=/tmp/rvidpass.$$ >& /dev/null &
sleep 0.2
flock -u 200
rm /tmp/rvidpass.$$
) 200> /tmp/xcat/virtvnclock
elif [ $rvid_vidproto = "spice" ]; then
SPICEC="/usr/bin/spicec"