[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Multiple xdm/kdm logins



On Wed, Jan 20, 1999 at 01:18:57PM -0500, MallarJ@aol.com wrote:
> I'd like to have 2 login screens come up when kdm (or xdm) starts up - one
> that I can log in as root on, and another for my normal user account (which I
> use most often).  I've seen reference to multiple displays in the X docs, but
> it isn't very clear on how to set this up.  I assume I'll need to create
> Xsetup_1 and XStartup_1 (etc) in my /etc/X11 dirs for the new display, but
> where do you tell kdm (or xdm) to start the second login screen?

My remarks apply in the strictest sense only to xdm itself.  I assume
kdm/wdm/whatever work similarly, but since I don't use them or maintain
them I couldn't say.

/etc/X11/xdm/Xservers determines what X servers are managed by xdm.

2 login screens on the local machine, both managed by xdm, is pretty
straightforward.

:0 local /usr/bin/X11/X :0 vt7 -bpp 32
:1 local /usr/bin/X11/X :1 vt8 -bpp 32

Simply put something like above two lines in /etc/X11/xdm/Xservers.
Some of the options to the X server (the part after /usr/bin/X11/X) may
be wrong or redundant in your case.

Fooling with Xsetup_1, Xstartup_1, et al., is only necessary if you
need server :1 to behave differently that the default versions of the
files (without the underscores).  If you do create these _1 files,
for instance by simply copying the _0 versions over, be sure you edit
/etc/X11/xdm/xdm-config to set the appropriate X resources, so that xdm
knows to use those files.

DisplayManager._1.resources:    /etc/X11/xdm/Xresources_1
DisplayManager._1.setup:        /etc/X11/xdm/Xsetup_1
DisplayManager._1.startup:      /etc/X11/xdm/Xstartup_1
DisplayManager._1.reset:        /etc/X11/xdm/Xreset_1

and so forth.

You can of course also have xdm manage one session, and use startx to start
another.  Just keep in mind that if xdm is already controlling server :0,
you need to tell startx what server number to use.

startx -- :1

Multiple startx's can be run similarly.

startx -- :2

and so forth until you run out of free virtual consoles.  You can always
tell the XFree86 X servers which virtual console to use by supplying the
"vtN" option, where N is the number of a free virtual console.  Just be
sure you don't tell the X server to use a virtual console that, say, getty
has a hold of (vt1 to vt6 in a default Debian system).  That causes big
problems.

That should be about all there is to it.  I hope this helps.  When I get
around to writing the Debian XFree86 FAQ, I'll definitely have a couple
of entries about multiple X servers running concurrently on the same
machine.

-- 
G. Branden Robinson              |    Never underestimate the power of human
Debian GNU/Linux                 |    stupidity.
branden@ecn.purdue.edu           |    -- Robert Heinlein
cartoon.ecn.purdue.edu/~branden/ |

Attachment: pgpoRyNTYCffV.pgp
Description: PGP signature


Reply to: