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: "Thomas 'Tom' R. Treadway III" <email@hidden>
- Date: Thu, 20 Feb 2003 16:19:21 -0800
On Wednesday, February 19, 2003, at 05:26 PM, Michael W. Fleming wrote:
> 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.
. . .
> 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"
A couple of solutions exist to overcome the problem of your X server not
having the request font.
1) Change the applications resource definition so to use another font.
- define the font to use in the run string: xterm -fn courB14
- define the resource value in .Xdefaults: XTerm*Font: courB14
- define the resource value in the resource file (ex. .xterm) if
used
2) Load the font into the X server resource database using the `xrdb'
utility:
$ echo 'XTerm*Font: courB14' | xrdb -merge
3) Create an alias for the font. Use:
http://ftp.xfree86.org/pub/X.Org/R5contrib/
DECwindows_on_X11R4_font.aliases
This can be done by the user with the commands:
$ mkdir -p ~/lib/X11/fonts/dec
$ cp ~/Desktop/DECwindows_on_X11R4_font.txt
~/lib/X11/fonts/dec/fonts.alias
# create the a font alias file with the aliases
$ head -2 ~/lib/X11/fonts/dec/fonts.alias
-Adobe-"ITC Avant Garde
Gothic"-Book-R-Normal--10-100-75-75-P-59-ISO8859-1
-Adobe-Helvetica-Medium-R-Normal--10-100-75-75-P-56-ISO8859-1
-Adobe-"ITC Avant Garde
Gothic"-Book-R-Normal--12-120-75-75-P-70-ISO8859-1
-Adobe-Helvetica-Medium-R-Normal--12-120-75-75-P-67-ISO8859-1
# append this directory to your font path (and add to ~/.xinitrc)
$ xset fp+ ~/lib/X11/fonts/dec
# to verify use the use an X font displayer like `xfd'
$ xfd -fn -DEC-Terminal-Bold-R-"Double
Wide"--14-140-75-75-C-16-ISO8859-1
4) Extract the missing font descriptions from an X font server, and add
them into your font path.
# view fonts served by X font server
$ fslsfonts -server tcp/fontserverhost:7100 -fn -DEC-*
# generate the missing Bitmap Distribution Format (BDF) font file from
X front server
# (fontserverhost). You'll need to determine a mapping from the X font
server
# font name, and the BDF file name (the fonts.dir file from the X font
server
# could help with this, or could use information from fslsfonts -ll to
construct names).
$ cd ~/lib/X11/fonts/misc
$ fstobdf -server tcp/fontserverhost:7100 -fn
-DEC-Terminal-Bold-R-"Double Wide"--14-140-75-75-C-16-ISO8859-1 >
DECterm-Bold14.bdf
### compile fonts into Portable Compiled Format
$ for i in *.bdf;do
> bdftopcf -o ${i%.bdf}.pcf $i
> rm $i
> done
# create the font name database
$ mkfontdir
# append this directory to your font path
$ xset fp+ ~/lib/X11/fonts/misc
# to verify use the use an X font displayer like `xfd'
$ xfd -fn -DEC-Terminal-Bold-R-"Double
Wide"--14-140-75-75-C-16-ISO8859-1
5) Get the system administrator to install the missing fonts on the
workstation. Follow 4) but install in default font path. The fonts will
now
be available just like any other native font on the workstation.
6) With a little more tuning of the run string to the X server, a new
font directory can be automatically loaded when X starts up and the
vender directories need not be modified.
# specify font paths to X server (from an ~/.xserverrc)
X :0 -fn
/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/
X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/
lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/,/usr/X11R6/lib/
X11/fonts/TTF,/Users/username/lib/X11/fonts/dec,tcp/:7000,tcp/
fontserverhost:7100
# Note: the tcp/:7000 assumed the font server (fs) was configured to run
# on node. This allows the scalable outline fonts to be provided.
7) Use the font serve capability of X11 to provide the fonts from a font
server. Add the following to ~/.xinitrc
xset fp+ tcp/fontserverhost:7100
trt
. . .
--
Thomas R. Treadway
Computer Scientist
Lawrence Livermore Nat'l Lab
7000 East Avenue, L-365
Livermore, CA 94550-0611
_______________________________________________
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.