Magellan Linux

Diff of /alx-src/branches/alxconf_20060908/functions/config_x11.sh

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

revision 1585 by niro, Tue Nov 23 12:24:14 2010 UTC revision 1586 by niro, Fri Nov 26 09:32:30 2010 UTC
# Line 39  config_x11() Line 39  config_x11()
39   local xfconfig   local xfconfig
40   local HAS_VNC   local HAS_VNC
41   local HAS_REALVNC   local HAS_REALVNC
42     local HAS_TIGERVNC
43    
44   # xfree or xorg ?   # xfree or xorg ?
45   xserver="$(readlink /usr/X11R6/bin/X)"   xserver="$(readlink /usr/X11R6/bin/X)"
# Line 63  config_x11() Line 64  config_x11()
64   else   else
65   HAS_REALVNC="no"   HAS_REALVNC="no"
66   fi   fi
67    
68     if [ -f /usr/X11R6/lib/modules/extensions/libvnc.so ]
69     then
70     HAS_TIGERVNC="yes"
71     else
72     HAS_TIGERVNC="no"
73     fi
74    
75   # show which server we use   # show which server we use
76   echo -en ${COLOREDSTAR}"Using '${xserver}' as x11-server "   echo -en ${COLOREDSTAR}"Using '${xserver}' as x11-server "
# Line 74  config_x11() Line 82  config_x11()
82   elif [[ ${HAS_REALVNC} = yes ]]   elif [[ ${HAS_REALVNC} = yes ]]
83   then   then
84   echo "with realvnc enabled ..."   echo "with realvnc enabled ..."
85     elif [[ ${HAS_TIGERVNC} = yes ]]
86     then
87     echo "with tigervnc enabled ..."
88   else   else
89   echo "..."   echo "..."
90   fi   fi
# Line 95  config_x11() Line 106  config_x11()
106    
107   [[ ${HAS_VNC} = yes ]] && echo '    Load       "vnc"' >> ${xfconfig}   [[ ${HAS_VNC} = yes ]] && echo '    Load       "vnc"' >> ${xfconfig}
108   [[ ${HAS_REALVNC} = yes ]] && echo '    Load       "vnc"' >> ${xfconfig}   [[ ${HAS_REALVNC} = yes ]] && echo '    Load       "vnc"' >> ${xfconfig}
109     [[ ${HAS_TIGERVNC} = yes ]] && echo '    Load       "vnc"' >> ${xfconfig}
110    
111   echo 'EndSection' >> ${xfconfig}   echo 'EndSection' >> ${xfconfig}
112    
# Line 247  config_x11() Line 259  config_x11()
259   echo '        ViewPort    0 0' >> ${xfconfig}   echo '        ViewPort    0 0' >> ${xfconfig}
260   echo '    EndSubsection' >> ${xfconfig}   echo '    EndSubsection' >> ${xfconfig}
261    
262   if [[ ${HAS_REALVNC} = yes ]]   if [[ ${HAS_REALVNC} = yes ]] || [[ ${HAS_TIGERVNC} = yes ]]
263   then   then
264   echo '    Option "SecurityTypes" "VncAuth"' >> ${xfconfig}   echo '    Option "SecurityTypes" "VncAuth"' >> ${xfconfig}
265   echo '    Option "UserPasswdVerifier" "VncAuth"' >> ${xfconfig}   echo '    Option "UserPasswdVerifier" "VncAuth"' >> ${xfconfig}

Legend:
Removed from v.1585  
changed lines
  Added in v.1586