For anyone who wants this i thought it would be a nice addition to the
ltsp code.

It enables you to have a XDMCP chooser on a per-workstation basis, be
sure to adjust your gdm.conf accordingly.

This modification is for rc.local in your /opt/ltsp/i386/etc directory.

Change the lines that read:

            if [ -w /proc/progress ]; then
               echo "/usr/X11R6/bin/${XBINARY} ${XOPTS} ${ACC_CTRL}
-indirect ${XDM_SERVER} >/dev/tty3 2>&1" >/tmp/start_ws
           else
               echo "/usr/X11R6/bin/${XBINARY} ${XOPTS} ${ACC_CTRL}
-indirect ${XDM_SERVER}" >/tmp/start_ws
           fi


To this code:

   CHOOSER=`get_cfg CHOOSER N`
    if [ "${CHOOSER}" = "Y" ]; then
            if [ -w /proc/progress ]; then
               echo "/usr/X11R6/bin/${XBINARY} ${XOPTS} ${ACC_CTRL}
-indirect ${XDM_SERVER} >/dev/tty3 2>&1" >/tmp/start_ws
           else
               echo "/usr/X11R6/bin/${XBINARY} ${XOPTS} ${ACC_CTRL}
-indirect ${XDM_SERVER}" >/tmp/start_ws
           fi
    else

           if [ -w /proc/progress ]; then
              echo "/usr/X11R6/bin/${XBINARY} ${XOPTS} ${ACC_CTRL}
-query ${XDM_SERVER} >/dev/tty3 2>&1" >/tmp/start_ws
           else
              echo "/usr/X11R6/bin/${XBINARY} ${XOPTS} ${ACC_CTRL}
-query ${XDM_SERVER}" >/tmp/start_ws
           fi

    fi


Then you can add CHOOSER = Y under each workstation section of your
lts.conf to enable a chooser for the workstation.

-- 
Enslaver <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to