From: Brian Neil Levine
Subject: VAX LISP/CLX on Solaris
Date: 
Message-ID: <BL6771.94Feb23160324@peas.albany.edu>
I hope someone can help me with a problem I am having.  I want to write a 
LISP program that uses the package CLX (Common LISP X).  For various reasons
the package is available to me on my school's VAX LISP, but not on the UNIX
implimentation of KCL.  To make things more difficult, I have no access
to a DECworkstation hooked up directly with DECnet to the VAX in order to 
(clx:open-display "machine").  

So I have been trying to open a window on my schools SUN workstations.
I run through the following commands, but I always get an error.

sun%  xhost vax
sun%  xhost sun
sun%  rlogin vax

$ set display/create/transport=tcpip/node=128.204.16.61   ;the node of the sun
$ lisp

then the vax proceeds to open up a LISPlistener window on my sun station.

Sounds good, right?  But when I issue the command

(clx:open-display "sun")

It tells me

Error in CLX:OPEN-DISPLAY: Could not connect to the specified display.

The full description of the command is

CLX:OPEN-DISPLAY host &KEY :DISPLAY display :PROTOCOL system

host     A string that specifies the name of the host machine. Must be a string

display  An integer that specifies the number of the display.  The default is 0

system   A keyword that specifies the type of network.  The protocol defaults 
         to :TCP on ULTRIX and :DECNET on VMS, however you can use the
         :PROTOCOL keyword to choose your own.  It returns a clx display object

        
The sun is not connected by DECnet or DECs version of TCP (I am told).  So
what do I do?  Is there anyway to do this? 

Thanks for your help.


Brian Levine

······@csc.albany.edu
SUNY Albany

From: Jeff Del Papa
Subject: Re: VAX LISP/CLX on Solaris
Date: 
Message-ID: <DP.94Feb27135309@epcot.harlequin.com>
  Brian> (clx:open-display "sun")

  Brian> It tells me

  Brian> Error in CLX:OPEN-DISPLAY: Could not connect to the specified display.

  Brian> The full description of the command is

  Brian> CLX:OPEN-DISPLAY host &KEY :DISPLAY display :PROTOCOL system

  Brian> host     A string that specifies the name of the host machine. Must be a string

  Brian> display  An integer that specifies the number of the display.  The default is 0

  Brian> system   A keyword that specifies the type of network.  The protocol defaults 
  Brian>          to :TCP on ULTRIX and :DECNET on VMS, however you can use the
  Brian>          :PROTOCOL keyword to choose your own.  It returns a clx display object

  Brian>         
  Brian> The sun is not connected by DECnet or DECs version of TCP (I am told).  So
  Brian> what do I do?  Is there anyway to do this? 

CLX doesn't use the X authorization system (mit "magic cookies").  You
would have to set your display to allow "any" connections from the
machine you run on:

 xhost +hostname (to a shell prompt)

This is not the most advisable thing to do at a university, people
will be able to spy on your screen, and if your server supports any of
the test extensions, will be able to force key events to your clients.

Unfortunately, the fixes I have won't do you much good (as they are
specific to our lisp).

<dp>
From: Simon Leinen
Subject: Re: VAX LISP/CLX on Solaris
Date: 
Message-ID: <SIMON.94Feb27214741@liasg3.epfl.ch>
dp> CLX doesn't use the X authorization system (mit "magic cookies").

Small correction: most Common Lisp vendors' versions of CLX don't use
MIT-MAGIC-COOKIE-1 authorization.  The latest CLX version from MIT
(CLX R5.02) supports it.
-- 
Simon.