LPI Exam 101 Prep: the X Window System Junior Level Administration (LPIC-1) Topic 110
Total Page:16
File Type:pdf, Size:1020Kb
LPI exam 101 prep: The X Window System Junior Level Administration (LPIC-1) topic 110 Skill Level: Intermediate Ian Shields ([email protected]) Senior Programmer IBM 02 Jul 2006 In this tutorial, Ian Shields continues preparing you to take the Linux Professional Institute® Junior Level Administration (LPIC-1) Exam 101. In this fifth in a series of five tutorials, Ian introduces you to the X Window System on Linux®. By the end of this tutorial, you will know how to install and maintain the X Window System. This tutorial covers both major packages for X on Linux: XFree86 and X.Org. Section 1. Before you start Learn what these tutorials can teach you and how you can get the most from them. About this series The Linux Professional Institute (LPI) certifies Linux system administrators at two levels: junior level (also called "certification level 1") and intermediate level (also called "certification level 2"). To attain certification level 1, you must pass exams 101 and 102; to attain certification level 2, you must pass exams 201 and 202. developerWorks offers tutorials to help you prepare for each of the four exams. Each exam covers several topics, and each topic has a corresponding self-study tutorial on developerWorks. For LPI exam 101, the five topics and corresponding developerWorks tutorials are: The X Window System © Copyright IBM Corporation 1994, 2008. All rights reserved. Page 1 of 40 developerWorks® ibm.com/developerWorks Table 1. LPI exam 101: Tutorials and topics LPI exam 101 topic developerWorks tutorial Tutorial summary Topic 101 LPI exam 101 prep: Learn to configure your Hardware and architecture system hardware with Linux. By the end of this tutorial, you will know how Linux configures the hardware found on a modern PC and where to look if you have problems. Topic 102 LPI exam 101 prep: Get an introduction to Linux Linux installation and package installation and package management management. By the end of this tutorial, you will know how Linux uses disk partitions, how Linux boots, and how to install and manage software packages. Topic 103 LPI exam 101 prep: Get an introduction to GNU and UNIX commands common GNU and UNIX commands. By the end of this tutorial, you will know how to use commands in the bash shell, including how to use text processing commands and filters, how to search files and directories, and how to manage processes. Topic 104 LPI exam 101 prep: Learn how to create Devices, Linux filesystems, filesystems on disk partitions, and the Filesystem Hierarchy as well as how to make them Standard. accessible to users, manage file ownership and user quotas, and repair filesystems as needed. Also learn about hard and symbolic links, and how to locate files in your filesystem and where files should be placed. Topic 110 LPI exam 101 prep: (This tutorial). Learn how to The X Window system install and maintain the X Window System. See detailed objectives below. To pass exams 101 and 102 (and attain certification level 1), you should be able to: • Work at the Linux command line • Perform easy maintenance tasks: help out users, add users to a larger The X Window System Page 2 of 40 © Copyright IBM Corporation 1994, 2008. All rights reserved. ibm.com/developerWorks developerWorks® system, back up and restore, and shut down and reboot • Install and configure a workstation (including X) and connect it to a LAN, or connect a stand-alone PC via modem to the Internet To continue preparing for certification level 1, see the developerWorks tutorials for LPI exam 101, as well as the entire set of developerWorks LPI tutorials. The Linux Professional Institute does not endorse any third-party exam preparation material or techniques in particular. For details, please contact [email protected]. About this tutorial Welcome to "The X Window System," the fifth of five tutorials designed to prepare you for LPI exam 101. In this tutorial, you learn about setting up the X Window System on Linux. This tutorial covers both major packages for X on Linux: XFree86 and X.Org. This tutorial is organized according to the LPI objectives for this topic. Very roughly, expect more questions on the exam for objectives with higher weight. Table 2. The X Window System: Exam objectives covered in this tutorial LPI exam objective Objective weight Objective summary 1.110.1 Weight 5 Configure and install X and an Install and configure X X font server. Check that the video card and monitor are supported by your X server, and customize and tune X for the card and monitor. Install an X font server, install fonts, and configure X to use the font server. 1.110.2 Weight 3 Set up and customize a Set up a display manager display manager. Turn the display manager on or off and change its greeting and default bitplanes. Configure display managers for use by X stations, such as the X, GNOME, and KDE display managers. 1.110.4 Weight 5 Customize a system-wide Install and customize a desktop environment and window manager environment window manager, including window manager menus and desktop panel menus. Select and configure an X terminal, and verify and resolve library The X Window System © Copyright IBM Corporation 1994, 2008. All rights reserved. Page 3 of 40 developerWorks® ibm.com/developerWorks dependency issues for X applications. Export an X display to a client workstation. Prerequisites To get the most from this tutorial, you should have a basic knowledge of Linux and a working Linux system on which to practice the commands covered in this tutorial. You should also be familiar with using GUI applications, preferably under the X Window System. This tutorial builds on content covered in the previous four tutorials in this series, so you may want to first review the tutorials for topics 101, 102, 103, and 104. Different versions of a program may format output differently, so your results may not look exactly like the listings and figures in this tutorial. Section 2. Install and configure X This section covers material for topic 1.110.1 for the Junior Level Administration (LPIC-1) exam 101. The topic has a weight of 5. In this section, you learn how to: • Check that your video card and monitor are supported by your X server • Configure and install X • Customize and tune X for the card and monitor • Configure and install an X font server • Install fonts History of the X Window System The X Window System, also known simply as X or X11, is a window system for graphical (bitmap) displays. X originated at MIT in 1984 and was developed as part of Project Athena, which provided a computing environment using disparate hardware. X separates the display functions into a display server and clients, which provide the application logic. It is network transparent, so the display server and the The X Window System Page 4 of 40 © Copyright IBM Corporation 1994, 2008. All rights reserved. ibm.com/developerWorks developerWorks® client need not be on the same machine. Note that the sense of "client" and "server" is somewhat opposite to what you might normally think. In addition to handling displayed output, the server end also handles input from devices such as keyboards, mice, graphic tablets, and touchscreens. X provides a toolkit for GUI applications, but it does not specify a user interface. On a typical Linux system, you will choose between KDE or GNOME desktops, and you may have several other window managers available too. Because X does not specify a user interface, these desktops and window managers have different appearances. Because X was developed to serve a large community with disparate hardware types, you will find that different versions of X client and server will generally interoperate quite well. XFree86 and X.Org By 1987, MIT wanted to hand off control of X, and the MIT X Consortium was founded as a non-profit group to oversee development of X. After a few more stewardship changes, the Open Group formed X.Org in 1999. Since 1992, much of the active development of X was done by XFree86, which had originally created a port of X to the Intel® 386 hardware for use in Linux, hence the name XFree86. XFree86 joined X.Org as a non-paying member. Although originally created for the 386, later versions of XFree86 supported several different platforms, and it became the most widely used X version on Linux. After some disputes over new licensing terms and the development model of XFree86, the X.Org Foundation was formed. Working from the last XFree86 version under the earlier license, it created X11R6.7 and X11R6.8. Many distributions still use XFree86, while many have picked up X.Org instead. Video hardware support Both the XFree86 and X.Org packages support a wide range of modern video cards. Consult the online documentation for your release (see Resources). Some manufacturers do not release open source drivers for all functions, so you may need to integrate a driver from the manufacturer into your XFree86 system. Check the manufacturer's Web site for improved or updated Linux drivers. This is often the case for accelerated 3D drivers. Even if the hardware capabilities of your card cannot be used by XFree86, it is possible that you may be able to run in VESA (Video Electronics Standards Association) framebuffer mode. Modern monitors implement the VESA Display Data Channel (or DDC) specification, which allows monitor information and capabilities to be determined programatically. The XFree86 configuration tools (other than xf86config) use this information to The X Window System © Copyright IBM Corporation 1994, 2008.