HP OpenVMS Systems Documentation |
Managing DECwindows Motif for OpenVMS Systems
3.3 Customization Examples
This section provides several examples that use the symbols described
in Section 3.2.
Example 3-2 shows some typical workstation-specific setup options.
3.3.2 Setting Up a Dual-Head System on a VAX System (VAX Only)
On VAX systems, you can use the examples and instructions in this
section to set up dual-head systems. Section 3.3.3 provides instructions
for setting up a dual-head system on an AXP system.
Example 3-3 shows a sample setup for a dual-head VAXstation 2000 or VAXstation 3100 system that has one keyboard, one mouse, and two monitors (one color and one monochrome).
3.3.2.2 Sample Setup for a Dual-Head System With Different Monitors (VAX Only)Example 3-4 shows a sample setup for a dual-head VS35x0 and GPX system. This configuration has one keyboard, one mouse, and two different color monitors. GPX systems support 16x16 cursor fonts, so the DECW$DEVICE font is defined to take this into account.
3.3.3 Setting Up a Dual-Head System on an AXP System (AXP Only)On AXP systems, the DECW$PRIVATE_SERVER_ SETUP.TEMPLATE includes the following command to set up your system for dual-head use:
The template file is located in the SYS$MANAGER directory. To invoke
dual-head support, copy the template file to
SYS$MANAGER:DECW$PRIVATE_SERVER_SETUP.COM. Editing of this file is not
needed.
Example 3-5 shows a sample setup for a system to use TCP/IP and local connections but not DECnet connections.
3.3.5 Changing the Default Keyboard LayoutThis section describes how to change the default keyboard setting. See Appendix B for a listing of all languages, keyboard models, and keymap names. The symbol DECW$KEYMAP translates to the directory specification where the keyboard mapping file resides. It is provided for your reference only. Do not modify its value. To override the default keyboard layout, determine the correct name from the model number of your keyboard, as follows:
Example 3-6 shows a sample setup for two workstations with Dutch keyboards and 100-dpi monitors.
3.4 Specifying New FontsYou can add new fonts by following these steps:
3.4.1 Using Third-Party FontsIf you want to use a third party font, choose one of the following options:
End the current session and start a new session for the new font to become available. If you want to use Charter or Lucida fonts and they do not reside on your system, use the example font-alias files provided by DECwindows to give the font name aliases to existing DECwindows font names. For 75-dpi monitors, copy the following files to the SYS$COMMON:[SYSFONT.DECW.USER_75DPI] directory:
To use other third-party fonts, create the DECW$FONT_ALIAS.DAT file in either the SYS$COMMON:[SYSFONT.DECW.USER_75DPI] directory or the SYS$COMMON:[SYSFONT.DECW.USER_100DPI] directory, depending on whether the third-party font is 75 dpi or 100 dpi. The format of the font alias file is: alias-font-name actual-font-name If the font names contain embedded spaces, enclose the names in double quotes (" "). The alias-font-name value is the third-party font name, and the actual-font-name value is a DECwindows font name.
See the VMS DECwindows Guide to Xlib (Release 4) Programming: MIT C Binding for DECwindows font names.
If you use a font file name that is not a standard font name (standard font files names are those with a .DECW$FONT or .PCF file type), then perform one of the following actions:
3.4.3 Font Server Support (AXP Only)On AXP systems, the R5 display server includes a font server renderer that supports the use of font servers to access fonts. This allows font files to be distributed on systems other than the system on which the display server is running. You can add font servers to the font path by defining the symbol DECW$FONT_SERVERS in the site-specific server setup file SYS$MANAGER:DECW$PRIVATE_SERVER_SETUP.COM. Depending on the transport type, use one of the following methods:
Multiple font servers can be added by defining the symbol as a
comma-separated list. The symbol is not case sensitive.
DECwindows transport is a general data-transfer mechanism for moving X Window protocol requests between the client and the server. DECwindows Motif provides support for the following transports:
The default transports that DECwindows uses are Local and DECnet. This
section describes these transports. Section 3.6 provides information
about using alternative transports.
You should use local transport when a DECwindows client and the server
are executing on the same OpenVMS system. Local transport improves
performance because data is transferred between client and server
through shared memory. Using local transport reduces the number of data
copies in the system, and extra overhead is not incurred by accessing
the network.
DECwindows also provides support for DECnet for OpenVMS as a transport
mechanism. Before you can use DECnet, you must have DECnet for OpenVMS
installed and running on your system. If DECnet or DEC TCP/IP is shut
down while the server is attached to it, the transport will
continuously poll the network to reattach when the network is restarted.
This section describes how to use alternate transports and includes
information about writing and installing a transport interface layer.
DECwindows Motif contains support for the TCP/IP transport. This support requires DEC TCP/IP Services for OpenVMS or a functionally compatible TCP/IP product. Before you can use DECwindows TCP/IP transport interface, you must install DEC TCP/IP Services for OpenVMS. If you want to use the TCP/IP as a transport, you must first have the OpenVMS/ULTRIX Connection software (UCX) installed on your system. You do not need a UCX Product Authorization Key (PAK) to use UCX with DECwindows. For information about UCX, see the appropriate UCX documents. DECwindows Motif for OpenVMS supports only UCX for TCP/IP transport use. If you intend to use DEC TCP/IP Services for OpenVMS as a network transport for DECwindows Motif for OpenVMS, you must also include the following line in SYS$MANAGER:SYSTARTUP_VMS.COM file (or the SYS$MANAGER:SYSTARTUP_V5.COM file in VMS Version 5.5--2 systems) :
Also, the TCP/IP transport does not pass user names for authorization to the server. If you are using TCP/IP transport for a given node, use an asterisk (*) in the Username entry box of the Security Options dialog box. To get the Security Options dialog box, pull down the Options menu from the Session Manager's menu, and choose the Security... menu item. If you are using TCP/IP to display an application on your own system, authorize node zero (0), which is the local node.
For more information about TCP/IP concepts, see the DEC TCP/IP
Services for VMS System Management Guide.
DECwindows Motif supports DECnet for OpenVMS, local, and TCP/IP
transports. However, you can use other transports with DECwindows by
writing a DECwindows transport interface layer. Third-party vendors
supply additional transports, such as other TCP/IP transports.
For information about writing a transport interface, see the VMS DECwindows Transport Manual. The transport interface image's file name must have one of the following formats, where name is the unique transport name:
You can then specify the name in the SET DISPLAY command before invoking a client application, as in the following example:
See Section 4.1 for more information about setting the display.
Install the image as a protected image in the SYS$SHARE directory (as defined by an executive mode logical name). Digital recommends that you install the image by adding the following line to SYS$MANAGER:SYSTARTUP_VMS.COM (or the SYS$MANAGER:SYSTARTUP_V5.COM file in VMS Version 5.5--2 systems) :
You can also include this command in a startup file that
SYSTARTUP_VMS.COM (SYSTARTUP_V5.COM file in VMS Version 5.5--2) calls.
To use this transport with the DECwindows server, customize the server
startup as described in the Section 3.1.
This section lists the commands that you can use to determine the
current server settings.
Use the following command to display all of the logical names in the server logical name table that are defined from symbols specified in the DECwindows startup process:
Example 3-7 illustrates a typical display.
3.7.2 Using the XDPYINFO UtilityYou can use the DECwindows utility XDPYINFO (X Display Information) to query the server directly and report various server parameters. The following example shows how to invoke the XDPYINFO utility. Before executing this command, make sure you have the correct display selected by using the SET DISPLAY command. See Section 4.1 for more information about showing and setting the display.
The following example illustrates a typical display:
|