Solaris Common Desktop Environment: Advanced User's and System Administrator's Guide

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

  1. Using your favorite editor, create the following file:

    	HomeDirectory/.dt/types/dtmail.dt
  2. 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.


  3. Modify the EXEC_STRING to include the print commands you want.

  4. 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:

	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 DeskSetTM 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

  1. Become the root user by typing su, then type your password.

  2. Change to the /etc directory. Type the following command and press Return:

    	# cd /etc 
  3. Open the /etc/rmmount.conf file in your favorite editor.

  4. 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
  5. 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.