Tải bản đầy đủ (.pdf) (1,747 trang)

OReilly running linux 5th edition dec 2005 ISBN 0596007604

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (13.44 MB, 1,747 trang )

RunningLinux,5thEdition
ByMatthiasKalleDalheimer,MattWelsh
...............................................
Publisher:O'Reilly
PubDate:December2005
ISBN:0-596-00760-4
Pages:972

TableofContents|Index

YoumaybecontemplatingyourfirstLinuxinstallation.OryoumayhavebeenusingLinux
foryearsandneedtoknowmoreaboutaddinganetworkprinterorsettingupanFTP
server.RunningLinux,nowinitsfifthedition,isthebookyou'llwantonhandineither
case.WidelyrecognizedintheLinuxcommunityastheultimategetting-startedand
problem-solvingbook,itanswersthequestionsandtacklestheconfigurationissuesthat
frequentlyplagueusers,butareseldomaddressedinotherbooks.
ThisfiftheditionofRunningLinuxisgreatlyexpanded,reflectingthematurityofthe
operatingsystemandtheteemingwealthofsoftwareavailableforit.Hotconsumertopics
such
asaudioandvideoplaybackapplications,groupwarefunctionality,andspamfilteringare
covered,alongwiththebasicsinconfigurationandmanagementthatalwayshavemade
thebookpopular.
RunningLinuxcoversbasiccommunicationssuchasmail,websurfing,andinstant
messaging,butalsodelvesintothesubtletiesofnetworkconfiguration--includingdial-up,
ADSL,andcablemodems--incaseyouneedtosetupyournetworkmanually.Thebook
can
makeyouproficientonofficesuitesandpersonalproductivityapplications--andalsotells
youwhatprogrammingtoolsareavailableifyou'reinterestedincontributingtothese
applications.
Othernewtopicsinthefiftheditionincludeencryptedemailandfilesystems,advanced
shelltechniques,andremoteloginapplications.Classicdiscussionsonbooting,package


management,kernelrecompilation,andXconfigurationhavealsobeenupdated.
TheauthorsofRunningLinuxhaveanticipatedproblemareas,selectedstableandpopular
solutions,andprovidedclearinstructionstoensurethatyou'llhaveasatisfyingexperience
usingLinux.Thediscussionisdirectandcompleteenoughtoguidenoviceusers,whilestill
providingtheadditionalinformationexperienceduserswillneedtoprogressintheir
masteryofLinux.


Whetheryou'reusingLinuxonahomeworkstationormaintaininganetworkserver,
RunningLinuxwillprovideexpertadvicejustwhenyouneedit.


RunningLinux,5thEdition
ByMatthiasKalleDalheimer,MattWelsh
...............................................
Publisher:O'Reilly
PubDate:December2005
ISBN:0-596-00760-4
Pages:972

TableofContents|Index




















































Copyright
Preface
OrganizationofThisBook
ConventionsUsedinThisBook
UsingCodeExamples
HowtoContactUs
Safari®Enabled
Acknowledgments
PartI:EnjoyingandBeingProductiveonLinux
Chapter1.IntroductiontoLinux
Section1.1.AboutThisBook
Section1.2.Who'sUsingLinux?
Section1.3.SystemFeatures
Section1.4.AboutLinux'sCopyright
Section1.5.OpenSourceandthePhilosophyofLinux
Section1.6.SourcesofLinuxInformation
Section1.7.GettingHelp
Chapter2.PreinstallationandInstallation
Section2.1.DistributionsofLinux

Section2.2.PreparingtoInstallLinux
Section2.3.Post-InstallationProcedures
Section2.4.RunningintoTrouble
Chapter3.DesktopEnvironments
Section3.1.WhyUseaGraphicalDesktop?
Section3.2.TheKDesktopEnvironment




















































































Section3.3.KDEApplications
Section3.4.TheGNOMEDesktopEnvironment

Section3.5.GNOMEApplications
Chapter4.BasicUnixCommandsandConcepts
Section4.1.LoggingIn
Section4.2.SettingaPassword
Section4.3.VirtualConsoles
Section4.4.PopularCommands
Section4.5.Shells
Section4.6.UsefulKeysandHowtoGetThemtoWork
Section4.7.TypingShortcuts
Section4.8.FilenameExpansion
Section4.9.SavingYourOutput
Section4.10.WhatIsaCommand?
Section4.11.PuttingaCommandintheBackground
Section4.12.RemoteLoginsandCommandExecution
Section4.13.ManualPages
Section4.14.StartupFiles
Section4.15.ImportantDirectories
Section4.16.BasicTextEditing
Section4.17.AdvancedShellsandShellScripting
Chapter5.WebBrowsersandInstantMessaging
Section5.1.TheWorldWideWeb
Section5.2.InstantMessaging
Chapter6.ElectronicMailClients
Section6.1.UsingKMail
Section6.2.UsingMozillaMail&News
Section6.3.GettingtheMailtoYourComputerwithfetchmail
Section6.4.OpenPGPEncryptionwithGnuPG
Chapter7.Games
Section7.1.Gaming
Section7.2.QuakeIII

Section7.3.ReturntoCastleWolfenstein
Section7.4.UnrealTournament2004
Section7.5.Emulators
Section7.6.FrozenBubble
Section7.7.TuxRacer
Chapter8.OfficeSuitesandPersonalProductivity
Section8.1.UsingOpenOffice


















































































Section8.2.KOffice
Section8.3.OtherWordProcessors
Section8.4.SynchingPDAs

Section8.5.Groupware
Section8.6.ManagingYourFinances
Chapter9.Multimedia
Section9.1.MultimediaConcepts
Section9.2.KernelandDriverIssues
Section9.3.EmbeddedandOtherMultimediaDevices
Section9.4.DesktopEnvironments
Section9.5.WindowsCompatibility
Section9.6.MultimediaApplications
Section9.7.MultimediaToolkitsandDevelopmentEnvironments
Section9.8.SolutionstoCommonProblems
Section9.9.References
PartII:SystemAdministration
Chapter10.SystemAdministrationBasics
Section10.1.MaintainingtheSystem
Section10.2.ManagingFilesystems
Section10.3.ManagingSwapSpace
Section10.4.The/procFilesystem
Section10.5.DeviceFiles
Section10.6.SchedulingRecurringJobsUsingcron
Section10.7.ExecutingJobsOnce
Section10.8.ManagingSystemLogs
Section10.9.Processes
Section10.10.ProgramsThatServeYou
Chapter11.ManagingUsers,Groups,andPermissions
Section11.1.ManagingUserAccounts
Section11.2.FileOwnershipandPermissions
Section11.3.ChangingtheOwner,Group,andPermissions
Chapter12.Installing,Updating,andCompilingPrograms
Section12.1.UpgradingSoftware

Section12.2.GeneralUpgradeProcedure
Section12.3.AutomatedandBulkUpgrades
Section12.4.UpgradingSoftwareNotProvidedinPackages
Section12.5.ArchiveandCompressionUtilities
Chapter13.Networking
Section13.1.NetworkingwithTCP/IP


















































































Section13.2.Dial-UpPPP
Section13.3.PPPoverISDN
Section13.4.ADSL
Section13.5.CableModems

Section13.6.NetworkDiagnosticsTools
Chapter14.Printing
Section14.1.Printing
Section14.2.ManagingPrintServices
Chapter15.FileSharing
Section15.1.SharingFileswithWindowsSystems(Samba)
Section15.2.NFSConfigurationandNIS
Chapter16.TheXWindowSystem
Section16.1.AHistoryofX
Section16.2.XConcepts
Section16.3.HardwareRequirements
Section16.4.InstallingX.org
Section16.5.ConfiguringX.org
Section16.6.RunningX
Section16.7.RunningintoTrouble
Section16.8.Xand3D
Chapter17.SystemStartandShutdown
Section17.1.BootingtheSystem
Section17.2.SystemStartupandInitialization
Section17.3.Single-UserMode
Section17.4.ShuttingDowntheSystem
Section17.5.AGraphicalRunlevelEditor:KSysV
Chapter18.ConfiguringandBuildingtheKernel
Section18.1.BuildingaNewKernel
Section18.2.LoadableDeviceDrivers
Section18.3.LoadingModulesAutomatically
Chapter19.TextEditing
Section19.1.EditingFilesUsingvi
Section19.2.The(X)EmacsEditor
Chapter20.TextProcessing

Section20.1.TeXandLaTeX
Section20.2.XMLandDocBook
Section20.3.groff
Section20.4.Texinfo
PartIII:Programming
















































































Chapter21.ProgrammingTools
Section21.1.Programmingwithgcc
Section21.2.Makefiles
Section21.3.Debuggingwithgdb
Section21.4.UsefulUtilitiesforCProgrammers
Section21.5.UsingPerl
Section21.6.Java

Section21.7.Python
Section21.8.OtherLanguages
Section21.9.IntroductiontoOpenGLProgramming
Section21.10.IntegratedDevelopmentEnvironments
Chapter22.RunningaWebServer
Section22.1.ConfiguringYourOwnWebServer
Chapter23.TransportingandHandlingEmailMessages
Section23.1.ThePostfixMTA
Section23.2.Procmail
Section23.3.FilteringSpam
Chapter24.RunninganFTPServer
Section24.1.Introduction
Section24.2.CompilingandInstalling
Section24.3.RunningProFTPD
Section24.4.Configuration
PartIV:NetworkServices
Chapter25.RunningWebApplicationswithMySQLandPHP
Section25.1.MySQL
Section25.2.PHP
Section25.3.TheLAMPServerinAction
Chapter26.RunningaSecureSystem
Section26.1.APerspectiveonSystemSecurity
Section26.2.InitialStepsinSettingUpaSecureSystem
Section26.3.TCPWrapperConfiguration
Section26.4.Firewalls:FilteringIPPackets
Section26.5.SELinux
Chapter27.BackupandRecovery
Section27.1.MakingBackups
Section27.2.WhattoDoinanEmergency
Chapter28.HeterogeneousNetworkingandRunningWindowsPrograms

Section28.1.SharingPartitions




Section28.2.EmulationandVirtualOperatingSystems



Section28.3.RemoteDesktopAccesstoWindowsPrograms












Section28.4.FreeNX:LinuxasaRemoteDesktopServer
AppendixA.SourcesofLinuxInformation

SectionA.1.LinuxDocumentationProject

SectionA.2.FTPSites

SectionA.3.WorldWideWebSites

AbouttheAuthors
Colophon
Index


RunningLinux,FifthEdition
byMatthiasKalleDalheimerandMattWelsh
Copyright©2006,2002,1999,1996,1995O'ReillyMedia,Inc.
Allrightsreserved.PrintedintheUnitedStatesofAmerica.
PublishedbyO'ReillyMedia,Inc.,1005GravensteinHighway
North,Sebastopol,CA95472.
O'Reillybooksmaybepurchasedforeducational,business,or
salespromotionaluse.Onlineeditionsarealsoavailablefor
mosttitles(safari.oreilly.com).Formoreinformation,contact
ourcorporate/institutionalsalesdepartment:(800)998-9938or

Editor:

AndyOram

ProductionEditor:

AdamWitwer

ProductionServices:

ArgosyPublishing

CoverDesigner:


EdieFreedman

InteriorDesigner:

DavidFutato

PrintingHistory:
May1995:

FirstEdition.

August1996:

SecondEdition.

August1999:

ThirdEdition.


December2002:

FourthEdition.

December2005:

FifthEdition.

NutshellHandbook,theNutshellHandbooklogo,andthe
O'ReillylogoareregisteredtrademarksofO'ReillyMedia,Inc.

TheLinuxseriesdesignations,RunningLinux,imagesofthe
AmericanWest,andrelatedtradedressaretrademarksof
O'ReillyMedia,Inc.
Manyofthedesignationsusedbymanufacturersandsellersto
distinguishtheirproductsareclaimedastrademarks.Where
thosedesignationsappearinthisbook,andO'ReillyMedia,Inc.
wasawareofatrademarkclaim,thedesignationshavebeen
printedincapsorinitialcaps.
Whileeveryprecautionhasbeentakeninthepreparationofthis
book,thepublisherandauthorsassumenoresponsibilityfor
errorsoromissions,orfordamagesresultingfromtheuseof
theinformationcontainedherein.
ISBN:0-596-00760-4
[M]




Preface
Technicalknowledgeisnotenough.Onemust
transcendtechniquessothattheartbecomesanartless
art,growingoutoftheunconscious.
DaisetsuSuzuki(1870-1966)
ThisisabookaboutLinux,afree,opensourceoperating
systemthat'schangingtheworldofcomputing.Inthisbook,
weshowhowyoucancompletelychangethewayyouwork
withcomputersbyexploringapowerfulandfreeoperating
system.Linuxgoesagainstthetraditionalcomputing
mainstream,beingdevelopedbyalooselyorganizedgroupof
thousandsofvolunteersacrosstheInternet.Linuxstartedasa

realundergroundmovementguerrillahacking,ifyouwilland
bringsalotofexcitement,discovery,andself-empowerment
backintotoday'scorporate-dominatedcomputingculture.We
inviteyoutodivein,enjoyyourself,andjointhethrongof
peoplewhoknowwhatitmeanstotweakyourdotclocksand
rdevyourkernelimage.
TheZenquoteatthebeginningofthisprefacesummarizesour
philosophyinthisbook.We'retargetingreaderswhoare
inquisitiveandcreativeenoughtodelvefull-tiltintotheworldof
Linux,andwhowanttogetattheheartofthesystem.Linux
representsarebellionagainstcommercialandproprietary
operatingsystems,andmanyofitsuserslikelivingontheedge
ofthelatesttechnologicaltrends.Ofcourse,thecasualreader
cansetupandrunaLinuxsystem(orhundredsofthem!)
withoutmuchtrouble,butthepurposeofthisbookistodig
moredeeplyintothesystemtobringyoucompletelyintothe
Linuxmentality,toreachLinux"enlightenment."Ratherthan
glossovermessydetails,weexplaintheconceptsbywhichthe
systemactuallyworkssothatyoucantroubleshootproblems


onyourown.Bysharingtheaccumulatedexpertiseofseveral
Linuxexperts,wehopetogiveyouenoughconfidencetocall
yourselfatrueLinuxGuru.(Yourfirstkoan:whatisthesound
ofoneuserhacking?)
YouhaveinyourhandsthefiftheditionofRunningLinux,and
bymostaccountsthisbookisconsideredtheclassictexton
installing,maintaining,andlearningtouseaLinuxsystem.The
firsteditionwaspublishedwaybackin1996,andhaditsroots
inafreebookcalledLinuxInstallationandGettingStarted,

whichwaswrittenbyMattWelshandisstillfloatingaroundthe
Internet.SinceMattconceivedandwroteRunningLinux,the
bookhasgonethroughalotofexpansionandimprovementto
keepup-to-datewiththelatestdevelopmentsintheLinux
world.
KalleDalheimer,adeveloperandconsultantbringingagreat
dealofexperiencewithbothLinuxdevelopmentanddesktop
applications,hasbecometheleadauthoronthepastthree
editions.OthercontributorsovertimehaveincludedLar
Kaufman(materialonprintingandotherfirst-editionmaterial),
TomAdelstein(updatestotheintroductorychapterand
substantialmaterialonVMWare,rdesktop,VNC,andFreeNX),
AaronWeber(GNOME,Evolution,RedCarpet,andZENworks),
SamHiser(OpenOffice),JayTs(Samba),JohnH.Terpstra
(updatestoSambaandNFS),JeffTranter(multimedia,sources
ofLinuxinformation),KyleRankin(games),BreckinLoggins
(GnuCash),RodSmith(substantialprintingmaterial,including
CUPS),KyleDent(Postfix),TerryDawson(materialon
security),BrianVincent(WineandCodeWeaver),Chris
Lawrence(Debianpackaging),VatafuValerica(LAMPchapter),
MarcMutz(materialonpublic-keyencryptionandencypted
filesystems),SteffenHansen(materialontheGIMP,OpenGL,
Postfix,andProFTPd),TillAdam(materialongroupware
solutionsforLinux),JesperPedersen(materialonkimdabaand
Procmail,updatestothePythonsection),MichelBoyerdela
Giroday(PHP),IvanRistic(updatestoApacheandLAMP


chapters),andJeffreyDunitz(updatestothebackupchapter).
AsLinuxattractsmoreandmoredevelopment,becoming

increasinglyappealinginnewareasofuse,thechallengefora
booklikethisistocontinueitsmissionwithanever-increasing
scope.Thiseditionismuchbiggerthananyoftheprevious
ones,andcoverstopicssuchasdesktoptoolsthatmadeonly
cursoryappearancesearlier.Nobookcanadequatelycapture
everythingthereistoknowaboutLinux,sowe'vetriedtoask
ateachturnwhatinformationismostvaluableforaperson
exploringthesystemandtryingtogetafirmbasisforfurther
self-education.Ourapproachhasworkedremarkablywellover
themanyeditions,andwethinkthisbookwillbeofusetoyou
foralongtimetocome.
Intheprefacetothefirstedition,wesaidthat"Linuxhasthe
potentialtocompletelychangethefaceofthePCoperating
systemworld."Lookingback,it'sclearthatourpredictionwas
right!Linuxhaseruptedintothecomputingmainstreamwithan
amazingforce:ithasbeencoveredbyeverymajormedia
channel,hashelpedusherintheso-calledOpenSource
Revolution,andiswidelyclaimedasthemostviablecompetitor
toMicrosoft'sdominanceintheoperatingsystemsmarket.
Today,mostestimatesplacethenumberofLinuxusers
worldwideatwellover300million.Linuxhasmaturedtothe
pointwheremanypeoplecandiveinandstartusingLinux
withoutknowingmostofthehairydetailsbehinddevicedrivers,
XFree86configurationfiles,andbootloaders.Actually,agood
Linuxdistributionthesedaysisjustaseasytoinstallasits
commercialcompetitorssuchasMicrosoftWindows.Still,we
thinkit'sbesttogiveyousomeofthebehind-the-scenesviews,
soyouhaveanunderstandingoftheworkingsofthesystem,
evenifit'snotstrictlynecessaryforcasualLinuxuse.





OrganizationofThisBook
Eachchapterofthisbookcontainsabigchunkofinformation.It
takesyouintoaworldofmaterialthatcouldeasilytakeup
severalbooks.Butwemovequicklythroughthetopicsyou
needtoknow.
PartIofthebook,"EnjoyingandBeingProductiveonLinux,"
introducesLinuxandbringsyoutothepointwhereyoucando
allthestandardactivitiespeopledoonothersystems:emailing,
websurfing,playinggames,watchingvideos,andsoon.

Chapter1,IntroductiontoLinux
Triestodrawtogethermanydifferentthreads.Itexplains
whyLinuxcametobeandwhatitoffersthatcontinuesto
attractnewusersanddevelopers.

Chapter2,PreinstallationandInstallation
Describespreliminarytasksthatyoumayhavetodobefore
installation,suchaspartitioningyourdisk,andguidancefor
initialLinuxinstallationandconfiguration.

Chapter3,DesktopEnvironments
Helpsyougetcomfortablenavigatingthedesktopandthe
mostimportanttools,includingtheEvolutionutilityformail,
calendar,andmanagingcontacts.


Chapter4,BasicUnixCommandsandConcepts

Offersasystemadministrator'sintroductiontoUnix.Itis
intendedtogiveyouenoughtoolstoperformthebasic
tasksyou'llneedtodothroughoutthebook.Basic
commandsarecovered,alongwithsometipsfor
administratorsandsomeconceptsyoushouldknow.

Chapter5,WebBrowsersandInstantMessaging
Showsneattricksandadvancedusesforsomeofthe
popularandbasiccomputeractivities:webbrowsingand
instantmessaging.

Chapter6,ElectronicMailClients
Introducesothermailclients,forpeoplewhowanttotry
somethingbesidesEvolution,andshowswaystosecure
email.

Chapter7,Games
ExplainstheimpressivearrayofgamessupportedonLinux,
bothstandaloneandclient/server.

Chapter8,OfficeSuitesandPersonalProductivity
Explainshowyoucanbejustasproductiveinyouroffice
workonLinuxasontheproprietaryalternatives.Themain
topicsaretheOpenOfficeofficesuite,KOfficeofficesuite,
andtheGnuCashfinancialapplication,alongwithan


introductiontogroupware.

Chapter9,Multimedia

Discussesaudioandvideo,coveringconceptsyou'llfind
useful,configurationforsystemswherethetoolsdon'twork
automatically,andafewcommonapplications.TheGIMPis
alsointroducedforimagemanipulation.
PartIIofthebook,"SystemAdministration,"showsyouhowto
setupyourLinuxsystemanditsenvironmentforsuchtasksas
printingandsharingfileswithothersystems;italsoshowsyou
howtotakecareofyoursysteminotherways.

Chapter10,SystemAdministrationBasics
Coverssystemadministrationtopicssuchasfilesystems
andswapspacethatarenormallyhandledautomatically
duringinstallation,butsometimesneeduserintervention.

Chapter11,ManagingUsers,Groups,andPermissions
Showsyouthefundamentalbuildingblocksofsecurityon
Linux:managingusersandaccessrights(permissions).

Chapter12,Installing,Updating,andCompilingPrograms
Coverssystemupdates,whichareimportantbothtoget
newfeaturesandapplicationsandtofixsecurityflaws.


Chapter13,Networking
Isabasicintroductiontonetworking,whichisusuallyset
upduringinstallationbutisworthunderstandingata
deeperlevel.Thechaptershowsyouhowtoconfigureyour
systemsothatitcanworkonalocalareanetworkor
communicatewithanInternetserviceproviderusingPointto-PointProtocol(PPP).ISDNandADSLarealsocovered.


Chapter14,Printing
ShowsyouhowtogetLinuxtorecognizeprintersandto
managedocumentprinting.

Chapter15,FileSharing
Coversfilesharing,withaparticularfocusonSamba,which
allowsbothfileandprintersharingwithWindowssystems.

Chapter16,TheXWindowSystem
ShowsyouhowtoconfiguretheXWindowSystem,which
underliesthedesktopsintroducedinChapter3.Weshow
youhowtoovercomeproblemsyoumightencounterwhen
yourdistributioninstallsthesoftwareandhowtoconfigure
itforthebestperformanceonyourvideohardware.

Chapter17,SystemStartandShutdown
Coverssystemstartupandshutdown.Topicsincludethe
GRUBbootloader,whichletsyouchoosebetweenoperating


systemsatstartuptime,andhowtogettherightservices
going.

Chapter18,ConfiguringandBuildingtheKernel
Explainshowtoupdatethekernelanditsmodules,which
maybenecessarytorunnewLinuxfeaturesorgetdrivers
installedforyourhardware.
PartIIIofthebook,"Programming,"startsexploringinteresting
advancedtopicsthatmakeLinuxapowerfulasset,suchas
programming.


Chapter19,TextEditing
Offersin-depthtutorialsonviandEmacs,valuabletext
editors.Coverstextprocessing,analternativetousingword
processorstoformattextdocuments.

Chapter20,TextProcessing
Describestoolsforproducingformatteddocumentsfrom
markuplanguages,includingXMLandtheolderlanguages
TEX,troff,andTexinfo.

Chapter21,ProgrammingTools
Isawide-rangingintroductiontoprogrammingonLinux,
introducinganumberoflanguages,aswellastoolsthat
youmayfinditusefultounderstandevenifyouarenota
programmer.


PartIVofthebook,"NetworkServices,"introducesseveral
servicesandotheradvancednetworkingactivities.

Chapter22,RunningaWebServer
ShowsyouhowtosetupandconfigureApache,themost
popularwebserverintheworld.

Chapter23,TransportingandHandlingEmailMessages
Coverstheeasy-to-usePostfixmailserverandsomeother
usefulmailtools,suchasSpamAssassin.

Chapter24,RunninganFTPServer

Showsasecurewaytoofferfilesfordownload.

Chapter25,RunningWebApplicationswithMySQLandPHP
CoverstheMandPinthewell-knownacronymLAMP,
introducingthebasicconfigurationanduseofMySQLand
PHPforusewithApache.

Chapter26,RunningaSecureSystem
CoverstheProFTPDwebserver,whichisconvenientfor
servingdocumentstocolleaguesorthegeneralpublic.


Chapter27,BackupandRecovery
Basictechniquesforthecriticaltaskofsafeguardingyour
data.

Chapter28,HeterogeneousNetworkingandRunningWindows
Programs
Awealthofwaystogetthebestoutoftwodiffferent
environments.

Appendix,SourcesofLinuxInformation
TellsyouaboutusefulonlinedocumentationforLinuxand
othersourcesofhelp.




ConventionsUsedinThisBook
Thefollowingisalistofthetypographicalconventionsusedin

thisbook:

Italic
Isusedforfileanddirectorynames,commandnames,
command-lineoptions,emailaddressesandpathnames,
usernames,hostnames,sitenames,andallnewterms.

ConstantWidth
Isusedinexamplestoshowthecontentsoffilesorthe
outputfromcommands,toindicateenvironmentvariables
andkeywordsthatappearincode,andforEmacs
commands.

ConstantWidthBold
Isusedinexamplestoshowcommandsorothertextthat
shouldbetypedliterallybytheuser.

ConstantWidthItalic

Isusedtoindicatevariableoptions,keywords,ortextthat
theuseristoreplacewithanactualvalue.

Thisicondesignatesanote,whichisanimportantasidetothenearby


text.

Thisicondesignatesawarningrelatingtothenearbytext.





UsingCodeExamples
Thisbookisheretohelpyougetyourjobdone.Ingeneral,you
mayusethecodeinthisbookinyourprogramsand
documentation.Youdonotneedtocontactusforpermission
unlessyou'rereproducingasignificantportionofthecode.For
example,writingaprogramthatusesseveralchunksofcode
fromthisbookdoesnotrequirepermission.Sellingor
distributingaCD-ROMofexamplesfromO'Reillybooksdoes
requirepermission.Answeringaquestionbycitingthisbook
andquotingexamplecodedoesnotrequirepermission.
Incorporatingasignificantamountofexamplecodefromthis
bookintoyourproduct'sdocumentationdoesrequire
permission.
Weappreciate,butdonotrequire,attribution.Anattribution
usuallyincludesthetitle,author,publisher,andISBN.For
example:"RunningLinux,FifthEditionbyMatthiasKalle
DalheimerandMattWelsh.Copyright2006O'ReillyMedia,Inc.,
0-596-00760-4."
Ifyoufeelyouruseofcodeexamplesfallsoutsidefairuseor
thepermissiongivenabove,feelfreetocontactusat



HowtoContactUs
Wehavetestedandverifiedtheinformationinthisbooktothe
bestofourability,butyoumayfindthatfeatureshavechanged
(oreventhatwehavemademistakes!).Pleaseletusknow
aboutanyerrorsyoufind,aswellasyoursuggestionsforfuture

editions,bywritingto:
O'ReillyMedia,Inc.
1005GravensteinHighwayNorth
Sebastopol,CA95472
800-998-9938(intheU.S.orCanada)
707-829-0515(internationalorlocal)
707-829-0104(fax)
Youcansendusmessageselectronically.Tobeputonthe
mailinglistortorequestacatalog,sendemailto:

Toasktechnicalquestionsortocommentonthebook,send
emailto:

Wehaveawebsiteforthebook,wherewe'lllistexamples,
errata,andanyplansforfutureeditions.Youcanaccessthis
pageat:
/>Formoreinformationaboutthisbookandothers,seethe
O'Reillywebsite:





Safari®Enabled

WhenyouseeaSafari®Enabledicononthecoverof
yourfavoritetechnologybook,thatmeansthebookisavailable
onlinethroughtheO'ReillyNetworkSafariBookshelf.
Safarioffersasolutionthat'sbetterthane-books.It'savirtual
librarythatletsyoueasilysearchthousandsoftoptechbooks,

cutandpastecodesamples,downloadchapters,andfindquick
answerswhenyouneedthemostaccurate,currentinformation.
Tryitforfreeat.


×