Common Desktop Environment (CDE)

Last Updated -[Mon Sep 9 15:57:22 1996 by cxh]-

Places to go

  • Sun CDE index
  • SunSoft CDE Index
  • Icon library (Locally, see /usr/sww/share/images/pixmap/AIcons)
  • What is CDE?

    CDE stands for Common Desktop Environment. Vendors like Sun, HP and DEC are all moving towards using CDE instead of having their own proprietary window environments. The idea is that the user should not many different setups to use different vendor's machines.

    CDE is similar to HP-VUE, the HPUX9.x window environment. CDE is available in HPUX10.10 (Currently our sole HP machine is at HPUX10.01, so CDE is not available). Solaris CDE1.0.2 is part of Solaris2.5.1, I've installed CDE1.0.2 on our Solaris2.4 machines, which is what most of the cluster is running.

    Why Use CDE?

    I've been using CDE for a few months, and it is the first out of the box window environment that I find useful. For new users, the initial environment that CDE provides is a very good starting place. CDE has a style manager that allows a user to easily customize their environment. CDE also can be setup to save applications upon exiting and then restart them the next time. CDE has virtual workspaces, like fvwm and tvtwm.

    How to I run CDE?

    My plan is to convert all the machines in the cluster over to CDE so that the CDE login window is presented. To get CDE to run, the machine must have a command run on it as root (/usr/dt/bin/dtconfig -e), and then rebooted.

    The login window has a Options button that brings up a menu to select the type of startup session. Under the Session choice, the submenu choices are:

  • Common Desktop Environment (CDE)
  • Openwindows Desktop
  • User's Last Desktop
  • Failsafe Session
  • Most users should at least try CDE, so that they can know what they are up against. After you have chosen a session, type in your name and password, and the session should come up. To use the online help system inside CDE, mouse on the bookshelf icon in the toolbar at the lower left edge of the screen.

    CDE problems

  • If you choose to use CDE, the file browser application that comes with CDE seems slow, and slightly buggy, you may want to explictly kill that application before exiting CDE. I've removed dtfile from the initial default by commenting out a line in /usr/dt/config/C/sys.session
  • The CDE mailer dtmail comes up with a message about being unable to lock the mailbox. The problem is that tooltalk is not running on mho, since mho is running SunOS4.1.3. Click on the Help button in the error window for more information.
  • The TextEditor, Terminal or FileManager won't come up, you get the message: The request to service this action has failed for the following reason: TT_ERR_NO_MATCH No handler could be found for this message, and the disposition was not queue or start.. The problem here was that the SUNWtltk package was partially installed. The main symptom was that /usr/dt/bin/ttsession was a link to /usr/openwin/bin/ttsession. Another problem was that the wrong version of was installed
  • Is there a way to automatically specify a cursor color in emacs when running it under CDE? I switched back to CDE and the only problem is that my cursor is invisible. I'm not sure why this happens, other people have had similar problems.

    In my Xdefaults, I have:

    Emacs*cursorColor: red This might do the trick for you. You would need to add that line to ~/.Xdefaults, and then do xrdb -merge ~/.Xdefaults

    There is probably a better fix to this, it would be covered in the emacs docs.

  • Xrn fails to startup, I get: 15:32:03: The current XRN Application Defaults file is not installed. As a result, some XRN functionality may be missing. If XRN was installed by someone else at your site, contact the installer about this error. If you are the installer, see the COMMON-PROBLMS file in the XRN source directory to find out how to fix this problem. The COMMON-PROBLMS file is helpful here, it looks like the fix is to add the XRn app-defaults file. Locally, I did: cd /usr/dt/app-defaults/C ln -s /usr/sww/X11/lib/X11/app-defaults/* .
  • How do I do XXX in CDE

  • If you would like to run a script when you log in, such as running xmodmap, create a file called ~/.dt/sessions/sessionetc and add your commands to that file. sessionetc must be executable. Processes started in sessionetc are usually run in the background. For further information, use Answerbook and look in the CDE Advanced User's and Systems Administrator Manual under Configuring Session Manager

    Note that there is a bug in the online documentation, it says $HOME/.dt/sessionetc, according to answerbook, the real location is: $HOME/.dt/sessions/sessionetc

  • How do I initialize particular applications in particular workspaces? From: shawn Andrew Subject: Re: CDE: initiializing apps to specific workspaces Newsgroups: comp.unix.solaris Date: Wed, 31 Jul 1996 15:39:16 +0200 Organization: Askcenter Ltd Path: agate!!!!!!!!news Lines: 32 Message-ID: <> References: <4tm1no$> NNTP-Posting-Host: anonymous234.ppp Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.02 (Win95; I) Talwar wrote: > > In CDE, all my third party applications like Netscape, which I bring up > when loggin in, come up always in the first workspace by default, is there > a way to make them specifically to come up only in otherworkspaces? In this > way one can avoid the move to workspace step from menu. > > Thanks > ad+ > -- All applications started by CDE will open up in the right window . Other applications such as netscape , xterm or whatever must be put in an initialization script for CDE to use them in the specified workspace .. ... Do the following ... 1.) Edit your $HOME/.dt/sessionetc #!/bin/ksh xhost +yourhost xterm -xrm "*WorkspaceList: One Two" & netscape -xrm "*WorkspaceList: Three" & mailtool -xrm "*WorkspaceList: Four" & 2.) That should be it .. In the above One Two Three and Four should be changed to the names you gave your workspace.. I got the above information from an article in UNIX REVIEW .. They had something on CDE .. Its a great Article . Should you have time check out their web page for more info .. Shawn Andrew
  • Mathematica and CDE

    See my Mathematica page for details.

    Why should I not use CDE?

    Many people have spent years tweaking their environment for a certain window manager, and will not want to go to CDE. If you would like to use a different window manager, then, add the following to your .Xdefaults file: Dtsession*wmStartupCommand: fvwm Then when you login, select the Openwindows Desktop choice from the option button. Your window manager should startup, and your ~/.xinitrc file should be executed.

    You can also choose Failsafe session from the desktop and get a vanilla tty prompt.

    CDE information for Administrators

    CDE Icons

    From: (Bob Hays, Computer Geek) Newsgroups: comp.unix.solaris Subject: Re: Q: CDE icons... Date: Sat, 24 Feb 1996 04:19:33 GMT Organization: InterAccess, Chicago's best Internet Service Provider (Michael Kolmodin) wrote: >Has anyone a hint where I could find some kind of icon library >(free/commecial) useful in the CDE integration work? Here is a link to Anthony's Icon Library: Second, get a copy of ImageMagick - it is really good for editing and resizing icons (you will do a LOT of both). Now, some notes: a) Icons are 16x16, 32x32 and 48x48 pixels (s,m and l in the name -, for example, is a large (48x48) icon in pixmap (xpm) format). b) The files are xbitmap (xbm) or xpixmap (xpm) format, but the file extensions are .bm and .pm respectively. c) Only use 11 color planes for xpixmap (xpm, pm) files. You can use the quanitize feature in ImageMagick to for the number of color planes. d) If you have a favorite app (for example, let's use Netscape) that you want an icon for, iconify the program and do: xwd -out netscape.xwd The mouse cursor will become a cross. Click once in the icon of the selected app (Netscape here, remember?) and you will hear a bell and then two more bells. You now have an xwd image of the icon w/ title. Use ImageMagick to edit the xwd file, cropping the image to be just a 48x48 icon (assuming you run with large icons), select save and change the format to xpm. Then, select quantize to force the color map to 11 colors and save it again. Now you can resize, requantize and save each required size (I rarely bother with 16x16 since I don't use them, but if you run a system, you might want to be safe - users always do whatever they want:-). I hope all this helps. I'm still trying to get the front panel to invoke a program when a file changes state (mail, in this case). Have fun! - Bob

    Starting up cde

    As root: To start a dtlogin-session run "/usr/dt/bin/dtlogin -daemon". To start a autostart dtsession run "/usr/dt/bin/dtconfig -e" To stop a autostart dtsession run "/usr/dt/bin/dtconfig -d" To stop a dtlogin-session run "/usr/dt/bin/dtconfig -kill" To start a new dtlogin after changing the config-files run "/usr/dt/bin/dtconfig -reset"

    Installing CDE1.0.2

  • CDE1.0.2 is available from Sun
  • I had to move some fonts so as to avoid problems with the SUNWdtft font package. The error message was: pkgadd: ERROR: cppath(): unable to stat The fix was: mv F3* CDE1.0.2_sparc/cde-min/SUNWdtft/reloc/dt/config/xfonts/C If this fix is not made, then the installation of SUNWdtwm will fail, and there will be no tool bar at startup time.
  • To install the answerbook, grab the file from Sun and do: cd cde-min; pkgadd -d `pwd` SUNWdta Then, to install the card catalog: ab_admin -file /opt/abcardcatalog -merge /usr/dt/share/answerbooks/C/ab_cardcatalog
  • On each client, you must run /usr/dt/bin/dtconfig -inetd to setup /etc/inetd.conf so that it has the rpc.ttdbserverd, dtspc and rpc.cmsd daemons. /etc/services may also be adjusted.
  • To auto start a cde session upon reboot, run /usr/dt/bin/dtconfig -e
  • To startup a session without rebooting, as root, type: /usr/dt/bin/dtlogin -daemon. If you have errors, look in /var/dt/Xerrors. Another place to look in is ~/.dt/errorlog