Login Locale and Font Path
You select the preferred language when you log in to Solaris CDE. The following Solaris CDE login screen shows the Language choice on the Options menu.
On workstations, font paths are automatically set to include fonts (and aliases) associated with both the preferred language and the system's base "C" locale. For Xterminals, these fonts are automatically supplied by an X11 font server.
Using Workstations as XTerminals
If you have older workstations or workstations with 16 megabytes or less of memory, you can use them as Xterminals when they are loaded with Solaris 2.4 software or later (or Solaris 2.3 software with the Xserver jumbo patch).
Note - If the fonts on your workstation's screen do not display normally when following the procedures below, Solaris CDE may not be installed on the host workstation. Use the pkgadd utility to add the SUNWdtft() Solaris CDE font package separately from a Solaris CDE 1.0.x unbundled release.
To Use Chooser To Select a Host CDE Login
Exit any running window system.
Start Chooser. From the console command line, type the following commands (using csh):
setenv OPENWINHOME /usr/openwin
/usr/openwin/bin/X -indirect CDE_login_host
The Xserver starts and displays the Chooser window from the host.
Select the desired login host from the Chooser window.
To Use a Specific Host CDE Login
/usr/openwin/bin/X -once -query CDE_login_host |
The Xserver starts and displays the Login screen from the host. The -once option will exit the server after one login/logout session. If the -once option is not added, the Login screen appears again after the Solaris CDE logout.
To Use the First Available Host Login
/usr/openwin/bin/X -broadcast |
This starts the Xserver. On the local sub-net, it broadcasts a request for an XDM (X Display Manager) login service. If any systems on the sub-net are running the Solaris CDE Login Manager (or any other XDM-based login window), the first host to respond places its login window on your desktop.
Special CDE Configurations
This section addresses special configurations.
Customizing Mail Printing
The CDE Mailer prints mail messages using the Print action that is defined for the DTMAIL_FILE data type. It does not use the print script specified by the OpenWindows Mail Tool. To change the print behavior you must modify this Print action.
To Modify the Print Action
Using your favorite editor, create the following file:
HomeDirectory/.dt/types/dtmail.dt
Enter the following lines into this file:
#
# Override default Print action for mailboxes
#
ACTION Print
{
LABEL Print
ARG_TYPE DTMAIL_FILE
TYPE COMMAND
WINDOW_TYPE NO_STDIO
EXEC_STRING sh -c ' \
dtmailpr -p -f %(File)Arg_1% | mp -m -l | \
dtlp -u %(File)Arg_1%;'
}
Note - dtmailpr is a print filter that strips out attachments, resulting in a stream of plain text. dtlp is the standard CDE interface to lp. %(File)Arg_1% is the file being printed.
Modify the EXEC_STRING to include the print commands you want.
Restart Mailer.
Converting Calendars to New Data Format
The version 4 extensible data format is a new format supported by the CDE Calendar. The OpenWindows Calendar Manager will not be able to read this format. If you need to switch back and forth between the OpenWindows and CDE platforms, you should not convert your calendar to the version 4 data format. However, you can use the sdtcm_convert script to prune your calendar.
Note - You can find out the data version of your calendar by choosing About Calendar from the Calendar Help menu.
Otherwise, use the sdtcm_convert script to convert your calendar to the version 4 data format.
For more information about this file, refer to the sdtcm_convert(1) man pages.
Note - If you installed only the End User CDE Packages, the man pages were not installed. To see the man pages, you will need to install them with the pkgadd utility.
Adding the AnswerBook Package from the Network
When installing Solaris CDE, the installation menu gives you the option to install the AnswerBook CDE package. If you choose YES, the AnswerBook package is installed in the /usr/dt/share/answerbooks/language directory (language is the local name of the particular AnswerBook translation).
Since the AnswerBook package requires 109 megabytes of disk space, you may not want to install it. However, the following two options are available:
You can mount (or link from /net/. . .) the AnswerBook package to /usr/dt/share/answerbooks/language.
You can add the AB_CARDCATALOG environment variable to HomeDirectory/.dtprofile. For example, if you have an exported version on your network, then add the following line to HomeDirectory/.dtprofile:
export AB_CARDCATALOG=/net/hostname/usr/dt/share/answerbooks \ /language/ab_cardcatalog |
Setting Up the CDE Environment Outside the CDE Desktop
Environment variables used by your Solaris CDE applications can be set up outside the CDE desktop. For example, you may want to log in to a remote workstation and display a CDE application back to your workstation. Use the CDE utility dtsearchpath to set up various CDE shell environment variables.
For Bourne and Korn shells, type the following command:
eval `/usr/dt/bin/dtsearchpath` |
For C shell, type the following command:
eval `/usr/dt/bin/dtsearchpath -c` |
You could follow this command by setting DISPLAY back to the local workstation and then running the CDE application remotely. The results will be displayed on the local workstation.
Note - In this example, the Bourne and Korn shell dtsearchpath syntax is part of the CDE sample implementation available on all platforms running CDE. However, the C shell (-c) option is only available on a Sun platform.
Desktop Environment File
The CDE desktop provides a run-time environment for the OpenWindows DeskSet applications. Nothing special needs to be done to the CDE setup for this capability. Some of this environment setup is provided by the following file:
/usr/dt/config/Xsession.d/0015.sun.env |
If you need to add to or subtract from this environment setup for a particular workstation, this file can be either edited in place or copied first to the following file location:
/etc/dt/config/Xsession.d/0015.sun.env |
One example of an addition would be the start-up of the old OpenWindows virtual keyboard for use by the OpenWindows DeskSet applications. Since most applications on a CDE desktop (and the majority of Sun users) do not use this virtual keyboard utility program, it was left out of the default start sequence to improve overall desktop start-up performance.
See comments in the 0015.sun.env file for additional information on the optional OpenWindows virtual keyboard (vkdb) start-up.
Using Floppy and CD Media with the Apple Macintosh Application Environment
If you have installed the Apple Macintosh Application Environment (MAE) version 1.0 and intend to use removable media (diskettes or CD-ROMs) through the OpenWindows File Manager application, you must edit the /etc/rmmount.conf file. This ensures that the MAE will work properly with File Manager removable media.
To Change the /etc/rmmount.conf File
Become the root user by typing su, then type your password.
Change to the /etc directory. Type the following command and press Return:
# cd /etc
Open the /etc/rmmount.conf file in your favorite editor.
Move the following line under #Actions to the end of the list:
action floppy action_macfs.so
For example:
# more rmmount.conf
# @(#)rmmount.conf 1.2 92/09/23 SMI
#
# Removable Media Mounter configuration file.
#
# File system identification
ident hsfs ident_hsfs.so cdrom
ident ufs ident_ufs.so cdrom floppy
ident pcfs ident_pcfs.so floppy
ident macfs ident_macfs.so floppy
# Actions
action cdrom action_filemgr.so
action floppy action_filemgr.so
action floppy action_macfs.so
Save and exit.
When the MAE is installed, it puts the macfs action line in the rmmount.conf file for you. If MAE is de-installed, the line is removed.
This change enables you to use removable media in the OpenWindows or CDE File Manager application and still use Macintosh floppies in MAE. However, it does stop MAE from grabbing unformatted, unreadable, or DOS floppies. All those disks will go to the OpenWindows File Manager application using this setup procedure.
If you want to allow MAE access to unreadable, unformatted, or DOS floppies, then the action floppy action action_macfs.so line must be placed before the action floppy action_filemgr.so line.