[Contents] [Prev] [Next]
Appendix M
Special Configuration Issues for Sun SPARC Solaris Systems
Note that full use of C-MOLD requires access to the UNIX xterm command. Most users will already have the /usr/openwin/bin directory in their path so that xterm will automatically be found. If you encounter problems locating xterm, you should check and include /usr/openwin/bin, if necessary, in your path setting.
On a Sun SPARCstation that runs Solaris (SunOS), the default window manager is set for the OPEN LOOK Window Manager. In order to start the Motif Window Manager, you need to set Motif environment variables:
- Set Motif Window Manager as the Default
- Enable Quit on the Workspace Menu
- Enable Drag and Drop for the Motif Window Manager
Note: C-MOLD 98 does not support the OPEN LOOK Window Manager.
Setting Motif Environment Variables
Include commands into the user's .profile for Bourne and Korn shell users or the .cshrc file for C shell users to set the following environment variables. Then they will be executed each time you create a new shell window. Be careful to not overwrite any needed existing values.
- Set the MOTIFHOME environment variable to the directory containing the Motif
libraries:
-
$ MOTIFHOME /usr/dt
- Set the OPENWINHOME environment variable to the directory containing the Open
Windows libraries:
-
$ OPENWINHOME /usr/openwin
- Set LD_LIBRARY_PATH to include $MOTIFHOME/lib:
-
$ LD_LIBRARY_PAT H $MOTIFHOME/lib:$OPENWINHOME/lib
- Include the values $MOTIFHOME/bin and /SUNWmfwm in your PATH environment
variable:
-
$ PATH $MOTIFHOME/bin/opt/SUNWmfwm:$PATH
- Set the UIDPATH environment variable to opt/SUNWmfdm:
-
$ UIDPATH /opt/SUNWmfdm/%U%S
- Include the value $MOTIFHOME/lib/%T/%N%S in your XFILESEARCHPATH
environment variable:
-
$ XFILESEARCHPATH $MOTIFHOME/lib/%T/%N%S:$XFILESEARCHPATH
- Set the XMBINDDIR environment variable to $MOTIFHOME/lib/bindings:
-
$ XMBINDDIR $MOTIFHOME/lib/bindings
- Add /usr/dt/man to MANPATH:
-
$ MANPATH /usr/dt/man:$MANPATH
Setting Motif Window Manager as the Default
The openwin script indirectly starts the OPEN LOOK Window Manager (OLWM). If you want the script to start the Motif Window Manager, you can edit the .xinitrc file in your home directory.
Note: MWM is available only if the Solaris SUNWmfwm is installed.
- Edit the .xinitrc file in your home directory.
- If you do not have an .xinitrc in your home directory, copy the file $OPENWINHOME/lib/Xinitrc to your home directory and rename it .xinitrc.
- Replace olwm with mwm in the following line:
-
$ olwm -syncpid $pid &
- Save the changes and quit the .xinitrc file.
Enabling Quit on the Workspace Menu
The Motif Window Manager does not have an option to exit MWM. Use the following steps to enable Quit on the Workspace menu.
- Type:
-
$ cp /opt/SUNWmfwm/lib/system.mwmrc %HOME/.mwmrc
- Edit the $HOME/.mwmrc file and remove the leading exclamation mark (!)
-
$ !"Quit..." f.quit_mwm
Enabling Drag and Drop for the Motif Window Manager
To ensure the OpenWindows drag-and-drop option runs correctly with MWM, modify the openwin-sys script in /usr/openwin/lib ($OPENWINHOME/lib).
- Become superuser, and edit the $OPENWINHOME/lib/openwin-sys script. Remove
the comment (#) from the following line:
-
$ #dsdm &
- Save the changes and quit the file.
- Exit the window system and restart it.
[Contents] [Prev] [Next]
Copyright © 1997-1998 Advanced CAE Technology, Inc. All rights
reserved.