📄 113-116.html
字号:
<HTML>
<HEAD>
<TITLE>Linux Configuration and Installation:Installing and Configuring XFree86</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=1558285660//-->
<!--TITLE=Linux Configuration and Installation//-->
<!--AUTHOR=Patrick Volkerding//-->
<!--AUTHOR=Kevin Reichard//-->
<!--AUTHOR=Eric Foster//-->
<!--PUBLISHER=IDG Books Worldwide, Inc.//-->
<!--IMPRINT=M & T Books//-->
<!--CHAPTER=3//-->
<!--PAGES=113-116//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="111-113.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="116-120.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<H4 ALIGN="LEFT"><A NAME="Heading4"></A><FONT COLOR="#000077">The Window Manager</FONT></H4>
<P>Unlike the Macintosh and Windows environments, X makes the window manager a separate process. In fact, a window manager is merely an X application program, although it’s a special application. By separating the windowing system from the window manager, you are free to run any window manager that suits your needs. The main purpose of a window manager is to control how you move and resize windows on your Linux display. The window manager also creates the titlebar at the top of your application windows.
</P>
<P>The key concept if you’re new to X is that the window manager—not the application—owns the window’s titlebar. This is really odd if you come from the Windows or Macintosh worlds. To show this, we’ll run the same X application, <B>xman</B> (which displays UNIX online manuals—a very useful program, indeed), under different window managers.</P>
<P>The <B>fvwm</B> window manager provides a vaguely Motif-like look for the window titlebars, as we show in Figure 3.1.</P>
<P><A NAME="Fig1"></A><A HREF="javascript:displayWindow('images/03-01.jpg',546,240 )"><IMG SRC="images/03-01t.jpg"></A>
<BR><A HREF="javascript:displayWindow('images/03-01.jpg',546,240)"><FONT COLOR="#000077"><B>Figure 3.1</B></FONT></A> <B>Xman</B> running under the <B>fvwm</B> window manager.
</P>
<P>If we switch to <B>olwm</B>, we see an Open Look visual display, as shown in Figure 3.2.</P>
<P><A NAME="Fig2"></A><A HREF="javascript:displayWindow('images/03-02.jpg',544,240 )"><IMG SRC="images/03-02t.jpg"></A>
<BR><A HREF="javascript:displayWindow('images/03-02.jpg',544,240)"><FONT COLOR="#000077"><B>Figure 3.2</B></FONT></A> <B>Xman</B> running under the <B>olwm</B> window manager.
</P>
<P>If we switch yet again, to <B>twm</B>, we see yet another look for the titlebar of the application, as shown in Figure 3.3.</P>
<P><A NAME="Fig3"></A><A HREF="javascript:displayWindow('images/03-03.jpg',523,227 )"><IMG SRC="images/03-03t.jpg"></A>
<BR><A HREF="javascript:displayWindow('images/03-03.jpg',523,227)"><FONT COLOR="#000077"><B>Figure 3.3</B></FONT></A> <B>Xman</B> running under the <B>twm</B> window manager.
</P>
<P>With all three window managers, the <B>xman</B> program itself looks the same; it’s only the window-manager-controlled titlebar that’s different.</P>
<P>X also follows the policy of providing the means to do neat things—the <I>mechanism</I>—without making any decisions about what is good for the user—the <I>policy</I>. This mechanism without policy approach has led to a great deal of innovation in the X and UNIX worlds, but at a price of difficult-to-configure, poorly done interfaces across the board. Slackware Linux comes with a number of window managers, including those listed in Table 3.1, and we’ve taken the liberty of adding a few free window managers to the second CD-ROM. (Unless noted otherwise, all the window managers here are part of the core Slackware Linux distribution.) You’re free to choose the window manager you desire and change at any time.</P>
<TABLE WIDTH="100%"><CAPTION><B>Table 3.1</B> Linux Window Managers
<TR>
<TH WIDTH="30%" ALIGN="LEFT">Window Manager
<TH WIDTH="70%" ALIGN="LEFT">Description
<TR>
<TH COLSPAN="2"><HR>
<TR>
<TD VALIGN="TOP"><B>bwm</B>
<TD>Bowman Window Manager, used to provide a Nextstep-type interface, which we included on the second CD-ROM
<TR>
<TD VALIGN="TOP"><B>fvwm</B>
<TD>The most common window manager, presenting a Motif-like look
<TR>
<TD VALIGN="TOP"><B>fvwm95</B>
<TD>An add-on to <B>fvwm</B> that makes it look like Windows 95, which we included on the second CD-ROM
<TR>
<TD><B>twm</B>
<TD>The bared-boned Tab Window Manager
<TR>
<TD><B>olwm</B>
<TD>Open Look Window Manager, from Sun Microsystems
<TR>
<TD><B>olvwm</B>
<TD>A virtual-screen version of <B>olwm</B>
<TR>
<TD COLSPAN="2"><HR>
</TABLE>
<P>Most commercial UNIX systems run <B>mwm</B>, the Motif window manager, or a close variant. You’ll find this on workstations from Hewlett-Packard, SCO, IBM, Silicon Graphics, and even Sun Microsystems (with the Common Desktop Environment). Because <B>mwm</B> (and the rest of Motif, including the programming libraries) is a commercial product, you won’t see <B>mwm</B> on Linux unless you purchase it separately (see Appendix A for details). Because something so fundamental to most UNIX systems remains different on Linux, this may make getting used to Linux harder, especially if you work on other UNIX systems. Because of this common problem, we’ll show you how to configure <B>fvwm</B>, the default window manager on Linux, to look and act more like the Motif window manager, to help make you feel at home on Linux. See the section on “Toward a Motif-Like Look and Feel” later in this chapter for the details.</P><P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="111-113.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="116-120.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -