*BSD News Article 54741


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!news.mathworks.com!tank.news.pipex.net!pipex!dish.news.pipex.net!pipex!bt!btnet!zippy.dct.ac.uk!yama.mcc.ac.uk!sunsite.doc.ic.ac.uk!warwick!bsmail!inferno.cs.bris.ac.uk!hedley
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: xdm query..
Message-ID: <DHoEvn.EAJ@uns.bris.ac.uk>
From: hedley@inferno.cs.bris.ac.uk (David Hedley)
Date: Tue, 7 Nov 1995 13:59:47 GMT
Reply-To: David.Hedley@bris.ac.uk
Sender: usenet@uns.bris.ac.uk (Usenet news owner)
References: <47iiii$jd5@turtle.apana.org.au> <DHM8M2.yI@gnome.co.uk>
Organization: Computer Science Dept. University of Bristol, England
Nntp-Posting-Host: inferno.cs.bris.ac.uk
X-Newsreader: TIN [version 1.2 PL2]
Lines: 50

Chris Stenton (jacs@gnome.co.uk) wrote:
: Robert Nagy (nagy@turtle.apana.org.au) wrote:
: : Hi Folks,
: : 
: : I just found out about xdm and thought it would be neat to add a graphic
: : gif/jpg to the login screen.  I've checked the man pages but didn't see
: : anything highly relevant.

Here's how I get a picture on the login screen:

excerpt from /usr/lib/X11/xdm/xdm-config

DisplayManager._0.setup:        /usr/X11R6/lib/X11/xdm/Xsetup_0
DisplayManager._0.startup:      /usr/X11R6/lib/X11/xdm/GiveConsole

My /usr/lib/X11/xdm/Xsetup_0 script:

#!/bin/sh
# $XConsortium: Xsetup_0,v 1.3 93/09/28 14:30:31 gildea Exp $
#xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail
xsetroot -solid black
xv -geometry +320-200 -viewonly /usr/local/etc/title.gif &
echo $! >/var/pid/xv


and my /usr/lib/X11/xdm/GiveConsole

#!/bin/sh
# Assign ownership of the console to the invoking user
# $XConsortium: GiveConsole,v 1.2 93/09/28 14:29:20 gildea Exp $
#
# By convention, both xconsole and xterm -C check that the
# console is owned by the invoking user and is readable before attaching
# the console output.  This way a random user can invoke xterm -C without
# causing serious grief.
#
chown $USER /dev/console
kill `cat /var/pid/xv`
xsetroot -default
xset fp rehash

Hope this helps

David
--
 David Hedley (David.Hedley@bris.ac.uk)
 http://www.cs.bris.ac.uk/~hedley/
 finger hedley@cs.bris.ac.uk for PGP key
 Computer Graphics Group | University of Bristol | UK                      
 *** All opinions expressed are mine and mine alone ***