SUMMARY: Help with xdm on Solaris 2.3

From: Robert Kline (
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: (Richard Mauri)
Geoff Mellor <> (Johnny Hui) (David Robson) (Dirk Everling)
lab@Access.COM (Larry Blom) (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

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 ------------------------------------
# xdm-setup

OPENWINHOME=/usr/openwin; export OPENWINHOME

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

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

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

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

  echo "Usage: /etc/init.d/xdm-setup { start | stop }" >&2
-------------------------- 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

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