📄 0131-0134.html
字号:
<HTML>
<HEAD>
<TITLE>Sams Teach Yourself Linux in 24 Hours:Exploring Other X11 Window Managers:EarthWeb Inc.-</TITLE>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>
-->
<!-- ISBN=0672311623 //-->
<!-- TITLE=Sams Teach Yourself Linux in 24 Hours//-->
<!-- AUTHOR=Bill Ball//-->
<!-- PUBLISHER=Macmillan Computer Publishing//-->
<!-- IMPRINT=Sams//-->
<!-- CHAPTER=08 //-->
<!-- PAGES=0127-0138 //-->
<!-- UNASSIGNED1 //-->
<!-- UNASSIGNED2 //-->
<P><CENTER>
<a href="0127-0130.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0135-0138.html">Next</A>
</CENTER></P>
<A NAME="PAGENUM-131"><P>Page 131</P></A>
<P>
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:
</P>
<UL>
<LI> drag-and-drop actions (such as copy, move, or delete) for files and devices
<LI> point-and-click dialog configuration of the desktop display colors,
window borders, and themes
<LI> programs and other data represented as icons on the desktop, or in
windows with folder icons
<LI> graphic configuration of your system's keyboard, mouse, and sound
<LI> double-click convenience to edit files or graphics
<LI> a desktop trash can for safer file deletions
<LI> pop-up menus and built-in help for nearly any desktop action
<LI> a suite of personal productivity tools, crafted to take advantage of the
desktop interface and features, each with context-sensitive help and the ability to
import and export data to other tools
</UL>
<P>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).
</P>
<P>Figure 8.2.<BR>
The Common Desktop<BR> Environment is a<BR> commercially
licensed<BR> X11 desktop environ-<BR>ment with a suite of<BR> integrated
personal<BR> productivity tools,<BR> including a calendar,<BR> mail, and an
appoint-<BR>ment reminder system.<BR>
<a href="javascript:displayWindow('images/ch08fg02.jpg', 288, 216)"><img src="images/tn_ch08fg02.jpg"></a><BR>
</P>
<A NAME="PAGENUM-132"><P>Page 132</P></A>
<P>
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.
</P>
<TABLE BGCOLOR=#FFFF99>
<TR><TD>TIME SAVER</TD></TR>
<TR><TD>
<BLOCKQUOTE>
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).
</BLOCKQUOTE>
</TD></TR>
</TABLE>
<P>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:
</P>
<!-- CODE SNIP //-->
<PRE>
xinit /usr/dt/bin/Xsession
</PRE>
<!-- END CODE SNIP //-->
<P>Save this with a filename like startcde, then make it executable by using the
chmod command:
</P>
<!-- CODE SNIP //-->
<PRE>
# chmod +x startcde
</PRE>
<!-- END CODE SNIP //-->
<P>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:
</P>
<!-- CODE //-->
<PRE>
<a href="http://www.opengroup.org">
http://www.opengroup.org</A>
<a href="http://www.triteal.com">
http://www.triteal.com</A>
</PRE>
<!-- END CODE //-->
<P>For objective opinions about CDE, browse the
comp.unix.cde Usenet newsgroup.
</P>
<H4><A NAME="ch08_ 8">
Obtaining, Building, and Installing KDE
</A></H4>
<P>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:
</P>
<UL>
<LI> Network Transparent Access, or NTA, so you can click on a graphic
document in an FTP listing and have a program on your computer automatically
download and display the graphic.
<LI> Mouse-click mounting of other file systems, such as CD-ROMs<BR>
</UL>
<A NAME="PAGENUM-133"><P>Page 133</P></A>
<UL>
<LI> Menu control of terminal window scrollbars, fonts, color, and size
<LI> "Sticky Buttons" to put an application or window on every desktop
<LI> Pop-up mini-command-line windows for one-time single commands, in lieu of
a terminal window
<LI> JPEG graphic formats for background wallpaper graphics for the root display
<LI> More than 100 integrated programs and games
<LI> Session management, so open applications and window positions are
remembered between sessions (like CDE)
</UL>
<P>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:
</P>
<!-- CODE SNIP //-->
<PRE>
<a href="http://www.troll.no/dl">
http://www.troll.no/dl</A>
</PRE>
<!-- END CODE SNIP //-->
<P>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:
</P>
<!-- CODE SNIP //-->
<PRE>
<a href="http://www.kde.org">
http://www.kde.org</A>
</PRE>
<!-- END CODE SNIP //-->
<P>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:
</P>
<!-- CODE SNIP //-->
<PRE>
# rpm -i kde*.rpm
</PRE>
<!-- END CODE SNIP //-->
<P>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:
</P>
<!-- CODE SNIP //-->
<PRE>
PATH=/opt/kde/bin:$PATH
KDEDIR=/opt/kde
</PRE>
<!-- END CODE SNIP //-->
<P>Insert the command startkde in your .xinitrc file and use the
startx command to start X11 and run KDE (see Figure 8.3).
</P>
<P>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.
</P>
<A NAME="PAGENUM-134"><P>Page 134</P></A>
<P>Figure 8.3.<BR>
The K Desktop<BR> Environment sports<BR> many advanced<BR> features,
including<BR> Network Transparent<BR> Access, desktop
icons<BR> and folders, and drag-<BR>and-drop actions.<BR>
<a href="javascript:displayWindow('images/ch08fg03.jpg', 288, 216)"><img src="images/tn_ch08fg03.jpg"></a><BR>
</P>
<P>While you're waiting for the next version, you also can play some of the games that
come with KDE:
</P>
<UL>
<LI> asteroids—the classic space shoot-em-up
<LI> mahjongg—provocative tile solitaire
<LI> minesweeper—guess where the mines aren't
<LI> patience—solitaire card game
<LI> reversi—tile flip game
<LI> samegame—unique scoring puzzle game
<LI> shisen-sho—solitaire tile game
<LI> snake race—evade the winding snake
<LI> tetris—falling puzzle game
</UL>
<P>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:
</P>
<!-- CODE SNIP //-->
<PRE>
<a href="http://www.kde.org">
http://www.kde.org</A>
</PRE>
<!-- END CODE SNIP //-->
<P>This site has the latest releases, along with documentation and bug fixes.
</P>
<P><CENTER>
<a href="0127-0130.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0135-0138.html">Next</A>
</CENTER></P>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -