[an error occurred while processing this directive]
HP OpenVMS Systems Documentation |
HP DECwindows Motif for OpenVMS
|
Previous | Contents | Index |
The method used to translate a host name depends on whether IPv6 or IPv4 is selected. If the INET6 or TCPIP transport is specified, and the logical name DECW$IPV6_SUPPORT is defined as "TCP_IS_INET6", the TCP/IP Services getaddrinfo function is used to retrieve the address information from either the local database or the domain name server. If multiple addresses are available, all IPv6 addresses are tried before any IPv4 addresses. The order in which addresses are tried within each IP version is indeterminate.
If the INET transport is specified, and the logical name DECW$IPV6_SUPPORT is not defined as "DISABLED", the TCP/IP Services getaddrinfo function is used to retrieve the IPv4 address information from either the local database or the domain name server. If multiple IPv4 addresses are available, the order in which the addresses are tried is indeterminate.
If the INET or TCPIP transport is specified, and the logical name
DECW$IPV6_SUPPORT is defined as "DISABLED", the TCP/IP Services
gethostbyaddr function is used to retrieve the address information from
either the local database or the domain name server. This method is
only provided for compatibility with earlier versions of DECwindows Motif.
4.2 Understanding the Login Process
This section describes the DECwindows login process, which begins when
the Start Session dialog box appears to after the Session Manager
starts.
4.2.1 The New Desktop Login Sequence
When you enter a correct user name and password in the Start Session dialog box, the following events occur:
When you enter a correct user name and password in the Start Session dialog box, the following events occur:
If you are logging in to a DECwindows Motif system for the first time after having used the XUI version of DECwindows, DECW$WSINIT.EXE will read your XUI resource files and convert them to DECwindows Motif format. |
The following sections describe techniques to improve or customize the
default DECwindows login environment.
4.3.1 Improving Application Startup Performance
Extensive SYLOGIN.COM or LOGIN.COM command procedures can slow down application startup. Many of the operations performed in a SYLOGIN.COM or LOGIN.COM are meaningless for DECwindows application startup. Therefore, the SYLOGIN.COM and LOGIN.COM files should be conditionalized for DECwindows application startup performance.
When starting a DECwindows application, only a minimum of SYLOGIN.COM and LOGIN.COM commands should be executed. Typically, the commands that should be executed are the redefinition of DECW$USER_DEFAULTS (if present), and other logical name definitions if the user will be referencing them from within the context of a DECwindows application.
The following code segment can be inserted into SYLOGIN.COM and LOGIN.COM immediately following the commands necessary for DECwindows:
$ mode = f$mode() $ tt_devname = f$trnlnm("TT") $ session_mgr_login = (mode .eqs. "INTERACTIVE") .and. - (f$locate("WSA",tt_devname) .ne. f$len(tt_devname)) $ session_detached_process = (mode .eqs. "INTERACTIVE") .and. - (f$locate("MBA",tt_devname) .ne. f$len(tt_devname)) $ if session_mgr_login .or. session_detached_process then exit |
You can customize the DECwindows Motif login screen to display alternate logos or screen colors. To customize the login screen, create a file named DECW$LOGIN.DAT in the SYS$MANAGER directory that contains your resource definitions. The custom resource definitions from SYS$MANAGER:DECW$LOGIN.DAT are merged with the resource definitions supplied by HP in SYS$COMMON:[DECW$DEFAULTS.SYSTEM]DECW$LOGIN.DAT to form the new login screen.
Keep customized versions of the DECW$LOGIN.DAT resource file in the
SYS$MANAGER directory, and not in
DECW$SYSTEM_DEFAULTS, to prevent your customized file from being
overwritten when upgraded to a newer version of DECwindows Motif software.
In addition, storing the file in the SYS$MANAGER directory prevents the
custom file from superseding the file that is supplied by HP.
4.3.2.1 Customizing the Logo and Login Screen Colors
You can define the resources in Table 4-4 to control the position and colors of the logo and the color of the screen background in the Start Session screen.
Resource | Description |
---|---|
rootColor | Color of the screen background. |
logoColor | Color of the logo (default is burgundy). |
logoX | x position of the logo (default is 0). |
logoY | y position of the logo (default is 75). |
centerLogoX | Boolean; if true (default), the logo is centered horizontally on the screen. |
For example, to position the logo at x=100, y=600, add the following resource definitions to the SYS$MANAGER:DECW$LOGIN.DAT file:
decw$login.logoX: 100 decw$login.logoY: 600 decw$login.centerLogoX: false |
You can define the resources in Table 4-5 to control the position of the Start Session and Set Password dialog boxes.
Resource | Description |
---|---|
centerStartSessionX | Boolean; if true (default), the Start Session dialog box is centered horizontally. |
centerStartSessionY | Boolean; if true (default), the Start Session dialog box is centered vertically. |
centerSetPasswordX | Boolean; if true (default), the Set Password dialog box for expired passwords is centered horizontally. |
centerSetPasswordY | Boolean; if true (default), the Set Password dialog box is centered vertically. |
For example, to position the Start Session dialog box at x=100, y=600, add the following resource definitions to the SYS$MANAGER:DECW$LOGIN.DAT file:
decw$login.centerStartSessionX: false decw$login.centerStartSessionY: false decw$login.HiddenShell.x: 100 decw$login.HiddenShell.y: 600 |
To position the Set Password dialog box at x=30, y=100, add the following resource definitions to the SYS$MANAGER:DECW$LOGIN.DAT file:
decw$login.centerSetPasswordX: false decw$login.centerSetPasswordY: false decw$login.SetPasswordShell.x: 30 decw$login.SetPasswordShell.y: 100 |
To prevent a node name from being displayed in the Start Session dialog box, add the following resource definition to the SYS$MANAGER:DECW$LOGIN.DAT file:
decw$login.displayNodeName: false |
System managers or other privileged users can display custom messages (such as greetings, security updates, and system broadcasts) prior to session log in on the New Desktop.
At session startup, DECwindows Motif searches for the message file SYS$MANAGER:DECW$GREET.TXT. If the file is found, a window that contains the text from the message file is displayed in front of the login dialog box. Users must then press the Return key or click OK to continue and log into their New Desktop session. If the file is not found, the window is not displayed, and users can log into their New Desktop session directly.
To create a custom message, do the following:
Lines that do not contain any text or formatting characters are ignored. To insert a blank line in the message file, enter at least one space character <sp> at the beginning of the line. |
You can disable the display of the suggested password list when logging into New Desktop with an expired password.
To suppress the suggested password list, define the system logical CDE$NOGENPWD to a non-zero value, as follows:
$ DEFINE/SYSTEM CDE$NOGENPWD 1 |
You can display file and device names in UNIX-style format in the File Selection widget and the File Manager.
When this feature is enabled, file and directory specifications are displayed according to UNIX pathname conventions, such as using slashes instead of square brackets to delimit directory trees. In addition, the case of device names is preserved when displaying UNIX-style pathnames versus being converted to uppercase.
The following sections briefly describe how to enable this feature.
4.3.5.1 Enabling in the File Selection Dialog Box
To enable the display of UNIX-style filenames in the File Selection dialog box, set one or more of the following logicals to a non-zero value:
These logicals can be defined system-wide by adding them to the SYS$MANAGER:SYLOGICALS.COM file, or defined on a per-user basis by adding them to each user's DECW$LOGIN.COM or LOGIN.COM file.
To force the File Selection dialog box to return selected filenames in
OpenVMS format while displaying them in UNIX format, define the logical
DECW$XM_UNIX_NAMES_TO_VMS. This enables other applications that rely on
filenames in OpenVMS format to interact successfully with the File
Selection dialog box while still displaying filenames in UNIX format.
4.3.5.2 Enabling in the File Manager
To enable the display of UNIX-style filenames in the File Manager, set the logical CDE$DTFILE_UNIX_NAMES to a non-zero value.
This logical can be defined system-wide by adding it to the
SYS$MANAGER:SYLOGICALS.COM file, or defined on a per-user basis by
adding it to each user's DECW$LOGIN.COM or LOGIN.COM file.
4.4 Customizing the Startup Environment
This section provides an overview of how to change the default
DECwindows Motif startup environment using application customization
parameters.
4.4.1 Using the DECW$PRIVATE_APPS_SETUP File
The DECW$PRIVATE_APPS_SETUP.TEMPLATE file is located in the SYS$MANAGER directory. This template file contains information you can use to customize your DECwindows Motif startup environment.
By using this file, you can modify the client areas listed in Table 4-6. Desktop-dependent parameters are noted. See the Getting Started With the New Desktop manual for additional parameters that are specific to the New Desktop environment.
Client Area | Global Symbol | Default |
---|---|---|
Applications | ||
Bookreader online book directory | DECW$BOOK | SYS$SYSROOT:[DECW$BOOK] |
FileView command file directory | VUE$LIBRARY 1 | DECW$SYSCOMMON: [VUE$LIBRARY.USER], DECW$SYSCOMMON: [VUE$LIBRARY.SYSTEM] |
FileView public profile file directory | VUE$LIBRARY_WRITE 1 | SYS$COMMON:[VUE$LIBRARY.USER] |
Console Window | ||
Enable or disable the display of system messages in the console window | DECW$CONSOLE_SELECTION | Disable |
Specify the position of the console window | DECW$CONSOLE_GEOMETRY | -0,-0 |
Desktop | ||
Desktop to run at session startup | DECW$START_NEW_DESKTOP | True (Run New Desktop) |
Display Devices | ||
SET DISPLAY command parameters |
DECW$APPSNODE
DECW$APPSSERVER DECW$APPSSCREEN |
Node 0
Server 0 Screen 0 |
Enable or disable support for IPv6 over the TCP/IP transport | DECW$IPV6_SUPPORT | None |
Examples and Tutorials | ||
Example program directory | DECW$EXAMPLES 2 | SYS$SYSROOT:[SYSHLP.EXAMPLES.DECW] |
Computer-based instruction file directory | DECW$CBI | SYS$SYSROOT:[SYSCBI.DECW$CBI] |
Keymaps | ||
Keymap file directory | DECW$KEYMAP | DECW$SYSCOMMON: [SYS$KEYMAP.DECW.USER], DECW$SYSCOMMON: [SYS$KEYMAP.DECW.SYSTEM] |
Login | ||
LOGINOUT log file | DECW$LOGINLOG | None |
Use multiple connections during loginout | DECW$LOGINMANY | False |
Login logo | DECW$LOGINLOGO 1 | None |
Run login logo in a subprocess | DECW$LOGINLOGOSUB 1 | False (detached process) |
Provide data from the specified X authority file during loginout | DECW$LOGIN_XAUTHORITY | SYS$LOGIN: DECW$XAUTHORITY.DECW$XAUTH |
Proxy Manager | ||
Proxy Manager configuration file | DECW$PROXY_MANAGER_CONFIG | None |
Proxy Manager log file | DECW$PROXY_MANAGER_LOG | None |
Default command line options for the Proxy Manager application at startup | DECW$PROXY_MANAGER_OPTIONS | /PORT=6500/TRANSPORT= "LOCAL,TCPIP,DECNET" |
Default command line options to run when the Proxy Manager is started as a detached process | DECW$PROXY_MANAGER_QUOTAS | /PROCESS_NAME=DECW$PROXY |
Session Management | ||
Command that runs a session | DECW$SESSIONMAIN 1 | Run SYS$SYSTEM:DECW$SESSION |
Command that resets a session | DECW$SESSIONEND 1 | None |
Enable or disable session logging | DECW$SESSIONLOG 1 | True (Log file on) |
System Startup | ||
DCL command executed when DECwindows startup is complete | DECW$MAINAPP 1 | Run SYS$SYSTEM:DECW$STARTLOGIN |
Command procedure that runs after user authorization is complete | DECW$SESSIONCOM | SYS$MANAGER:DECW$STARTSM.COM |
DECwindows Motif SYLOGIN command procedure | DECW$SYLOGINCOM | None |
UNIX Compatibility | ||
Define logical names for UNIX compatibility | DECW$UNIXLOGICALS | True |
User Resources | ||
Command that initializes the system with the correct user resource values | DECW$SESSIONINIT | Run SYS$SYSTEM:DECW$WSINIT |
Utilities | ||
X Window System Utilities directory | DECW$UTILS | SYS$SYSROOT:[SYSHLP. EXAMPLES.DECW.UTILS] |
To customize any of these areas, copy the SYS$MANAGER: DECW$PRIVATE_APPS_SETUP.TEMPLATE file to SYS$MANAGER: DECW$PRIVATE_APPS_SETUP.COM, as in the following example:
$ COPY SYS$COMMON:[SYSMGR]DECW$PRIVATE_APPS_SETUP.TEMPLATE - _$ SYS$COMMON:[SYSMGR]DECW$PRIVATE_APPS_SETUP.COM/LOG |
Then edit the file to change the appropriate symbol.
The following sections contain examples for customizing the DECwindows client environment using the template file.
This file contains two sections, a Cluster Common section, and a Cluster Member Workstation-Specific section. Add the new symbol to the appropriate section.
Previous | Next | Contents | Index |