SUMMARY: Help with xdm on Solaris 2.3

From: Robert Kline (rkline@spock.wcupa.edu)
Date: Sat Aug 13 1994 - 05:00:30 CDT


My question was:

> Does anyone out there know how to get xdm running on Solaris 2.3?
> I've tried several experiments and tried to RTFM, but I can't seem
> to get it to work.

Thanks to the following people who responded:

Andrej.Misik@fmph.uniba.sk
richm@netcom.com (Richard Mauri)
Geoff Mellor <grm@star.le.ac.uk>
Johnny.Hui@artecon.com (Johnny Hui)
dave@lpdwhy.bhp.com.au (David Robson)
everling@iis.fhg.de (Dirk Everling)
lab@Access.COM (Larry Blom)
poc@usb.ve (Patrick O'Callaghan)

Several people sent me the xdm FAQ which was very helpful. Getting xdm to
run on Solaris 2.3 worked pretty much as stated in the FAQ. The main
problem I had was that it would not use my .xinitrc file because it happened
to not be executable. Without xdm, .xinitrc apparently only needed to be
readable.

Here are the steps I did to get xdm running:

1. Remove the last line from /etc/inittab:

co:234:respawn:/usr/lib/saf/ttymon -g -h -p "`uname -n` console login: " -T sun -d /dev/console -l console -m ldterm,ttcompat

   (This step was not explicitly mentioned in the FAQ)

2. Create a start/stop script for xdm and put it in to /etc/init.d. The
   one I created was basically the one given in the xdm.faq.

-------------------------- script ------------------------------------
#!/bin/sh
#
# xdm-setup

OPENWINHOME=/usr/openwin; export OPENWINHOME
LD_LIBRARY_PATH=$OPENWINHOME/lib; export LD_LIBRARY_PATH

XDM_PID=`cat /var/tmp/xdm-pid 2>/dev/null`

xdm_running () {
  ps -p $XDM_PID > /dev/null 2>&1
}

case "$1" in
start)
  if xdm_running; then
    echo "xdm is already running" >&2
  else
    echo "starting xdm" >&2
    $OPENWINHOME/bin/xdm -config $OPENWINHOME/lib/xdm/xdm-config
  fi
  ;;

stop)
  if xdm_running; then
    echo "stopping xdm" >&2
    kill $XDM_PID
  else
    echo "xdm is not running" >&2
  fi
  ;;

*)
  echo "Usage: /etc/init.d/xdm-setup { start | stop }" >&2
  ;;
esac
-------------------------- end script ---------------------------------

3. In /etc/rc3.d:

           ln /etc/init.d/xdm-setup S99xdm
           ln /etc/init.d/xdm-setup K99xdm

then reboot.

4. Make sure .xinitrc is executable. You may have to copy the file
   $OPENWINHOME/lib/Xinitrc into your home directory as .xinitrc
   or modify the file $OPENWINHOME/lib/xdm/Xsession to force xdm
   to use $OPENWINHOME/lib/Xinitrc as its startup file.

==============================================
Robert Kline
Computer Science Department
West Chester University
West Chester, PA 19383
Phone: 610-436-2181
e-mail: rkline@wcupa.edu
==============================================



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