Starting XDM at system boot (Solaris 2.2) ??

Starting XDM at system boot (Solaris 2.2) ??

Post by Ole Holm Niels » Wed, 12 Jan 1994 20:38:50



We have a problem starting XDM (patch 101135-01, "OpenWindows 3.2:
xdm does not support xdmcp, nor local passwords" installed) at system
boot time.  We're running Solaris 2.2.  We start xdm from the file
/etc/rc3.d/S21xdm, containing a line:

/usr/openwin/bin/xdm -config /usr/openwin/lib/xdm/xdm-config &

This process runs, but XDM login does not work.  Many times, the
xdm process eventually dumps core.  When I restart the process
manually a few minutes after system boot, it works flawlessly.

Could someone shed light on the proper way to start XDM (I may
misunderstand the right way to configure the /etc/rc?.d files) ?
The Sun documentation does not have any hints on this issue :-(

With best regards,
Ole H. Nielsen
Department of Physics, Building 307
Technical University of Denmark, DK-2800 Lyngby, Denmark

Telephone: (+45) 45 93 12 22 - 3187
Telefax:   (+45) 45 93 23 99

 
 
 

Starting XDM at system boot (Solaris 2.2) ??

Post by Ian Donalds » Thu, 13 Jan 1994 08:05:00



Quote:>We have a problem starting XDM (patch 101135-01, "OpenWindows 3.2:
>xdm does not support xdmcp, nor local passwords" installed) at system
>boot time.  We're running Solaris 2.2.  We start xdm from the file
>/etc/rc3.d/S21xdm, containing a line:
>/usr/openwin/bin/xdm -config /usr/openwin/lib/xdm/xdm-config &
>This process runs, but XDM login does not work.  Many times, the
>xdm process eventually dumps core.  When I restart the process
>manually a few minutes after system boot, it works flawlessly.
>Could someone shed light on the proper way to start XDM (I may
>misunderstand the right way to configure the /etc/rc?.d files) ?
>The Sun documentation does not have any hints on this issue :-(

The 101135-01 patch has been superceeded by -02.  

101135-02.tar.Z Solaris 2.2 (all arch)
1135722 xdm login window doesn't come back after 2 logins
1102326 XDM with solaris 2.0  is not able to support the "xdmcp"
        protocol for Xterminals

I have the following script in /etc/init.d/xdm, linked as such:

-rw-r--r--   3 root     other        670 Dec 24 10:23 /etc/init.d/xdm
-rw-r--r--   3 root     other        670 Dec 24 10:23 /etc/rc2.d/K80xdm
-rw-r--r--   3 root     other        670 Dec 24 10:23 /etc/rc3.d/S80xdm

------------
#!/bin/sh

case "$1" in
start)
        OPENWINHOME=/usr/openwin
        LD_LIBRARY_PATH=$OPENWINHOME/lib
        PATH="/usr/openwin/bin:/bin:/usr/bin:/etc"
        export OPENWINHOME LD_LIBRARY_PATH PATH

        /usr/openwin/bin/xdm
        echo Starting Sun X11 xdm.
        ;;
stop)

        pid=`ps -ef |grep /usr/openwin/bin/xdm | grep -v grep | awk '{print $2}'`
        case "$pid" in
        "")
                # not there
                ;;
        *)
                echo Stopping Sun X11 xdm.
                kill $pid
                ;;
        esac
        ;;
esac
---------------

Ian D

 
 
 

Starting XDM at system boot (Solaris 2.2) ??

Post by Tomasz Surma » Sat, 15 Jan 1994 05:33:04



| We have a problem starting XDM (patch 101135-01, "OpenWindows 3.2:
| xdm does not support xdmcp, nor local passwords" installed) at system
| boot time.  We're running Solaris 2.2.  We start xdm from the file
| /etc/rc3.d/S21xdm, containing a line:

| /usr/openwin/bin/xdm -config /usr/openwin/lib/xdm/xdm-config &

had the same problem on Sun 4.1.2 for a loooooong time.

My final solution in rc.local file:

#
# start xdm - display manager for Xterminals
#
echo Starting XDM...
( cd /usr/openwin/lib/xdm ;\
  OPENWINHOME=/usr/openwin  ;\
  LD_LIBRARY_PATH=/usr/openwin/bin:/usr/bin ;\
  export OPENWINHOME LD_LIBRARY_PATH ;\
  /usr/openwin/bin/xdm -config xdm-config \
)

The most important thing is:

Do not start it as /usr/openwin/bin/xdm -config /usr/openwin/lib/xdm/xdm-config
but: cd /usr/openwin/lib/xdm; /usr/openwin/bin/xdm -config xdm-config

ie. cd to the directory with the configuration file and then run
'xdm -config xdm-config'

Tomasz

--



 
 
 

1. Automatically starting xdm on boot, with a xdm-config file

I have 4 Sun SPARCstation IPCs, with limited hard drive space, running
Solaris 2.6, with
/usr and /opt and users home directories mounted from another machine.

I am able to start up xdm, with a login window with the attached
xdm-setup file, but when
I try to use the xdm-config file, it says it is going to start xdm, but
just stays as a text login
prompt.

I have both xdm-setup and xdm-config files located in /etc/init.d
directory.

In the /etc/rc3.d directory I have K99xdm and S99xdm files linked to
/etc/init.d/xdm-setup.

The reason I am trying to put the xdm-config file in a different place to
normal, is that /usr,
/opt, /opt2, /opt3, and the users home directories are mounted from a
seperate machine.

How do get xdm to startup on login using a xdm-config file?

[ XDM-CONF 1K ]
! $XConsortium: xdm-conf.cpp /main/3 1996/01/15 15:17:26 gildea $
DisplayManager.errorLogFile:    /var/log/xdm-errors
DisplayManager.pidFile:         /opt/X11R6.1/lib/X11/xdm/xdm-pid
DisplayManager.keyFile:         /opt/X11R6.1/lib/X11/xdm/xdm-keys
DisplayManager.servers:         /opt/X11R6.1/lib/X11/xdm/Xservers
DisplayManager.accessFile:      /opt/X11R6.1/lib/X11/xdm/Xaccess
DisplayManager.autoRescan:      true
! All displays should use authorization, but we cannot be sure
! X terminals will be configured that way, so by default
! use authorization only for local displays :0, :1, etc.
DisplayManager._0.authorize:    true
DisplayManager._1.authorize:    true
! The following three resources set up display :0 as the console.
DisplayManager._0.setup:        /opt/X11R6.1/lib/X11/xdm/Xsetup_0
DisplayManager._0.startup:      /opt/X11R6.1/lib/X11/xdm/GiveConsole
DisplayManager._0.reset:        /opt/X11R6.1/lib/X11/xdm/TakeConsole
!
DisplayManager*resources:       /opt/X11R6.1/lib/X11/xdm/Xresources
DisplayManager*session:         /opt/X11R6.1/lib/X11/xdm/Xsession
DisplayManager*authComplain:    false

[ XDM-SETU < 1K ]
#! /bin/sh
#
# xdm-setup -- script file to startup and stop xdm.

X11=/opt/X11R6.1; export X11
LD_LIBRARY_PATH=$X11/lib; export LD_LIBRARY_PATH

XDM_PID=`cat /usr/tmp/xdm-pid`

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
    $X11/bin/xdm -config /etc/init.d/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

2. Compile kernel problem.

3. Solaris 2.2: startup of xdm ?

4. Seeking advice for a test server

5. xdm for Solaris 2.2

6. double fs will not work

7. Xdm (Openwin 3.2 Solaris 2.2) not working ?

8. pay someone to install software?

9. XDM under Solaris 2.2.

10. Solaris 2.2/xdm question

11. xdm in solaris 2.2

12. Solaris 2.2 - xdm and chooser

13. Solaris 2.2 XDM patch 101135-02