SUMMARY: xdm not working at boot time

From: Meystel (meystel@cerebrum.impaqt.drexel.edu)
Date: Fri Sep 23 1994 - 03:07:20 CDT


Hello,

I have an answer to my question about why xdm did not start up properly.

Thanks to all who responded:

  Johnny.Hui@artecon.com (Johnny Hui)
  Chris_Terry/Computervision@ausns1.cv.com (Chris Terry)
  gnb@melba.bby.com.au (Gregory Bond)
  fetrow@biostat.washington.edu (Dave Fetrow)
  ray@isor.vuw.ac.nz (Ray Brownrigg)
  johnb@blas.cis.mcmaster.ca (E. John Benhamins)

The original question was:

> I have a SS10, Solaris 1.1.1, with a Tektronix X-term. I am trying to use
> xdm (X Display Manager) to manage the X-term.
>
> If I start xdm from /etc/rc (the last thing in the rc before it prints the
> date), the xdm daemon starts up fine (i.e., it does run), and the child
> process for my X-term starts up, but when I try to log in to the Xterm, it
> lets me type the username and password, and then just dumps me back to the
> login prompt again.
>
> However -- if I start xdm by hand from the command line on the SS10, I can
> login to the X-term, and everything works.
>
> I start xdm the same exact way from the /etc/rc script, and from the command
> line, yet it only works properly if started from the command line.
>
> Has anyone ever encountered this before? Is there a reason for it? Is there
> a way for me to start the xdm at boot time and have it work properly?

Essentially the problem which was occurring was that xdm was trying to start
up while not having the OPENWINHOME environment variable set.

One answer was to put the following lines in the rc file:

> OPENWINHOME=/usr/openwin
> export OPENWINHOME
> if [ -x $OPENWINHOME/bin/xdm ]; then
> $OPENWINHOME/bin/xdm -config $OPENWINHOME/lib/xdm/xdm-config
> echo -n ' xdm'
> fi

Another suggestion, which is what I wound up doing, is to run a script
from the rc file, along the following lines:

> if [ -f /etc/rc.xdm ]; then
> echo "Starting X Display Manager"
> sh /etc/rc.xdm
> fi

Where the script looks like this:

> #!/bin/sh
> #
> # @(#)rc.xdm 1.0 26/02/92 -- johnb CIS
> #
> OPENWINHOME=${OPENWINHOME:-/usr/openwin}
> LD_LIBRARY_PATH=$OPENWINHOME/lib:/usr/lib
> PATH=$OPENWINHOME/bin:$PATH
> export LD_LIBRARY_PATH PATH OPENWINHOME
>
> $OPENWINHOME/bin/xdm -config $OPENWINHOME/lib/xdm/xdm-config

Thanks again,

Mike



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:09:10 CDT