Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: przemek@rrdbartok.nist.gov (Przemek Klosowski)
Subject: Re: XDM doesn't start mwm when using MIT-MAGIC-COOKIE-1 access control
Date: Wed, 12 Jan 1994 20:32:46 GMT	[thread overview]
Message-ID: <PRZEMEK.94Jan12153246@rrdbartok.nist.gov> (raw)
In-Reply-To: pjt@pelab.allied.com's message of 7 Jan 94 07:19:25 MST

In article <1994Jan7.071926.134@vaxb.phx1.aro.allied.com> pjt@pelab.allied.com (Philip J. Tait) writes:

   Environment: DECstation 5000/200CX, RISC Ultrix 4,.3 (X11R4) and Motif 1.1.2

   Prompted by a Tcl/Tk upgrade, we changed from using xhost authorisation to
   MIT-MAGIC-COOKIE-1.  Method (gleaned from Tcl FAQ and O'Reilly Vol. 8):

My situation exactly. Did you change /usr/lib/X11/xdm/Xsession to run
your window manager?  Mine is enclosed at the end; note the trick with
( ) wait, to prevent creation of zombies. Other than that, xdm should
create the initial ~/.Xauthority file, and you are responsible for
propagating it to other hosts that you want to access your display
from.  Note that Ultrix 4.2 did not have MIT-COOKIE method compiled
into X libraries, so that 4.2 clients could not access server running
this authorization method. VMS is plain out of the question, although
I do manage to open windows from VMS systems, by doing explicit
  xhost +VMSHOST (on my machine)
  running the program (on VMS)
  xhost -VMSHOST
i.e., xhost and xauth are not mutually exclusive, although Tk will check
to make sure that xhost does not allow any hosts.

			przemek klosowski (przemek@rrdstrad.nist.gov)
			Reactor Division (bldg. 235), E111
			National Institute of Standards and Technology
			Gaithersburg, MD 20899,      USA

			(301) 975 6249 tel
			(301) 921 9847 fax



#!/bin/sh5
#
# Xsession
#
# This is the program that is run as the client
# for the display manager.  This example is
# quite friendly as it attempts to run a per-user
# .xsession file instead of forcing a particular
# session layout
#

# If there's error in ~/.xsession, type F1 in the login window; the default
# translations will cause this file be called with an argument "failsafe"
case $# in
1)
	case $1 in
	failsafe)
		exec xterm -geometry 80x24-0-0 -ls
		;;
	esac
esac

# If normal authentication, will end up here (no extra parameters)
startup=$HOME/.xsession
resources=$HOME/.Xresources

if [ -f $startup ]; then
	# exec $startup
	exec /bin/sh $startup
else
	# execute children in background, wait for all
	(
	if [ -f $resources ]; then
		xrdb -load $resources
	else
		resources=/usr/lib/X11/xdm/.Xresources
		if [ -f $resources ]; then
			xrdb -load $resources
		fi
	fi
	/usr/bin/X11/mwm &
	sleep 1; /usr/bin/X11/xmodmap -e "keycode 10 = Escape"   &
	sleep 1; /usr/bin/X11/xinfo -geometry 570x555+400-0 -iconic -fn 8x13 &
        ) & wait $!

#      "login" xterm with smooth scrolling and scroll bars, 
#       font for Xterms comes from resources, set in ./.Xresources
	exec xterm -geometry 80x24+10+10 -ls +j -sb
fi
--
			przemek klosowski (przemek@rrdstrad.nist.gov)
			Reactor Division (bldg. 235), E111
			National Institute of Standards and Technology
			Gaithersburg, MD 20899,      USA

			(301) 975 6249 tel
			(301) 921 9847 fax


      reply	other threads:[~1994-01-12 20:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-01-07 14:19 XDM doesn't start mwm when using MIT-MAGIC-COOKIE-1 access control Philip J. Tait
1994-01-12 20:32 ` Przemek Klosowski [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox