Re: Newbie Mac OS X X11 VMS DECTerm question
Re: Newbie Mac OS X X11 VMS DECTerm question
- Subject: Re: Newbie Mac OS X X11 VMS DECTerm question
- From: "Michael W. Fleming" <email@hidden>
- Date: Wed, 19 Feb 2003 17:26:44 -0800
Elliott Roper wrote:
I'm trying to start a DECTerm on my Mac. It is running Apple's X11 0.2
Back at the VMS box, I have made sure that TCPIP is a transport
as in:-
$ show log /table=decw* *tran*
(DECW$LOGICAL_NAMES)
(DECW$SERVER0_TABLE)
"DECW$SERVER_TRANSPORTS" = "DECNET"
= "LOCAL"
= "TCPIP"
I have created a display as in:-
YRW> set display/create/node=yrmace.yrl.co.uk/trans=tcpip
YRW> show display
Device: WSA10: [super]
Node: YRMACE.YRL.CO.UK
Transport: TCPIP
Server: 0
Screen: 0
but when I try
$ create /term/detach
which should bring a DECTerm up on the display node (yrmace.yrl.co.uk)
all I get is:-
XIO: unable to open connection _WSA10:
after 0 requests (0 known processed) with 0 events remaining.
ÞCW-E-CANT_OPEN_DISPL, Can't open display
and much the same for any other X application I try to start from the
VMS machine
I suspect the Alpha not having permissions at the Mac end, but I haven't
a clue how to change them or where to find any error log stuff on the
Mac side.
Where do I start debugging this?
You may be in for more work than you thought. There a number of gotchas
when using DECterm. I've been able to overcome them but I have admin
privileges on the MacOSX and the VMS box.
There are a couple of different ways to get the DECterm session started.
I've got SSH configured on the VMS system (I use the MultiNet tcp/ip
stack, not UCX) so that my sessions will be encrypted. I use the
following MacOSX shell script to launch DECterm remotely:
ssh -Xc blowfish user@vms-system @mike-xterm2 palegreen
This is mike-xterm2.com on the VMS system:
$ create/terminal/window=(rows=48,columns=132)/little_font -
/application_keypad/insert/line_editing -
/win=back='p1/detached
The downside of this is that the xterm from which I execute the shell
script is tied up until the DECterm session is finished. I just launch
more xterm's.
Also, if you're going to be using the EVE editor and want to use the six
function keys labelled insert, home, page-up, delete, end, & page-down
then you'll also need to do some keymapping in X11. Here is my .Xmodmap
file:
keycode 59 = Delete
keycode 122 = Find
keycode 123 = Insert
! DEC "Remove" function
keycode 124 = 0x1000FF00
keycode 125 = Select
keycode 127 = Page_Up
keycode 129 = Page_Down
The following functions were determined by trial and error. No
configuration is necessary to make these work.
F1 = Hold
Option-F1 = forward/reverse toggle
Option-F2 = move by line
Option-F3 = delete word
Option-F4 = insert/overstrike toggle
Option-F5 = help
Option-F6 = DO
Option-F10 = Exit
Option-F11 = forward/reverse toggle
Option-F12 = move by line
Option=F13 = delete word
If you can't use SSH then you can use another shell script and dcl combo
I used to use. Here they are:
xhost +vms.system.dns
rsh user@vms-system @mike-xterm flicker lightskyblue
$ SET DISPLAY/USER_MODE/CREATE/TRANSPORT=TCPIP/Node='p1
$ create/terminal/window=(rows=48,columns=132)/little_font -
/application_keypad/insert/line_editing -
/win=back='p2/detached
The xhost command tells the Mac to allow the vms system named to use its
X11 server. This means that *ANY* user on the vms system can create an
X11 session on your Mac.
rsh has to be enabled on the vms system and the .rhosts file needs to
exist in the home directory of the user account with the following content:
mac.system.dns mac-username
If you can't use rsh then do the xhost command in a terminal window on
the mac and then do the create/term command on the vms system.
One last major problem (that I can remember)--fonts. DECterm uses some
special fonts that aren't on the Mac. There is probably a way to copy
them to the Mac but I didn't bother. MultiNet has a fontserver that X11
can use. I created a shell file I called xfont.sh that I called in my
.xinitrc. Here it is:
xset fp+ "tcp/vms.system.dns:7000"
If you're lucky enough to have MultiNet and have the system privileges
to set that up or can convince the sysadmin to then you are in business.
$ mu config/server
server-config>enable fontserver
server-config>restart
If your system is like mine then you'll have to follow the instructions
in multinet:font_server.configuration to make sure there is a
DECW$FONT_DIRECTORY.DAT file in each of the font directories listed in
the font_server config just mentioned.
In vms 7.2 DECterm would exit without warning if it tried to display
text that used certain fonts the X11 server didn't know about. The
specific example I remember is when doing the SEARCH command. The bolded
text indicating the text found in the search results used a font that
killed DECterm. Fortunately, in vms 7.3 DECterm doesn't die but the text
won't be bolded either.
Now, I do have one minor problem that I have not been able to resolve.
The DELETE key gives me grief in xterm after I've done the xmodmap using
the mapping above. I get a beep and a ~ tilde on the screen. CTRL-H or
CTRL-SHIFT-? works to delete a character but not the DELETE key. If I
remove the keycode 59 mapping from .Xmodmap then the DELETE key works
fine in xterm but acts as a BACKSPACE in DECterm no matter what I tell
DECterm to do in the Options|Keyboard config window. There is a link in
the X11 FAQ that talks about the DELETE key mapping and what you are
supposed to do, but I could not get it to work properly in both xterm
and DECterm. Solutions welcomed.
Like I said, this is probably about 10 times what you hoped to hear but
this what I've had to do to get everything I've wanted with DECterm.
Good luck.
Michael Fleming
CSU, Bakersfield
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.