Applications/Utilities
Total Page:16
File Type:pdf, Size:1020Kb
[ Team LiB ] • Table of Contents • Index • Reviews • Reader Reviews • Errata • Academic Mac OS X Panther for Unix Geeks By Brian Jepson, Ernest E. Rothman Publisher: O'Reilly Pub Date: February 2004 ISBN: 0-596-00607-1 Pages: 240 If you find yourself disoriented by the new Mac environment, Mac OS X Panther for Unix Geeks will get you acclimated quickly to the foreign new areas of a familiar Unix landscape. The new edition of this book is your guide to figuring out the BSD Unix system and Panther-specific components that you may find challenging. The book includes a quick manpage-style reference to the "Missing Manual Pages" --commands that come with Mac OS X Panther, although there are no manpages. [ Team LiB ] [ Team LiB ] • Table of Contents • Index • Reviews • Reader Reviews • Errata • Academic Mac OS X Panther for Unix Geeks By Brian Jepson, Ernest E. Rothman Publisher: O'Reilly Pub Date: February 2004 ISBN: 0-596-00607-1 Pages: 240 Copyright Preface Audience for This Book Organization of This Book Xcode Tools Where to Go for More Information Conventions Used in This Book Comments and Questions Acknowledgments from the Previous Edition Acknowledgments from Brian Jepson Acknowledgments from Ernest E. Rothman Part I: Getting Around Chapter 1. Inside the Terminal Section 1.1. Mac OS X Shells Section 1.2. The Terminal and xterm Compared Section 1.3. Using the Terminal Section 1.4. Customizing the Terminal Section 1.5. The Services Menu Section 1.6. Alternative Terminal Applications Section 1.7. The open Command Chapter 2. Startup Section 2.1. Booting Mac OS X Section 2.2. Adding Startup Items Section 2.3. Scheduling Tasks Chapter 3. Directory Services Section 3.1. Understanding Directory Services Section 3.2. Programming with Directory Services Section 3.3. Configuring Directory Services Section 3.4. NetInfo Manager Section 3.5. Directory Services Utilities Section 3.6. Managing Groups Section 3.7. Managing Users and Passwords Section 3.8. Managing Hostnames and IP Addresses Section 3.9. Exporting Directories with NFS Section 3.10. Flat Files and Their Directory Services Counterparts Section 3.11. Restoring the Directory Services Database Chapter 4. Printing Section 4.1. Printer Setup Utility Section 4.2. Common Unix Printing System (CUPS) Section 4.3. Gimp-Print Chapter 5. The X Window System Section 5.1. About Apple's X11 Section 5.2. Installing X11 Section 5.3. Running X11 Section 5.4. Customizing X11 Section 5.5. X11-based Applications and Libraries Section 5.6. Connecting to Other X Window Systems Section 5.7. Virtual Network Computer Chapter 6. Multimedia Section 6.1. Burning CDs Section 6.2. Video Section 6.3. Image Editing Section 6.4. 3D Modeling Chapter 7. Third-Party Tools and Applications Section 7.1. Virtual Desktops and Screens Section 7.2. The Application Menu Section 7.3. Exposé Section 7.4. Virtual Desktops Section 7.5. SSH GUIs Section 7.6. RAqua Part II: Building Applications Chapter 8. Compiling Source Code Section 8.1. Compiler Differences Section 8.2. Compiling Unix Source Code Section 8.3. Architectural Issues Section 8.4. X11-Based Applications and Libraries Chapter 9. Libraries, Headers, and Frameworks Section 9.1. Header Files Section 9.2. The System Library: libSystem Section 9.3. Shared Libraries Versus Loadable Modules Section 9.4. Library Versions Section 9.5. Creating and Linking Static Libraries Section 9.6. Creating Frameworks Section 9.7. Prebinding Section 9.8. Performance and Debugging Tools Section 9.9. CHUD Tools Section 9.10. Interesting and Important Libraries Section 9.11. Numerical Libraries Chapter 10. Perl Section 10.1. Perl for Mac OS X Geeks Section 10.2. Installing CPAN Modules Section 10.3. Compiling Your Own Perl Part III: Working with Packages Chapter 11. Fink Section 11.1. Installing Fink Section 11.2. Using Fink Section 11.3. FinkCommander Section 11.4. Installing Binaries Chapter 12. Creating and Installing Packages Section 12.1. Using PackageMaker Section 12.2. Using GNU tar Section 12.3. Disk Images Section 12.4. Creating Fink Packages Part IV: Serving and System Management Chapter 13. Using Mac OS X as a Server Section 13.1. Getting Connected Section 13.2. LDAP Section 13.3. Postfix Section 13.4. Built-in Services: The Sharing Panel Chapter 14. MySQL and PostgreSQL Section 14.1. MySQL Section 14.2. PostgreSQL Section 14.3. PHP and Perl Chapter 15. System Management Tools Section 15.1. Diagnostic Utilities Section 15.2. Kernel Utilities Section 15.3. System Configuration Section 15.4. Third-Party Applications Part V: Appendixes Appendix A. The Mac OS X Filesystem Section A.1. Files and Directories Appendix B. Command-Line Tools: The Missing Manpages AuthorizationTrampoline autodiskmount automount CCLEngine cd9660.util certtool checkgid chkpasswd configd CpMac create_nidb DirectoryService disktool fixmount fixPrecomps FixupResourceForks gcc_select hfs.util hostinfo hwprefs ipconfig kdumpd kuncd languagesetup makekey mDNS mDNSResponder mount_devfs mount_ftp mount_smbfs mount_synthfs mount_volfs msdos.util notifyd ntp-wait ntptimeset od opendiff open-x11 pdisk pdump postfix-watch register_mach_bootstrap_servers screencapture scselect scutil SecurityServer service sips SplitForks systemkeychain udf.util ufs.util unzip vndevice vsdbutil zip Appendix C. Mac OS X's Unix Development Tools Section C.1. Standard Unix Development Tools Section C.2. Apple's Command-Line Developer Tools Section C.3. Macintosh Tools Section C.4. Java Development Tools Section C.5. Text Editing and Processing Section C.6. Scripting and Shell Programming Section C.7. Working with Files and Directories Section C.8. File Compression and Storage Section C.9. Searching and Sorting Section C.10. Miscellaneous Tools Colophon Index [ Team LiB ] [ Team LiB ] Copyright Copyright © 2004, 2003 O'Reilly Media, Inc. Printed in the United States of America. Published by O'Reilly & Associates, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472. O'Reilly & Associates books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://safari.oreilly.com). For more information, contact our corporate/institutional sales department: (800) 998-9938 or [email protected]. Nutshell Handbook, the Nutshell Handbook logo, and the O'Reilly logo are registered trademarks of O'Reilly Media, Inc. Mac OS X Panther for Unix Geeks, the image of a foxhound, and related trade dress are trademarks of O'Reilly Media, Inc. Apple Computer, Inc., boldly combined open source technologies with its own programming efforts to create Mac OS X, one of the most versatile and stable operating systems now available. In the same spirit, Apple has joined forces with O'Reilly Media, Inc., to bring you an indispensable collection of technical publications. The ADC logo indicates that the book has been technically reviewed by Apple engineers and is recommended by the Apple Developer Connection. Apple, the Apple logo, AppleScript, AppleTalk, AppleWorks, Carbon, Cocoa, ColorSync, Finder, FireWire, iBook, iMac, iPod, Mac, Mac logo, Macintosh, PowerBook, QuickTime, QuickTime logo, Sherlock, and WebObjects are trademarks of Apple Computer, Inc., registered in the United States and other countries. The "keyboard" Apple logo is used with permission of Apple Computer, Inc. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O'Reilly Media, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps. While every precaution has been taken in the preparation of this book, the publisher and authors assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein. [ Team LiB ] [ Team LiB ] Preface Once upon a time, Unix came with only a few standard utilities and, if you were lucky, it included a C compiler. When setting up a new Unix system, you'd have to crawl the Net looking for important software: Perl, gcc, bison, flex, less, Emacs, and other utilities and languages. That was a lot of software to download through a 28.8 kbps modem. These days, Unix distributions come with much more, and it seems like more and more users are gaining access to a wide-open pipe. Free Linux distributions pack most of the GNU tools onto a CD-ROM, and now commercial Unix systems are catching up. IRIX includes a big selection of GNU utilities, Solaris comes with a companion CD of free software, and just about every flavor of Unix (including Mac OS X) now includes Perl. Mac OS X comes with many tools, most of which are open source and complement the tools associated with Unix. This book serves as a bridge for Unix developers and system administrators who've been lured to Mac OS X because of its Unix roots. When you first launch the Terminal application, you'll find yourself at home in a Unix shell, but like Apple's credo-"Think Different"-you'll soon find yourself doing things a little differently. Some of the standard Unix utilities you've grown accustomed to may not be there, /etc/passwd and /etc/group have been supplanted with something called NetInfo, and when it comes to developing applications, you'll find that things like library linking and compiling have a few new twists to them. Despite all the beauty of Mac OS X's Aqua interface, you'll find that some things are different on the Unix side. But rest assured, they're easy to deal with if you know what to do. This book is your survival guide for taming the Unix side of Mac OS X. [ Team LiB ] [ Team LiB ] Audience for This Book This book is aimed at Unix developers, a category that includes programmers who switched to Linux from a non-Unix platform, web developers who spend most of their time in~/public_html over an ssh connection, and experienced Unix hackers.