Spine: 1.776" DVD and CD-ROM Included Run or install 18 different Linux distributions from the multi-boot DVD and CD-ROM! DVD and CD-ROM Included Christopher Negus Get in on the Linux phenomenon! Play music and games, publish on paper or on the Web, and communicate over the Internet This comprehensive book includes step-by-step instructions and software for 18 different Linux distributions Whether you are an enterprising do-it-yourselfer or an aspiring Linux professional, you can start here on your path to software freedom • • • • • • • Master Linux for desktops, servers, and workstations Find, install, and use loads of free and open source software Create your own cool apps with useful programming tools Launch all your music, video, images, and documents in Linux Browse, e-mail, or chat over the Internet from a Linux desktop Set up your own e-mail and Web (LAMP) servers Make safe connections with firewalls and other security tools • To try out Linux, boot directly KNOPPIX, openSUSE, Ubuntu, Gentoo, BackTrack, and other live Linux distributions • To keep Linux permanently, install Fedora, Ubuntu, openSUSE, Debian GNU, Damn Small Linux, Slackware Linux, and other distributions to your hard disk www.wiley.com/go/linuxbible2009 Shelving Category: COMPUTERS/ Operating Systems/Linux Reader Level: Beginning to Advanced $59.99 USA $65.99 Canada DVD Includes • Ubuntu Linux (live/install) • Fedora Linux (install) • openSUSE (live/install) • KNOPPIX (live/install) • Freespire (live/install) • Gentoo Linux (live/install) Slackwaređ Linux (install) BackTrack (live) Mandriva One (live/install) • Mepis (live/install) • AntiX (live/install) • Puppy Linux (live/install) CD-ROM Includes • Debian GNU/Linux (live/install) • Damn Small Linux (live/install) • SLAX (live) • SystemRescueCd (live) • INSERT (live) • Coyote Linux (floppy firewall) System Requirements: • All software built for x86 computers • See chapters on each distribution for system requirements ® A total of 18 different Linux distributions are included on the DVD and CD-ROM What’s on the DVD and CD-ROM? Linux Run the world’s most popular free operating system on your own computer 2009 Edition Linux 2009 Edition Boot up to Ubuntu®, Fedora®, KNOPPIX, Debian®, openSUSE®, and 13 Other Distributions Start up a Linux desktop or server computer Migrate easily from Windows or Mac OS ® Negus ® Try tons of Linux apps, then install to hard disk The book you need to succeed! ® 73675ffirs.indd ii 11/25/08 6:49:03 PM Linux Bible ® 2009 Edition 73675ffirs.indd i 11/25/08 6:49:03 PM 73675ffirs.indd ii 11/25/08 6:49:03 PM Linux Bible ® 2009 Edition Boot Up to Ubuntu , Fedora , KNOPPIX, Debian , SUSE , and 13 Other Distributions ® ® ® ® Christopher Negus 73675ffirs.indd iii 11/25/08 6:49:03 PM Linux® Bible 2009 Edition Published by Wiley Publishing, Inc 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright © 2009 by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN: 978-0-470-37367-5 Manufactured in the United States of America 10 Library of Congress Cataloging-in-Publication Data is available from the publisher No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600 Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4355, or online at http://www.wiley.com/go/permissions Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose No warranty may be created or extended by sales or promotional materials The advice and strategies contained herein may not be suitable for every situation This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services If professional assistance is required, the services of a competent professional person should be sought Neither the publisher nor the author shall be liable for damages arising herefrom The fact that an organization or Web site is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or Web site may provide or recommendations it may make Further, readers should be aware that Internet Web sites listed in this work may have changed or disappeared between when this work was written and when it is read For general information on our other products and services please contact our Customer Care Department within the United States at (800) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002 Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Wrox Programmer to Programmer, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc and/or its affiliates, in the United States and other countries, and may not be used without written permission Linux is a registered trademark of Linus Torvalds All other trademarks are the property of their respective owners Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book Wiley also publishes its books in a variety of electronic formats Some content that appears in print may not be available in electronic books 73675ffirs.indd iv 11/25/08 6:49:03 PM As always, I dedicate this book to my wife, Sheree 73675ffirs.indd v 11/25/08 6:49:03 PM 73675ffirs.indd vi 11/25/08 6:49:03 PM About the Author Chris Negus has written or co-written dozens of books on Linux and UNIX, including Red Hat Linux Bible (all editions), Fedora and Red Hat Enterprise Linux Bible, Linux Troubleshooting Bible, Linux Toys, and Linux Toys II Last year, Chris co-authored four books for the new Toolbox series for power users: Fedora Linux Toolbox, SUSE Linux Toolbox, Ubuntu Linux Toolbox, and BSD UNIX Toolbox For eight years, Chris worked with the organization at AT&T that developed UNIX before moving to Utah to help contribute to Novell’s UnixWare project in the early 1990s When not writing about Linux, Chris enjoys playing soccer and just hanging out with his family 73675ffirs.indd vii 11/25/08 6:49:03 PM Credits 73675ffirs.indd viii Acquisitions Editor Jenny Watson Vice President and Executive Publisher Joseph B Wikert Development Editor Sara Shlaer Project Coordinator, Cover Lynsey Stanford Technical Editor Emmett Dulaney Compositor Chris Gillespie, Happenstance Type-O-Rama Production Editor Liz Britten Proofreader Kathryn Duggan Copy Editor Nancy Rapoport Indexer Jack Lewis Editorial Manager Mary Beth Wakefield Media Development Project Manager Laura Moss-Hollister Production Manager Tim Tate Media Development Associate Producer Shawn Patrick Vice President and Executive Group Publisher Richard Swadley Cover Image Joyce Haughey Cover Designer Michael Trent 11/25/08 6:49:03 PM Index SeaMonkey Mail, 149, 151, 163 suite, 165–167, 648 search features adding in Fedora, 346 Dolphin, 45 Evolution, 161 Firefox, 174–176 RPMDrake, 672 Thunderbird, 157 vi text editor, 283–284 Search Folders, Evolution, 161–162 Search the Internet control, Firefox, 175–176 Secure Shell tools See SSH (Secure Shell) tools Secure Sockets Layer See SSL (Secure Sockets Layer) security, 359–405 See also encryption; firewalls; passwords attack techniques and, 381–382 bootables, 711–715 configuring with YaST, 576 DDoS attacks and, 385–389 DoS attacks and, 382–385 for e-mail clients, 150 finding distribution-specific resources, 363–364 finding general resources, 364 Firefox and, 171, 173–174 global Samba settings and, 489–491 intrusion attacks and, 389–392 Linux checklist for, 360–363 Linux development model for, 734–735 Linux live CDs and, 403–404 with log files, 369–374 NFS file server for, 470 overview of, 359 Secure Shell tools for, 374–378 SELinux and, 392–393 SystemRescueCd tools for, 714 TCP wrappers for, 378–381 Thunderbird and, 157 understanding, 11 Yellow Dog Linux, 608 Security Enhanced Linux (SELinux), 362, 392–393 SecurityFocus Web site, 364 select tools, GIMP, 137 self-signed SSL certificates creating, 401–402 reasons for using, 397–398 securing Web traffic with, 426 SELinux (Security Enhanced Linux), 362, 392–393 semaphores, 736, 737 semicolons (;), sequential commands, 258 Send Web Content control, Firefox, 175 S sending mail, in Thunderbird, 157–158 sendmail, blocking mail with, 383 Sendmail Consortium Web site, 25 Sentry Firewall CD, 705 sequential commands, 258 Server Install CD, Ubuntu, 507–510 Server Message Block See SMB (Server Message Block) server type, e-mail accounts overview of, 152 setting up in Thunderbird, 154 transitioning client from Windows, 150–151 ServerCertificate line, cupsd.conf file, 460 ServerKey line, cupsd.conf file, 460 servers, 409–429 Debian installation, 553 file See file servers firewalls in Linux for, 682 KNOPPIX, 587 LAMP server components, 410–411 LAMP server operation, 414–422 LAMP server setup, 411–414 leaving e-mail messages on, 153 Linux features, 12 Linux gaming and, 183 mail See mail servers names, and e-mail accounts, 152 print See print servers securing Web traffic with SSL/TLS, 425–429 setting up Internet, 340–342 string, global Samba settings, 488 troubleshooting, 422–425 Ubuntu as, 508–510 services configuring firewall in Mandriva, 685–686 configuring in Slackware, 653 configuring with YaST, 575 controlling access with TCP wrappers, 378–381 enabling only needed, 361 Fedora firewall settings, 684–685 limiting access to, 361 starting and stopping without interruption, 13 Session button, 38 sfdisk command, 224 sftp command, SSH, 375–376, 377–378 SGML (Standard Generalized Markup Language), 129–130 sh shell, 238, 242 shadow configuration file, 297–300 shadow password files, 367–369 shared directories checking status of Samba, 498 configuring with SWAT, 493–495 NFS, 471 using Samba, 498 845 73675bindex.indd 845 11/25/08 7:05:03 PM S Index shared libraries, 769 shared memory, Linux, 737 shell commands, 238–285 adding aliases, 263 adding environment variables, 262–263 background/foreground processes, 267–269 checking directories and permissions, 244–245 checking login session, 243–244 checking system activity, 246–247 choosing, 241–243 configuring bash files, 260 connecting and expanding commands, 257–259 defined, 238 exiting, 247 getting help using, 250 history of, 251, 255–257 with Linux file system See file systems, Linux locating commands, 249–251 overview of, 238–239 rerunning commands, 251–256 reserved words, 251 for Samba, 485 setting prompt, 261–262 starting, 239–241 using environment variables, 264–266 using in Linux, 248–249 using vi text editor, 279–284 shell scripts, 239 shells configuration file, 300 Shorewall, Mandriva, 686 sidebar Firefox, 175 Nautilus file manager, 65–66 signatures e-mail client certificate settings, 153 OpenOffice.org, 121 SIGs (special interest groups), 530–531 Simple Mail Transfer Protocol See SMTP (Simple Mail Transfer Protocol) skins, XMMS, 95 Sklyarov, Dmitry, 82 slackpkg command, 643 Slackware for ARM processor project, 647 Slackware Linux, 641–656 challenges of, 646 choosing window manager in, 77 creator of, 643–644 as development platform, 646–647 games packaged for, 184 getting, 647 hardware requirements, 648 Internet sites, 645 new features in version 12.1, 648 overview of, 641–643 SeaMonkey Composer and, 166 security resources, 364 starting CUPS server, 461 starting installation, 649–653 starting with, 643 SWAT setup, 486 users, 645 Web site, 27 S-Lang, 750–752 slash (/), 283–284 Slashdot.org Web site, 23 SLAX project, 722 SLE See SUSE Linux Enterprise (SLE) SlickEdit, 730 SLS (Soft Landing) Linux, 643–644 small businesses, Linux in, 28–29 smart keywords, Firefox, 174–175 SMB (Server Message Block) adding printers, 458–459 configuring shared printers, 467–468 Samba using, 484 smbclient command, 500–501 smb.conf file, 467–468 smbstatus command, 498 SMTP (Simple Mail Transfer Protocol) configuring DNS for direct delivery, 434 how Internet e-mail works, 432 resources about, 441 smurf application attacks, 384–385 SNAT (Source Network Address Translation), 692–693 Snort, 712 Soft Landing (SLS) Linux, 643–644 soft option, NFS, 480 software adding to Ubuntu, 518–521 Debian installation, 557 getting with emerge in Gentoo, 638 GNOME installation, 314 KNOPPIX installation, 600–601 Linux portability, 13 mail server installation, 435–440 openSUSE installation, 581 removing with RPMDrake, 672 repositories, 212 security features, 361 SUSE, automatic updates for, 577–578 SUSE, managing with zypper, 578 using demonstration bootable CDs for, 716 846 73675bindex.indd 846 11/25/08 7:05:03 PM Index Software Freedom Law Center, 23 soname, 769 Sonny Bono Copyright Term Extension Act (CTEA), 83 Sony, using Linux, 18 Sony Playstation 3, 609 sorting, mail in Thunderbird, 156–157 Sound & Video menu, Ubuntu, 517–518 sound systems adjusting with PulseAudio, 86–87 configuring in Slackware, 654 Freespire installation, 662, 665 SoundBlaster sound cards, 88 source code compiling multiple files, 762–764 GNU Debugger, 784, 788 source code control, 773–780 with CVS, 777–780 overview of, 773 using RCS, 773–776 Source Code Control System (SCCS), 773 source media, Slackware installation, 651 Source Network Address Translation See SNAT (Source Network Address Translation) source packages, Debian, 548 SourceForge organization, 22 SoX utility, 96–99 spam catchers, 149, 158–159 spam relaying, protecting against, 384 SpamAssassin installing, 437–440 overview of, 433 usefulness of, 384 SPCM (System Configuration Profile Management) applet, YaST, 576 special interest groups See SIGs (special interest groups) special-purpose bootables, 722–723 speed, dial-up PPP on Debian, 559 spin cube, 3D desktop effect, 67 Spins SIG, Fedora, 531 SQL, migrating to, 126 SquirrelMail, 445 SSH (Secure Shell) tools administering Coyote Linux with, 704 defined, 374 starting service, 375 using ssh, sftp, and scp, 375–376 using ssh, sftp, and scp without passwords, 377–378 ssh command, SSH, 375–378, 704 SSL (Secure Sockets Layer), 395–403 configuring Apache for, 428–429 creating Certificate Service Request, 398–399 S creating certificates, 395–397 creating self-signed certificates, 401–402 enabling in mail server, 446 generating and using with LAMP server, 426–429 getting CSR signed, 399–401 overview of, 395 restarting Web server, 402 securing Web traffic with, 425–429 troubleshooting certificates, 402–403 using self-signed certificates, 397–398 using third-party signers, 397 standalone e-mail applications, 149 Standard Generalized Markup Language (SGML), 129–130 StarOffice suite, 122–123 start command, 461 stat overrides, Debian, 568–569 static libraries, 769 STATUS button, SWAT, 495 stdin, 746 stdout, 746–747 Sticky notes (Tomboy), 119–120 storage device, digital camera as, 114–115 structured documents, 129–133 stylesheets, Konqueror, 51 su command, 293–294, 368 sudo command, 301–303 sudoers configuration file, 300 Sun Microsystems, 123 surveys, Debian, 557 SUSE Linux Enterprise (SLE), 571–584 configuring CUPS printers in, 449 configuring Ethernet interface in, 344 configuring removable media on KDE desktop, 314–315 configuring RPM package management, 576–577 getting support for, 578 installing and configuring with YaST, 574–576 overview of, 571–572 security resources for, 364 software management with zypper, 578 software updates, automated, 577–578 summary review, 584 understanding, 572–573 Web site, 26 YaST administrative interface, 290–291 SVG (Scalable Vector Graphics) format, 138 swap partition, KNOPPIX, 589 SWAT (Samba Web Administration Tool) assigning guest accounts, 491 checking Samba setup, 495 configuring shared directories, 491–495 creating global Samba settings, 488–493 847 73675bindex.indd 847 11/25/08 7:05:03 PM T Index defined, 486 starting with, 487–488 turning on, 486–487 Sylpheed, 151–152 symmetric cryptography, 393–394 Synaptic Package Manager window, Ubuntu, 516, 518–521 SYSLINUX boot loader, 226 syslog.conf file, 300 syslogd daemon, 372–373 System Configuration Profile Management (SPCM) applet, YaST, 576 System Log Viewer, GNOME, 369–370 System menu, Ubuntu, 518 System menus, GNOME panel, 61 system performance, monitoring, 333–334 System Properties, Microsoft Windows, 215 System Settings window, KDE desktop, 54–56 system state, Linux start up, 37 system-config, 528 SystemRescureCd, 713–714 T Tab preferences, Firefox, 170, 177 Tabbed Window Manager (Twm), 79 tainting the kernel, 185 targets, for iptable rules, 687 task preemption, Linux, 735–736 taskbar GNOME, dragging from, 57 KDE desktop, 42, 52 taskel utility, 567 tasks, organizing in Evolution, 160 TCP (Transmission Control Protocol), 390 TCP wrappers, 378–381 TCP/IP connection, 236, 474 tcsh shell, 238, 242 TcX, MySQL development, 411 telephone lines, dial-up connections, 337, 352 templates Inkscape, 139 partition schemes for Debian, 555 Scribus, 133–135 termcap configuration file, 300 terminal emulator program, 240 Terminal window, 240 Terra Soft Solutions, 607–609, 611 testing computer with live CDs, 708 KNOPPIX CD, 598 Samba permissions, 497 testparm command, 497 text adding in Inkscape, 139 booting to prompt, 39 cutting/pasting in command lines, 254 resizing Web page, 178 text editors types of, 280 using vi, 279–284 writing text with, 119 Text tool, GIMP, 137 text-based e-mail readers, 149, 163–165 text-based Web browsers, 178–179 text-mode user interfaces See TUIs (text-mode user interfaces) themes Damn Small Linux, 720 Firefox, 173 GNOME, 70 3D acceleration, 182 3D Athena toolkit, developing GUIs, 752 3D desktop effects, 67–69 3dfx video cards, gaming, 186 3Dlabs video cards, gaming, 186 Thunderbird, 153–159 composing and sending e-mail, 157–158 connecting to mail server, 155–156 filtering e-mail and catching spam, 158–159 getting started with, 151 managing incoming mail, 156–157 overview of, 153 performance of, 150 setting up e-mail account, 154–155 as standalone e-mail application, 149 transitioning from Windows to, 151 tilde (~), 245 time zone settings openSUSE installation, 580, 582 Slackware configuration, 653 timeo=# option, NFS, 480 tiny desktops Damn Small Linux, 719–721 Puppy Linux, 721–722 TiVo PVRs, based on Linux, 18 TLS (Transport Layer Security) configuring Apache to support, 428–429 enabling in mail server, 446 securing Web traffic with, 425–429 TMOUT variable, adding to shell, 262 /tmp directory, 226 token ring, getting on Internet, 342 Tomboy, 119–120 top command, 334 848 73675bindex.indd 848 11/25/08 7:05:03 PM Index Torvalds, Linus, 11–12 Totem, XSPF playlists in, 57 Totem movie player, 112 TransGaming Technologies, 183, 199–201 Transmission Control Protocol (TCP), 390 transparent proxy, using iptables as, 693–694 Transport Layer Security See TLS (Transport Layer Security) trapdoor algorithms, 367 troubleshooting Firefox, 176 Internet connections, 349–351 KNOPPIX, 597–598 LAMP servers, 422–425 mail servers, 440–443 Samba servers, 499–501 SSL certificates, 402–403 using INSERT, 714–715 xine video players, 110–111 Trusted Interfaces, Fedora firewall, 684 ttySOO port, 560 TUIs (text-mode user interfaces) creating with ncurses, 747–750 creating with S-Lang, 750–752 defined, 746 tune-ups, e-mail, 152–153 TurboLinux, 210 Tux Games Web site, 184 TuxRacer game, 195 TV, watching with tvtime, 104–105 tvtime command, 104–105 Twm (Tabbed Window Manager), 79 type command, shell, 251 U Ubuntu Forums FAQ Web site, 521 Ubuntu JeOS, 510 Ubuntu Linux, 505–522 adding software, 518–519 certification, 30 challenges facing, 510–511 CUPS printers configured in, 449 as desktop, 508 games packaged for, 184 getting NFS for, 471 getting Samba for, 485 installer, 507 installing, 512–515 installing printer in, 452–453 live CDs from, 710 live CDs, remastering, 724 network settings GUI in, 344, 348–349 online references for, 521 U overview of, 505 releases of, 506–507 root account disabled in, 293 security resources, 364 as server, 508–510 spin-offs, 510 starting CUPS server, 461 starting with, 516–521 System Monitor in, 333 Web site, 26 Ubuntu Mobil, 510 Ubuntu Studio, 510 UDP (User Datagram Protocol), 390 umount command, 327 Unbreakable Linux, uniformity, Yellow Dog Linux, 608 Universe repositories, Ubuntu, 519–521 UNIX adding remote printer, 458 Novell’s association with, 573 print commands, 448 unmount command, 482–483 Unreal Tournament 2003 (Epic Games), 197 Unreal Tournament 2004 (Epic Games), 197 Update Manager, Ubuntu, 515 update-alternatives command, Debian, 567–568 updates openSUSE, 583 software, 361 SUSE automatic software, 577–578 Ubuntu, 515 Yellow Dog Linux, 614–615 upgrades choosing Fedora installation vs., 535 Debian package management and, 564 with DrakX installer, 671 rules for, 215 Upload File link, Coppermine Photo Gallery, 422 uptime, Linux, 13 USB boot device, Slackware, 651–652 USB cable modems, for Internet, 342 USB storage device, cameras, 114–115 user accounts, 304–311 adding Debian, 556 adding openSUSE, 581–583 adding Samba, 496–497 adding Slackware, 645, 654 adding with useradd, 304–308 deleting with userdel, 311 modifying with usermod, 310–311 as security feature, 360 setting Click-N-Run, 660 setting default, 308–310 User Datagram Protocol (UDP), 390 849 73675bindex.indd 849 11/25/08 7:05:03 PM V Index user groups, Linux, 21–22 user mapping, 475–476 user space, 733–734 useradd command, 304–310 userdel command, 311 userdir command, Apache, 418–419 usermod command, 243, 310–311 usernames command-line completion for, 254 setting dial-up PPP in Debian, 559 setting up e-mail accounts, 152, 154 /usr directory, 226 /usr/sbin directory, 295–296 uucp administrative login, 301 V V4l/V4l2 (Video4Linux), 104–105 /var directory, 226 /var/log directory, 369–371 /var/log directory, 483 /var/spool/mail directory, 483 vector graphics, creating with Inkscape, 137–139 Vega Strike game, 182 version control making changes to repository files, 775–776 terms, 774 vi command, 252 vi text editor moving around file, 283 searching for text, 283–284 starting with, 280–283 using, 278–284 using numbers with commands, 284 video conferencing with Ekiga, 106–107 exploring codecs, 84–85 Freespire installation, 662 legal issues with digital, 82–85 playing with MoviX, 717 tuning up X configuration file, 76 using digital camera, 113–115 using Totem movie player, 112 watching TV with tvtime, 104–105 watching with xine, 108–111 video card drivers, 74, 185–186 video cards, supporting AIGLX, 67 Video4Linux (V4l/V4l2), 104–105 viewing files using Dolphin File Manager, 46–47 images, 140 printers, 452 Web page info in Firefox, 176 virtual hosts adding to Apache, 417–418 operating LAMP server, 414 SSL not working well with, 426 virtual packages, Debian, 549 virtual terminals, starting shell using, 241 Volkerding, Patrick, 643 Vortech Consulting, LLC, 696 W w3m Web browser, 165, 178–179 WarZone 2100 game, 181–182 Web browser, 165–179 administering Coyote Linux from, 703–704 configuring CUPS from, 449 Damn Small Linux, 720 Firefox See Firefox with integrated e-mail client, 149 Konqueror, 51 overview of, 165–166 SeaMonkey suite, 166–167 selecting Konqueror to appear as specific, 52 text-based, 178–179 using Konqueror as, 49 Web forgeries, 174 Web pages, Firefox, 176, 178 Web publishing, 145–146 Web shortcuts, Konqueror, 51 Web-based administration tools, 287–288 Webcam, with Ekiga, 106 Webmin administration tool, 288–289 wget command, 212–213 WHATEVER variable, 263 who command, 244 Wiki software, 145 Wikipedia, Linux games list, 181, 184 Wikipedia List of LiveDistros, 709 wildcards configuring Apache for SSL/TLS, 429 controlling access to services with TCP wrappers, 380–381 dpkg utility, 565 editing Apache configuration files, 415 running file server, 474 troubleshooting Apache configuration errors, 423–424 Window Maker, 78 window manager choosing, 77–79 choosing personal, 79 using on X Window System, 73 Windows See Microsoft Windows Windows Media Video (WMA) codec, 85 850 73675bindex.indd 850 11/25/08 7:05:03 PM Index Windows Wobble When Moved effect, AIGLX, 67 Winmodems, 337–338 Winprinters, avoiding, 453 WINS options, global Samba settings, 493 wireless connections configuring KNOPPIX, 600 configuring on Debian systems, 558–559 overview of, 358–359 Wizard, Fedora firewall, 684 WMA (Windows Media Audio) codec, 85 Word documents, transitioning from Windows, 126 word processors AbiWord, 123–124 KOffice, 124–125 OpenOffice.org, 120–122 other types of, 122 StarOffice, 123 WordPress Web site, 145–146 workgroups adding Windows (SMB) printer, 458 creating global Samba settings, 488 working files, 774 Workspace Switcher, Metacity, 59–60 Workspaces on a Cube effect, AIGLX, 67 workstations Debian installation, 553 Yellow Dog Linux for, 609 write permission, 277, 360 Writer application, OpenOffice.org, 120–121 writing documents See desktop publishing wsize option, NFS, 480 X X Multimedia System player See XMMS (X Multimedia System) player X Window System, 13 configuring own desktop, 73–77 display managers, 38 getting more information, 79 selecting as desktop, 36 X11 7.3.0+, 648 XAMPP project, 412 Xandros, 210, 657 Xen virtualization, Fedora, 532–533 Xfce window manager, 77 XForms, developing GUIs, 753 xine video player creating playlists with, 110 overview of, 108–109 troubleshooting, 110–111 working with, 109 xinetd daemon disabling network services, 391–392 Z restricting acess to services, 380–381 setting up SWAT in Linux, 486 starting daemons as needed with, 361 xinetd.conf file, 300 Xlib, developing GUIs, 753 XML (Extensible Markup Language), 129–132 XMMS (X Multimedia System) player defined, 90 overview of, 92–94 using Equalizer, 94–95 using Playlist Editor, 95–96 X.Org Web site, 25 X.Org X server, 73–74, 79 xorg.conf file, 74–75 xsane, 144 XSPF playlists in Totem, GNOME, 57 Xt, developing GUIs, 753 xterm terminal emulator, 240–241 Xubuntu, 510 Y YaST (Yet Another Setup Tool) as administrative tool, 290–291 installing/configuring SUSE with, 574–576 reconfiguring openSUSE with, 584 YaST Online Update (YOU) utility, 577–578 YDL See Yellow Dog Linux YDL.net, 608, 611 Yellow Dog Linux, 607–617 advantages of, 610–611 features of, 210 going forward with, 609 installing, 611–614 overview of, 607 support options, 616–617 understanding, 608–609 updating, 614–615 using Mac-on-Linux, 616 Web site, 26 Yet Another Setup Tool See YaST (Yet Another Setup Tool) YOU (YaST Online Update) utility, 577–578 yum utility with Fedora, 527 SUSE zypper utility vs., 578 updating Yellow Dog Linux with, 614–615 Z ZipSlack distribution, 648 Zone Edit Web site, 435 Zope, content management system, 145 zsh shell, 243 zypper utility, 578 851 73675bindex.indd 851 11/25/08 7:05:03 PM GNU General Public License Version 2, June 1991 Copyright © 1989, 1991 Free Software Foundation, Inc 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed Preamble The licenses for most software are designed to take away your freedom to share and change it By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software — to make sure the software is free for all its users This General Public License applies to most of the Free Software Foundation’s software and to any other program whose authors commit to using it (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too When we speak of free software, we are referring to freedom, not price Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can these things To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have You must make sure that they, too, receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software Also, for each author’s protection and ours, we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors’ reputations Finally, any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary To prevent this, we have made it clear that any patent must be licensed for everyone’s free use or not licensed at all The precise terms and conditions for copying, distribution and modification follow Terms and Conditions for Copying, Distribution and Modification This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The “Program”, below, refers to any such program or work, and a “work based on the Program” means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim 73675bmeddis01.indd 852 11/25/08 7:05:26 PM or with modifications and/or translated into another language (Hereinafter, translation is included without limitation in the term “modification”.) Each licensee is addressed as “you” Activities other than copying, distribution and modification are not covered by this License; they are outside its scope The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program) Whether that is true depends on what the Program does You may copy and distribute verbatim copies of the Program’s source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, not apply to those sections when you distribute them as separate works But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections and above provided that you also one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections and above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable 73675bmeddis01.indd 853 11/25/08 7:05:26 PM copy of the corresponding source code, to be distributed under the terms of Sections and above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance You are not required to accept this License, since you have not signed it However, nothing else grants you permission to modify or distribute the Program or its derivative works These actions are prohibited by law if you not accept this License Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions You may not impose any further restrictions on the recipients’ exercise of the rights granted herein You are not responsible for enforcing compliance by third parties to this License If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they not excuse you from the conditions of this License If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License 73675bmeddis01.indd 854 11/25/08 7:05:26 PM If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded In such case, this License incorporates the limitation as if written in the body of this License The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns Each version is given a distinguishing version number If the Program specifies a version number of this License which applies to it and “any later version”, you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation 10 If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally NO WARRANTY 11 BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION 12 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES END OF TERMS AND CONDITIONS 73675bmeddis01.indd 855 11/25/08 7:05:26 PM Limited Warranty: (a) WPI warrants that the Software and Software Media are free from defects in materials and workmanship under normal use for a period of sixty (60) days from the date of purchase of this Book If WPI receives notification within the warranty period of defects in materials or workmanship, WPI will replace the defective Software Media (b) WPI AND THE AUTHOR OF THE BOOK DISCLAIM ALL OTHER WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE SOFTWARE, THE PROGRAMS, THE SOURCE CODE CONTAINED THEREIN, AND/OR THE TECHNIQUES DESCRIBED IN THIS BOOK WPI DOES NOT WARRANT THAT THE FUNCTIONS CONTAINED IN THE SOFTWARE WILL MEET YOUR REQUIREMENTS OR THAT THE OPERATION OF THE SOFTWARE WILL BE ERROR FREE (c) This limited warranty gives you specific legal rights, and you may have other rights that vary from jurisdiction to jurisdiction 73675bmeddis02.indd 857 11/25/08 7:06:03 PM Please see the reverse page for warranty information regarding the software media Wiley Publishing, Inc Linux Bible 2009 Source Code Offer To comply with the GNU GPL, we provide separately the Linux source code Anyone may use this fulfillment offer to receive the source code on DVD and CD-ROM If you’d like the source code sent to you, please follow the instructions below to order by phone, online or coupon For each ordering method, please use and Promo Code L2009 and Part Numbers K PART03387 and K PART03361 when prompted For orders shipping within the U.S., the cost is $10.00 (U.S funds) For orders outside the U.S., the cost is $16.00 (U.S funds) Terms: Void where prohibited or restricted by law Allow 2-4 weeks for delivery To order by phone: Call toll free in the United States: 1-877-762-2974 International customers: 1-317-572-3994 Give the operator the appropriate Promo Code and Part Numbers Please have your credit card ready To order by coupon: Complete the coupon below Include a check or money order for $10.00 (U.S funds) for orders shipping within the U.S or $16.00 (U.S funds) for orders outside the U.S Send it to us at the address listed at the bottom of the coupon Name Company _ Address City _ State _ Postal Code _ Country _ E-mail _ Telephone Place where book was purchased _ Return this coupon with the appropriate U.S funds to: Wiley Publishing, Inc Customer Care Linux Bible 2009 Source Code Multipack, Promo L2009 (Part Numbers K PART03387 and K PART03361) 10475 Crosspoint Blvd Indianapolis, IN 46256 Terms: Wiley is not responsible for lost, stolen, late, or illegible orders For questions regarding this fulfillment offer, please call us at 1-877-762-2974 or 1-317-572-3994 73675bmeddis03.indd 858 11/25/08 7:06:17 PM 978-0-470-08292-8 978-0-470-08293-5 978-0-470-08291-1 Negus knows Linux Now you can, too ® 978-0-470-41339-5 Available at www.wiley.com/go/negus Wiley and the Wiley logo are registered trademarks of John Wiley & Sons, Inc and/or its af liates Linux is a registered trademark of Linus Torvalds All other trademarks are the property of their respective owners 73675badvert.indd 856 11/29/08 10:38:40 PM Spine: 1.776" DVD and CD-ROM Included Run or install 18 different Linux distributions from the multi-boot DVD and CD-ROM! DVD and CD-ROM Included Christopher Negus Get in on the Linux phenomenon! Play music and games, publish on paper or on the Web, and communicate over the Internet This comprehensive book includes step-by-step instructions and software for 18 different Linux distributions Whether you are an enterprising do-it-yourselfer or an aspiring Linux professional, you can start here on your path to software freedom • • • • • • • Master Linux for desktops, servers, and workstations Find, install, and use loads of free and open source software Create your own cool apps with useful programming tools Launch all your music, video, images, and documents in Linux Browse, e-mail, or chat over the Internet from a Linux desktop Set up your own e-mail and Web (LAMP) servers Make safe connections with firewalls and other security tools • To try out Linux, boot directly KNOPPIX, openSUSE, Ubuntu, Gentoo, BackTrack, and other live Linux distributions • To keep Linux permanently, install Fedora, Ubuntu, openSUSE, Debian GNU, Damn Small Linux, Slackware Linux, and other distributions to your hard disk www.wiley.com/go/linuxbible2009 Shelving Category: COMPUTERS/ Operating Systems/Linux Reader Level: Beginning to Advanced $59.99 USA $65.99 Canada DVD Includes • Ubuntu Linux (live/install) • Fedora Linux (install) • openSUSE (live/install) • KNOPPIX (live/install) • Freespire (live/install) Gentoo Linux (live/install) Slackwaređ Linux (install) BackTrack (live) • Mandriva One (live/install) • Mepis (live/install) • AntiX (live/install) • Puppy Linux (live/install) CD-ROM Includes • Debian GNU/Linux (live/install) • Damn Small Linux (live/install) • SLAX (live) • SystemRescueCd (live) • INSERT (live) • Coyote Linux (floppy firewall) System Requirements: • All software built for x86 computers • See chapters on each distribution for system requirements ® A total of 18 different Linux distributions are included on the DVD and CD-ROM What’s on the DVD and CD-ROM? Linux Run the world’s most popular free operating system on your own computer 2009 Edition Linux 2009 Edition Boot up to Ubuntu®, Fedora®, KNOPPIX, Debian®, openSUSE®, and 13 Other Distributions Start up a Linux desktop or server computer Migrate easily from Windows or Mac OS ® Negus ® Try tons of Linux apps, then install to hard disk The book you need to succeed! ® ... PM Linux Bible ® 2009 Edition 73675ffirs.indd i 11/25/08 6:49:03 PM 73675ffirs.indd ii 11/25/08 6:49:03 PM Linux Bible ® 2009 Edition Boot Up to Ubuntu , Fedora , KNOPPIX, Debian , SUSE , and. .. co-written dozens of books on Linux and UNIX, including Red Hat Linux Bible (all editions), Fedora and Red Hat Enterprise Linux Bible, Linux Troubleshooting Bible, Linux Toys, and Linux Toys II Last year,... Group 21 Joining Linux Communities .22 Companies and Groups Supporting Linux .22 Keeping Up with Linux 23 Major Linux Projects 24 Exploring Linux