SUMMARY: olwm on MacX (Xserver emulation on Mac).

From: Operator (root@roam.agfa.be)
Date: Tue Apr 21 1992 - 11:54:38 CDT


SUMMARY: olwm on MacX (Xserver emulation on Mac).
-------------------------------------------------

QUESTION:
- - - - - -
> We are experimenting with Xwindow software in a Sun-Mac environment.
> (Sun workstations and Apple Macintosh). We use the "MacX 1.1.7 Xwindow
> Server for Macintosh" to use the Mac as an Xterminal (it's not very
> fast, but it works...).
> With these experiments, we have problems running the OpenLook Window
> Manager.
>
> This is the problem description:
>
> On the Suns (3/280, ...*..., 4/670), we have installed the standard
> SunOS_4.1.2 and OpenWindows (version 3) software.
> On the Mac, you have to specify a remote command, that executes on a Sun
> of your choice.
> One of the commands we use, is
> "/bin/csh /usr/lib/X11/Mac/Xsession.MAC -display '@display'"
>
> The Mac automatically translates "'@display'" into its valid DISPLAY
> environment description (network number and window number).
>
> The shell script "Xsession.MAC" defines some environment variables
> (OPENWINHOME, etc. ...) and runs some other initialisations.
> It should also start up "olwm" with the command:
>
> $OPENWINHOME/bin/olwm -display $DISPLAY
>
> This is where the problem occurs...
>
> We have NO PROBLEM AT ALL when there isn't any olwm running on the Sun
> Workstation!!!! We get olwm running on the Mac display!
> However, when somebody runs openwin on the Sun console, we get the following
> errors:
>
> olwm: fatal X error: BadAccess (attempt to access private resource).
> Perhaps there is another window manager running?
>
> We checked the DISPLAY environment variable: it was correct!
> We didn't test it with "real" Xterminals, because we don't have them (yet).
>
> Has anybody any idea?
> Doesn't Sun allow more than one olwm running, even on different
> DISPLAY's, or do I need another option when starting a second olwm ?????

Thanks for the many replies on the OpenLook Window Manager.
Altough there was some confusion on this topic, several answers pointed to the
correct solution:
==> Start up olwm with the -single option (and the specification for the
DISPLAY environment).

                 olwm -single -display $DISPLAY

It works perfect ....!

Thanks to
Chip Christian <chip@allegra.att.com>
yih@atom.cs.utah.edu (Benny Yih)
Rawn Shah" <shah@cs.arizona.edu>
leo@ai.mit.edu (Leonardo C. Topa)
randy@ncbi.nlm.nih.gov (Rand S. Huntzinger)
bala@pebbles.Synopsys.COM (Bala Vasireddi)
fred@johnd.tamu.edu (Fred Seals 5-2298)

>>> These are the most important answers I got ...
>>> (I inserted my own comments and experiences after ">>>"-marks )
<---------------------------------------------------------------------->
From: Chip Christian <chip@allegra.att.com>
The problem is that olwm is tied in with NeWS.
If you want to run an open-look compliant window manager,
try olvwm. Of course olvwm doesn't work with openwindows,
because openwin is a bad (broken) implementation of X11.
>>> CORRECT: openWINDOWS is a combination of X11/News, but
>>> the OPEN LOOK WINDOW MANAGER SEEMS TO RUN PERFECT ON THE MAC WITHOUT
>>> ANY News SUPPORT!!!!
>>> You cannot start "openwin" on the Mac, but YOU CAN USE "olwm"!!!!
<---------------------------------------------------------------------->
From: "Rawn Shah" <shah@cs.arizona.edu>
Theres nothing wrong. The window manager is working normally. Olwm is
already being run and the window manager should not be running twice (so as
not to confuse the machine).
>>> I agree: it should not run TWICE FOR THE SAME DISPLAY, but it IS
>>> POSSIBLE TO RUN MORE THAN ONE WINDOW MANAGER ON THE SAME MACHINE FOR
>>> DIFFERENT DISPLAYS!!!
What you have basically done, from what I
understand, is create a shell script that runs olwm on one of your Suns and
displays it on your Mac. This effectively is still running on your sun. What
you want on the other hand is a session manager which will control which
login session is being run on a display, ie. you can have a session running
on a sun displayed to your Mac, AND have a session with a display to your
Sun at the same time. What you might want to look into is 'xdm' which if I'm
not mistaken can create the Session level for openwindows.
>>> INDEED: but from what I understand, 'xdm' creates a "login" window,
>>> and executes the necessary things to start up an Xsession.
>>> You only need this on Xterminals: xdm displays the login screen,
>>> untill someone logs in. Then it starts a sequence of
>>> commands that generate the "X session", as specified in your "Xsession"
>>> file.
>>> MacX doesn't need this kind of session manager, unless you ONLY use
>>> your Mac as a 'dumb' Xterminal (but I'm absolutely positive you don't want
>>> to do that!).
<---------------------------------------------------------------------->

>>> NEXT ANSWERS SOLVED MY PROBLEM ...

From: leo@ai.mit.edu (Leonardo C. Topa)
Subject: OpenLook window manager and MacX.

you have to run olwm with the -single option included, otherwise olwm
tries to manage all the screens that it can find on a particular
display. I don't know why it seems to work for you if there is no olwm
running on the suns. The problem should be with all the screens that
MacX creates (B&W Rootless, B&W Rooted, Color Rootless, Color Rooted).
In my case the remote command is "olwm -single -display "@display" and
I use screen 3 (color rooted).
>>> BINGO!!!

Leonardo C. Topa
Massachusetts Institute of Technology
Room E25-506
45 Carleton Street
Cambridge, MA 02139
<---------------------------------------------------------------------->
From: randy@ncbi.nlm.nih.gov (Rand S. Huntzinger)
Subject: Re: OpenLook window manager and MacX.
It was my understanding that you have use the "-single" flag on olwm
to keep it from trying to grab a screen that MacX wants to keep to
itself.
...
<---------------------------------------------------------------------->
From: fred@johnd.tamu.edu (Fred Seals 5-2298)
To: d_somers@roam.agfa.be
Subject: Re: OpenLook window manager and MacX.
start OpenWindows with this argument "olwm -single". This works on our
Macs with X.

Let me know if it works for you.
>>> IT DOES!!! THANKS.
fred
<---------------------------------------------------------------------->
>>> THANKS FOR ALL INFORMATION ...
>>> Yooo de manne..

+----------------------------------------------------------+
| Dirk Somers, System Administrator Workstations. |
| AGFA-GEVAERT, R&D, EBS department |
| Mechelse Steenweg 430, B-2650 Edegem (Antwerp), BELGIUM |
| Tel.: +32 - 3 444.62.03 ; Fax.: +32 - 3 455.45.17 |
| d_somers@roam.agfa.be | ub4b!frankli!d_somers |
+----------------------------------------------------------+



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:41 CDT