How to make window manager appears on Xstation

geo at george.austin.ibm.com geo at george.austin.ibm.com
Tue Jun 4 07:40:44 AEST 1991


In article <2#VUMFW at linac.fnal.gov>, looi at sutro.SFSU.EDU writes:
> 
> Let's assume that the localhost is 'devlgw' and the remotehost is
> 'devlds' respectively.
> 
> When I login to remote host (at the initial login window on a Xstation
> given by a prompt that says, "Enter hostname (devlgw): " and then have
> my .profile invoke xinit script, the window manager will fire up on the
> remotehost rather than on my Xstation. Can someone please help me what I
> have to do to make the window manager appears on my Xstation instead of
> the remotehost when I perform a remote login on the Xstation's login
> window? Any help will be greatly appreciated.

First.  Do not execute xinit from an Xstation.  X is already running on the 
Xstation by virtue of the boot program from the Xstation manager.  If you are
running version 3005 or later of the operating system and have chosen to load
X11-R4 on your Xstation (a good choice IMHO), and then run xinit when you log
in, you will get a memory conflict error (or some such...) due to the different
versions of X11 that you are running: R4 on the Xstation and trying to
superimpose
R3 from the RS/6000.

Put all of your login in programs in your .profile on the remotehost (or
whatever
login profile file that you choose to use...).

NOW.  To get all this to happen on the correct display (attached to your
Xstation),
put the following lines near the beginning of your .profile (name of
Xstation is 'devlx'):

DISPLAY=devlx:0
export DISPLAY

This tells the remote system where the display associated with this
session is.  Of course,
if you use this login from another terminal, the output will still be
displayed on the Xstation,
so you may want to get more clever than putting this in the .profile. 
You may just want to 
create a small executable shell script that you run after you log in
from the Xstation, that
starts the right programs and establishes the display.  Such a file may
look like:

#! /bin/ksh
# Start Xstation programs
#
# Define Xstation Display (Xstation netname="devlx" in this case)
DISPLAY=devlx:0
export DISPLAY
typeset PS1='$LOGNAME@$HOST:${PWD}  \> '
export PS1

set -o emacs
#### Turn off screen saver
/usr/lpp/x_st_mgr/bin/xset s 0
#### Set Background Color #####
xsetroot -solid NavyBlue
#*********** Start Initial Programs*****************************
#### Clock
xclock =-0+0 -fg Blue -bg Wheat -hd CadetBlue -hl Blue &
#### Mailbox monitor
/usr/lpp/X11/Xamples/bin/xbiff -geometry =112x100-0+0 -file
/usr/mail/$LOGNAME \
-update 10  -n mail -fg MediumBlue -bg white&
#### News Monitor Program
/afs/austin/local/bin/xrn &
#### Second Shell Window
aixterm =80x25+0-0 -fg Wheat -bg SkyBlue &
#### Start window manager
mwm &


************** End example

Notice that I started mwm (the window manager) last.  It's not critical
that I know
of; some like to start it first.  Whatever you like.  I hope this helps.


Sincerely,
George Noren

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



More information about the Comp.unix.aix mailing list