I figured I would post this in case anyone else might find it helpful. I been wanting to be able to access my user's sessions remotely and managed to get VNC to do it for me. I downloaded RealVNC 4.1.2. I installed it in /usr/local/bin and created the password file under /usr/local/etc/vnc/passwd. I then added the following to my /etc/dt/config/Xsession.d/login.sh, which is a script I have that runs whenever a user logs in.
Probably not the greatest security practice in the world, but I made the passwd file 640 and set x0vncserver with a guid.
Now if someone is having a problem I run another script that connects up automatically and I can see what they are doing.
Code:
VNCDISPLAY=`who | grep dtlocal | grep $USER | awk '{print $6}' | sed 's/[()]//g'`
VNCPORT=`echo $VNCDISPLAY | sed 's/://g'`
if [ "${VNCPORT}" -lt "9" ] ; then
VNCPORT=0${VNCPORT}
fi
/usr/local/bin/x0vncserver -rfbport 59$VNCPORT -display $VNCDISPLAY -PasswordFile /usr/local/etc/vnc/passwd &
Probably not the greatest security practice in the world, but I made the passwd file 640 and set x0vncserver with a guid.
Now if someone is having a problem I run another script that connects up automatically and I can see what they are doing.
Code:
/usr/local/bin/vncviewer -FullColor -PasswordFile /usr/local/vnc/passwd servername:display