135 lines
5.7 KiB
HTML
135 lines
5.7 KiB
HTML
<!--startcut ======================================================= -->
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<html>
|
|
<head>
|
|
<TITLE>The Answer Guy 28: LinuxGazette Mar 1998: xdm Login doesn't! </TITLE>
|
|
</head>
|
|
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#A000A0"
|
|
ALINK="#FF0000">
|
|
<!--endcut ========================================================= -->
|
|
<H4>"Linux Gazette...<I>making Linux just a little more fun!</I>"
|
|
</H4>
|
|
<P> <hr> <P>
|
|
|
|
<!-- =============================================================== -->
|
|
<H1 align="center"><A NAME="answer">
|
|
<img src="../gx/dennis/qbubble.gif" alt="" border="0" align="middle">
|
|
<a href="./lg_answer28.html">The Answer Guy</a>
|
|
<img src="../gx/dennis/bbubble.gif" alt="" border="0" align="middle">
|
|
</A></H1> <BR>
|
|
<H4 align="center">By James T. Dennis,
|
|
<a href="mailto:linux-questions-only@ssc.com">linux-questions-only@ssc.com</a><BR>
|
|
Starshine Technical Services,
|
|
<A HREF="http://www.starshine.org/">http://www.starshine.org/</A> </H4>
|
|
<p><hr><p>
|
|
|
|
<p>The <a href="../issue26/lg_answer26.html#login">original message</a>
|
|
referred to was sent by Cesar Augusto Kant Grossmann.</p>
|
|
|
|
<hr width="40%" align="center">
|
|
|
|
<H3><img src="../gx/dennis/qbub.gif" alt="(?)" width="50" height="28"
|
|
align="left" border="0">LinuxGazette Mar 1998: xdm Login doesn't! </H3>
|
|
|
|
<p><strong>From Milton L. Hankins on Mon, 30 Mar 1998 </strong></p>
|
|
|
|
<p><strong>
|
|
Actually, it sounds like Cesar's <tt>.xsession</tt> script is exiting before he
|
|
performs his usual "logout" action.</strong></p>
|
|
|
|
<p><strong>Cesar, does the user account have a <tt>.xsession</tt> file in the
|
|
home directory? If not, create one. The simplest one would contain the
|
|
line "<tt>fvwm</tt>" or "<tt>xterm</tt>".</strong></p>
|
|
|
|
<blockquote><img src="../gx/dennis/bbub.gif" width="50" height="28" alt="(!)"
|
|
align="left" border="0">Milton,
|
|
<br><br>
|
|
Wouldn't this show up as a problem when he ran '<tt>startx</tt>' as well?
|
|
|
|
<br><br>
|
|
As I've said before my practical grasp of X is pretty weak -- but
|
|
I do understand the concept of a '<em>session manager</em>.' Most X clients
|
|
in your start up script are started in the background (with trailing
|
|
ampersand in shell script syntax). However one (usually the last
|
|
item executed by the script) must be started in the "foreground."
|
|
This client, whether it is a window managers, an '<tt>xterm</tt>' or even
|
|
'<tt>xclock</tt>'
|
|
will be the "session manager." When you exit or kill the session manager
|
|
the X server takes that as a hint to close down (returning you to a shell
|
|
prompt if you used '<tt>startx</tt>' or to an <tt>xdm</tt> login screen
|
|
if you started the session graphically.
|
|
<br><br>
|
|
|
|
Can you clarify the differences between <tt>~/.xsession</tt> and
|
|
<tt>~/.Xclients</tt> (mine are just symlinked together)?
|
|
</blockquote>
|
|
|
|
<hr width="40%" align="center">
|
|
|
|
<H3><img src="../gx/dennis/qbub.gif" alt="(?)" width="50" height="28"
|
|
align="left" border="0">Milton Replied...</H3>
|
|
|
|
<p><strong>From Jim Dennis on Mon, Mar 30, 1998</strong></p>
|
|
|
|
<p><strong>Wouldn't this show up as a problem when he ran '<tt>startx</tt>'
|
|
as well?</strong></p>
|
|
|
|
|
|
<blockquote><img src="../gx/dennis/bbub.gif" width="50" height="28" alt="(!)"
|
|
align="left" border="0">Not necessarily, Jim. It all depends on the
|
|
system scripts. Traditionally, <tt>startx</tt> uses "<tt>~/.xinitrc</tt>"
|
|
and <tt>xdm</tt> uses "<tt>~./xsession</tt>".
|
|
|
|
<br><br>
|
|
It sounded like he was only having problems as a "normal user" -- that
|
|
root was OK. You obviously know a lot more about <tt>xdmi</tt> than I do,
|
|
but I went on a hunch that his <tt>xdm</tt> setup was fine.
|
|
</blockquote>
|
|
|
|
<p><strong><img src="../gx/dennis/qbub.gif" width="50" height="28" alt="(?)"
|
|
align="left" border="0">As I've said before my practical grasp of
|
|
X is pretty weak -- but I do understand the concept of a '<em>session
|
|
manager</em>.' Most X clients in your start up script are started in the
|
|
background (with trailing ampersand in shell script syntax). However one
|
|
(usually the last item executed by the script) must be started in the
|
|
"foreground." </strong></p>
|
|
|
|
<blockquote><img src="../gx/dennis/bbub.gif" width="50" height="28" alt="(!)"
|
|
align="left" border="0">Right. (The very fact that you know the
|
|
difference between an X client and an X server means you know something.)
|
|
<font color="#008F00">:)</font> That's what I meant by "usual `logout'
|
|
action." Most people either logout of a special xterm or exit the window
|
|
manager. </blockquote>
|
|
|
|
|
|
<p><strong><img src="../gx/dennis/qbub.gif" width="50" height="28" alt="(?)"
|
|
align="left" border="0">Can you clarify the differences between
|
|
<tt>~/.xsession</tt> and <tt>~/.Xclients</tt> (mine are just symlinked
|
|
together)?</strong></p>
|
|
|
|
<blockquote><img src="../gx/dennis/bbub.gif" width="50" height="28" alt="(!)"
|
|
align="left" border="0">I honestly have no idea. That's pretty
|
|
strange. Usually, I link <tt>.xsession</tt> and <tt>.xinitrc</tt> together.
|
|
That way, X looks the same whether I use <tt>xdm</tt> or <tt>startx</tt>.
|
|
</blockquote>
|
|
|
|
<!--================================================================-->
|
|
<P> <hr> <P>
|
|
<H5 align="center"><a href="http://www.linuxgazette.com/copying.html"
|
|
>Copyright ©</a> 1998, James T. Dennis <BR>
|
|
Published in <I>Linux Gazette</I> Issue 28 May 1998</H5>
|
|
<P> <hr> <P>
|
|
<!--================================================================-->
|
|
<A HREF="./index.html"><IMG SRC="../gx/indexnew.gif"
|
|
ALT="[ Table Of Contents ]"></A>
|
|
<A HREF="../index.html"><IMG SRC="../gx/homenew.gif"
|
|
ALT="[ Front Page ]"></A>
|
|
<A HREF="./lg_answer28.html"><IMG SRC="../gx/dennis/answernew.gif"
|
|
ALT="[ Answer Guy Index ]"></A>
|
|
<!--startcut ======================================================= -->
|
|
</body>
|
|
</html>
|
|
<!--endcut ========================================================= -->
|
|
|