Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/tigervnc/vnc.client.class.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

mcore-src/trunk/mcore-tools/daemon/client/include/vnc.client.class revision 2070 by niro, Wed May 8 16:00:40 2013 UTC mcore-src/trunk/mcore-tools/src/modules/tigervnc/vnc.client.class.in revision 2171 by niro, Fri Jan 10 14:10:21 2014 UTC
# Line 37  helper_vnc_enable() Line 37  helper_vnc_enable()
37   local CONFIG="${MROOT}/${MCORE_CONFIG_PATH}/xorg/screen/99-vnc.conf"   local CONFIG="${MROOT}/${MCORE_CONFIG_PATH}/xorg/screen/99-vnc.conf"
38   clearconfig   clearconfig
39   addconfig ' Option "SecurityTypes" "VncAuth"'   addconfig ' Option "SecurityTypes" "VncAuth"'
40          addconfig ' Option "UserPasswdVerifier" "VncAuth"'   addconfig ' Option "UserPasswdVerifier" "VncAuth"'
41          addconfig ' Option "PasswordFile" "/root/.vnc/passwd"'   addconfig ' Option "PasswordFile" "/root/.vnc/passwd"'
42    
43   # requires graphic!   # requires graphic!
44   helper_graphic_rebuild_xorg_conf_d   helper_graphic_rebuild_xorg_conf_d
# Line 109  get_vnc_passwd() Line 109  get_vnc_passwd()
109  set_vnc_passwd()  set_vnc_passwd()
110  {  {
111   local pass="$1"   local pass="$1"
112   local vncpasswd="${MROOT}/root/.vnc/passwd"   local vncconfigdir="${MROOT}/root/.vnc"
113     local vncpasswd="${vncconfigdir}/passwd"
114   [[ -z ${pass} ]] && help_vnc_passwd && return 1   [[ -z ${pass} ]] && help_vnc_passwd && return 1
115     [ -d ${vncconfigdir} ] || install -d ${vncconfigdir}
116    
117   vncpasswd "${vncpasswd}" > /dev/null << EOF   vncpasswd "${vncpasswd}" > /dev/null << EOF
118  ${pass}  ${pass}

Legend:
Removed from v.2070  
changed lines
  Added in v.2171