📄 442-444.html
字号:
<HTML>
<HEAD>
<TITLE>Special Edition Using Linux, Fourth Edition:Using X Windows</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=0789717468//-->
<!--TITLE=Special Edition Using Linux, Fourth Edition//-->
<!--AUTHOR=Jack Tackett//-->
<!--AUTHOR=Jr.//-->
<!--AUTHOR=Steve Burnett//-->
<!--PUBLISHER=Macmillan Computer Publishing//-->
<!--IMPRINT=Que//-->
<!--CHAPTER=22//-->
<!--PAGES=442-444//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="441-442.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="444-448.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<P><TT>fvwm</TT> provides multiple virtual desktops for users who want to use them. The screen is a viewport onto a desktop that’s larger than (or the same size as) the screen. Several distinct desktops can be accessed. The basic concept is one desktop for each project, or one desktop for each application when view applications are distinct. Because each desktop can be larger than the physical screen, windows that are larger than the screen or large groups of related windows can be viewed easily.</P>
<P>The size of each virtual desktop must be specified at startup; the default is three times the physical size of the screen. All virtual desktops must be the same size. The total number of distinct desktops doesn’t need to be specified but is limited to approximately 4 billion total. All windows on the current desktop can be displayed in a pager, miniature view, or the current desktop. Windows that aren’t on the current desktop can be listed, with their geometries, in a window list, accessible as a pop-up menu. (The term <I>geometries</I> specifies the coordinates and number of pixels needed for the window under an X window manager.)</P>
<P><I>Sticky windows</I> are windows that transcend the virtual desktop by “sticking to the screen’s glass.” They always stay put on-screen. This is convenient for things such as clocks and <TT>xbiffs</TT>, so you need to run only one such utility, and it always stays with you.</P>
<BLOCKQUOTE>
<P><FONT SIZE="-1"><HR><B>NOTE: </B>The <TT>xbiff</TT> application notifies you when new mail arrives.<HR></FONT>
</BLOCKQUOTE>
<P>Window geometries are specified relative to the current viewport—that is, <TT>xterm-geometry +0+0</TT> always appears in the upper-left corner of the visible portion of the screen. It’s permissible to specify geometries that place windows on the virtual desktop but off-screen. For example, if the visible screen is 1,000×1,000 pixels, the desktop size is three-by-three, and the current viewport is at the upper-left corner of the desktop, invoking <TT>xterm-geometry +1000+1000</TT> places the window just off the lower-right corner of the screen. It can be found by moving the mouse to the lower-right corner of the screen and waiting for it to scroll into view. You can map a window only onto the active desktop, not an inactive desktop.</P>
<P>A geometry specified as <TT>xterm-geometry -5-5</TT> generally places the window’s lower-right corner five pixels from the lower-right corner of the visible portion of the screen. Not all applications support window geometries with negative offsets.</P>
<H4 ALIGN="LEFT"><A NAME="Heading8"></A><FONT COLOR="#000077"><I>fvwm95</I>
</FONT></H4>
<P>The <TT>fvwm95</TT> window manager for X11 is “a hack based on fvwm2.x.” The developers’ goals were to simulate the major features of a well-known operating system’s GUI, to make the users more comfortable in a UNIX environment, and to avoid bloating the simple and clean GUI code of fvwm. For more information, go to</P>
<A HREF="http://mitac11.uia.ac.be/html-test/fvwm95.html">http://mitac11.uia.ac.be/html-test/fvwm95.html</A>.
<H4 ALIGN="LEFT"><A NAME="Heading9"></A><FONT COLOR="#000077"><I>olwm</I>
</FONT></H4>
<P>The <TT>olwm</TT> window manager for the X Windows system implements parts of the Openlook graphical user interface. It’s the standard window manager for Sun’s Open Windows product, but it works properly with any X11 system, including XFree86. The only requirements for running <TT>olwm</TT> are that the server have the <TT>OPEN LOOK</TT> glyph and cursor fonts available, which should be the case if you installed all the available fonts for X Windows.</P>
<H4 ALIGN="LEFT"><A NAME="Heading10"></A><FONT COLOR="#000077"><I>Enlightenment</I>
</FONT></H4>
<P><TT>Enlightenment</TT> is a popular and nicely-written window manager. It is stable and runs fast. Although it was initially based on the <TT>fvwm</TT> work, its newer versions have been written from scratch. The creator of <TT>Enlightenment</TT> has a Web site at <A HREF="http://www.rasterman.com">http://www.rasterman.com</A>; it contains much more information than could possibly be included in this book.</P>
<H4 ALIGN="LEFT"><A NAME="Heading11"></A><FONT COLOR="#000077"><I>CDE</I>
</FONT></H4>
<P>The Common Desktop Environment (<TT>CDE</TT>) is a commercial attempt to port a standard desktop to most versions of UNIX. For example, Sun Solaris, IBM AIX, and Hewlett-Packard’s HP-UX (among others) all have <TT>CDE</TT> implementations. For a common UNIX desktop, <TT>CDE</TT> isn’t bad. TriTeal ported <TT>CDE</TT> to Linux, and their version (based on OSF Motif 1.2.5) is resold by Red Hat Software for their packaging of Linux. For more information on <TT>CDE</TT> for Linux, go to TriTeal’s Web site at <A HREF="http://www.triteal.com">http://www.triteal.com</A>; for more general <TT>CDE</TT> information, check out the Usenet newsgroup comp.unix.cde and its Frequently Asked Questions file on the Web at <A HREF="http://www.pobox.com/~burnett/cde/">http://www.pobox.com/~burnett/cde/</A>.</P>
<H4 ALIGN="LEFT"><A NAME="Heading12"></A><FONT COLOR="#000077"><I>KDE</I>
</FONT></H4>
<P>The K Desktop Environment (<TT>KDE</TT>) is a large freeware project that was designed to create an integrated desktop environment similar to the <TT>CDE</TT> but developed and released entirely under the GNU Public License (GPL).</P>
<BLOCKQUOTE>
<P><FONT SIZE="-1"><HR>• <B>See</B> “The GNU General Public License,” <B>p. 799</B><HR></FONT>
</BLOCKQUOTE>
<P>Major benefits of <TT>KDE</TT> include a strong emphasis on correct internationalization support, an integrated help system, and a standardized look and feel for a wide variety of applications. For more information, see <A HREF="http://www.kde.org/">http://www.kde.org/</A>.</P>
<H3><A NAME="Heading13"></A><FONT COLOR="#000077">Using X Applications in Red Hat</FONT></H3>
<P>Red Hat spared nothing in creating a distribution well tuned to X. In fact, the commercial version of the Red Hat distribution contains a one-user licensed copy of a commercial X server called Metro-X. When you start X under Red Hat with this command:
</P>
<!-- CODE SNIP //-->
<PRE>
startx &
</PRE>
<!-- END CODE SNIP //-->
<P>you see a screen very reminiscent of Microsoft’s Windows 98 environment (see Figure 22.1).
</P>
<P><A NAME="Fig1"></A><A HREF="javascript:displayWindow('images/22-01.jpg',1152,898 )"><IMG SRC="images/22-01t.jpg"></A>
<BR><A HREF="javascript:displayWindow('images/22-01.jpg',1152,898)"><FONT COLOR="#000077"><B>Fig. 22.1</B></FONT></A> Under Red Hat, X bears a striking resemblance to the popular Microsoft Windows 98 user interface.<P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="441-442.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="444-448.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 + -