Self Test

 < 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.

X Server

1. 

Which of the following is true about the X Window System?

  1. The X Server runs on your workstation; X Clients run on your workstation or on other computers on the network.

  2. If an X Server is running on your workstation, then X Client applications running on your computer cannot send their output to an X Server running on another system on the network.

  3. An X Client application gets its input from the keyboard and mouse attached to the same X Server where the client is sending its output.

  4. Aside from the steps necessary to start the remote application, there is no difference between running an X Client locally and running one remotely.

   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.   b is incorrect because there simply is no such restriction.

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?

  1. Use the vi editor and modify the /etc/X11/XF86Config file.

  2. Run the redhat-config-xfree86 command.

  3. Run the xf86config command.

  4. Reinstall RHEL 3.

   b . you should use the display dettings tool any time you need to make changes to your x window configuration.   a is possibly correct assuming you understand enough about the xf86config file to make the necessary changes. from experience, i would suggest you only edit this file if you have an (almost) working configuration you only wish to fine-tune. c refers to an x configuration tool that is not available in rhel 3. d is extreme. the only justification for this might be if you performed a custom install and perhaps neglected to include all the components of the x window system. even if this is the case, you can still install the needed rpms from the command line.

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.
ýB is incorrect because there simply is no such restriction.

2. 

þB. You should use the Display Dettings tool any time you need to make changes to your X Window configuration.
ýA is possibly correct assuming you understand enough about the XF86Config file to make the necessary changes. From experience, I would suggest you only edit this file if you have an (almost) working configuration you only wish to fine-tune. C refers to an X configuration tool that is not available in RHEL 3. D is extreme. The only justification for this might be if you performed a custom install and perhaps neglected to include all the components of the X Window System. Even if this is the case, you can still install the needed RPMs from the command line.

X Font Server

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?

  1. service xfont status

  2. service xfs status

  3. service xfonts status

  4. service gnome status

   b . the x font server service is xfs . you can check the status of this service with the service xfs status command.   a , c , and d are incorrect because these are not valid services for rhel 3.

Answers

3. 

þB. The X Font Server service is xfs. You can check the status of this service with the service xfs status command.
ýA, C, and D are incorrect because these are not valid services for RHEL 3.

X Clients

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?

  1. xterm -geometry +0-0 -font 80X30

  2. xterm -geometry 80X30-0+0

  3. xterm -geometry 80+30+0+0

  4. xterm -display 80×30-0+0

   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.   a is incorrect because the -font option is used to specify the default font for the window, not the window location. c is incorrect because the window size is specified by the 80 30 format. d is incorrect because -display is the wrong switch for sizing and positioning the xterm window.

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.
ýA is incorrect because the -font option is used to specify the default font for the window, not the window location. C is incorrect because the window size is specified by the 80×30 format. D is incorrect because -display is the wrong switch for sizing and positioning the xterm window.

Remote Display of X Applications

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?

  1. Use the -display admin1.xyz.com option.

  2. Create a DISPLAY variable with this command:

DISPLAY=admin1.xyz.com:0.0

Create a DISPLAY variable with this command:

export DISPLAY=admin1.xyz.com
Create a DISPLAY variable with this command:
export DISPLAY=admin1.xyz.com:0.0

   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.   a suggests using the -display option to every remote x client you wish to start. while this is not the easiest way to do it, it could work. to make the option effective, though, you would have to write it as -display admin1.xyz.com:0.0 . b is incorrect because it makes a variable called display with the correct value, but it neglects to export the variable. c is not quite correct. while you do export display , this answer does not identify the x graphics display and the screen (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?

  1. Restart the Secure Shell with the /etc/rc.d/init.d/sshd restart command.

  2. Enable the Secure Shell in the /etc/ssh.conf configuration file.

  3. Disable firewalls on the network.

  4. Restart xinetd with the /etc/rc.d/inet.d/xinetd restart command.

   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.   b is incorrect because there is no /etc/ssh.conf configuration file. c is incorrect because standard firewalls should not block the secure shell. d is incorrect because the secure shell in rhel 3 is not a xinetd super server process. for more information on the secure shell, see chapter 11 .

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.
ýA suggests using the -display option to every remote X Client you wish to start. While this is not the easiest way to do it, it could work. To make the option effective, though, you would have to write it as -display admin1.xyz.com:0.0. B is incorrect because it makes a variable called DISPLAY with the correct value, but it neglects to export the variable. C is not quite correct. While you do export DISPLAY, this answer does not identify the X graphics display and the screen (0.0).

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.
ýB is incorrect because there is no /etc/ssh.conf configuration file. C is incorrect because standard firewalls should not block the Secure Shell. D is incorrect because the Secure Shell in RHEL 3 is not a xinetd 'Super Server' process. For more information on the Secure Shell, see Chapter 11.

Desktops and Window Managers

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?

  1. Edit /etc/inittab and replace the id:3:initdefault command with id:5:initdefault.

  2. Run redhat-config-xfree86.

  3. Change the /etc/X11/prefdm link.

  4. Execute the runlevel 5 command.

   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.   b is incorrect because the red hat display settings tool cannot change /etc/inittab. c is incorrect because this just configures the preferred display manager. d is incorrect because the runlevel command is used to report on the previous and current runlevels, not to set the new default runlevel.

8. 

Your system is using the xdm display manager. You want to use the GNOME display manager (gdm). How can you do this?

  1. Change the /etc/X11/prefdm shell script and define a value for the variable named preferred.

  2. Run redhat-config-xfree86.

  3. Edit /etc/X11/XF86Config.

  4. Use the GNOME Control Panel to change the display manager.

   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).   b is incorrect because the red hat display settings tool does not set the preferred display manager. c is incorrect because the preferred display manager is not set in xf86config. d is incorrect because there is no such option in the gnome control panel.

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.
ýB is incorrect because the Red Hat Display Settings tool cannot change /etc/inittab. C is incorrect because this just configures the preferred display manager. D is incorrect because the runlevel command is used to report on the previous and current runlevels, not to set the new default runlevel.

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).
ýB is incorrect because the Red Hat Display Settings tool does not set the preferred display manager. C is incorrect because the preferred display manager is not set in XF86Config. D is incorrect because there is no such option in the GNOME Control Panel.

The X Start Process

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?

  1. Create or edit the file ~/.Xdefault and add this command:

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 &

   b . you can configure x clients to start automatically in gnome with the sessions utility.   a is incorrect because .xdefault is not used to start x clients when you start the gui. c is incorrect because the xf86config file is used to configure the x server to the correct hardware settings, not launch a user s favorite applications. d is incorrect because the exec twm command starts tom s window manager, not the gnome desktop.

Answers

9. 

þB. You can configure X Clients to start automatically in GNOME with the Sessions utility.
ýA is incorrect because .Xdefault is not used to start X Clients when you start the GUI. C is incorrect because the XF86Config file is used to configure the X Server to the correct hardware settings, not launch a user's favorite applications. D is incorrect because the exec twm command starts Tom's Window Manager, not the GNOME desktop.

Basic Graphical Applications

10. 

Which of the following is true about the default GNOME and KDE desktop environments in RHEL 3?

  1. The basic Red Hat utilities can only be found through the GNOME desktop.

  2. The basic Red Hat utilities can only be found through the KDE desktop.

  3. You can configure GNOME and KDE with the Red Hat Display Settings tool.

  4. You can use the same menus in GNOME and KDE to start many Red Hat configuration utilities.

   d . red hat has configured both gnome and kde so you can find many red hat configuration utilities through the same gui menus.   a and b are incorrect as you can find basic red hat configuration utilities, using the main menu button, in both the gnome and kde desktops. c is not correct as you can only configure the x server with the red hat display settings tool.

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.
ýA and B are incorrect as you can find basic Red Hat configuration utilities, using the Main Menu button, in both the GNOME and KDE desktops. C is not correct as you can only configure the X Server with the Red Hat Display Settings tool.



 < Day Day Up > 



RCHE Red Hat Certified Engineer Linux Study Guide[c] Exam (Rh302)
RCHE Red Hat Certified Engineer Linux Study Guide[c] Exam (Rh302)
ISBN: 71765654
EAN: N/A
Year: 2003
Pages: 194

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net