Table of Contents

Total Page:16

File Type:pdf, Size:1020Kb

Table of Contents Table of Contents Preface ix Part 1 . Getting Around 1 . The Mac 0S X Command Line 3 Mac OS X Shells 3 The Terminal and xterm Compared 3 Using the Terminal 4 The Services Menu 10 Using the tcsh Shell 11 Mac OS X's Unix Development Tools 22 2. Startup 32 Booting Mac OS X 32 Adding Startup Items 37 Scheduling Tasks 41 3. Directory Services 42 Understanding Directory Services 42 Programming with Directory Services 43 Configuring Directory Services 44 Netlnfo 47 Netlnfo Utilities 48 Netlnfo Command Reference 50 Managing Groups 55 Managing Users and Passwords 57 Managing Hostnames and IP Addresses 60 v Exporting Directories with NFS 61 Flat Files and Their Netlnfo Counterparts 61 Restoring the Netlnfo Database 62 Part II. Building Applications 4. Compiling Source Code 67 Compiler Differences 69 Compiling Unix Source Code 70 Architectural Issues 76 5. Libraries, Headers, and Frameworks 78 Header Files 78 The System Library : libSystem 83 Shared Libraries Versus Loadable Modules 84 Library Versions 89 Creating and Linking Static Libraries 91 Prebinding 91 Interesting and Important Libraries 92 6. Creating and Installing Packages 96 Fink 96 Creating Fink Packages 101 GNU-Darwin 104 Packaging Tools 105 Part III. Beyond the User Space 7 . Building the Darwin Kernel 123 Darwin Development Tools 123 Getting the Source Code 125 Building and Installing the Kernel 127 Kernel Configuration 128 8. System Management Tools 130 Diagnostic Utilities 130 Kernel Utilities 136 System Configuration 140 vi 1 TabieofContents 9. The X Window System 146 Installing X11 146 Running XDarwin 147 Desktops and Window Managers 148 X11-based Applications and Libraries 149 Making X11 Applications More Aqua-like 151 AquaTerm 154 Connecting to Other X Window Systems 155 Virtual Network Computers 156 Conclusion 159 Part IV. Appendixes A . The Mac 0S X Filesystem 163 B. Command-Line Tools: The Missing Manpages 174 Index 189 Table of Contents 1 vii.
Recommended publications
  • Release Notes for Xfree86® 4.7.0 the Xfree86 Project, Inc August 2007
    Release Notes for XFree86® 4.7.0 The XFree86 Project, Inc August 2007 Abstract This document contains information about the various features and their current sta- tus in the XFree86 4.7.0 release. 1. Introduction to the 4.x Release Series XFree86 4.0 was the first official release of the XFree86 4 series. The current release (4.7.0) is the latest in that series. The XFree86 4.x series represents a significant redesign of the XFree86 X server,with a strong focus on modularity and configurability. 2. Configuration: aQuickSynopsis Automatic configuration was introduced with XFree86 4.4.0 which makes it possible to start XFree86 without first creating a configuration file. This has been further improved in subsequent releases. If you experienced any problems with automatic configuration in a previous release, it is worth trying it again with this release. While the initial automatic configuration support was originally targeted just for Linux and the FreeBSD variants, as of 4.5.0 it also includes Solaris, NetBSD and OpenBSD support. Full support for automatic configuration is planned for other platforms in futurereleases. If you arerunning Linux, FreeBSD, NetBSD, OpenBSD, or Solaris, try Auto Configuration by run- ning: XFree86 -autoconfig If you want to customise some things afterwards, you can cut and paste the automatically gener- ated configuration from the /var/log/XFree86.0.log file into an XF86Config file and make your customisations there. If you need to customise some parts of the configuration while leav- ing others to be automatically detected, you can combine a partial static configuration with the automatically detected one by running: XFree86 -appendauto If you areusing a platform that is not currently supported, then you must try one of the older methods for getting started like "xf86cfg", which is our graphical configuration tool.
    [Show full text]
  • Xfree86® on Darwin and Mac OS X Torrey T
    XFree86® on Darwin and Mac OS X Torrey T. Lyons 15 December 2003 1. Introduction XFree86, a freely redistributable open-source implementation of the X Window System, has been ported to Darwin and Mac OS X. This document is a collection of information for anyone running XFree86 on Apple’s next generation operating system. Most of the current work on XFree86 for Darwin and Mac OS Xiscentered around the XonX project at SourceForge. If you areinterested in up-to-date status, want to report a bug, or are interested in working on XFree86 for Darwin, stop by the XonX project. 2. Hardware Supportand Configuration The X window server for Darwin and Mac OS Xprovided by the XFree86 Project, Inc. is called XDarwin. XDarwin can run in three different modes. On Mac OS X, XDarwin runs in parallel with Aqua in full screen or rootless modes. These modes arecalled Quartz modes, named after the Quartz 2D compositing engine used by Aqua. XDarwin can also be run from the Darwin con- sole in IOKit mode. In full screen Quartz mode, when the X Window System is active, it takes over the entirescreen. Youcan switch back to the Mac OS Xdesktop by holding down Command-Option-A. This key combination can be changed in the user preferences. From the Mac OS Xdesktop, click on the XDarwin icon in the Dock to switch back to the X window system. (You can change this behavior in the user preferences so that you must click the XDarwin icon in the floating switch window instead.) In rootless mode, the X window system and Aqua shareyour display.
    [Show full text]
  • Programming Mac OS X: a GUIDE for UNIX DEVELOPERS
    Programming Mac OS X: A GUIDE FOR UNIX DEVELOPERS KEVIN O’MALLEY MANNING Programming Mac OS X Programming Mac OS X A GUIDE FOR UNIX DEVELOPERS KEVIN O’MALLEY MANNING Greenwich (74° w. long.) For electronic information and ordering of this and other Manning books, go to www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact: Special Sales Department Manning Publications Co. 209 Bruce Park Avenue Fax: (203) 661-9018 Greenwich, CT 06830 email: [email protected] ©2003 by Manning Publications Co. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps. Recognizing the importance of preserving what has been written, it is Manning’s policy to have the books they publish printed on acid-free paper, and we exert our best efforts to that end. Manning Publications Co. Copyeditor: Tiffany Taylor 209 Bruce Park Avenue Typesetter: Denis Dalinnik Greenwich, CT 06830 Cover designer: Leslie Haimes ISBN 1-930110-85-5 Printed in the United States of America 12345678910–VHG–05 040302 brief contents PART 1OVERVIEW ............................................................................. 1 1 ■ Welcome to Mac OS X 3 2 ■ Navigating and using Mac OS X 27 PART 2TOOLS ..................................................................................
    [Show full text]
  • Darwin Streaming Server to Install the Streaming Server Using the GUI Installer: the Darwin Streaming Server Enables You to 1
    More Open-Source 15 Software This chapter is intended to make you aware of a number of additional software pack- ages you can use on your Mac. The software we describe here was selected for its use- fulness and its diversity, to reinforce just how many different kinds of things you can now do with Unix. Before proceeding with the tasks in this chapter, make sure that you are quite com- fortable working at the command line and that you have read chapters 13 (“Installing Software from Source Code”) and 14 (“Installing and Configuring Servers”) thoroughly. You should be familiar with downloading, unpacking, installing, and configuring soft- ware from the command line using the Fink tool (covered in Chapter 13), as well as manually without the Fink tool. More Open-Source Software More Open-Source We suggest that you skim through this entire chapter and then pick one of the first five packages to start with (avoid the three that follow them for the time being). We’ve listed them in the order in which we think you might want to try them out, but they are independent of each other, so it doesn’t matter which one you install first. Installing the final two packages in the book (the Majordomo email-list manager and the TWIG Web interface for email and group scheduling) requires that you have the assistance of an experienced Unix system administrator. They are included with the hope that you take what you have learned in this book and continue on to deeper lev- els of understanding.
    [Show full text]
  • Administració De Sistemes Operatius De Xarxes
    Administració de sistemes operatius de xarxes Víctor Carceler Hontoria Administració de xarxes d'àrea local Administració de xarxes d'àrea local Administració de sistemes operatius de xarxes Índex Introducció ............................................................................................... 5 Objectius ................................................................................................... 6 1. Servidor d’arxius ................................................................................ 7 1.1. Límits als recursos d'emmagatzematge. Quotes de disc ........ 7 1.1.1. Àmbit d’aplicació dels límits als recursos d'emmagatzematge............................................................ 9 1.1.2. Implementació de les quotes de disc ............................. 10 1.1.3. Posada en marxa de les quotes de disc .......................... 10 1.1.4. Cas pràctic: quotes de disc amb la Linkat 2.0 ................ 11 1.2. Sistema de fitxers NFS ............................................................... 15 1.2.1. Configuració del servidor NFS ........................................ 16 1.2.2. Exemples de configuració en el servidor NFS .............. 18 1.2.3. Accés a sistemes de fitxers NFS des de l’estació client ....................................................... 19 1.3. Samba i el sistema de fitxers en xarxa SMB/CIFS ................... 22 1.3.1. Conceptes relacionats amb l'SMB/CIFS ......................... 23 1.3.2. Descripció del Samba ....................................................... 24 1.3.3. El Samba
    [Show full text]
  • Programmer's Niche: Macros in R
    News The Newsletter of the R Project Volume 1/3, September 2001 Editorial by Friedrich Leisch as the computational platform used for the examples (and in several others design and layout of graphics While our colleagues in the southern hemisphere are looked very familiar to me). looking forward to the last weeks of the academic This issue of R News has both articles introduc- year and a well deserved summer break, teaching ing R packages and articles dealing with more com- started again in the northern half of our world, and putational aspects: The former include articles on again we had a new bug-fix release of R ready to pass econometrics, spatial data, machine learning, and ro- to students at the beginning of the semester. bust statistics; the latter articles on Mac OS X, par- Coffee break talks at this summer’s conference allel and object-oriented programming, dynamic ac- season showed the growing popularity of R at uni- cess to compiled code, and graphical user interfaces. versities very nicely to me: You start talking to peo- The programmer’s niche column is guest-edited by ple you never met before and one of the first ques- Thomas Lumley and deals with the advantages and tions is usually about each other’s research interests. disadvantages of macros. Until last year I always had to explain what R is The next issue of R News scheduled for the end of after responding “Hacking R”, because nine out of 2001 will have an emphasis on applying R in medi- ten people at a statistics conference had never heard cal statistics.
    [Show full text]
  • Tex for Mac OS X, Email from Rodrigo Ba˜Nuelos July 5, 2002 Several People Have Asked Recently About Tex on the New Mac OS Syst
    TeX for Mac OS X, Email from Rodrigo Ba˜nuelos July 5, 2002 Several people have asked recently about TeX on the new Mac OS system, OS X. If you have no interest in TeX on OS X, stop reading now, delete this email, and excuse the intrusion. If you have, read on. Here are some instructions on how to get TeX working on an “out of the box” new Mac and pay no money for it. I hope they help but proceed at your won risk. I am not responsible if after you try this your beautiful new Mac behaves badly, does not boot, or worst, it explodes after reboot. As you know, OS X is a UNIX-based operating system and as such all UNIX programs should, in practice, run on the system. Indeed, people have ported hundreds of UNIX-LINUX programs to OS X, including teTeX. (teTeX is the same texing system used in the math department network machines.) However, unlike some other UNIX-type systems around (such as linux), OS X does not use the “xwindows” system. Its front-end user interface is called “Aqua”. For this reason, you need to install teTeX and a TeX previewer different from “xdvi”. OS X does have a “command-line terminal” which leads some to think that it is an x-terminal, is not. Fortunately, you do not need the “xwindow” system to run teTeX but you do need something to see your math after you texit. 1) Installing teTeX: Go to http://www.rna.nl/tex.html and scroll down to “TeX Installation and Configuration Products”.
    [Show full text]
  • Porting UNIX/Linux Applications to Mac OS X
    Porting UNIX/Linux Applications to Mac OS X 2006-10-03 registered in the United States and other Apple Computer, Inc. countries. © 2002, 2006 Apple Computer, Inc. Intel and Intel Core are registered All rights reserved. trademarks of Intel Corportation or its subsidiaries in the United States and other No part of this publication may be countries. reproduced, stored in a retrieval system, or transmitted, in any form or by any means, Java and all Java-based trademarks are mechanical, electronic, photocopying, trademarks or registered trademarks of Sun recording, or otherwise, without prior Microsystems, Inc. in the U.S. and other written permission of Apple Computer, Inc., countries. with the following exceptions: Any person OpenGL is a registered trademark of Silicon is hereby authorized to store documentation Graphics, Inc. on a single computer for personal use only PowerPC and and the PowerPC logo are and to print copies of documentation for trademarks of International Business personal use provided that the Machines Corporation, used under license documentation contains Apple’s copyright therefrom. notice. X Window System is a trademark of the The Apple logo is a trademark of Apple Massachusetts Institute of Technology. Computer, Inc. Simultaneously published in the United Use of the “keyboard” Apple logo States and Canada. (Option-Shift-K) for commercial purposes without the prior written consent of Apple Even though Apple has reviewed this document, APPLE MAKES NO WARRANTY OR may constitute trademark infringement and REPRESENTATION, EITHER EXPRESS OR unfair competition in violation of federal IMPLIED, WITH RESPECT TO THIS DOCUMENT, ITS QUALITY, ACCURACY, and state laws.
    [Show full text]
  • X11 Basics (For Those New to X11), Then Discuss Installing the X11 Environment on Mac OS X and Starting It for the First Time
    Search Advanced Search Log In | Not a Member? Contact ADC ADC Home > Open Source > Tools > The X Window System (more commonly called X11) on Mac OS X provides significant opportunities for Mac OS X developers. Based on the open source XFree86 project, X11 for Mac OS X is compatible, fast, and fully integrated with Mac OS X. It includes the full X11R6.6 technology including an X11 window server, Quartz window manager, libraries, and basic utilities such as xterm. Whether a Unix user or an X11 developer (or both), Mac OS X offers a platform where your applications can run without modification. On a Mac, any of the thousands of available X11 applications can run in a window running concurrently alongside iTunes, Microsoft Excel, and any other Cocoa, Carbon, or Java applications. There are some things to know about X11 on Mac OS X before you start, and this article outlines the key issues you should be aware of. Many existing X11 applications from the UNIX world are available to use for free—if you know the "secret handshake." That is, you can often easily get the source code, but it's up to you to build and install the product. There are some binary distributions available as well, with applications pre-built for X11 on Mac OS X. This represents a new source of useful software that you don't want to overlook. We first review some X11 basics (for those new to X11), then discuss installing the X11 environment on Mac OS X and starting it for the first time.
    [Show full text]
  • Release Notes for X11R6.7.0 the X.Orgfoundation the Xfree86 Project, Inc
    Release Notes for X11R6.7.0 The X.OrgFoundation The XFree86 Project, Inc. 31 March 2004 Abstract These release notes contains information about features and their status in the X.Org Foundation X11R6.7.0 release. It is based on the XFree86 4.4RC2 RELNOTES docu- ment published by The XFree86™ Project, Inc. Thereare significant updates and dif- ferences in the X.Orgrelease as noted below. 1. Introduction to the X11R6.7 Release Series The release numbering is based on the original MIT X numbering system. X11refers to the ver- sion of the network protocol that the X Window system is based on: Version 11was first released in 1988 and has been stable for 15 years, with only upwardcompatible additions to the coreX protocol, a recordofstability envied in computing. Formal releases of X started with X version 9 from MIT;the first commercial X products werebased on X version 10. The MIT X Consortium and its successors, the X Consortium, the Open Group X Project Team, and the X.OrgGroup released versions X11R3 through X11R6.6, beforethe founding of the X.OrgFoundation. X11R6.7.0 is based on the merger of the X11R6.6 and XFree86 4.4RC2 codebases, with significant updates, noted below. Therewill be futuremaintenance releases in the X11R6.7.x series. However,efforts arewell underway to split the X distribution into its modular components to allow for easier maintenance and independent updates. Weexpect a transitional period while both X11R6.7 releases arebeing fielded and the modular release completed and deployed while both will be available as different consumers of X technology have different constraints on deployment.
    [Show full text]
  • Xfree86® on Darwin and Mac OS X Torrey T
    XFree86® on Darwin and Mac OS X Torrey T. Lyons 15 December 2003 1. Introduction XFree86, a freely redistributable open-source implementation of the X Window System, has been ported to Darwin and Mac OS X. This document is a collection of information for anyone running XFree86 on Apple’s next generation operating system. Most of the current work on XFree86 for Darwin and Mac OS Xiscentered around the XonX project at SourceForge. If you areinterested in up-to-date status, want to report a bug, or are interested in working on XFree86 for Darwin, stop by the XonX project. 2. Hardware Supportand Configuration The X window server for Darwin and Mac OS Xprovided by the XFree86 Project, Inc. is called XDarwin. XDarwin can run in three different modes. On Mac OS X, XDarwin runs in parallel with Aqua in full screen or rootless modes. These modes arecalled Quartz modes, named after the Quartz 2D compositing engine used by Aqua. XDarwin can also be run from the Darwin con- sole in IOKit mode. In full screen Quartz mode, when the X Window System is active, it takes over the entirescreen. Youcan switch back to the Mac OS Xdesktop by holding down Command-Option-A. This key combination can be changed in the user preferences. From the Mac OS Xdesktop, click on the XDarwin icon in the Dock to switch back to the X window system. (You can change this behavior in the user preferences so that you must click the XDarwin icon in the floating switch window instead.) In rootless mode, the X window system and Aqua shareyour display.
    [Show full text]
  • Accés a Sistemes Remots
    Accés a sistemes remots Raúl Velaz Mayo Serveis de Xarxa Serveis de Xarxa Accés a sistemes remots Índex Introducció 5 Resultats d’aprenentatge 7 1 Introducció a l’accés remot a equips9 1.1 Usos més freqüents de l’accés remot a ordinadors........................ 10 1.2 Diferents tipus d’accés remot................................... 14 2 Administració remota basada en la línea d’ordres 17 2.1 Telnet............................................... 17 2.1.1 Instal·lació de Telnet................................... 17 2.1.2 Accés remot mitjançant Telnet.............................. 18 2.1.3 Accés a serveis web mitjançant Telnet.......................... 20 2.1.4 Accés a serveis de correu electrònic mitjançant Telnet................. 22 2.2 Introducció a SSH......................................... 23 2.2.1 Història de SSH..................................... 24 2.2.2 Alguns conceptes criptogràfics.............................. 25 2.2.3 Instal·lació de SSH.................................... 27 2.2.4 Connexió a una estació remota amb SSH........................ 32 2.2.5 Transferir fitxers entre equips diferents......................... 34 2.2.6 Redirecció de ports TCP i túnels amb SSH....................... 37 2.2.7 SSH: mecanismes d’autenticació............................. 41 2.2.8 Possibles atacs dels quals protegeix SSH........................ 43 2.2.9 Configuració del client SSH............................... 44 2.2.10 Configuració del servidor SSH.............................. 45 3 Administració remota amb interfície gràfica 49 3.1 La transparència de xarxa del sistema X Window........................ 49 3.1.1 Configuració d’un servidor X.............................. 51 3.1.2 Iniciació d’un client X mitjançant SSH......................... 52 3.1.3 Iniciació d’un client X mitjançant SSH per a Windows................. 54 3.1.4 XDMCP per accedir a escriptoris remots........................ 57 3.2 VNC Virtual Network Computing...............................
    [Show full text]