109

Click here to load reader

Introduction to MAC OS

Embed Size (px)

Citation preview

Page 1: Introduction to MAC OS

Mac OS X for the Wary

Surajit A. BoseStanford University

Page 2: Introduction to MAC OS

About this Presentation

Page 3: Introduction to MAC OS

About this Presentation

• Intended as an introduction to Mac OS X

Page 4: Introduction to MAC OS

About this Presentation

• Intended as an introduction to Mac OS X• Not intended as a technical dissection

Page 5: Introduction to MAC OS

About this Presentation

• Intended as an introduction to Mac OS X• Not intended as a technical dissection • So if you’re the kind who types

awk -F: ‘{print $7}’ /etc/passwd | sort |uniq -c

into a command line just because you get off on login shell stats, you’re in the wrong presentation

Page 6: Introduction to MAC OS

About this Presentation

• Intended as an introduction to Mac OS X• Not intended as a technical dissection• Aims more toward those who need to

support the operating system, but aren’t too familiar with it

Page 7: Introduction to MAC OS

About this Presentation

• Intended as an introduction to Mac OS X• Not intended as a technical dissection• Aims more toward those who need to

support the operating system, but aren’t too familiar with it• Far from comprehensive; your mileage

may vary

Page 8: Introduction to MAC OS

About Mac OS X

Page 9: Introduction to MAC OS

About Mac OS X

• New architecture

Page 10: Introduction to MAC OS

About Mac OS X

• New architecture• New folder hierarchy

Page 11: Introduction to MAC OS

About Mac OS X

• New architecture• New folder hierarchy• Networking Mac OS X

Page 12: Introduction to MAC OS

Architecture of Mac OS X

Page 13: Introduction to MAC OS

Architecture of Mac OS X

Hardware

Page 14: Introduction to MAC OS

Architecture of Mac OS X

Hardware

• Requires G3 or better processor

Page 15: Introduction to MAC OS

Architecture of Mac OS X

Hardware

• Requires G3 or better processor• No support for serial ports

Page 16: Introduction to MAC OS

Architecture of Mac OS X

DarwinHardware

Page 17: Introduction to MAC OS

Architecture of Mac OS X

DarwinHardware

• Open source kernel

Page 18: Introduction to MAC OS

Architecture of Mac OS X

DarwinHardware

• Open source kernel• http://developer.apple.com/darwin/

Page 19: Introduction to MAC OS

Architecture of Mac OS X

Mach 3.0 FreeBSD 3.2Hardware

Page 20: Introduction to MAC OS

Architecture of Mac OS X

Mach 3.0 FreeBSD 3.2Hardware

Mach microkernel handles:

Page 21: Introduction to MAC OS

Architecture of Mac OS X

Mach 3.0 FreeBSD 3.2Hardware

Mach microkernel handles:• Memory

Page 22: Introduction to MAC OS

Architecture of Mac OS X

Mach 3.0 FreeBSD 3.2Hardware

Mach microkernel handles:• Memory • Interprocess communication

Page 23: Introduction to MAC OS

Architecture of Mac OS X

Mach 3.0 FreeBSD 3.2Hardware

BSD handles:

Page 24: Introduction to MAC OS

Architecture of Mac OS X

Mach 3.0 FreeBSD 3.2Hardware

BSD handles:• File systems (UFS, HFS+, ISO 9660)

Page 25: Introduction to MAC OS

Architecture of Mac OS X

Mach 3.0 FreeBSD 3.2Hardware

BSD handles:• File systems (UFS, HFS+, ISO 9660)• POSIX APIs

Page 26: Introduction to MAC OS

Architecture of Mac OS X

Mach 3.0 FreeBSD 3.2Hardware

BSD handles:• File systems (UFS, HFS+, ISO 9660)• POSIX APIs• Networking

Page 27: Introduction to MAC OS

Architecture of Mac OS X

Mach 3.0 FreeBSD 3.2Hardware

BSD handles:• File systems (UFS, HFS+, ISO 9660)• POSIX APIs• Networking• Processes

Page 28: Introduction to MAC OS

Architecture of Mac OS X

GraphicsMach 3.0 FreeBSD 3.2

Hardware

Page 29: Introduction to MAC OS

Architecture of Mac OS X

Quartz OpenGL QuickTimeMach BSD

Hardware

Page 30: Introduction to MAC OS

Architecture of Mac OS X

Quartz OpenGL QuickTimeMach BSD

Hardware

Quartz provides:

Page 31: Introduction to MAC OS

Architecture of Mac OS X

Quartz OpenGL QuickTimeMach BSD

Hardware

Quartz provides:• 2D graphics support

Page 32: Introduction to MAC OS

Architecture of Mac OS X

Quartz OpenGL QuickTimeMach BSD

Hardware

Quartz provides:• 2D graphics support• PDF rendering!

Page 33: Introduction to MAC OS

Architecture of Mac OS X

Quartz OpenGL QuickTimeMach BSD

Hardware

OpenGL provides industry-standard 3D graphics support

Page 34: Introduction to MAC OS

Architecture of Mac OS X

Quartz OpenGL QuickTimeMach BSD

Hardware

QuickTime provides multimedia support

Page 35: Introduction to MAC OS

Architecture of Mac OS X

Frameworks and EnvironmentsQuartz OpenGL QuickTime

Mach BSDHardware

Page 36: Introduction to MAC OS

Architecture of Mac OS X

Classic Carbon CocoaQuartz OpenGL QuickTime

Mach BSDHardware

Page 37: Introduction to MAC OS

Architecture of Mac OS X

Classic Carbon CocoaQuartz OpenGL QuickTime

Mach BSDHardware

• Classic is an application within OS X

Page 38: Introduction to MAC OS

Architecture of Mac OS X

Classic Carbon CocoaQuartz OpenGL QuickTime

Mach BSDHardware

• Classic is an application within OS X• Carbon libraries allow older apps to be recompiled to be OS X native

Page 39: Introduction to MAC OS

Architecture of Mac OS X

Classic Carbon CocoaQuartz OpenGL QuickTime

Mach BSDHardware

• Classic is an application within OS X• Carbon libraries allow older apps to be recompiled to be OS X native• Cocoa is a new object-oriented framework for developing applications

Page 40: Introduction to MAC OS

Architecture of Mac OS X

InterfaceClassic Carbon CocoaQuartz OpenGL QuickTime

Mach BSDHardware

Page 41: Introduction to MAC OS

Architecture of Mac OS X

InterfaceClassic Carbon CocoaQuartz OpenGL QuickTime

Mach BSDHardware

• Very lickable Aqua layer

Page 42: Introduction to MAC OS

Architecture of Mac OS X

InterfaceClassic Carbon CocoaQuartz OpenGL QuickTime

Mach BSDHardware

• Very lickable Aqua layer• Provides a user-friendly ‘skin’ to UNIX

Page 43: Introduction to MAC OS

Architecture of Mac OS X

Scripting and MessagingInterface

Classic Carbon CocoaQuartz OpenGL QuickTime

Mach BSDHardware

Page 44: Introduction to MAC OS

Architecture of Mac OS X

AppleScript Terminal ServicesInterface

Classic Carbon CocoaQuartz OpenGL QuickTime

Mach BSDHardware

Page 45: Introduction to MAC OS

Architecture of Mac OS X

AppleScript Terminal ServicesInterface

Classic Carbon CocoaQuartz OpenGL QuickTime

Mach BSDHardware

AppleScript provides the ability to automate routines

Page 46: Introduction to MAC OS

Architecture of Mac OS X

AppleScript Terminal ServicesInterface

Classic Carbon CocoaQuartz OpenGL QuickTime

Mach BSDHardware

Terminal provides command-line access

Page 47: Introduction to MAC OS

Architecture of Mac OS X

AppleScript Terminal ServicesInterface

Classic Carbon CocoaQuartz OpenGL QuickTime

Mach BSDHardware

Services provide built-in spell checking, e-mail integration, etc.

Page 48: Introduction to MAC OS

Architecture of Mac OS X

ApplicationsAppleScript Terminal Services

InterfaceClassic Carbon CocoaQuartz OpenGL QuickTime

Mach BSDHardware

Page 49: Introduction to MAC OS

Typical Directory Structure

Page 50: Introduction to MAC OS

Typical Directory Structure

• Far more rigid than previous versions of the OS

Page 51: Introduction to MAC OS

Typical Directory Structure

• Far more rigid than previous versions of the OS• True multi-user environment with all the

complexity of UNIX permissions

Page 52: Introduction to MAC OS

Typical Directory Structure

• Far more rigid than previous versions of the OS• True multi-user environment with all the

complexity of UNIX permissions• Some files and folders are owned by the

system, others by users with accounts on the computer

Page 53: Introduction to MAC OS

Typical Directory Structure

• Far more rigid than previous versions of the OS• True multi-user environment with all the

complexity of UNIX permissions• Some files and folders are owned by the

system, others by users with accounts on the computer• Some users are administrators, others just

ordinary schlubs

Page 54: Introduction to MAC OS

Typical Directory Structure

• Standard set of folders at the root level of the drive

Page 55: Introduction to MAC OS

Typical Directory Structure

• Standard set of folders at the root level of the drive System: No user serviceable parts inside

Page 56: Introduction to MAC OS

Typical Directory Structure

• Standard set of folders at the root level of the drive System: No user serviceable parts inside Library: Contains preferences, fonts, support

files, etc. that may be used by everyone who has an account on the computer

Page 57: Introduction to MAC OS

Typical Directory Structure

• Standard set of folders at the root level of the drive System: No user serviceable parts inside Library: Contains preferences, fonts, support

files, etc. that may be used by everyone who has an account on the computer

Applications

Page 58: Introduction to MAC OS

Typical Directory Structure

• Standard set of folders at the root level of the drive System: No user serviceable parts inside Library: Contains preferences, fonts, support

files, etc. that may be used by everyone who has an account on the computer

Applications Users: Has one folder (the ‘home directory’)

for each person with an account on the computer

Page 59: Introduction to MAC OS

Typical Directory Structure

• Standard set of folders at the root level of the drive• Partially replicated at other levels

Page 60: Introduction to MAC OS

Typical Directory Structure

• Standard set of folders at the root level of the drive

• Partially replicated at other levels Each user’s home

directory also has a Library folder and an Applications folder

Page 61: Introduction to MAC OS

Typical Directory Structure

• Standard set of folders at the root level of the drive• Partially replicated at other levels

Each user’s home directory also has a Library folder and an Applications folder

These store fonts, preferences, and applications specific to that user

Page 62: Introduction to MAC OS

Typical Directory Structure

• Standard set of folders at the root level of the drive• Partially replicated at other levels

Each user’s home directory also has a Library folder and an Applications folder

These store fonts, preferences, and applications specific to that user

Other users do not have access to these

Page 63: Introduction to MAC OS

Typical Directory Structure

• Standard set of folders at the root level of the drive• Partially replicated at other levels• OS searches through these in a particular

order

Page 64: Introduction to MAC OS

Typical Directory Structure

• Standard set of folders at the root level of the drive• Partially replicated at other levels• OS searches through these in a particular

order• E.g. if a document in a user’s home

directory uses a particular font, this is the search order:

Page 65: Introduction to MAC OS

Typical Directory Structure

• User’s ~/Library/Fonts folder

Page 66: Introduction to MAC OS

Typical Directory Structure

• User’s ~/Library/Fonts folder• Application created support folder in the

Library folder

Page 67: Introduction to MAC OS

Typical Directory Structure

• User’s ~/Library/Fonts folder• Application created support folder in the

Library folder• /Library/Fonts folder at the root level of the

hard drive

Page 68: Introduction to MAC OS

Typical Directory Structure

• User’s ~/Library/Fonts folder• Application created support folder in the

Library folder• /Library/Fonts folder at the root level of the

hard drive• /System/Library/Fonts folder, which

contains fonts used by the OS

Page 69: Introduction to MAC OS

Typical Directory Structure

• User’s ~/Library/Fonts folder• Application created support folder in the

Library folder• /Library/Fonts folder at the root level of the

hard drive• /System/Library/Fonts folder, which

contains fonts used by the OS• Mac OS 9.x Fonts folder

Page 70: Introduction to MAC OS

Typical Directory Structure

• User’s ~/Library/Fonts folder• Application created support folder in the

Library folder• /Library/Fonts folder at the root level of the

hard drive• /System/Library/Fonts folder, which

contains fonts used by the OS• Mac OS 9.x Fonts folder• A network Fonts folder

Page 71: Introduction to MAC OS

Networking Mac OS X

Page 72: Introduction to MAC OS

Networking Mac OS X

• Getting the sucka online

Page 73: Introduction to MAC OS

Networking Mac OS X

• Getting the sucka online• File server protocols supported

Page 74: Introduction to MAC OS

Networking Mac OS X

• Getting the sucka online• File server protocols supported• Integrating OS X into an existing domain

Page 75: Introduction to MAC OS

Networking Mac OS X

• Getting the sucka online• File server protocols supported• Integrating OS X into an existing domain• Running a classroom or lab of Mac OS X

clients

Page 76: Introduction to MAC OS

Getting an OS X client online

• Configurations live in the Network pane of the System Preferences panel, accessible from the Apple menu.

Page 77: Introduction to MAC OS

Getting an OS X client online

• Can switch between different interfaces in the pop-up menu

Page 78: Introduction to MAC OS

Getting an OS X client online

• Via the ‘Active Network Ports’ option, can turn ports on and off

Page 79: Introduction to MAC OS

Getting an OS X client online

• Via the ‘Active Network Ports’ option, can turn ports on and off

• Can also specify a hierarchy of ports

Page 80: Introduction to MAC OS

Getting an OS X client online

• Via the ‘Location’ pop-up menu, can create different configurations for different locations

Page 81: Introduction to MAC OS

File Server Protocols

Page 82: Introduction to MAC OS

File Server Protocols

• AppleTalk is off by default (very interesting)

Page 83: Introduction to MAC OS

File Server Protocols

• From the ‘Connect to Server’ option of the ‘Go’ menu in the Finder, Mac OS X clients can connect to AFP, NFS, SMB, and Samba servers

Page 84: Introduction to MAC OS

OS X’s Directory Services

Page 85: Introduction to MAC OS

OS X’s Directory Services

• By default, OS X is set up to integrate to a NetInfo domain (inherited from NeXT)

Page 86: Introduction to MAC OS

OS X’s Directory Services

• By default, OS X is set up to integrate to a NetInfo domain (inherited from NeXT)• But it has built-in LDAP integration too

Page 87: Introduction to MAC OS

OS X’s Directory Services

• By default, OS X is set up to integrate to a NetInfo domain (inherited from NeXT)

• But it has built-in LDAP integration too

• Can be configured using the Directory Setup utility in /Applications/Utilities

Page 88: Introduction to MAC OS

Running a Mac OS X Lab

Page 89: Introduction to MAC OS

Running a Mac OS X Lab

• The indispensable resource: http://www.macosxlabs.org/

Page 90: Introduction to MAC OS

Running a Mac OS X Lab

• The indispensable resource: http://www.macosxlabs.org/• A consortium of 25 colleges and

universities working toward deploying Mac OS X in labs, clusters, and classrooms

Page 91: Introduction to MAC OS

Running a Mac OS X Lab

• The indispensable resource: http://www.macosxlabs.org/• A consortium of 25 colleges and

universities working toward deploying Mac OS X in labs, clusters, and classrooms• Very thorough listing of issues, processes,

and resources

Page 92: Introduction to MAC OS

Running a Mac OS X Lab

• The indispensable resource: http://www.macosxlabs.org/• A consortium of 25 colleges and

universities working toward deploying Mac OS X in labs, clusters, and classrooms• Very thorough listing of issues, processes,

and resources• Some other resources:

Page 93: Introduction to MAC OS

Running a Mac OS X Lab

• Carbon Copy Cloner: http://software.bombich.com/ccc.html

Page 94: Introduction to MAC OS

Running a Mac OS X Lab

• Carbon Copy Cloner: http://software.bombich.com/ccc.html• Apple Software Restore for Mac OS X:

macosxlabs.org/asr_for_osx/asr_for_osx.html

Page 95: Introduction to MAC OS

Running a Mac OS X Lab

• Carbon Copy Cloner: http://software.bombich.com/ccc.html• Apple Software Restore for Mac OS X:

macosxlabs.org/asr_for_osx/asr_for_osx.html• Rsync: macosxlabs.org/rsyncx/rsyncx.html

Page 96: Introduction to MAC OS

Running a Mac OS X Lab

• Carbon Copy Cloner: http://software.bombich.com/ccc.html• Apple Software Restore for Mac OS X:

macosxlabs.org/asr_for_osx/asr_for_osx.html• Rsync: macosxlabs.org/rsyncx/rsyncx.html• KeyServer:

http://sassafras.com/docs/appendxd.html#Heading5

Page 97: Introduction to MAC OS

Conclusion

Page 98: Introduction to MAC OS

Conclusion

• Mac OS X offers tremendous advantages

Page 99: Introduction to MAC OS

Conclusion

• Mac OS X offers tremendous advantages Stability (crash-free)

Page 100: Introduction to MAC OS

Conclusion

• Mac OS X offers tremendous advantages Stability (crash-free) Many easy-to-use tools to configure the UNIX

underpinnings

Page 101: Introduction to MAC OS

Conclusion

• Mac OS X offers tremendous advantages Stability (crash-free) Many easy-to-use tools to configure the UNIX

underpinnings Integrates well with existing infrastructure

Page 102: Introduction to MAC OS

Conclusion

• Mac OS X offers tremendous advantages• There are also challenges (far from

insurmountable)

Page 103: Introduction to MAC OS

Conclusion

• Mac OS X offers tremendous advantages• There are also challenges (far from

insurmountable) Novelty

Page 104: Introduction to MAC OS

Conclusion

• Mac OS X offers tremendous advantages• There are also challenges (far from

insurmountable) Novelty Security

Page 105: Introduction to MAC OS

Conclusion

• Mac OS X offers tremendous advantages• There are also challenges (far from

insurmountable) Novelty Security Software availability

Page 106: Introduction to MAC OS

Conclusion

• Mac OS X offers tremendous advantages• There are also challenges (far from

insurmountable)• It’s great fun to work with, and very

rewarding

Page 107: Introduction to MAC OS

Conclusion

• Mac OS X offers tremendous advantages• There are also challenges (far from

insurmountable)• It’s great fun to work with, and very

rewarding• So … go for it!

Page 108: Introduction to MAC OS

Questions?

Page 109: Introduction to MAC OS

Thanks!

Surajit A. BoseMeyer Library, Room 240560 Escondido MallStanford, CA [email protected]