- Home
- Server Administration
- LPIC-1 Linux Administrator 102
1.
When you configure an X server, you need to make changes to configuration files and then
start or restart the X server. Which of the following can help streamline this process?
- A.Shut down X by switching to a runlevel in which X doesn’t run automatically, and then reconfigure it and use startx to test X startup.
- B.Shut down X by booting into single-user mode, and then reconfigure X and use telinit to start X running again.
- C.Reconfigure X, and then unplug the computer to avoid the lengthy shutdown process before restarting the system and X along with it.
- D.Use the startx utility to check the X configuration file for errors before restarting the X server.
- E.Connect the Linux computer’s network port directly to the X server, without using any intervening routers, in order to reduce network latency.
- Answer & Explanation
- Report
Answer : [A]
Explanation :
Explanation :
On most Linux systems, some runlevels don’t run X by default, so using one of them along with the startx program (which starts X running) can be an effective way to quickly test changes to an X configuration, making option A correct. The telinit program changes runlevels, which is a lengthy process compared to using startx, so option B is incorrect. Unplugging the computer to avoid the shutdown process is self-defeating because you’ll have to suffer through a long startup (if you use a non-journaling filesystem), and it can also result in data loss. Thus, option C is incorrect. The startx utility doesn’t check the veracity of an X configuration file; it starts X running from a text-mode login, making option D incorrect. Reconfiguring an X server does not normally require network access; the X server runs on the computer at which you sit. Thus, option E is incorrect. |
2.
Which of the following summarizes the organization of the X configuration file?
- A.The file contains multiple sections, one for each screen. Each section includes subsections for individual components (keyboard, video card, and so on).
- B.Configuration options are entered in any order desired. Options relating to specific components (keyboard, video card, and so on) may be interspersed.
- C.The file begins with a summary of individual screens. Configuration options are preceded by a code word indicating the screen to which they apply.
- D.The file is broken into sections, one or more for each component (keyboard, video card, and so on). The file also has one or more sections that define how to combine the main sections.
- E.The file is a rare binary configuration file that must be accessed using SQL database tools.
- Answer & Explanation
- Report
Answer : [D]
Explanation :
Explanation :
The XF86Config and xorg.conf file design enables you to define variants or multiple components and easily combine or recombine them as necessary, using the structure specified in option D. Options A, B, and C all describe fictitious structures. Option E is incorrect because the X.org-X11 and XFree86 configuration files use a text-mode structure, not a binary structure. |
3.
A monitor’s manual lists its range of acceptable synchronization values as 27–96kHz
horizontal and 50–160Hz vertical. What implications does this have for the resolutions and
refresh rates the monitor can handle?
- A.The monitor can run at up to 160Hz vertical refresh rate in all resolutions.
- B.The monitor can handle up to 160Hz vertical refresh rate depending on the color depth.
- C.The monitor can handle up to 160Hz vertical refresh rate depending on the resolution.
- D.The monitor can handle vertical resolutions of up to 600 lines (96,000 ÷ 160), but no more.
- E.The monitor can handle horizontal resolutions of up to 600 columns (96,000 ÷ 160), but no more.
- Answer & Explanation
- Report
Answer : [C]
Explanation :
Explanation :
The vertical refresh rate range includes a maximum value, but that value may be reduced when the resolution and vertical refresh rate would demand a higher horizontal refresh rate than the monitor can handle. Thus, option C is correct. Since the resolution affects the maximum refresh rate, option A is incorrect. The color depth is irrelevant to resolution and refresh rate calculations, so option B is incorrect. The computations shown in options D and E are bogus, making these options incorrect. |
4.
In what section of XF86Config or xorg.conf do you specify the resolution that you want to
run?
- A.In the ServerLayout section, using the Screen option
- B.In the Monitor section, using the Modeline option
- C.In the Device section, using the Modeline option
- D.In the DefaultResolution section, using the Define option
- E.In the Screen section, subsection Display, using the Modes option
- Answer & Explanation
- Report
Answer : [E]
Explanation :
Explanation :
Option E describes the correct location for this option. The ServerLayout section (referenced in option A) combines all the other options together but doesn’t set the resolution. The Modeline option in the Monitor section (as described in option B) defines one possible resolution, but there may be several Modeline entries defining many resolutions, and there’s no guarantee that any of them will be used. The Modeline option doesn’t exist in the Device section (as suggested by option C), nor is that section where the resolution is set. There is no DefaultResolution section (as referenced in option D). |
5.
What is an advantage of a font server?
- A.It provides faster font displays than are otherwise possible.
- B.It can simplify font maintenance on a network with many X servers.
- C.It’s the only means of providing TrueType support for XFree86 4.x.
- D.It enables the computer to turn a bitmapped display into an ASCII text file.
- E.It enables X to use font smoothing, which isn’t possible with core fonts.
- Answer & Explanation
- Report
Answer : [B]
Explanation :
Explanation :
By maintaining fonts on one font server and pointing other X servers to that font server, you can reduce the administrative cost of maintaining the fonts on all the systems, so option B is correct. Font servers don’t produce faster font displays than X’s local font handling; if anything, the opposite is true. Thus, option A is incorrect. XFree86 4.x supports TrueType fonts directly, so option C is incorrect. Converting a bitmapped display into ASCII text is a function of optical character recognition (OCR) software, not a font server, so option D is incorrect. Neither X core fonts nor a font server handles font smoothing; for that, you need Xft. Thus, option E is incorrect. |