From: darren@otop63.oto.dec.com (Darren Popham)
Subject: Re: login screen on Decwindows
Keywords: login screen, Decwindows,
Reply-To: darren@otop63.enet.dec.com
Organization: Digital Equipment Corporation, Ottawa Ontario, Canada
Date: Wed, 18 Nov 1992 20:08:32 GMT


In article <1992Nov17.100959.4912@maths.tcd.ie>, eorourke@maths.tcd.ie (Eugene O'Rourke) writes:
>From: eorourke@maths.tcd.ie (Eugene O'Rourke)
>Newsgroups: comp.unix.ultrix
>Subject: login screen on Decwindows
>
>Okay,
>I've tried setting 
>XSessionManagerlogoFullScreen: true
>
>but the logo still only shows above the login prompter.  Ideally, I
>would like to put a picture up on the entire login screen.   Does
>anybody have solutions in both variants, i.e. using xv to set a root
>window with a gif and using the postscript version, to put up a logo
>on the entire screen?  We are using DECwindows at the moment...
>
>
>Thanks in advance...
>
>Eugene O'Rourke
>
>


I see this question posted many times.  As such, here is how I changed
the root window of my login screen:

	1. obtained X11R5 source for xdm client (and perhaps the xconsole 
	   client), as well as the X11R5 libraries needed to link xdm. 

	2. from the "Languages and Programming Guide", Chapter 10, Security
	   Guidelines for Programmers, I used the example authentication
	   routine to verify passwords in environments in addition to the
	   base BSD level (make sure users are in authread group if not
	   using BSD level).

	3. moved the default /usr/bin/X11/xdm out of the way, as well 
	   as its /usr/lib/X11/xdm directory 

	4. installed the R5 xdm, as well as its /usr/lib/X11/xdm
           directory.

	5. edit the /usr/lib/X11/xdm/xdm-config file:
		I changed:
		    DisplayManager._0.authorize:    true
		to:
		    DisplayManager._0.authorize:    false

	6. I added a line in the Xsetup_0 file:
		/usr/local/bin/xv -root -quit /usr/lib/X11/xdm/logo.gif
	   this provided a nice background (my logo.gif file gives a
	   full screen blue spectrum).
	   You could add almost anything you want in this file.

	7. I changed Xservers to use the Xws server:
		:0 Local local /usr/bin/Xws :0

	8. I changed Xsession  from:
	       twm &
	       exec xterm -geometry 80x24+10+10 -ls
	   to:
	       /usr/local/bin/xv -clear
	       exec /usr/bin/dxsession

	   this brings everything up as it used to.  The xv cleans out 
	   the colormap mess my logo.gif file created.

	9. removed the :0 "/usr/bin/login -P /usr/bin/Xprom.... line
	   from /etc/ttys

	10. I then start xdm from end of /etc/rc file

		# xdm startup
		[ -f /usr/bin/X11/xdm ] && {
		        /usr/bin/X11/xdm & echo 'xdm' > /dev/console
		}

	11. additionally, compile the X11R5 xconsole client and
	    installed it as well in /usr/bin/X11

If I haven't forgotten anything, then this should be all that is required. 
By doing a reboot things should come up okay.

Currently I have been running this configuration on a DECStation 5000/200
with ULTRIX 4.3.

One word of advice: make sure that you can access the system via the network
if you plan on trying different things in Xsetup_0 and Xsession.  If the 
modifications work, then you should have no problem.  However, if they
do not, then having a backdoor into the system will come in handy (better
than pressing the reset button every time).

Regards,

Darren Popham
Digital Equipment of Canada Ltd
Phone:    613-723-3659
E-mail:   darren@otop63.enet.dec.com
Opinions: Entirely my own
PS: In case it is not obvious, this is not a supported configuration.

Newsgroups: comp.unix.ultrix