To add an Aixterm icon to the FrontPanel, follow the steps below.
CONTROL Aixterm
{
TYPE icon
CONTAINER_NAME PersAppsSubpanel
CONTAINER_TYPE SUBPANEL
POSITION_HINTS 3
ICON Fpterm
LABEL Aixterm
PUSH_ACTION Aixterm
HELP_TOPIC FPOnItemTerm
HELP_VOLUME FPanel
}
Retrieve the image
If converting the image from JPEG or GIF to pixel map format, it must abide by some guidelines:
C program text
If you save the image using xv's XPM format, it usually will give the file type return of: data or International Language text, which will not work with CDE. Try using xpaint which is a shareware product, and save using the PM format.
You may also try to use xv, save as XPM format with Reduced Colors and rename the file to *.pm to match the other CDE files.
Set up the CDE configuration files
Dtlogin*logo*bitmapFile: <fullpath to pm file>
Dtlogin*resources: Xresources
Dtlogin*logo*bitmapFile: <fullpath to pm file>
NOTE: If this is the first time the logo has been changed from the default, kill and restart CDE using:
If the logo is being changed from a prior customized logo, restart the Xserver by selecting Reset Login Screen from the Options menu in dtgreet.
NOTE: This may differ slightly for your specific Xstation.
cd /etc/dt/config
Dtlogin.accessFile: Xaccess
Dtlogin.accessFile: /etc/dt/config/Xaccess
* CHOOSER BROADCAST #any indirect host can get a chooser
#* CHOOSER %hostlist
* CHOOSER %hostlist host-1 host-2 host-3
Add the following line to .Xdefaults
dtsession*wmStartupCommand: /usr/bin/X11/mwm
The new version of dtsanity is shipped in 4.3, in fileset X11.Dt.rte, in /usr/dt/contrib/bin. dtsanity is an effective diagnostic tool for solving CDE start-up problems.
The following steps describe how to set the system wide environment and user-based environment variables for CDE.
NOTE: It is not recommended to set
the LIBPATH. CDE will try to set $LIBPATH to null
because by default it uses /usr/lib/lib. If the
$LIBPATH is set, it is likely to cause numerous problems,
including disabling CDE.
Setting Systemwide Variables for Xserver AND Session
Dtlogin*environment: VARIABLE=value
Dtlogin*environment: EDITOR=vi
Set system wide variables for the Session only (single-display systems)
variable=value ... export <variable> <variable>
Setting personal environment variables
MAILPATH="${MAIL}?You have new mail.
Create in your $HOME/.dt/types an .fp file that contains the CONTROL's definition and add the line:
DELETE True
For example, to remove the mail icon, you would have the following entry:
CONTROL Mail
{
CONTAINER_NAME Top
CONTAINER_TYPE BOX
DELETE True
}
dtsession*extension.saverList: StartDtscreenBlank dtsession*extension.saverTimeout: 0
To place the DTChooser on your display, follow the steps below:
cd /etc/dt/configNOTE: After entering the preceding command, check for Xaccess and Xconfig. If they do not exist, enter:
cp /usr/dt/config/Xaccess /etc/dt/config/ cp /usr/dt/config/Xconfig /etc/dt/config/
/etc/dt/config/Xconfig
Dtlogin.accessFile: XaccessChange to the following:
Dtlogin.accessFile: /etc/dt/config/Xaccess
/etc/dt/config/Xaccess
* CHOOSER BROADCAST #any indirect host can get a chooser
#* CHOOSER %hostlist
* CHOOSER %hostlist yourserverhostname host-2 host-3 etc...
/usr/dt/bin/dtconfig -reset
X -indirect yourserverhostname
NOTE: If you want to view the list of all the machines on the network broadcasting XDMCP, you will not have to modify any files. You can use X -indirect yourhostname. However, be aware that if there are a number of systems reachable, the list will be very long, and you can only search the list visually with the scroll bar.
To manually lock the screen using the CDE lock screen from the command line, enter the following:
/usr/dt/bin/dtaction LockDisplay
Disable the command line login in CDE using the following steps.
to
This action can be useful if the system administrator wants to prevent users from readily accessing some of the features of CDE. This action essentially creates a session for the user similar to an mwm session.
To disable the FrontPanel for the user, add to the user's .Xdefaults the following line:
Dtwm*useFrontPanel: false
NOTE: This takes calendar programming skills and saving a backup copy of the file is suggested.
In the .dt/sessions/home/dt.settings file, if the Dtsession*ShutdownMode line is set to 3, you will be returned to the home session. If the Dtsession*ShutDownMode line is set to 4, you will be returned to the current session.
dtsession*saverTimeout: 0 dtsession*lockTimeout: 0 dtsession*cycleTimeout: 0
To add your signature to the bottom of your outgoing mail, create a .mailrc file in your $HOME directory with the following line:
set signature=<full path to your .signature>
The ToolTalk types databases store the static ptype and otype definitions. These definitions declare the messages to which applications and objects respond. The ToolTalk types compiler modifies the types database when you add or change static type definitions. Upon starting, ttsession reads in these type files. The tt_db database is created by ToolTalk database server daemon (rpc.ttdbserverd). The tt_db directories contain the associations between files in this partition and the sessions with patterns interested in these files. It also contains all the object specification information for files in this partition.
The tt_db databases currently contain the following ten files:
access_table.ind access_table.rec file_object_map.ind file_object_map.rec file_table.ind file_table.rec file_table.var property_table.ind property_table.rec property_table.var
The permissions for these files are set to -rw-r--r-- .
The ToolTalk database server daemon performs three major duties:
To designate a "hotkey" to change workspaces, follow the steps below.
Alt<Key>n root|icon|window f.next_workspace Alt<Key>p root|icon|window f.prev_workspace
In the preceding step, the "n" and "p" keys were used for "next" and "previous." However, you can use any key as long as it is not being used for something else.
To change the dtlogin text from Welcome to $MACHINE to some other text, complete the following steps:
Note: All text should be on one line, with /n used as a carriage return.
If you change the text in Xresources, you will only need to reset the login screen.
To add an icon to the Front Panel that executes an action for all users, log in as root user and proceed with the following steps.
NOTE: This action will be owned by bin bin permissions and must be both accessible and executable by all users.
CONTROL "name of application"
{
TYPE icon
CONTAINER_NAME Top
CONTAINER_TYPE BOX
POSITION_HINTS "a position other than the 13 already taken"
ICON Fp"the name of the icon created"
LABEL "name of the app"
PUSH_ACTION "name of the created action"
}
To have an application display in a particular workspace, enter:
<application name> -xrm "*workspaceList: ws0 ws1"
The following example shows the entry needed to display xterm in a particular workspace.
xterm -xrm "*workspaceList: ws0 ws1"
NOTE: The workspace names can be either ws0, ws1, etc, or the names entered in the labels on the front panel workspace switch. The application must copy the -xrm option to a WM_COMMAND property on the application's top level window. You can usually check whether an application does this by entering xprop WM_COMMAND and clicking on the application's window. The dtterm command is aware of workspaces and will obey the resource, but it does not have any WM_COMMAND properties before the session manager asks it to update one.
To have the option "Word wrap" under "Format" in dtmail's "New Message" (compose) window default to True, place the following line in the user's .Xdefaults file:
Dtmail*ComposeDialog*Work_Area*Text*wordWrap: True
The default CDE icons are generated in three sizes. For full compatibility, user created fonts should be created in these same three sizes. This will allow for different displays with the file manager (dtfile), and other applications that use the icons. The sizes are as follows (in pixels):
To map a function key or any other key in CDE, edit dtwmrc as shown below.
{
# AltMenu root|icon|window f.toggle_frontpanel
Shift<Key>Escape icon|window f.post_wmenu
Alt<Key>space icon|window f.post_wmenu
Alt<Key>Tab root|icon|window f.next_key
Alt Shift<Key>Tab root|icon|window f.prev_key
Alt<Key>Escape root|icon|window f.next_key
Alt Shift<Key>Escape root|icon|window f.prev_key
Alt<Key>Down root|icon|window f.circle_down
Alt<Key>Up root|icon|window f.circle_up
Alt Ctrl Shift<Key>exclam root|icon|window f.set_behavior
Alt<Key>F6 window f.next_key transient
Alt<Key>F10 root|icon|window f.menu DtRootMenu
}
F6 root|icon|window f.exec "aixterm -sb &"
Remember SMIT and many applications use different keys, so do not be suprised if something else does not work.
enableMultiKeyBindings: True
[ Doc Ref: 97319422016416 Publish Date: Nov. 02, 2000 4FAX Ref: none ]