-->

Previous | Table of Contents | Next

Page 131

a doubt one of the most sophisticated, complex, and complete GUIs for the X Window System. It has many features that other window managers lack:

CDE is a licensed product, based on Motif, that must be purchased from a vendor (see Figure 8.2). You can find CDE distributions for Linux from Red Hat Software, Inc., and Xi Graphics, Inc. You'll need nearly 50 megabytes of free disk space to run CDE comfortably, as well as at least 32 megabytes of RAM (without using swap space).

Figure 8.2.
The Common Desktop
Environment is a
commercially licensed
X11 desktop environ-
ment with a suite of
integrated personal
productivity tools,
including a calendar,
mail, and an appoint-
ment reminder system.

Page 132

Unlike other window managers that you run by entering the window manager name in the .xinitrc file in your home directory, CDE generally requires you to use the xdm client, or X Display Manager. This means that you must run X11 right after you start Linux, and have to log into your system through the xdm host chooser.

TIME SAVER
When you use xdm to log in to Linux and run X11, you may find that you're unable to run programs as the root operator from a terminal window. This is because you must use the xhost command to temporarily add the hostname of your computer to the access list of your X server. To do this, you can use this formula: xhost + localhost; su -c "rootcommand", where rootcommand is the name of command you want to run as the root operator (such as the control panel, or printtool).

Fortunately, you also can start the Red Hat distribution of CDE, from Triteal, Corp., from a console, or non-X11 display. To do this, create a text file containing the following line:


xinit /usr/dt/bin/Xsession

Save this with a filename like startcde, then make it executable by using the chmod command:


# chmod +x startcde

When you want to run CDE, use startcde on the command line. For more information about CDE, which was developed by Hewlett-Packard, IBM, Novell, and Sun Microsystems, browse to the following sites:




http://www.opengroup.org



http://www.triteal.com

For objective opinions about CDE, browse the comp.unix.cde Usenet newsgroup.

Obtaining, Building, and Installing KDE

One of the newest and most popular of the free software window managers for Linux and X11 is the K Desktop Environment. Like CDE, this window manager is more than just a window manager: it's a complete graphical environment for X11. KDE supports many of the same features as CDE, including the following:

Page 133

In order to use KDE, you must install the free QT graphic software libraries from Troll Tech. You can download a copy from the following site:




http://www.troll.no/dl

After you install this package of libraries, you must then download the KDE distribution, found in eight different compressed archives. You can find copies at the following site:




http://www.kde.org

Download the KDE packages, then decompress and unarchive the file packages. If you download the files in RPM package format, make sure you're logged in as the root operator, and use the rpm command (discussed in Hour 22, "Red Hat Tools") to install the software:


# rpm -i kde*.rpm

For KDE you need about 13 megabytes of free hard drive space (less than one-third of CDE's requirement). You also need to make sure that your system's /etc/profile file contains the PATH environment variable pointing to the path for the KDE binary files, and the directory under /opt/kde:


PATH=/opt/kde/bin:$PATH

KDEDIR=/opt/kde

Insert the command startkde in your .xinitrc file and use the startx command to start X11 and run KDE (see Figure 8.3).

You'll be pleasantly surprised by how polished and feature-laden this desktop environment is, but you should know that KDE is a work in progress. Some documentation may be missing, and not all programs may work to your satisfaction. Even so, this is a usable X11 environment, and you'll definitely look forward to future versions.

Page 134

Figure 8.3.
The K Desktop
Environment sports
many advanced
features, including
Network Transparent
Access, desktop icons
and folders, and drag-
and-drop actions.

While you're waiting for the next version, you also can play some of the games that come with KDE:

Documentation for KDE and its programs is under the /opt/kde/share/doc/HTML/en directory, and you can get help in each application and the desktop. Find out more about KDE by browsing to the following site:




http://www.kde.org

This site has the latest releases, along with documentation and bug fixes.

Previous | Table of Contents | Next