old-www/LDP/LG/issue26/kapok/node9.html

84 lines
3.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<!--Converted with LaTeX2HTML 96.1-g (July 19, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds -->
<HTML>
<HEAD>
<TITLE>XDM</TITLE>
<META NAME="description" CONTENT="XDM">
<META NAME="keywords" CONTENT="kapok-nonote">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<LINK REL=STYLESHEET HREF="kapok-nonote.css">
</HEAD>
<BODY LANG="EN" >
<A NAME="tex2html110" HREF="node10.html"><IMG WIDTH=37 HEIGHT=24
ALIGN=BOTTOM ALT="next" SRC="../gx/kapok/next_motif.gif"></A> <A
NAME="tex2html108" HREF="kapok-nonote.html"><IMG WIDTH=26 HEIGHT=24
ALIGN=BOTTOM ALT="up" SRC="../gx/kapok/up_motif.gif"></A> <A
NAME="tex2html102" HREF="node8.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM
ALT="previous" SRC="../gx/kapok/previous_motif.gif"></A> <BR>
<B> Next:</B> <A NAME="tex2html111" HREF="node10.html">PCMCIA</A>
<B>Up:</B> <A NAME="tex2html109" HREF="kapok-nonote.html">No Title</A>
<B> Previous:</B> <A NAME="tex2html103" HREF="node8.html">Which window manager?</A>
<BR> <P>
<H1><A NAME="SECTION00040000000000000000">XDM</A></H1>
<P>
XDM lets you login from X, avoiding the normal text-based login
prompt. To see if it works, type - you must be root to do that -
<tt>telinit 5</tt>. this command set
the runlevel to 5, starting the XDM login procedure. If something
goes wrong, you'll go back to the traditional login by rebooting. If
it works, you can set 5 as default runlevel editing the
<tt>/etc/inittab</tt> file. Edit the line
<PRE> id:3:initdefault:</PRE>
in order to have
<PRE> id:5:initdefault:</PRE>
It's a good idea to make a backup of this file before modifying it.
<P>
You'll soon notice that the traditional login appears shortly before
initiating the XDM login procedure. This is avoided editing the same
file <tt>/etc/inittab</tt>: the line
<PRE> 1:12345:respawn:/sbin/mingetty tty1</PRE>
creates a traditional login (mingetty) in the console where the XDM
login will be, if you remove the 5, when runlevel 5 is active,
no traditional login will be started on that console. You can also
remove the other 5s, but I strongly suggest to keep at least
one, in case the window manager crashes. In such a case, you can
switch to the login prompt pressing <IMG WIDTH=40 HEIGHT=22 ALIGN=BOTTOM
SRC="../gx/kapok/img4.gif" > <IMG WIDTH=34 HEIGHT=22 ALIGN=BOTTOM
SRC="../gx/kapok/img5.gif" > <IMG WIDTH=31 HEIGHT=22 ALIGN=BOTTOM
SRC="../gx/kapok/img3.gif" > ,
where n is the console on which you left the mingetty active. If your
<tt>inittab</tt> looks like this, n will be equal to 2:
<PRE> # Run gettys in standard runlevels
1:1234:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:234:respawn:/sbin/mingetty tty3
4:234:respawn:/sbin/mingetty tty4
5:234:respawn:/sbin/mingetty tty5
6:234:respawn:/sbin/mingetty tty6</PRE>
<P>
KDE has a valid alternative to XDM, you can enable it (read in any
case the KDE documentation first), editing once again <tt>inittab</tt>,
whose last lines should finally look like this:
<PRE> # Run xdm in runlevel 5
#x:5:respawn:/usr/bin/X11/xdm -nodaemon
x:5:respawn:/opt/kde/bin/kdm -nodaemon</PRE>
<P>
If you are disturbed by the console spoiling the nice background during
the XDM login, comment the line starting with <tt>/usr...</tt> of the file
<tt>/etc/X11/xdm/Xsetup_0</tt>,
<PRE> #!/bin/sh
# $XConsortium: Xsetup_0,v 1.3 93/09/28 14:30:31 gildea Exp $
#/usr/X11R6/bin/xconsole -geometry 480x130-0-0 -daemon -notify -verbose
#-fn fixed -exitOnFail
/usr/X11R6/bin/xbanner</PRE>
<P>
<BR> <HR>
<P><ADDRESS>
<I>Alessandro Usseglio Viretta <BR>
Wed Feb 4 11:32:27 MET 1998</I>
</ADDRESS>
</BODY>
</HTML>