[K12OSN] Re: "press enter to login"
Jack Palmadesso
jack.palmadesso at gmail.com
Mon Mar 20 19:52:04 UTC 2006
I'm using version 4.1.1 K12LTSP
I'm having some trouble getting the Citrix client to come up properly. I
used the script you sent Gideon but I get nothing by the "gray sceen" I can
see that X is coming up ok but where can I look to get more information
about what is going wrong? I can look in the /tmp/info directory on the
terminal but there is not much in there. What I'd really like to see is a
file someplace that tells me what was executed at the end of this whole
process.
Here is a copy of my citrix-screen file:
#!/bin/sh
#
# citrix
#
# citrix screen script for the linux terminal server project.
# This script lives in the /opt/ltsp/i386/etc/screen.d directory
#
# Call it through lts.conf with the `SCREEN_xx = citrix` option.
#
# You can pass options to citrix 2 different ways.
#
# 1) Place all of the options you want after the 'citrix' setting
# on the screen_script.
#
# For example:
#
# SCREEN_01 = citrix -u jam w2kserver.ltsp.org
#
#
# 2) Place the citrix options in the CITRIX_OPTIONS option
# and the name or IP address of the rdp server in
# the CITRIX_SERVER option.
#
# For example:
#
# CITRIX_OPTIONS = "-f -u jam"
# CITRIX_SERVER = w2kserver.ltsp.org
# SCREEN_01 = citrix
#
PATH=/bin:$PATH; export PATH
. /etc/ltsp_functions
#
# Get the lts.conf entries
#
eval `/bin/getltscfg -a`
CITRIX_OPTIONS=${CITRIX_OPTIONS:-""}
reg_info CITRIX_SERVER
reg_info CITRIX_OPTIONS
TTY=`/usr/bin/basename \`/usr/bin/tty\``
XFCFG=/tmp/XF86Config.${TTY}
export TTY
CITRIX_OPTIONS="${CITRIX_OPTIONS} $* ${CITRIX_SERVER}"
#
# Setup the DISP variable
#
export DISP=:$(expr ${TTY} - 1).0
################################################################################
#
# Setup the XF86Config file
#
XSERVER=${XSERVER:-"auto"}
if [ "${XSERVER}" = "auto" ]; then
echo "Scanning for video card"
XSERVER=`/sbin/pci_scan /etc/vidlist`
if [ -z "${XSERVER}" ]; then
echo
echo " ERROR: Auto probe of the video card failed !"
echo " You need to specify the proper X server in lts.conf"
echo
echo -n "Press <enter> to continue "
read CMD
exit 1
fi
fi
if [ "${XSERVER}" = "i810" ]; then
if [ ! -f /tmp/i810_loaded ]; then
modprobe agpgart
>/tmp/i810_loaded
fi
fi
if [ ! -z "${XF86CONFIG_FILE}" ]; then
#
# If XF86CONFIG_FILE is defined in the lts.conf file, then
# it points to an XF86Config file that is pre-made for a workstation
#
if [ -f /etc/${XF86CONFIG_FILE} ]; then
cp /etc/${XF86CONFIG_FILE} ${XFCFG}
else
echo
echo "Error! - ${XF86CONFIG_FILE} - File not found!"
echo
fi
else
#
# Build the XF86Config file from entries in the lts.conf file
# If it starts with 'XF86_', then we use XFree86 3.3.6. Otherwise,
# we use Xorg
#
case ${XSERVER} in
XF86_*) /etc/build_x3_cfg ${XSERVER} >${XFCFG}
;;
*) /etc/build_x4_cfg ${XSERVER} >${XFCFG}
;;
esac
fi
################################################################################
#
# Figure out how to run the X server
#
case ${XSERVER} in
XF86_*) XBINARY="${XSERVER}"
XOPTS=""
;;
Xvesa) XBINARY="Xvesa"
case "${X_MODE_0}" in
1280x1024) XOPTS="-shadow -mode 0x011A"
;;
1024x768) XOPTS="-shadow -mode 0x0117"
;;
800x600) XOPTS="-shadow -mode 0x0114"
;;
640x480) XOPTS="-shadow -mode 0x0111"
;;
*) XOPTS="-shadow -mode 0x0117"
;;
esac
;;
*) XBINARY="Xorg"
XOPTS=""
;;
esac
ACCESS_CONTROL=${DISABLE_ACCESS_CONTROL:-"N"}
if [ "${ACCESS_CONTROL}" = "Y" ]; then
ACC_CTRL="-ac"
else
ACC_CTRL=""
fi
clear
echo
echo
echo
echo
echo
echo
echo
echo
echo
echo
echo
echo
echo -n " Press <enter> to Login "
read
if [ -w /proc/progress ]; then
/usr/X11R6/bin/xinit /usr/bin/citrix.wrapper \
-log "" \
${CITRIX_OPTIONS} \
-- /usr/X11R6/bin/${XBINARY}\
${DISP} \
-xf86config ${XFCFG} \
vt${TTY} >/dev/null 2>&1
else
/usr/X11R6/bin/xinit /usr/bin/citrix.wrapper \
-f "" \
${CITRIX_OPTIONS} \
-- /usr/X11R6/bin/${XBINARY}\
${DISP} \
-xf86config ${XFCFG} \
vt${TTY}
fi
Here is the other relavent file citrix-wrapper:
#!/bin/sh
while true; do
/usr/lib/ICAClient/wfcmgr "$@"
done
I know the client works because I can execute it manually from the command
line on the server.
Jack
----------------------------------------------------------------------------------------------------------
On 3/17/06, Gideon Romm <ltsp at symbio-technologies.com> wrote:
>
> Jack-
>
> No problem. If you can, please post your version of K12LTSP, just so
> any future person searching these archives with the same problem will be
> able to find the solution easier.
>
> Cheers,
>
> -Gideon
>
> On Fri, 2006-03-17 at 08:46 -0500, Jack Palmadesso wrote:
> > Thanks a bunch. You must have been reading my mind or something
> > because I am very interested in these wrapper scripts. I have been
> > lucky enough to demo LTSP for the company I work for and I'd like to
> > have the ability to launch other applicatons like Citrix for example
> > for certain terminals. Some people want Linux, some want a Windows
> > terminal server and some want Citrix. LTSP can fit the bill on all of
> > these with a few servers and lots of old hardware nobody wants to use.
> >
> > Thanks again
> > Jack
> >
> > On 3/16/06, Gideon Romm <ltsp at symbio-technologies.com> wrote:
> > I figured I'd just send them along to the list.
> >
> > 1. Back up your /opt/ltsp/i386/etc/screen.d/rdesktop file
> > 2. Replace with the attached rdesktop-screen (remember to
> > chmod 755)
> > 3. place the rdesktop.wrapper file
> > in /opt/ltsp/i386/usr/bin (also,
> > chmod 755)
> >
> > Let 'er rip!
> >
> > -Gideon
> >
> > PS: Usual caveats about listening to some guy on the listserv
> > apply (in
> > terms of the computers coming to life and destroying the world
> > on
> > you...)
> >
> > On Thu, 2006-03-16 at 16:57 -0500, Gideon Romm wrote:
> > > Jack-
> > >
> > > This behavior has been changed since LTSP v. 4.1.1 (I'm not
> > sure what
> > > version you are using). In the latest version of LTSP, a
> > wrapper script
> > > is called that launches rdesktop again when it dies, so that
> > it does not
> > > kill the xserver.
> > >
> > > I can dig up the wrapper script and send it to you if you
> > like. Or, if
> > > you can, update to the latest version.
> > >
> > > Regards,
> > >
> > > -Gideon
> > >
> > > On Thu, 2006-03-16 at 15:37 -0500, Jack Palmadesso wrote:
> > > > Forget it. I now realize that it is nessasary to have
> > "press enter to
> > > > login" appear so as not to be constantly knocking on a W2k
> > terminal
> > > > servers door constantly. If a user get a terminal server
> > login but
> > > > does not do anything for few minutes then the terminal
> > server rightly
> > > > kicks the user off. when the user it kicked off it would
> > be "rude" to
> > > > just have the server automatically try and go back to the
> > login screen
> > > > when nobody was probably at the terminal to begin with.
> > > >
> > > > On 3/14/06, Jack Palmadesso <jack.palmadesso at gmail.com>
> > wrote:
> > > > I'm demoing LTSP to managment here tommorow. Some
> > of the
> > > > terminals will go directly to a W2k3 Terminal
> > server via the
> > > > setting in "lts.conf" That works fine but just
> > before X fires
> > > > up the terminal prompts the user to "press enter
> > to login".
> > > > Can I get around this and just have the terminal
> > go directly
> > > > in? I'm not complaining but it would just be alot
> > smoother to
> > > > have it bypass that requirement. Anybody have any
> > hints for
> > > > me on that one? I'll be demoing on 4.4.1
> > > >
> > > > Thanks,
> > > >
> > > > Jack
> > > >
> > > >
> > > > _______________________________________________
> > > > K12OSN mailing list
> > > > K12OSN at redhat.com
> > > > https://www.redhat.com/mailman/listinfo/k12osn
> > > > For more info see <http://www.k12os.org>
> > >
> > > _______________________________________________
> > > K12OSN mailing list
> > > K12OSN at redhat.com
> > > https://www.redhat.com/mailman/listinfo/k12osn
> > > For more info see <http://www.k12os.org>
> > >
> > >
> > --
> > --------------------------------------------------------
> > Gideon Romm | Product R&D gideon at symbio-technologies.com
> >
> > Symbio Technologies o:(914) 576-1205
> > 134 North Ave, Suites E&F f:(914) 576-0944
> > New Rochelle, NY 10801 c:(914) 774-4691
> >
> > www.symbio-technologies.com
> > www.thesymbiont.com
> >
> >
> > _______________________________________________
> > K12OSN mailing list
> > K12OSN at redhat.com
> > https://www.redhat.com/mailman/listinfo/k12osn
> > For more info see <http://www.k12os.org>
> >
> >
> >
> > _______________________________________________
> > K12OSN mailing list
> > K12OSN at redhat.com
> > https://www.redhat.com/mailman/listinfo/k12osn
> > For more info see <http://www.k12os.org>
> --
> --------------------------------------------------------
> Gideon Romm | Proud LTSP Developer
> ltsp at symbio-technologies.com
>
> Support LTSP! Buy your hardware at:
>
> www.DisklessWorkstations.com
> www.DisklessThinClients.com
>
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/k12osn/attachments/20060320/86783827/attachment.htm>
More information about the K12OSN
mailing list