OSX Basics
compiled by Sasha Harris-Cronin
Last updated 5.22.2002

I am not a master! But I do have a master's degree. This page is old, but people still seem to find it useful.

Stuff

I compiled this info as a general useful thing. I update it whenever I get around to it. If you want to add something, ask something, dispute something, or report a defunct link, please contact me.

NEWLY ADDED STUFF (stuff stays here for about a week):

Hyper Jeff - An allaround great OSX Page
OSX Keyspan USB-->Serial Adapter Driver

hints:
Java and Tomcat on the Mac

Upgrading to OSX

4 ways to configure harddrives:

--OSX right on top of OS 9
benefit: don't have to erase drive
drawback: you can lose it all

--Partition drive
benefit: More stable maybe (?)
drawback: must wipe drive first

--2 separate drives (1 system, 1 media)
benefit: good for video/sound mavens who like to keep media clean. Never lose media and system both.
drawback: pain in my ass

--2 separate drives (1 OS9, 1 OSX)
benefit: you'll never lose both systems. Good for serious tweakers.
drawback: also a pain in my ass.

note: I just have the two right on top of each other and they run fine. I keep my video on an external drive.

Memory:
It never hurts to have more. I've heard at least 10 gb harddrive and 256 mb ram.

I will add more later. I have to do my thesis now.

---------------------------------------------------------

O'Reilly:
The Disaster-Free Upgrade to Mac OS X PART 1
The Disaster-Free Upgrade to Mac OS X PART 2
OS X Zone FAQ

The Basics...

If an app is... Carbonized - runs in OS9 and OSX (ie. Stuffit, FCP 3.0)
Native/Cocoa - runs only in OSX (ie. Office:mac, Photoshop 7)
Classic - runs only in OS9 (ie. MAX)
Java - runs wherever you've got the right version to run it.

Currently running...
OSX - v10.1.4
OS9 - v9.2.2

---------------------------------------------------------

Other Good OSX Guides:
Hyper Jeff - A great allaround OSX Page
Apple's OSX Home
Max OSX Hints
OSX FAQ

---------------------------------------------------------

Apple:
Apple's OSX page
The Architecture of OSX
Troubleshooting Mac OSX

O'Reilly:
O'Reilly - Getting Your Feet Wet With Aqua

Interface

Dock
--To add: Drag icons in
--To delete: Drag icons out (Poof!)

Folders
--Apple-b to Hide/Reveal Folder Toolbar
--Apple-i to change privileges

--View/Customize Toolbar to change what is at the top of folders --Can drag files into Folder Toolbar to be shortcuts Get Info
--Apple-i --can use to see info, set privileges, open with which app. etc.

Force-Quit
--option-apple-esc

--actually works NOTES:
Everything is pdf based
Can create PDF file from any app. Print/Preview/Save as PDF

There is now a real undo
Put the OSX apps in the OSX folder
Put the OS9 apps in the OS9 folder
---------------------------------------------------------

O'Reilly:
Mac OS X: Another View

Apple:
Mac OS X 10.1: Language Updates for Mac OS X

XIcons:
Customizing Apple's Default Icons
Xicons - a resource for creating and downloading OSX icons

MacUpdate:
Xounds - shareware that converts existing MacOS 8 or 9 soundsets for OSX

Freeware, Shareware and Useful Apps

I am devoting this section to good OSX Freeware and Apps that I run across. If you have any you would like to add, drop me a line.

FTP
It is getting hard to find a free FTP client.
Fetch has been updated for OSX, but is no longer freeware. sigh...
osXigen. It has a good interface and is highly useful. It is similar to RBrowser but a faster, I find.
RBrowser. RBrowser has an RBrowser Lite version that is free. But remember to support small developers!
Here is a Command Line FTP tutorial from osx.org.

iTunes/iTunes/yourmom etc.
There are all sorts of neat freeware plugins to istuffs.
Shortcut74 lets you play a Quicktime movie in iTunes.
O'Reilly - iPhoto Scripts and Plug-ins

Parallel Computing - Contact Aliens! Fold Proteins!
folding@home uses the seti@home distributed computing model to make calculations about protein folding.
seti@home uses the seti@home distributed computing model to contact aliens.

Text Editing/Fonts etc.
As always, BBedit is the freeware text editing app of choice.
X Font Manager lets you turn on and off fonts.

Palm
Palm - Pain in my ass.
queuesnyc is a beta 3rd Party Entourage conduit. I still can't decide if it works or not.
Palm Desktop 4.0
No word from Avantgo. There are command line avantgo syncs, but I haven't found one for USB, yet. Supposedly Vindigo is working on something.
OSX Keyspan USB-->Serial Adapter Driver

iPod
Whoo-hoo!
ipod updater: To sync contacts, etc to your ipod, you need this first. Then you can download things like these:

Contact Syncs:
Contacts --> ipod
Contact This
Apple's Entourage-->ipod Script

Also Nifty:
iPod Text Editor
Tasks --> ipod
EntourageEvents
EntourageNotes
PodUtil

Sites/Articles:
Version Tracker's ipod Page
iPod Hacks
iPoding
Time Magazine - How to hack an iPod

Performance/Multimedia
OSX Midi Applications - Here is a page with Freeware and Shareware Midi stuffs.
***NOTE: the following are not freeware, but... support small developers!
BTV - BTV allows you to view video from any video input source (including TV capture card!)
IOExperts - USB WebCam Driver for Mac OS X

---------------------------------------------------------

Apple's OSX Resource Directory - Includes drivers and updates
Mac OSX Apps
Version Tracker
Mac OSX Hints
OSX Zone
MacUpdate

Using Classic

To startup Classic Environment- Apple/System Prefs/Classic
It is better to manually boot classic, than to let an app do it
Copying between Classic and OSX sometimes crashes Classic
Force-quitting a classic application usually crashes Classic, but not the machine

To restart in Classic - System Prefs/Startup Disk
NOTE: You need the admin password to change the startup disk

Things that only work in classic - Most Scanners, some Digital Media Readers, some PCI cards, some Tablets

Where is it now?

OS 9 OS X
Chooser (Appleshare) Desktop/Go/Connect to Server
Chooser (Printers) Applications/Utilities/Print Center
Preferences Users/username/Library/Preferences
Extensions System/Library/Extensions
NOTE: no extension manager
Fonts Users/username/Library/Fonts
System/Library/Fonts
HD/Library/Fonts
Imports from OS9
SimpleText TextEdit (Do a search)
note: must choose format/make plain text to create text doc
Launcher The Dock. There are freeware/shareware apps that emulate the launcher

---------------------------------------------------------

O'Reilly:
Font Management in Mac OS X Part 1
Font Management in Mac OS X Part 2

Apple:
Apple Article on Adding Printers etc

Applications/Utilities

Apple System Profiler
Applet Launcher - Don't work well.. Use Appletviewer from terminal instead.
Console - Lots of inexplicable system stuff
--NOTE: For Crash Log: Preferences/Crashes Tab
CPU Monitor - Whoo hoo
Grab - Screen capture utility. Neato. Doesn't work if DVDPlayer is running. Drat!
Disk Utility - Repair etc.
Java Web Start - Haven't tried it.
NetInfo Manager - Security, enable Root User
Network Utility - Ping, Finger, etc.
Print Center - what used to be the printer part of Chooser
ProcessViewer - Tells you what is really running
Terminal - Unix. Command Line. Everything your geeky heart desires.
Stickies
Sherlock

Apple Menu/System Preferences

Dock - Turn off annoying animations
International - add language capabilities
--To get keyboard mappings, click Keyboard Menu
--If more than one Language is activated, a little flag will show up
Login - what apps open with login, who logs in automatically
Internet - Default name, email, etc.
Network - modem settings, etc, including PPPoE client
Software Update - Connects to Apple Server and updates System
Startup Disk - switch between startup disks, including OS9 and X
Users - add/edit users

The user system

OSX is set up for multiple users. let it play the way it wants to.
Put your documents under your users/your_name/documents folder
System saves everyone's preferences individually
To change users, log out and back in (apple/Log Out)

---------------------------------------------------------

O'Reilly:
Organizing your stuff

Apple:
Mac OS X 10.0: Using Your Home Directory

Security/Privileges

The simple way:
Select folder/file in finder. Get Info/Privileges.

The other way:
Navigate in terminal. "chmod mode file"

What the codes mean:
r-4-read
w-2-write
x-1-execute
3 groups to set privileges for - Owner, Group, and Everyone Else (in that order)

A couple of permissions settings:
chmod 755 (-rwxr-xr-x) - most often used. Owner - Read & Write. All others read and execute chmod 777 (-rwxrwxrwx) - allow everybody read, write and execute priveleges
chmod 666 (-rw-rw-rw-) - allow all read and write only
chmod 775 (-rwxrwxr-x) - owner and group rwx. Allow all other read and execute

Commands:
chmod [mode] [file]
chgrp [group] [file]

you may need to change owners and groups as well

Navigate in terminal. "chown user file" || "chown user:group file"

---------------------------------------------------------

O'Reilly ONLamp:
Introduction to Unix Permissions Part 1
Introduction to Unix Permissions Part 2

Apple:
Mac OS X: Troubleshooting Permissions Issues(good description of permissions)

---------------------------------------------------------

Explanation of "root":
"root is the same as administrator on a pc. It allows you access and priveleges you wouldn't normally have It is an excellent way of fucking up your computer." - Daniel Howe

Root related commands:
su - login as root
sudo - emulate root for single command.
visudo - edit the sudoers file

To activate root user:
applications/utilities/netinfo manager
domain/security/enable root user
NOTE: This does not log you in as root. It *allows* you to log in. You only need to do it once. You will occasionally find that you do not have the privileges to do something
(ie. move the Developer folder somewhere else, install shockwave)
When this happens, use 'sudo [command]' from the terminal window. The first time you use it it will give you a warning not to mess up and ask for your password.

---------------------------------------------------------

An easy way to empty your trash if there are write protected things inside:
(Brian Turner sent me this hint. It is a good thing and Brian Turner has earned points towards deity-ship.)

When you try to empty your trash, you may occasionally get the error:
"Can not be completed because you don't have the correct permissions for blah."
--open the trash in the GUI
--in the terminal, type "sudo rm -rf " (remember to put a space after "-rf " and don't press return)
--select everything in trash.
--drag everything from trash to terminal window.
--it will write in the relevant pathnames
--press return
--voila! empty trash. no permissions problems. Oh, happy day.

---------------------------------------------------------

O'Reilly:
Home on the Go with NetInfo

Networking

Most networking stuff is done throught the system preferences panels. It's pretty self explanatory. There are some things to make it easier, however.

Typing: "ifconfig -a" in the terminal window displays "network interface parameters". Ie. it show you your ip address, your ethernet card address, etc.

XMonitor is a real-time system and email monitoring application for Mac OS X.

Airport:
By all accounts, super easy to use. The computer simply recognizes it.
Apple/System Preferences/Network/Airport
Non-Apple 802.11b hubs:
Fine as long as WEP is not enabled. Have experienced some difficulties with WEP, however.

---------------------------------------------------------

Apple:
Networking 1
Networking 2
Airport

ExtremeTech: Mac OS 9.1 and OS X Home Networking

The Terminal

FreeBSD based
BSD (originally: Berkeley Software Distribution) refers to the particular version of the UNIX operating system that was developed at and distributed from the University of California at Berkeley.
The default shell is a tcsh shell. If for some reason you don't have the bash shell on your mac (you should) and you want it, you can get it here. You can change the default shell in the Terminal/Preferences panel or use 'chsh [shell]' from the teminal prompt.

---------------------------------------------------------

Useful Mac OS X Terms: What is BSD? (explanation of both BSD and the concept of a shell)
Free BSD Basics(good links)
OSX BSD FAQ PDF

---------------------------------------------------------

Basic commands/phrases:
. - current directory
.. - 1 directory higher
.tcshrc - file in home directory that has environment variables, paths, etc.

cd - change directory
ls - list directory (default current directory)
ls -a - list all (including hidden files)
ls -la - list all verbosely
l - list directory verbosely
rm -r * - remove recursively (down directory structure)
scp - secure copy across machines
ssh - secure shell
chmod [mode] [filename] - change permissions
passwd - change password
su - login as root
sudo - emulate root user for one command (means "substitute-user do")
cp [source] [target] - copy file
rm [filename] - remove file
pwd - present working directory
man [application] - view manual for a command
whereis [application] - find an application
locate [filename] - find a file
whatis [application/commmand] - identify application/command

vi filename - edit document using vi editor
pico filename - edit document using pico editor
javac filename - compile in java
java classname - run class

up arrow - last command
tab - fill in filename

NOTE: if you don't know usage of a command, just type in the command name. Terminal will give you the usage

---------------------------------------------------------

O'Reilly:
Unix for the Rest of Us
Learning the Mac OS X Terminal Part 1
Learning the Mac OS X Terminal Part 2

O'Reilly ONLamp:
Useful Commands
Finding Things in Unix
Using the vi editor
Customizing the login shell

MacOSX.org:
MacOSX.org: Command Line FTP Tutorial

Developing in OSX for complete beginners

Midi and Sound
This only sorta fits under Developing. Use your imagination.
XMIDI - An OSX Midi Resource Page

JAVA
Open the Terminal
Navigate to the correct directory
type "javac filename.java"
correct all your mistakes
type "java classname"

it really is *that* simple

As I mentioned, Appletlauncher does not work well. Appletviewer, however, can be accessed from the terminal.
usage: appletviewer url(s)

Developer Tools can be downloaded from the OSX Apple Developer Website
The Developer Tools includes Apple's free Integrated Development Environment - Project Builder. It also installs the c compiler, jikes, and all sorts of useful stuff...

BUT...to use jikes, you need to set your classpath. And to do that, you need to write a .tcshrc file and install it in your home directory.
Here is an edited verion of mine. Daniel Howe gave me the original. It *should* set the classpaths correctly. Looking through it will also give you a further idea of how all this stuff works. Copy and paste this text file into the vi or pico editor in your home directory and save it as .tcshrc. [IT MUST BE IN YOUR HOME DIR TO WORK]

Java and Tomcat on the Mac

There is way too much to go into on this topic here. If you want to develop for the mac, start by looking at O'Reilly Network's Mac Site and OSX Apple Developer Website. If people want to email me links, I will post them. other things...

O'Reilly - Digging Deeper into OSX
Development links, SDKs, compilers, etc.

Daniel Howe has offered to be a resource for all things unix/shell/java/perl/path/classpath/tcshrc etc. He can be reached at dh254@nyu.edu.
I am tired and I am going to bed.


[an error occurred while processing this directive]