| < Day Day Up > |
|
The following questions will help you measure your understanding of the material presented in this chapter. Read all the choices carefully, as there may be more than one correct answer. Don't focus exclusively on these questions. There are no longer any multiple choice questions on the Red Hat exams. These questions exclusively test your understanding of the chapter. While the topics in this chapter are 'prerequisites,' 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.
1. | Which of the following is true about the X Window System?
|
|
2. | You performed a new install of RHEL 3 and chose not to configure the X Window System. Your system is now active, and you can log into a command prompt. How do you go about configuring the X Window System?
|
|
Answers
1. | þ A, C, and D. A is correct because the X Server runs on the local computer with the graphics hardware, while X Clients may run locally or remotely. C is correct because the X Server sends keyboard and mouse inputs to local or remote X Clients. D is also correct because remote X Clients interact with the X Server in the same way as a local X Client. |
2. | þ B. You should use the Display Dettings tool any time you need to make changes to your X Window configuration. |
3. | You're having trouble starting the GNOME desktop environment, and you suspect the problem is with the X Font Server. Which of the following commands will tell you if it's running properly?
|
|
Answers
3. | þ B. The X Font Server service is xfs. You can check the status of this service with the service xfs status command. |
4. | You want to start an xterm X Client that is 80 columns wide by 30 lines high from the command line and position it in the upper-right corner of your display when it starts. What command would you use?
|
|
Answers
4. | þ B. The correct option is -geometry 80×30-0+0. Since you are creating a terminal window, the size specification 80×30 refers to the number of columns and lines. The offset specification -0+0 specifies that the right border of the xterm window should be offset 0 pixels from the right edge of the display and that the top border of the xterm window should be offset 0 pixels from the top of the display. |
5. | You log into a remote system with the Secure Shell with the intention of starting several remote X Clients to send their output to your local display (admin1.xyz.com). What can you do to make this easier?
DISPLAY=admin1.xyz.com:0.0 Create a DISPLAY variable with this command: export DISPLAY=admin1.xyz.comCreate a DISPLAY variable with this command: export DISPLAY=admin1.xyz.com:0.0 |
|
6. | You're trying to gain Secure Shell access to another computer on your LAN so you can run X Clients from the remote system. That computer is refusing access. Neither computer has a firewall. What can you do on that remote computer so it will accept your ssh command inputs?
|
|
Answers
5. | þ D. X Client applications use the DISPLAY environment variable to determine where to send their output. It must be an environment variable, so you must use the export command to create it. |
6. | þ A. The Secure Shell is normally enabled by default in RHEL 3. However, there are a number of reasons why it may not be on; this command restarts it. |
7. | When you installed RHEL 3, you configured the X Window System but chose to log on in text mode. You have been starting the X Window System with the startx command and everything is working fine. In the future, you want to boot Linux directly into the GUI. How would you make this happen?
|
|
8. | Your system is using the xdm display manager. You want to use the GNOME display manager (gdm). How can you do this?
|
|
Answers
7. | þ A. The easiest way to change the default runlevel for your Linux system is to change the initdefault setting in /etc/inittab to runlevel 5. You could then enter the init 5 command to change to runlevel 5 immediately. |
8. | þ A. The file /etc/X11/prefdm is a script that starts your preferred display manager. By default, the variable named preferred is not set, so if your default runlevel is 5, Red Hat launches gdm (the GNOME display manager). To force a different display manager, set the preferred variable to either kdm (for the KDE display manager) or xdm (for the X display manager). |
9. | You would like to automatically start up the xclock application whenever you start the GNOME desktop with the startx command. Which of the following methods can you use?
xclock & Use the Sessions utility and add the xclock command to the Startup tab.Edit /etc/X11/XF86Config and add this command: xclock -geometry 200x200-0+0 &Create or edit the file .xinitrc in your home directory and add the following command. Make sure the last command in this file is exec twm. xclock & |
|
Answers
9. | þ B. You can configure X Clients to start automatically in GNOME with the Sessions utility. |
10. | Which of the following is true about the default GNOME and KDE desktop environments in RHEL 3?
|
|
Answers
10. | þ D. Red Hat has configured both GNOME and KDE so you can find many Red Hat configuration utilities through the same GUI menus. |
| < Day Day Up > |
|