[comp.unix.aix] logging off from an Xstation 120

CALT@SLACVM.SLAC.STANFORD.EDU (05/16/91)

Does anyone know how to log off from an Xstation 120?

Thanks in advance!

shih@cithex.bitnet
shih@cithe1.cithep.caltech.edu

phil@ux1.cso.uiuc.edu (Phil Howard KA9WGN) (05/16/91)

CALT@SLACVM.SLAC.STANFORD.EDU writes:

>Does anyone know how to log off from an Xstation 120?

>Thanks in advance!

Same as any other X terminal.  You terminate the process that was
initiated by xdm which logged in your session.  Since you don't know
this your probably have not configured your own X environment, so
we need to figure out what default environment you have.

My first guess is that either your first xterm window, or your window
manager, is the descendant from xdm.  Do a normal logout of your xterm
window session.  You probably already tried that.  If that does not do
it, then press button 1 on your mouse, with the cursor on the root
screen, and see if you get a window manager menu.  If you do, and there
is an entry called exit, then select that entry.

In my own configuration, I let xlogo be the descendant from xdm, and put
it down on the lower right corner.  I can kill it with the window kill,
or just kill it from the shell kill command.

Turning the X terminal off and back on will not restore your session.
Although it may not be logged off, no one can get to it at this point.
Turning it off and back on may cause other problems, depending on the
local configuration, such as no login prompt (xdm).  I am running R4
on mine, and it has XDMCP which avoids this problem.
-- 
 /***************************************************************************\
/ Phil Howard -- KA9WGN -- phil@ux1.cso.uiuc.edu   |  Guns don't aim guns at  \
\ Lietuva laisva -- Brivu Latviju -- Eesti vabaks  |  people; CRIMINALS do!!  /
 \***************************************************************************/

drake@drake.almaden.ibm.com (05/16/91)

An XStation 120 will "log off" when the last client goes away.  When the server
has no clients, it will reset itself and will put up a new window with a 
"login" prompt.

Don't forget the window manager ... you have to kill it, too.


Sam Drake / IBM Almaden Research Center 
Internet:  drake@ibm.com            BITNET:  DRAKE at ALMADEN
Usenet:    ...!uunet!ibmarc!drake   Phone:   (408) 927-1861

geo@george.austin.ibm.com (05/16/91)

In article <91135.164341CALT@SLACVM.SLAC.STANFORD.EDU>,
CALT@SLACVM.SLAC.STANFORD.EDU writes:
> 
> Does anyone know how to log off from an Xstation 120?
> 
> Thanks in advance!
> 
> shih@cithex.bitnet
> shih@cithe1.cithep.caltech.edu


In my configuration, typing "exit" in the login window closes
everything, but I would 
recommend closing out the other windows before exiting.  The configuration is:

Xstation 120 connected to RS/6000 running xstation manager (at 3005
update level).

When started, the xstation manager downloads the Xwindow manager to the
xstation, and 
provides one window to login to the server -  This is the login window.

When I login, it executes my .profile file which includes a call to "mwm
&" (the window
manager).  Note that you do not need to call "xinit" since X is already
running on the
xstation (and with the 3005 update that causes an error caused by
incompatible Xservers -
X11-R4 on the xstation and X11-R3 that is started with xinit).

When I logout, I close all windows except the login window and then type
"exit" at the
login window prompt.  This kills the window manager (although sometimes
you get the 
pop-up that asks if it is "ok to exit mwm", but not always), kills the
login session, and
returns the Xstation to the plain X root window and a new login window
(with no mwm frames).
Pressing any menu buttons at this time has no effect.  You can then turn
off the Xstation, or
leave it up with the login window present.

Sincerely,
George Noren

My opinions, of course...
+-------------------------+--------------------------------+----------------+
|AWD Early Systems Support| AIX : geo@george.austin.ibm.com|PH: 512/838-4930|
|IBM Austin - Zip 2830    | VNET: GEORGE at AUSVMQ         |TL: 678-4930    |
+-------------------------+--------------------------------+----------------+

ghe@physics.orst.edu (Guangliang He) (05/16/91)

In article <1991May16.050321.19468@ux1.cso.uiuc.edu>, phil@ux1.cso.uiuc.edu (Phil Howard KA9WGN) writes:
|> CALT@SLACVM.SLAC.STANFORD.EDU writes:
|> 
|> >Does anyone know how to log off from an Xstation 120?
|> 
|> >Thanks in advance!
|> 
|> Same as any other X terminal.  You terminate the process that was
|> initiated by xdm which logged in your session.  Since you don't know
|> this your probably have not configured your own X environment, so
|> we need to figure out what default environment you have.
[other stuff deleted]

What is 'xdm'? I searched the disk and could not find anything named xdm.
Is it supplied by IBM or we have to buy it?

|>  /***************************************************************************\
|> / Phil Howard -- KA9WGN -- phil@ux1.cso.uiuc.edu   |  Guns don't aim guns at  \
|> \ Lietuva laisva -- Brivu Latviju -- Eesti vabaks  |  people; CRIMINALS do!!  /
|>  \***************************************************************************/

---
  Guangliang He                |  -----Go Blazers!-----
  ghe@physics.orst.edu         |  -----Go Blazers!-----            

ghe@physics.orst.edu (Guangliang He) (05/16/91)

In article <763@rufus.UUCP>, drake@drake.almaden.ibm.com writes:
|> An XStation 120 will "log off" when the last client goes away.  When the server
|> has no clients, it will reset itself and will put up a new window with a 
|> "login" prompt.
|> 
|> Don't forget the window manager ... you have to kill it, too.
|> 

Yes. The motif window manager IBM supplied is the problem. If you have
mwm running and logged off the login window with other windows open, you
are stuck. You can close other windows one by one but you can't kill the
mwm, unless you do a ctl-alt-backspace, or power it down and up.

|> 
|> Sam Drake / IBM Almaden Research Center 
|> Internet:  drake@ibm.com            BITNET:  DRAKE at ALMADEN
|> Usenet:    ...!uunet!ibmarc!drake   Phone:   (408) 927-1861

-- 

---
  Guangliang He                |  -----Go Blazers!-----
  ghe@physics.orst.edu         |  -----Go Blazers!-----            

CALT@SLACVM.SLAC.STANFORD.EDU (05/17/91)

Thanks for the reply.

>An XStation 120 will "log off" when the last client goes away.  When the serer
>has no clients, it will reset itself and will put up a new window with a
>"login" prompt.
Unfortunately, my Xstation does NOT act in the same way as yours. I have an
Xstation 120, not 130. Does it matter? After I close the last X window,
I don't get the "login" prompt back.

>Don't forget the window manager ... you have to kill it, too.
Yes, I like to. But how?
I guess if I kill the window manager, I will get the "login" prompt back.
Thus the real question for me is how to kill my window manager on my Xstation
120.

Ching Shih
shih@cithex.bitnet
shih@cithe1/cithep.caltech.edu

looi@sutro.SFSU.EDU (W. W. Looi) (05/17/91)

In article <763@rufus.UUCP> drake@drake.almaden.ibm.com writes:
>An XStation 120 will "log off" when the last client goes away.  When the server
>has no clients, it will reset itself and will put up a new window with a 
>"login" prompt.
>
>Don't forget the window manager ... you have to kill it, too.
>
>

xkill -all will blow off all xclients and prompt you with the login
prompt again. I tweaked the /usr/lpp/X11/Xamples/clients/xkill a little
to include a myni widget for exit confirmation and included it in my
rootmenu. It works on Xstation and on hft/console.

Btw, does anyone know how to make the login window a fullscreen (like
the console login prompt) and reduce it to a smaller window (says,
-geometry 80x20+1+1) upon invoking Motif window manager? Anyone who is 
familiar with Sun's environment know I am talking about.

Thanks.

looi@sutro.SFSU.EDU (W. W. Looi) (05/17/91)

In article <7644@awdprime.UUCP> geo@george.austin.ibm.com () writes:
> [text deleted]
>
>When I logout, I close all windows except the login window and then type
>"exit" at the
>login window prompt.  This kills the window manager (although sometimes
>you get the 
>pop-up that asks if it is "ok to exit mwm", but not always), kills the
                                             ^^^^^^^^^^^^^^
>login session, and
>returns the Xstation to the plain X root window and a new login window
>(with no mwm frames).
>Pressing any menu buttons at this time has no effect.  You can then turn
>off the Xstation, or
>leave it up with the login window present.
>

Please read a better approach I posted earlier. Btw, does anyone have
any lockscreen/screensaver utlities? It would be nice if I could lock my
X display while away from my desk...

Btw, have any FrameMaker user experienced problem with Xstation fail
intermittenly? I called Frame, and was told that it's an IBM X server
problem. I have filed a problem with IBM, but have yet to hear anything
from IBM... :(

farshid@ccwf.cc.utexas.edu (Farshid Arman) (05/17/91)

regrading the problem of logging out of the X-station, I came up
with a solution which has worked for us pretty well (we have 120's
and run mwm).  In the .login file I put the following

	    .
	    .
	    .
	if ($TERM == hft) then
   		open xinit && logout
	else if($?XSTATION) then
  		.mwm_startup >! .$XSTATION
  		logout
	    .
	    .
	    .

in the shell script '.mwm_start' I have all the aixterm, xclock, ...
calls and the process id's are saved in the file .$XSTATION.
The initial window is killed right after login!!
Then at logout time, chosen in the menu, the following is executed

	    .
	    .
	    .
     	set PS=`cat ~/.$XSTATION | awk '{print $2}'`
     	/bin/rm ~/.$XSTATION
     	/bin/kill -9 $PS 
	    .
	    .
	    .

which just kills the process.  Ofcourse all processes that are created
after the initial startup have to be appended to the file .$XSTATION.
I think we use aliases for that.

As I said this works for us.  Hope is useful.

Farshid

jcburt@ipsun.larc.nasa.gov (John Burton) (05/17/91)

In article <MLNRA!F@linac.fnal.gov> looi@sutro.SFSU.EDU (W. W. Looi) writes:
>In article <763@rufus.UUCP> drake@drake.almaden.ibm.com writes:
>>An XStation 120 will "log off" when the last client goes away.  When the server
>>has no clients, it will reset itself and will put up a new window with a 
>>"login" prompt.
>>
>>Don't forget the window manager ... you have to kill it, too.
>>
>>
>
>xkill -all will blow off all xclients and prompt you with the login
>prompt again. I tweaked the /usr/lpp/X11/Xamples/clients/xkill a little
>to include a myni widget for exit confirmation and included it in my
>rootmenu. It works on Xstation and on hft/console.
>
[...]

perhaps an easier (cleaner) way to do it is to include the line

  "Exit Motif Window Manager"    f.quit_mwm

in the RootMenu menu of you .mwmrc file. Then all you have to do
is move the cursor to the screen background, click the left mouse button
and pick "Exit Motif ... ". Motif will then ask if you want to quit,
which you reply by clicking "yes". If your .xinitrc file is set up properly
(the last line of the file is "mwm") then quiting MWM will also get you
out of Xwindows...


John

+--------------------------------------------------------------------+
| John Burton                                                        |
| G & A Technical Software                                           |
| jcburt@gatsibm.larc.nasa.gov                                       |
| jcburt@cs.wm.edu                                                   |
|                                                                    |
| Disclaimer: Hey, what can I say...These are *my* views, not those  |
|             of anyone else, be they employer, school, or government|
+--------------------------------------------------------------------+