Getting Started with OpenVMS: A Guide for New Users (HP Technologies)

The OpenVMS New Desktop is an implementation of the Common Desktop Environment (CDE). CDE combines the technologies of the X Window System, OSF /Motif, and other original components. CDE is supplied with several commercial systems, including a variety of UNIX systems from various vendors. Information about CDE, the X Window System, and Motif is available at

Logging out of the New Desktop

Before logging out, first save any work that has not been saved in any open applications.

There are several ways to log out of the New Desktop. You may click the exit control on the workspace switch (described later) or activate the Window menu of the Front panel (also described later) and select Log out, or right-click on an unoccupied area of the screen and select Log out from the workspace menu that appears.

Depending on your Style Manager settings, you may or may not be asked to confirm your desire to log out.

The Front Panel

The front panel is the bar located at the bottom of the screen with a variety of small graphical elements on it.

The front panel is present at all times under the New Desktop and is the starting point for most functions you will perform. It contains controls that perform a variety of functions. Some controls start applications. Others, such as the clock, only provide information.

A control may provide information and also start an application. For example, the mailer icon notifies you when there is new mail waiting, but it also starts the mail program when clicked. Certain controls, such as the trash can, are known as drop zones. For example, when you drag a file over the trash can and release it, the file is deleted.

Figure 15-11: The Front Panel

Parts of the Front Panel

The front panel is divided into three main sections. In the middle is the workspace switch. To either side are controls for applications, utilities, and subpanels.

The Front Panel Window Menu

Just as each window has a Window menu, so does the front panel itself. It is activated by the control located in the upper-left corner of the front panel, as shown in Figure 15-12.

Figure 15-12: The Front Panel Window Menu

It contains many of the same functions as any other menu (minimize, restore, etc.), but also contains a Log Out item that can be used to end your session.

The Workspace Switch

The New Desktop supports separate workspaces. Conceptually, workspaces are like having several separate monitors, each with a different set of applications and windows. By default, four workspaces are provided, named One through Four, but workspaces can be added, removed, and renamed at will. Each workspace can have its own background and color scheme as well. You may wish to use multiple workspaces to avoid too much clutter in one workspace or to group tasks into separate related units.

Figure 15-13: The Workspace Switch

To switch workspaces, click on the bar containing a workspace name. To add, remove, or rename a workspace, right-click on one of the workspace names and select the appropriate item from the pop-up menu that appears.

You may move a window to another workspace or make it present in all workspaces by selecting Occupy Workspace or Occupy all Workspaces from its Window menu (see "The Window Menu").

The workspace switch also contains three other controls: the lock, the activity indicator, and the exit control.

Other Front Panel Controls

The rest of the front panel is divided into controls and subpanels (discussed later). The controls, from left to right, are as follows:

Subpanels

A subpanel is a menu associated with a control slot on the front panel. You will notice that there is a small rectangular field just above each front-panel control. If this field contains an upward-pointing arrow, a subpanel is available.

Figure 15-25: A Subpanel Control

Clicking the arrow displays the subpanel. Clicking the arrow again (now pointing downward) hides it.

Figure 15-26: A Raised Subpanel

Each subpanel contains additional controls relevant to the front-panel control with which it appears. For example, the Personal Application subpanel contains personal applications, and the help subpanel holds help controls.

Selecting from a Subpanel

Simply hold the mouse pointer over the desired option and click.

Adding to a Subpanel

You may add an icon (e.g., an icon that starts an application) by dropping the icon onto the Install Icon control on a subpanel. The following example will add the Calculator application to the Personal Applications subpanel. The steps are as follows:

  1. Open the Personal Applications subpanel by clicking the up-arrow symbol over the Personal Application control.

  2. Open the Application Manager window by clicking the Application Manager control.

  3. Double-click DECwindows Apps to display the window containing the Calculator application.

  4. Locate the Calculator icon. Drag the calculator icon directly over the Install Icon control in the Personal Applications subpanel and drop (release the mouse button).

Figure 15-27: The Personal Applications Subpanel

Figure 15-28: The Application Manager

Figure 15-29: Adding an Icon to a Subpanel

The Calculator application is now added to the Personal Applications subpanel.

Setting Your Personal Application

To change your primary personal application, first add it to your Personal Applications subpanel, if necessary. This process is described above, in "Adding to a Subpanel."

While the Personal Applications subpanel is open, right-click on the application you wish to set as your default application. Click Copy to Main Panel.

Your selected application replaces the previous front panel control.

Deleting from a Subpanel

Use caution when deleting an item from a subpanel. Some items may be difficult to add again should it become necessary. In general, delete only items you have added yourself, thus ensuring that they can be replaced easily.

To delete from a subpanel, right-click on the desired control and click Delete.

Overview of Front-Panel Applications

This section briefly describes each application appearing on the front panel. It does not describe any applications in detail; instead, only major functions are briefly mentioned. Keep in mind that each application has a built-in Help menu that can answer most questions about its use.

Applications available via the Application Manager are discussed further on.

Calendar

This application is a traditional calendar as well as a day planner. It allows you to schedule events and send yourself notifications prior to their occurrences.

File Manager

The File Manager allows you to move around a directory tree and work with files. You may create files and directories (referred to as folders), list files by various criteria, and perform operations on them. For example, files may be dragged to the Printer, Text Editor, or Trash Can controls, which will automatically operate on the file. You may drag frequently used files directly onto the workspace for quick access.

Navigating the Directory Tree

When your view is set to By single folder, double-click on a folder shown in the view window to switch to that directory. When your view is set to By tree, click the "" sign beside a folder to reveal or hide the contents of that folder.

You may view folders other than your own if you have appropriate privileges. Use the Go To option from the File menu.

File Manager Menus

Mailer

The Mailer is essentially a GUI interface to the OpenVMS mail facility, whose text interface was previously described. Operation is virtually the same, except that commands are chosen from menus as opposed to being typed at a terminal. (See Chapter 12, "E-mail")

Default Printer

When clicked, this opens a dialog box from which you can select a default printer and various printer settings. When selected directly from the front panel in this way, you select default settings only; no file is actually printed. To print a file, drag and drop the file onto the printer control on the front panel.

Style Manager

With the Style Manager, you control several options regarding the appearance and functionality of your display, keyboard, and mouse. The Style Manager options are as follows:

Application Manager

Use the Application Manager to start applications not present on the front panel or any of its subpanels. The Application Manager presents folders containing GUI applications in much the same way that the File Manager presents other files.

When started, the Application Manager presents four folders: DECwindows Apps, DECwindows Utilities, Desktop Apps, and Desktop Tools. To select a folder, double-click on it.

The four folders and their contents are listed below.

Note 

Applications can be added to and removed from the Application Manager folders; the applications on your system may differ from those described here.

Application Manager: DECwindows Apps

The DECwindows Apps folder contains several DECwindows applications, which can be used under the New Desktop as well as the older DECwindows interface.

Application Manager: DECwindows Utilities

This folder contains utility programs mostly used to examine or modify the internal states of the GUI software, generally requiring a somewhat advanced knowledge of the GUI's internals to be of use. They are not discussed in this book.

Application Manager: Desktop Apps

This folder contains applications associated with the New Desktop. These are separate from the applications in the DECwindows Apps folder, many of which are associated with the older DECwindows environment.

Application Manager: Desktop Tools

This folder contains several utilities that are GUI interfaces to normal OpenVMS commands and X Window System utilities. Some entries are duplicates of items in other folders and will not be mentioned again here.

Except where noted, each of these tasks can be performed at the DCL prompt using the command indicated.

Help Manager

The Help Manager control starts the Help Manager with an introductory text and links for each piece of software that has registered its help materials. On a new OpenVMS system, the only topic shown will be the CDE itself.

Help on specific topics is available in the Help Manager subpanel, as well as in the Help menus within applications.

Trash Can

The Trash Can control is a drop zone; files you drag and drop to the trash can are discarded. Clicking the trash can control opens a view of files currently in the trash can, from which you may recover files before their actual deletion. You also may select "shred," which immediately deletes the selected file.

New Desktop Examples

Moving a Window Between Workspaces

You may move a window to other workspaces or make it present in all workspaces by using the Occupy Workspace and Occupy All Workspaces items from the Window menu.

Figure 15-30: Moving a Window to Another Workspace

Copying an Application or File Directly to the Desktop

If you frequently use the same application or file, you may wish to copy it directly to the desktop. Copying an item to the desktop is easy. Simply drag the icon to the desktop and release.

Figure 15-31: Copying an Item to the Desktop

To remove an item from the desktop, right-click in the icon and select Remove from Workspace.

Creating an Action

You can create your own icons to perform common tasks. The action performed is up to you and can be almost anything. This particular example will show you how to create an action to identify files in your home directory that have been modified during the past week.

Note 

This action is implemented as a command procedure. You may wish to refer to Chapter 9, "Command Procedures," for more information.

  1. The first step is to create a command procedure in your home directory called CHECK_FILES.COM. Use any text editor you like, whether it's the CDE editor on the front panel, EDT in a DECterm window, or another editor. CHECK_FILES.COM should have the following contents:

    $ DIRECTORY *.* /MODIFIED/SINCE="-7-"/DATE=MODIFIED $ WRITE SYS$OUTPUT "" $ INQUIRE/NOPUNCTUATION YESNO "Press ENTER to close window" $ EXIT

  2. Once CHECK_FILES.COM is created, start the Application Manager, double-click Desktop Apps, then double-click Create Action.

  3. In the field Action Name enter Check Files.

  4. In the field Command When Action Is Opened, enter "@check_files".

  5. In the field Help Text for Action Item, enter "Shows recently modified files."

  6. From the Window-Type drop-down box, select Terminal (auto-close). (To display the choices, click directly on the box containing Graphical (X-Window)).

  7. From the File menu, select Save. A message will appear saying, "The new action Check Files has been placed in your home folder."

Figure 15-32: Check Files Action and Procedure As Shown in File Manager

The item Check Files now appears in the File Manager view of your home folder (1). Double-clicking it causes the command procedure to execute, showing recently modified files. You may execute it from the File Manager or copy it to the desktop, as described previously.

Note 

If the window appears briefly, but disappears too quickly to read its contents, an error has occurred. See below.

You will note that in your File Manager view, the command procedure CHECK_FILES.COM will itself appear (2). Double-clicking it will also cause it to execute, but with the following differences: you will be prompted for parameters (which this action does not need), and the window will not automatically close when the procedure is finished.

There is a further distinction to be pointed out between executing the action versus the command procedure. Let's say you were to copy each of them to the desktop, as shown in Figure 15-33:

Figure 15-33: Check Files Action and Procedure on the Desktop

There is an important distinction between these two icons: The command procedure icon executes a specific version of the procedure, whereas the action icon executes the latest version. If you modify the command procedure after creating the icons, only the action icon will automatically use the new version. The command procedure icon will continue to execute the original version.

Actions may be created for purposes other than executing command procedures. You may specify an individual DCL command or an X Window System executable program to be executed instead of a command procedure.

If the Window Disappears Too Quickly To Read

The preceding paragraphs pointed out some advantages of executing command procedures from an action icon rather than a command procedure desktop icon. However, there is at least one drawback: Some errors can occur which cause the window to appear and disappear so quickly that you cannot read the error message.

If this happens, use the Create Action program to modify the action. From the File menu, select Open and choose the CHECK_FILES.DT action. Change the Window Type to Terminal (Manual Close) and select Save from the File menu.

Now when the action is executed, the window is left open, allowing you to read any error messages and correct the command procedure error that caused the problem. Afterward, use Create Action to switch the window back to Auto Close.

Starting Applications Automatically

Rather than having a startup window containing applications to start automatically when you log in, the CDE environment provides a way to save your entire session. The next time you log in, all of the same applications will start with their windows sized and positioned just as they were when you saved them.

To establish an initial set of applications, follow the following steps:

  1. First, start any applications you would like to run automatically at startup.

  2. Size and position their windows according to your preferences.

  3. Exit any applications you do not wish to start automatically.

  4. Add any desired icons to your workspace(s), and remove any undesired ones (these can be action, file, or application icons).

  5. Once your session is set up the way you would like it to be at startup, save it as follows: Start the Style Manager and select Startup.

  6. From that menu, select Set Home Session. This saves the current state of your session, except for the Style Manager. Ensure that At Login: Return to Home Session is selected.

At future logins, your session will be just as it was when you saved it, without the Style Manager windows.

On the other hand, if you would like logins to restore your session to the way it was when you logged out, see the following section, "Resuming Your Session at Next Login."

Resuming Your Session at Next Login

If you would like to have each login session resume exactly as it was when you logged out, follow these steps:

  1. Start the Style Manager and select Startup.

  2. From that menu, select At Login: Resume Current Session.

At each logout, the state of your session will be preserved. This means that at each login, applications and icons will be restored to the way they were at the preceding logout.

The DECwindows Interface

In addition to the New Desktop (CDE), OpenVMS provides the older DECwindows interface used with previous OpenVMS versions. It is maintained partially for upward-compatibility reasons. New users may prefer to use the New Desktop exclusively and, thus, may skip this section

DECwindows Basics

The concepts of applications, windows, menus, use of the mouse, and many other topics apply to DECwindows in essentially the same way as to the New Desktop and are not repeated here.

Starting DECwindows

To start DECwindows, click Options at the login screen. From Session, choose DECwindows Session.

When you start a DECwindows session, the Session Manager starts. The session manager is the starting point for most DECwindows functions and is discussed after the Window Manager.

The Window Manager

The Window Manager is actually a separate component that handles the manipulation of windows: moving, resizing, minimizing, and so forth. Without a window manager, it is still possible to run applications and perform many essential functions, but it is cumbersome and this book assumes that a window manager is running.

If a window manager starts automatically, you may ignore this section. You can tell whether a window manager is running by the appearance of the Session Manager when DECwindows starts.

Figure 15-34: No Window Manager

Figure 15-35: The MWM (New Desktop) Window Manager

Figure 15-36: The DECwindows Window Manager

Note 

If you are using an X Window System client, you may need to start a window manager manually. There may be more than one window manager application available, and an individual user may select one depending on his or her preferences. This book recommends the program DECW$MWM (fully specified as SYS$SYSTEM:DECW$MWM.EXE), if it is supported. If DECW$MWM is not supported, use DECW$WINMGR (the DECwindows Window Manager). The former is generally associated with the New Desktop, and the latter with DECwindows. If you need to start a window manager manually, the details are particular to the client software you are running. Consult your system or network manager for instructions on starting a window manager.

Window Manipulation Under DECW$WINMGR

In most respects, the DECW$WINMGR (DECwindows) Window Manager is comparable to the DECW$MWM (New Desktop) Window Manager. However, there are some differences with regard to resizing, minimizing, maximizing, and restoring. The following paragraphs describe some differences to be found in DECW$WINMGR.

The Session Manager

The starting point for most DECwindows functions is the Session Manager.

Figure 15-39: The Session Manager

Note 

Depending on your configuration, the Session Manager may be displayed as an icon at the beginning of your session. If so, double-click the icon to restore the Session Manager window.

Figure 15-40: Session Manager as an Icon

The Session Manager contains four menus from which you may start applications, set options and preferences, and obtain help. Each of the four menus is described in the following sections.

Ending a DECwindows Session

From the Session Manager, click the Session menu and select End Session. Alternatively, use the window menu of the Session Manager and select Close.

The Session Menu

The Session menu contains functions that are mostly global in nature; they affect the entire session.

The Applications Menu

This menu contains most of the same applications as previously discussed in "Application Manager: DECwindows Apps."

The most noticeable difference is the FileView application. This is similar in function to the New Desktop File Manager, but has a different look and feel.

For applications other than FileView, please refer to their descriptions in the section covering the New Desktop.

Applications: FileView

The FileView application performs the same basic functions as the New Desktop File Manager: navigating the directory tree and creating directories and printing files, to name a few.

However, FileView includes several menu selections that perform many of the functions that are separated under the New Desktop, such as executing a DCL command, comparing files, and examining X Window System internal information. The New Desktop has many of these functions spread out as separate applications, whereas FileView groups them together.

The following paragraphs briefly discuss how to use FileView and its menus.

FileView: Navigating Directories

In Figure 15-41 below the menu bar of FileView is the current disk and directory (1). Any subdirectories of the current directory are shown in the narrow frame occupying the left side of the window (2). Files within the current directory are shown in the large area occupying most of the window (4).

Figure 15-41: FileView

To navigate to a subdirectory, click on its name in the left-hand pane. When you move to the subdirectory, one of two things may happen. If you are at the top or bottom of a directory tree, a single pane of directories will be present (2). If you are not at the top or bottom, there will be two panes of directory levels shown (2, 3).

To navigate to an arbitrary directory, perhaps on another disk, click on the current directory name and edit it directly. Press ENTER or click Apply to move to the new directory.

To navigate to the parent directory, click its name, which appears in a box to the left of the current directory display. If you are already at the top of the tree, no entry will appear there.

Note 

The top of the directory tree may not represent the top-level directory of the disk. For example, your home directory may represent the top of the FileView tree but not of the directory tree of the disk that contains it. To establish a new top-of-tree, edit the directory name directly.

FileView: The File Menu

This menu contains two items: New View and Quit. New View opens another window identical to the first. By having multiple views open, you may work with more than one directory tree at a time.

FileView: The Views Menu

This menu provides a quick way to change some of the common view options. You may decide to show all versions or only the highest version of files, include the size and date of files, or you may select a brief view that does not include this information. You may also return directly to your login directory via this menu.

FileView: The Commands Menu

This menu contains commands that have DCL equivalents and, in fact, are GUI shells around normal DCL commands.

FileView: Utilities Menu

This menu contains commands that display the internal state of the GUI software. A somewhat advanced knowledge of the GUI is required for most of these utilities to be of use, so they are not covered here.

FileView: Options Menu

This menu contains commands that allow you to customize many aspects of the way FileView operates.

The Options Menu

Summary

This section has presented a brief overview of the DECwindows environment. As previously stated, DECwindows is no longer the default GUI environment for OpenVMS, but is still provided for compatibility reasons and for those users who became accustomed to it under previous OpenVMS versions.

[1]Many OpenVMS systems do not employ file expiration dates. An expiration date, if set, is for identification purposes only. The system takes no action when a file expires.

Категории