The following questions will help you measure your understanding of the material presented in this chapter. As no multiple choice questions appear on the Red Hat exams, no multiple choice questions appear in this book. These questions exclusively test your understanding of the chapter. It is okay if you have another way of performing a task. Getting results, not memorizing trivia, is what counts on the Red Hat exams. There may be more than one answer to many of these questions.
1. | If you're running a GUI tool from a remote system, where is the X client? ___________________________________________________ |
|
2. | What is the main X configuration file? In what directory? ___________________________________________________ |
|
3. | What command starts a GUI with a blank screen? ___________________________________________________ |
|
Answers
1. | If you're running a GUI tool from a remote system, the X client comes from the remote system. The X server is local and manages the hardware. |
2. | The main X.org configuration file is xorg.conf, in the /etc/X11 directory. |
3. | The main command that starts the GUI with a blank screen is X; as it's linked to the Xorg command, you can use it as well. Yes, with appropriate changes to configuration files, you can start the GUI in a blank screen with other commands, most easily in twm. |
4. | What directive in xorg.conf is associated with keyboards and mice? ___________________________________________________ |
|
5. | What command is a text script that starts the GUI from a command line console? ___________________________________________________ |
|
6. | What configuration file in /etc/X11 can you use to specify a default GUI login manager? ___________________________________________________ |
|
Answers
4. | The directive in xorg.conf associated with keyboards and mice is InputDevice. |
5. | The text script command that starts the GUI from a command line console is startx. You can edit it directly in the /usr/bin/ directory. |
6. | The configuration file in the /etc/X11 directory that you can use to specify a default GUI login manager is prefdm; the key directive in this file is preferred. |
7. | What command tests the X.org start sequence, without actually starting the X Window? ___________________________________________________ |
|
8. | If you've logged into the command line console in runlevel 3, what command allows you to start the graphical X configuration tool? ___________________________________________________ |
|
9. | If you've logged into the command line console in runlevel 3 and can't start the graphical X configuration tool, what command creates a local xorg.conf file? ___________________________________________________ |
|
Answers
7. | The command that tests the X.org start sequence, without actually starting the X Window, is Xorg -probeonly. (As you can confirm in the Xorg man page, only one dash is required for Xorg command switches.) |
8. | If you've logged into the command line console in runlevel 3, the command that allows you to start the graphical X configuration tool is system-config-display. |
9. | If you've logged into the command line console in runlevel 3 and can't start the graphical X configuration tool, you can create a local xorg.conf file with the Xorg -configure command. |
10. | You've configured the Secure Shell on both systems. If you're logging into the cosmicc.example .net system as user michael, what command would you use to gain access to X applications on the remote system? ___________________________________________________ |
|
Answers
10. | You've configured the Secure Shell on both systems. To log into the cosmicc.example.net system as user michael, with access to GUI applications, run either the ssh -X michael@cosmicc.example.net or ssh -Y michael@cosmicc.example.net command. |
11. | What command switches the default desktop environment to KDE? ___________________________________________________ |
|
12. | In the future, you want to boot Linux directly into the GUI. How would you make this happen in /etc/inittab? ___________________________________________________ |
|
Answers
11. | The command that sets the default desktop to KDE is switchdesk kde. |
12. | In the future, to boot Linux directly into the GUI, make sure /etc/inittab includes the following directive, which boots Linux into runlevel 5:
id:5:initdefault |