I'm transitioning from Windows to Mac OS X - as I learn how to best make use of the new environment, I'll drop hints & tips here.
I needed to establish backups. I have a 300GB external hard drive - but it was formatted with NTFS (thus unwritable by Mac OS X), and it contained many, many GB of music files. I had already imported the MP3s into iTunes on my MacBook, but Sarah has been using the external drive to sync her MP3 player through her Windows laptop (using MediaMonkey, a much better music library manager than iTunes, but which unfortunately won't sync to my iPhone). It would also be good to make it easy for her to backup to the external drive as well, and there's a file or two we'd like to share. The initial plan was to reformat as FAT32 and pass the USB cable back-and-forth, but FAT32 can only handle up to a 127GB partition. So, the plan changed to semi-permanently mounting the external drive on my MacBook - and, while I'm at it, sharing the music files directly from my iTunes Library rather than having them duplicated on the external drive (particularly since Time Machine is backing them up there anyway).
Note we have cable Internet through a wireless router, both computers link to the router directly.
So, the whole process - at least as best as I can reconstruct what I would have done if I'd known what I was doing, instead of struggling through trial-and-error-and-semi-helpful-forum-posts...
Now, at this point it turns out the alias to my iTunes folder (created in Finder with Make Alias) shows up on the Windows side as a 0kb file instead of a folder. Going to the shell, ls -l shows the attributes as -rw----r--@ (@ indicating extended attributes). I created a symbolic link from the shell (resulting attributes lrwxr-xr-x) - that seemed to do the trick.
Next, see about sharing the printer...
Having some file permission trouble on my MacBook - files that I cannot edit/mv/etc. although I own them and permissions are 755... So, how about good ol' su?
How to Enable the "root" account on Mac OS X
The Quick CLI Method (sudo passwd root) worked fine for allowing me to su - but the root account can't seem to do anything to these files either...
To more fully describe - I have installed MAMP, and under its htdocs directory I have the roots of my local (Drupal) websites. Pretty much everything has 755 permission (rwxr-xr-x), is owned by my account which has administrative permission, and is in the staff group. I can do what I want with files in, say, /Applications/MAMP/htdocs/pathauto6 - but trying to edit and save, or rename (mv), or chgrp, or chown files in /Applications/MAMP/htdocs/pathauto6/sites/default fails with "Operation not permitted". The root account has no more luck than my own account. What's up with that?
Well, I'll tell you - the "immutable" flag was set on the folder (default). This seems to be an obscure, under-documented Mac OS X feature that overrides normal file permissions. If I'd never heard of it before (and I wasted a ridiculous amount of time tracking it down), how did it happen? My best guess is it has something to do with copying files from an NTFS-formatted external drive, which I used to transfer files from my old Windows system to my new MacBook - perhaps Windows read-only permissions get translated to the immutable flag when copying?
Full filesystem in Finder/Time Machine
The Mac OS X Finder by default only shows stuff regular people need to see - it doesn't show the entire filesystem. Time Machine follows Finder - which means that, although Time Machine backs up everything, you can't see and restore... oh, let's say /usr/local/pgsql/data. To make the entire filesystem visible under Macintosh HD, you need to go to the shell and say
defaults write NSGlobalDomain AppleShowAllFiles YES
Then, of course, reboot.
I'm going to have to find some time to track down what other neat things can be done with that defaults command. And, how to hide the extra stuff now showing on the desktop.
Disable .DS_Store files on network drives
Mac OS X drops little .DS_Store files in every folder you visit, including network drives. It can't be stopped locally, but to at least be more polite about other people's drives:
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
Developing on my MacBook, with the MAMP stack installed, attempts by any of my local Drupal sites to send email out to a Drupal user (say, a new account notification) go into the local mail queue and get stuck there. /var/log/mail.log shows "Operation timed out" errors from Postfix, whether sending to an account on my webhost or my Gmail account. telnet to port 25 (using a couple different hosts) also fails with "Operation timed out".
And... now I feel like an idiot, because I had this problem a few years ago with Comcast - my ISP (now RCN) is blocking port 25. Solution:
Took a few tries with telnet [mail|smtp].rcn.[com|net] 25 to find the right server, but I'm all set now...
Everything was just fine on my way home last night - earbuds in, music flowing, phone call clear as a bell... But last night I tried making a couple of phone calls from home - no sound of ringing, no audio in (or out, so I was told) until I put the call into speaker mode. Panic! But Googling "iPhone sound" turned up the answer quickly - plug in the earphones and unplug them again. Apparently it sometimes misses that you've unplugged the earphones.