Problem
Using the SCO Unix Desktop (panorama/cde/kde) as my desktop or from
a Windows PC using XVision, how can I use an ANSI emulator within an
X Session without having to use a separate terminal emulator or
telnet/rsh session?When you run:# /usr/bin/X11/xtermthis displays a shell, but the emulation is "xterm" not "ansi".
Solution
Follow these steps:1. The server that you are connecting to from your SCO Unix or XVision (Windows) clients must run a program called "scoterm". This is the application that runs the ANSI emulation.
For SCO Unix products this binary already exists in:
/usr/bin/X112. From your XVision (Windows) client, you should be able to:
Start->Run Unix Program->Enter the server and:/usr/bin/X11/scotermFrom your OpenLinux client, you should be able to:
# echo $DISPLAY
<your_client>:0This should return the Xserver you are running that you would wish "scoterm" to communicate with, normally 0.
# xhost +<Server running "scoterm">
# rsh <Server running "scoterm"> /usr/bin/X11/scoterm -display <your_client>:0to start a "scoterm", on the server running "scoterm"
or:# rsh <Server running "scoterm"> /usr/bin/X11/scoterm -display <your_client>:0
-e telnet <somewhere else>to run a telnet to a server using "scoterm".
# echo $TERM
ansiNOTE: This is "scoansi" definition.3. If, however, you require some of the fonts available from within "scoterm" under Options->Font Size, you will need to copy them to your XServer fonts directory such as OpenLinux.
This is not necessary if you are using the XVision (Windows) client.
The fonts to copy are:For OpenServer and UnixWare 7/Open UNIX 8.0.0:
/usr/lib/X11/fonts/miscUnixWare 7/Open UNIX 8.0.0 also has a copy in:
/usr/X/lib/X11/fonts/miscThe fonts to copy are those ending in "pcf", for example:
6x13.pcf
6x13B.pcf
8x13.pcf
8x13B.pcf
9x15.pcf
9x15B.pcf
10x20.pcfto:/usr/X11R6/lib/X11/fonts/misc on the OpenLinux client.The "scoterm" provided with OpenServer 5.0.6+ will also have additional fonts.
To save space, these fonts can be "gzipped", with any compression parameter, and they will be un-gzipped and used as required by the X Server.
To activate these new fonts on OpenLinux, run:
/usr/bin/X11/mkfontdirThis will create a fonts.dir file.The fonts.alias file also has to be amended by running:
# grep sco fonts.dirFor example:ibm852-8x8.pcf.gz -sco-terminal-medium-r-normal--8-120-75-75-m-80-ibm852-1 ibm850-8x8.pcf.gz -sco-terminal-medium-r-normal--8-120-75-75-m-80-ibm850-1 ibm852-8x16.pcf.gz -sco-terminal-medium-r-normal--16-120-75-75-m-80-ibm852-1 ibm852-8x14.pcf.gz -sco-terminal-medium-r-normal--14-120-75-75-m-80-ibm852-1 ibm850-8x16.pcf.gz -sco-terminal-medium-r-normal--16-120-75-75-m-80-ibm850-1 ibm850-8x14.pcf.gz -sco-terminal-medium-r-normal--14-120-75-75-m-80-ibm850-1
Then, cut and paste the output into fonts.alias without the
.pcf.gz extension. For example:ibm852-8x8 -sco-terminal-medium-r-normal--8-120-75-75-m-80-ibm852-1 ibm850-8x8 -sco-terminal-medium-r-normal--8-120-75-75-m-80-ibm850-1 ibm852-8x16 -sco-terminal-medium-r-normal--16-120-75-75-m-80-ibm852-1 ibm852-8x14 -sco-terminal-medium-r-normal--14-120-75-75-m-80-ibm852-1 ibm850-8x16 -sco-terminal-medium-r-normal--16-120-75-75-m-80-ibm850-1 ibm850-8x14 -sco-terminal-medium-r-normal--14-120-75-75-m-80-ibm850-1
For these fonts to be read, the X Server must now be restarted by running:
init 3 then
init 5or running:<Ctrl><Alt><Backspace> to restart the X Server.NOTE: When trying to run a number of "scoterms" from the UnixWare7/OpenUNIX8
console (CDE or Panorama) then after 23 sessions, regardless of the
value set by NUMSCOPT or NUMREGPT then you get the error message:/dev/spx: No such device or addressChange the default DISPLAY value from "unix:0.0" to "127.0.0.1:0.0" and you will be able to create the correct number of sessions as defined in the values of NUMSCOPT or NUMREGPT created.
An example is given below, creating 64 scoterm sessions:
DISPLAY=127.0.0.1:0.0
i=0
while [ $i -lt 64 ]
do
echo $i
/usr/bin/X11/scoterm &
let "i = $i + 1"
donePlease note that continued depression of CTRL-D to logout of these
sessions created can result in the CDE session locking which will, in
turn, require your system to be re-booted. This will depened on the
video driver being used.The /dev/spx resources are defined in:http://uw714doc.xinuos.com/en/man/html.7/streamio.7.htmlThis can be increased by:1) It is set by the number of units of the "sp" device, which in turn is set in the "resmgr".
To see the current limit, run# resmgr | awk '{if ($2 == "sp") print $0}'The third column in the line that is output is the maximum number of
simultaneously open sp devices the system will support. This should
also match what is in the the third column of the line beginning
with "sp" in the file /etc/conf/sdevice.d/sp.To increase the limit, run# resmgr -k <key> -p UNIT -v 120where <key> is the first column of the output of the resmgr | awk
command given above.2) /etc/conf/bin/idconfupdate -f3) Change the /etc/conf/sdevice.d/sp to 1204) /etc/conf/bin/idbuild -B5) init 6 See also
ta102703, "How do I make my xterm or SCOterm title bar contain my current directory?"
ta105238, "The "9 by 15" and "10 by 20" font sizes in scoterm(XC) are greyed-out."
ta105713, "When I select the 6x13 font size in ScoTerm, it is as wide as a 10x20 font."
ta108177, "If I try to change the font size for a scoterm, the window does not change size."
ta108255, "Line draw characters in my text application in a ScoTerm window are incorrect."
ta108323, "Scoterm client under XVision, only 6 x 13 and default fonts available."
ta109289, "TLS701 - OpenServer scoterm for SCO ansi terminal emulation." for older releases.
ta110981, "How to access a scoterm(XC) OpenServer client from an XFree86 X server."
ftp://stage.sco.com/TLS/README