ࡱ> q` #bjbjqPqP .::%       * +++8+\",d* ?--"------A?C?C?C?C?C?C?$AhCg? -----g?  --|?";;;- - -A?;-A?;;Q>  >-- кq/+l1i>A??<?q>,DT24 D>D >--;-----g?g?;X---?----* * * d!+* * * +* * *        Guide to Linux+ (2nd Edition) ISBN 0-619-21621-2 End of Chapter Solutions Chapter 9 Solutions Review Questions Which command can be used to fine-tune the vsync and hsync of a video card for use in X Windows? Vidtune synctune xvidtune vhtune Answer: c Which of the following statements is true? GRUB needs to be reinstalled after it has been modified. LILO need not be reinstalled after it has been modified. GRUB points to LILO. GRUB need not be reinstalled after it has been modified. Answer: d If GRUB has been password protected, what must you type to enter the password when at the graphical GRUB screen? pass pwd passwd p Answer: d Which runlevel halts the system? 1 6 0 5 Answer: c Which file does init reference on startup to determine what to configure for a given runlevel? /etc/initstate /inittab /etc/init /etc/inittab Answer: d Which two commands entered at a command prompt start X Windows, the Window Manager, and the default desktop environment? (Choose two answers.) startgui gdm startx winstart Answer: b, c Which of the following statements is true? The boot loader points to the MBR. Either the MBR or the active partition can contain the boot loader. Both the MBR and the active partition point to the boot loader. The boot loader points to the active partition. Answer: b Which command is used to reinstall LILO after its configuration has been altered? lilo refresh set lilo reset lilo Answer: a What keyword in the LILO configuration file specifies the absolute pathname to the Linux kernel? default prompt root image Answer: d To make dual booting as easy as possible, Linux should be the second operating system installed. True or False? Answer: True How many active partitions can there be per hard disk drive? 4 16 1 2 Answer: c Which of the following indicates the second partition on the third hard disk drive to GRUB? (hd3,2) (hd4,3) (hd2,3) (hd2,1) Answer: b Which two implementations of X Windows are commonly used in Linux? (Choose two answers.) X.org XFce Xconfigurator XFree86 Answer: a, d What is the name of the directory that contains the configuration information for runlevel 2? /etc/rc.d/rc2.d /rc.d/rc2.d /etc/rc.d/l2.d /etc/inittab/rc2/d Answer: a In what directory is the Linux kernel stored? /boot /root /bin / Answer: a If a user enters Single User Mode, who is she automatically logged in as? the user name she provided root admin there is no user available in Single User Mode Answer: b The first process generated on a Linux system is ___________. initstate inittab init linux Answer: c Which utility can be used to configure the video card and monitor used by X Windows in Red Hat Fedora Core 2? X.config system-config-display xconfig xvidtune Answer: b Which command causes the system to enter Single User Mode? init 0 init 1 init 6 initstate 5 Answer: b The timeout value in the GRUB configuration file is measured in? seconds 1/10 of miniutes 1/10 of seconds 1/100 of seconds Answer: a Project 9-1 Step 1: Not available. Step 2: Not available. Step 3: Not available. Step 4: Not available. Step 5: linux. Step 6: linux 1 or linux s or linux S. Step 7: root, no. Step 8: Not available. Step 9: 60 seconds. Step 10: Password protect the operating system boot. Step 11: Not available. Step 12: To reinstall LILO with the new configuration. Step 13: A list of operating systems (linux), 60 seconds. Step 14: Yes, due to Step 10. Project 9-2 Step 1: Not available. Step 2: Yes, because it lists the location in GRUB format (hd0,0), see chapter for definition of format Step 3: 100 seconds. Step 4: No, because the GRUB configuration file is read directly at boot time. Step 5: Not available. Step 6: Not available. Step 7: Not available. Step 8: Not available. Step 9: Not available. Step 10: Not available. Step 11: Not available. Step 12: Not available. Step 13: Not available. Step 14: Not available. Step 15: Not available. Step 16: Not available. Step 17: Not available. Step 18: Not available. Project 9-3 Step 1: Not available. Step 2: 5, yes it was chosen during installation at the end when prompted for "graphical login" type. Step 3: initdefault. Step 4: Most daemons are stopped; yes because it is Multiuser Mode. Step 5: 2, 5. Step 6: Most daeons are stopped; no because it is Single User Mode (administrative only). Step 7: 1, S. Step 8: Most daemons are started; gdm (graphical login). Step 9: Not available. Step 10: 5, 1. Step 11: Not available. Step 12: Not available. Project 9-4 Step 1: Not available. Step 2: Directories for each runlevel that contain links to startup scripts for daemons as well as the init.d directory. Step 3: Most files start with K because most services are stopped in runlevel 1and will be executed in ASCII (alphabetical order). Step 4: Most files start with S because most services are started in runlevel 5. Step 5: Scripts that start daemons. Step 6: The at daemon was stopped. Step 7: The at daemon was started. Step 8: The at daemon was restarted. Step 9: Not available. Step 10: Not available. Step 11: 644. Step 12: Not available. Step 13: This creates a startup link that starts the sample daemon upon entering runlevel 5. Step 14: Yes. Step 15: Not available. Step 16: The sample daemon was stopped. Step 17: The sample daemon was started. Step 18: The sample daemon was restarted. Step 19: Not available. Project 9-5 Step 1: Not available. Step 2: Not available. Step 3: Not available. Step 4: Not available. Step 5: /etc/X11, xorg.conf. Step 6: Not available. Step 7: Not available. Step 8: Not available. Step 9: GNOME. Step 10: Not available. Step 11: /root/.Xclients-default. Step 12: Not available. Step 13: Yes. Step 14: Xfce. Step 15: Not available. Step 16: GNOME. Step 17: Not available. Discovery Exercises Discovery Exercise 1 The init daemon will continuously reboot the system. Discovery Exercise 2 The daemon should be placed in /etc/init.d, and links should be created to start the daemon in runlevel 5 and stop the daemon in runlevel 0, 1, 2, 3, 4, 6; some possible commands to do this are: ln s /etc/rc.d/init.d/mydaemon /etc/rc.d/rc5.d/S50mydaemon ln s /etc/rc.d/init.d/mydaemon /etc/rc.d/rc0.d/K50mydaemon ln s /etc/rc.d/init.d/mydaemon /etc/rc.d/rc1.d/K50mydaemon ln s /etc/rc.d/init.d/mydaemon /etc/rc.d/rc2.d/K50mydaemon ln s /etc/rc.d/init.d/mydaemon /etc/rc.d/rc3.d/K50mydaemon ln s /etc/rc.d/init.d/mydaemon /etc/rc.d/rc4.d/K50mydaemon ln s /etc/rc.d/init.d/mydaemon /etc/rc.d/rc6.d/K50mydaemon Discovery Exercise 3 Not available. Discovery Exercise 4 Not available. Discovery Exercise 5 Runlevel 4 is defined in /etc/inittab. To start daemons in this runlevel, you should have the appropriate line in /etc/inittab (already there), which points to the "rc 4" command that loads all scripts in the /etc/rc.d/rc4.d directory. To prepare this directory, create the same links as in the /etc/rc.d/rc3.d directory yet add some more that are not available in runlevel 3. Discovery Exercise 6 Answers will vary; typically, this file initializes system components before daemon startup. Discovery Exercise 7 Not available. Discovery Exercise 8 Not available.     PAGE  PAGE 5 /0KLTU`rsxya b õæÜvvvnncXXXXhw`hw`CJaJhw`h|CJaJh|CJaJh|h|CJaJh|hdCJaJhdCJaJhiaCJaJhiaOJQJ^Jh15CJ OJQJ^JaJ hiaCJOJQJ^JaJhia5CJ OJQJ^JaJ h U65CJ OJQJ^JaJ h?c5CJ OJQJ^JaJ h?ch?cH*h?chia"1KL`arsbI & FEƀj4&.gd|I & FEƀj4&.gd|$a$ ##k!I & FEƀj4&.gd|I & FEƀj4&.gd|I & FEƀj4&.gd|* c bI & FEƀj4&.gdw`I & FEƀj4&.gdw`h^hgd|c k!I & FEƀj4&.gdw`I & FEƀj4&.gdw`I & FEƀj4&.gdw`   w }  D J L M N      1 2 T U }        f ݴhlXhw`CJaJhw`hw`CJKHaJh|CJaJh|hdCJaJh|h|CJaJhw`hdCJaJhw`CJaJh=CJaJhw`hw`CJaJhdCJaJ= e j bI & FEƀj4&.gdw`I & FEƀj4&.gdw`h^hgdw`j n u w k!I & FEƀj4&.gdw`I & FEƀj4&.gdw`I & FEƀj4&.gdw`w bI & FEƀj4&.gdw`I & FEƀj4&.gdw`h^hgdw` k!I & FEƀj4&.gdw`I & FEƀj4&.gdw`I & FEƀj4&.gdw`  $ bI & FEƀj4&.gdw`I & FEƀj4&.gdw`h^hgdw`$ - 7 D k!I & FEƀj4&.gdw`I & FEƀj4&.gdw`I & FEƀj4&.gdw`D N bI & FEƀj4&.gd|I & FEƀj4&.gd|h^hgdw` k!I & FEƀj4&.gd|I & FEƀj4&.gd|I & FEƀj4&.gd|  3 V bI & FEƀj4&.gdw`I & FEƀj4&.gdw`h^hgdw`V k!I & FEƀj4&.gdw`I & FEƀj4&.gdw`I & FEƀj4&.gdw`  f k bI & FEƀj4&.gdw`I & FEƀj4&.gdw`h^hgdw`k s | k!I & FEƀj4&.gdw`I & FEƀj4&.gdw`I & FEƀj4&.gdw`   >?=>_ehi +,-0;>?qrxy׸װװץץץץץץhw`hdCJaJhfxFCJaJhfxFhfxFCJaJhw`hw`CJ\aJhw`CJaJhdCJaJhw`hw`CJ\]aJhw`hw`CJaJh=CJaJA bI & FEƀj4& .gdw`I & FEƀj4& .gdw`h^hgdw`  k!I & FEƀj4& .gdw`I & FEƀj4& .gdw`I & FEƀj4& .gdw` bI & FEƀj4& .gdw`I & FEƀj4& .gdw`h^hgdw`k!I & FEƀj4& .gdw`I & FEƀj4& .gdw`I & FEƀj4& .gdw`?bI & FEƀj4& .gdw`h^hgdw`I & FEƀj4& .gdw`?GOWk!I & FEƀj4& .gdw`I & FEƀj4& .gdw`I & FEƀj4& .gdw`W_ibI & FEƀj4& .gdfxFh^hgdw`I & FEƀj4& .gdw`k!I & FEƀj4& .gdfxFI & FEƀj4& .gdfxFI & FEƀj4& .gdfxFNbI & FEƀj4&.gdw`h^hgdw`I & FEƀj4& .gdfxFN^jyk!I & FEƀj4&.gdw`I & FEƀj4&.gdw`I & FEƀj4&.gdw`ybI & FEƀj4&.gdw`h^hgdw`I & FEƀj4&.gdw`k!I & FEƀj4&.gdw`I & FEƀj4&.gdw`I & FEƀj4&.gdw`-bI & FEƀj4&.gdw`h^hgdw`I & FEƀj4&.gdw`-HMSk!I & FEƀj4&.gdw`I & FEƀj4&.gdw`I & FEƀj4&.gdw`y}~EFLⶩ hdCJhia5CJ\hd5CJ\mH sH hia5CJ\mH sH  hiaCJhXhdCJaJhXhXCJaJh=CJaJhw`CJaJhw`hw`CJaJhdCJaJhw`hdCJaJ5SYI & FEƀj4&.gdw`8^8gdw`h^hgdw`I & FEƀj4&.gdw`k!I & FEƀj4&.gdw`I & FEƀj4&.gdw`I & FEƀj4&.gdw`bbI & FEƀj4&.gdXh^hgdw`I & FEƀj4&.gdw`bkk!I & FEƀj4&.gdXI & FEƀj4&.gdXI & FEƀj4&.gdXbI & FEƀj4&.gdw`h^hgdw`I & FEƀj4&.gdXk!I & FEƀj4&.gdw`I & FEƀj4&.gdw`I & FEƀj4&.gdw`EbI & FEƀj4&.gdw`h^hgdw`I & FEƀj4&.gdw`EM^nk!I & FEƀj4&.gdw`I & FEƀj4&.gdw`I & FEƀj4&.gdw`n(:Qe#gd&"  & FdgdfO^h^hgdw`I & FEƀj4&.gdw` &'(.089:@BOPVWYcdjlmnw!"#*,=?@ABJLNcdempпh] ZCJaJhdCJaJhiaCJaJhd5CJaJhia5CJaJh+T5CJaJ h+TCJ h R@CJ hiaCJ hdCJ h&"CJC#ABNe1H_v4Ld|}_dgd)zgd] Zprz/09FGH]^tu~23JKbcdiklmz{|}ľ̤̤hOjCJaJhd5CJaJhia5CJaJ hiaaJh)zCJaJhiaCJaJhdh] Zhiah] ZCJaJh!;CJaJhdCJaJhTAsCJaJ@#(;=AIO^ijkluz  #$0123JKbcdemoq !)hOjhdhiahiaCJaJhd5CJaJhia5CJaJhiaOJQJ^JhdCJaJhOjCJaJL_m%4Ldeq?d{$<dgd4gd4gdOj$(=>?GKbcdyz#:;<EIbcdmq56?ɸhCJaJha CJaJhd5CJaJha 5CJaJhiaOJQJ^Jh4hdhiahiaCJaJhdCJaJh4CJaJC  7Tk/?WXlmgdigda gd4gd4?RSij-./=>UVWlYZ\]_`bcef5!J!Ⱦh4CJaJh45CJaJhiaCJaJ hia\ h\ h4\hia5CJaJhiaOJQJ^JhiCJaJh"bTCJaJhzCJaJhCJaJha CJaJhCJaJh"CJaJ7 D 4!5!J!Y!Z!o!~!!! #########h^hgdGo`gd4J!X!Y!Z!o!}!~!!!!!""#"G"L" # ####+#0#?#@###########################屨}h@u h@u0J%jh@u0J%Uh]jh]UhGoha CJaJha 5CJaJha CJaJhGo5CJaJ hia5\hGohGoCJaJhCJaJhia5CJaJhiaCJaJhGohiaCJaJhGoCJaJ0####################$ $&`#$gd]gda #######hGoha CJaJh]h@u h@u0J%jh@u0J%Uh@u0J%mHnHu,1h/ =!"#$% &@@@ NormalCJ_HaJmH sH tH DA@D Default Paragraph FontViV  Table Normal :V 44 la (k(No List 6U@6 Hyperlink >*B*phVOV Begin Review Questions dxaJ:O: New Term5OJQJ\o(FV@!F FollowedHyperlink >*B* phZOZ Syntax Code Output  d OJQJaJ6B@B6 Body TextCJaJD>@RD Title$a$5CJ OJQJ^JaJ TC@bT Body Text Indent0^`0CJaJO Basal Textp & Fdx>T8[BT]TfaJTR@T Body Text Indent 2 h^h 5CJaJDZ@D Plain TextCJOJQJ^JaJJd@J HTML KeyboardCJOJPJQJ^JaJLS@L Body Text Indent 3 h^hCJB'B Comment ReferenceCJaJ2O2 Begin Steps.O. End Table0O0 Table Text8Oq8 Table Head & FBB  Comment Text!dCJaJH"H 'H Balloon Text"CJOJQJ^JaJFjF dComment Subject#d5\4 @B4 @uFooter $ !.)@Q. @u Page Number1KL`ars*cejnuw$-7DN3V fks| ?GOW_iN^jy- H M S b k  E M ^ n   ( : Q e # A B N e 1H_v4Ld|}_m%4Ldeq?d{$<d  7Tk/?WXlmD45JYZo~ #00000000 0 0s 0s 0s 0s0 0 0 0 0 00 0 0 0 0 00 0 0 0 0 000 0 0 0 0 00 0 0N 0N 0N 0N0 0 0 0 0 00 0 0 0 0 00 0 0 0 0 00 0 0 0  0 0 0 00 0  0 0 0 00 0  0i 0i 0i 0i0 0  0 0 0 000 0 0 0 0 00 0 0 0 0 000 0 0  0  0  0 0 0 0  0  0  0 00 0 0  0  0  0 0 0 0  0  0  0 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000I00I00jI00I00jI00I00jI00I00jI00I00I00I00I00I0 0#I008j $$$' yp?J!##%4>@ACEGIc j w $ D V k ?WNy-SbEn#_## !"#$&'()*+,-./012356789:;<=?BDFH#  '!!jmnt #%,<Cfjw{BJ b j r x U ]     $   OXzFN IR,4NV 'DFOc 9;  $*GM DF333333333333KKssdd,,NN}}22}}ee{{vvii , , - - ; ;     E E n n V V m m r r 99PPgg~~  $$<<TTll||##;;AAOOYYgguu==UUddyy  !!$$GGllEEllmm((56??RS\\ijss  -.88=>HHUVYZ\]_`bcef55YY"#GKLL+/00?@l$Rh^`.8^`o(. pLp^p`LhH. @ @ ^@ `hH. ^`hH. L^`LhH. ^`hH. ^`hH. PLP^P`LhH.l$ H       #"X'H]_! U6 R@fxF"bTlX] Zia?cGoTAs)z=hj"fO&"w`iza 4|1Oj@ue"+Td!;@H+P@UnknowntriOSgz Times New RomanTimes New Roman5SymbolI& z Arial HelveticaE& Century Gothic?5 z Courier New5& zaTahoma"1h섈&f%2%2!4d 2qHX?'H2!End of Chapter Solutions TemplateNew User Sarah Santoro Oh+'0 (4 T ` lx$End of Chapter Solutions Template New User Normal.dotSarah Santoro7Microsoft Office Word@ԭ@I@/%՜.+,D՜.+,\ hp  Course Technology 2G "End of Chapter Solutions Template Title8@,_AdHocReviewCycleID_EmailSubject _AuthorEmail_AuthorEmailDisplayName_ReviewingToolsShownOnceXAnswer TemplateTim.Gleeson@course.comGleeson, Tim  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJLMNOPQRTUVWXYZ[\]^_`abcdefghijklmnopqrstuwxyz{|}Root Entry F$/Data K1TableSDWordDocument.SummaryInformation(vDocumentSummaryInformation8~CompObjq  FMicrosoft Office Word Document MSWordDocWord.Document.89q