Do I need to maintain my Mac?

What do you think about “Clean My Mac” from http://www.macpaw.com/?

It seems like an impressive app that could do a little too much in the wrong hands. I’m on a laptop and could use a little cleaning up and like the idea of dumping excessive language files and PPC binaries. Would love to hear your thoughts.

In answering, I’m going first to name, but not spend time defining, the various tasks involved in maintaining Mac OS X. Then I’ll discuss the software that I use to perform those tasks.

Oh yeah: PLEASE PLEASE PLEASE backup your entire hard drive before doing any of this. Heck, even before you read this article.

Maintenance Tasks

Before anything else, it’s important to know that, since Panther and even more since Tiger, Mac OS X does most of its essential maintenance in the background. It runs the daily, weekly, and monthly Unix maintenance scripts on a more fluid schedule, remembering to do them even if your Mac was asleep when they were officially scheduled. Also, ye olde venerable “disk defragmentation,” familiar to many 90’s-era Mac and PC users, is somewhat automated but mostly much less necessary, for reasons Apple spells out in this kBase doc.

One task that used to be more commonly recommended to fix lots of issues with OS X is “Repairing Disk Permissions.” I used to use Disk Utility to run this when someone said their Mac was running slow (and they had clearly adequate RAM and processor), but because developers have had time to become savvy about OS X’s file-permissions scheme, the task is less likely to do or fix anything. Still, I usually turn it on as an option when I run the software that I’ll describe below.

Also in Disk Utility one will find “Repair Disk,” which since Tiger can be run while a machine is booted — all other activities are halted — to tell you if the volume data on your startup disk is screwed up.

Finally, a step that still seems relevant to keeping a Mac running smoothly is deleting cache files, specifically the Font, Kernel, and Application Caches. I have found lots of miscellaneous, weird problems — from apps crashing to fonts not rendering — resolved by a cache zapping. Also, since the dawn of the World Wide Web, web browsers have occasionally needed their caches cleaned. Safari features Empty Cache as a menu item in its “application menu,” i.e. the menu to the immediate right of the Apple, which in Safari is called “Safari.”

Cleanup Tasks

This is a more nebulous topic, since different people need different things on their hard drives. Also, as drive capacity has increased, now to way more than most of our clients need, many drives wear out with plenty of unused space. But of course, the idea of removing unneeded 0s and 1s from your storage is always appealing. It’s gratifying to let slough away PPC binaries, the OS 9 System Folder, Previous Systems, obviated applications, additional language support and fonts, yadda yadda yadda.

Maintenance and Cleanup Apps

Several programs have appeared over the years to automate these maintenance tasks and more. The crucial thing to know about these applications is that they are only graphical interfaces (GUIs) to the very simple Unix commands that make the tasks happen. I learned back in 10.1 to type:

sudo periodic daily weekly monthly
diskutil repairPermissions

(note the capital “P”), and

fsck -yf

(that last from single-user mode, accessed by booting while holding down Command-S).

Those commands accomplish much of the aforementioned tasks, and do it without installing, much less buying, anything. The apps save one from having to remember this stuff, but as the tasks are rarely required, paying $15 for an app seems kind of weird. That said, many apps will let you run a full-featured trial.

(An aside: I wonder if some Mac developers could benefit from the iPhone App Store model and start looking at $1-$3 tags for certain smaller desktop apps; would sales go up?)

A search for “maintenance” at MacUpdate.com yields the most established titles. Of these, I actively used Cocktail for a while, but since the free Maintenance and Onyx from Titanium Software came about, I have seen no reason to use any other tools. Maintenance is the simplest thing going: one window with a few checkboxes; turn on the ones you want and hit go. Onyx takes the hood off a lot of system services and features, and lets you run the same tasks as Maintenance to boot. They will both wisely ask to run “Verify Disk” before they do anything else. That takes a few minutes, but it’s well spent.

This is a good point to mention that, if Disk Utility’s Verify or Repair functions find something that they cannot fix, you will need to pick up an application such as Disk Warrior or TechTool Pro. These are each pricey but rock solid, and they repair the dramatic damage or corruption of your volume information that can cause data loss.

To bring your Mac to a space- and performance-saving English-only state, I’ve always liked Monolingual. A MacOSXHints user posted an Automator script for 10.4 that strips the languages and also PowerPC code from applications, but I want to examine it before I use it in 10.6. Here’s another, also older, article and another app for removing PPC from Universal Binaries.

Regarding CleanMyMac specifically, I haven’t used it, and with a 200MB cleanup limit on the trial, I have little need to put $15 toward that. (I’m not knocking the developer’s price, just… well, see above.) Monolingual should do the language diet for you, and to maintain stability, I would greatly encourage you to download Intel-only versions of your apps. Remember, too, that Snow Leopard is itself Intel-only, so the Apple apps are not Universal.

You will backup before running these apps, right?

Posted via email from J2 Tech Blog

Look up any stored password, and then some

We need to connect a PC laptop to our wireless router.  The computer can find the network, but I don’t know the password. Where should I look?

Your Mac does a very cool thing with passwords: It stores them in a single file called the “keychain,” which is locked with the password that you use to log into your Mac.

Here’s that paragraph in slightly more geeky terms: The keychain is locked with military-grade encryption, typically with the password assigned to your user account. Each user gets their own keychain, and the default keychain name is “login,” though you can rename it or create multiple keychains. Whenever you see a checkbox option for “Remember password in keychain,” or when Safari asks whether you want it to remember a particular password, that login will get stored in the keychain. (If Safari never presents you with that option, go to Safari > Preferences > AutoFill, and turn on “User names and passwords.”)

You can find passwords in your keychain using the Keychain Access utility, which you can find, along with everything else on your Mac, through Spotlight, or by going to Macintosh HD/Applications/Utilities.

Here’s a good tutorial with screenshots on using Keychain Access. And here are Apple’s instructions:

To display your passwords in Keychain Access:

  1. Open Keychain Access, located in the Utilities folder in the Applications folder.
  2. Select a keychain.
  3. Click Passwords in the category list.
  4. Use the Passwords category disclosure triangle to reveal the types of passwords, and then choose a password type.
  5. Double-click a keychain item.
  6. Select the “Show password” checkbox.
  7. Enter your keychain password.
  8. To display your password, click Allow. [Editor’s note: don’t choose Always Allow, or Keychain Access will always diplay that password without entering your master password.]

It’s worth mentioning here that sometimes we encounter problems with the keychain, usually having some application keep asking for the password. This post on the Apple Discussion boards runs through some techniques to address those issues, but the first step is to go to the Keychain Access menu (top left, up by the Apple), and click on Keychain First Aid. Enter your keychain password, and click Repair. If it finds any errors, click Repair one more time. If the errors are intractable, refer to the post on Apple Discussions.

For Your Eyes Only

Now, one feature of Keychain Access that’s frequently overlooked is Secure Notes. Too often, we’ll run into someone who has put private information someplace way too public, say the address book, or in Stickies. I try not to let abject horror that I’m feeling show on my face, but I pretty quickly move into a discussion of how to protect your computer and phone from unwanted eyes — turning off automatic login, and setting a passcode lock on the iPhone, at the very least.

Of course, I prefer to keep such data digitally, and passcode-protected, rather than have someone scrawl their passwords on a piece of paper. That’s where Secure Notes comes in. Apple’s instructions:

  1. Open Keychain Access, located in /Applications/Utilities.
  2. Click Show Keychains if the Keychains list is not open, then select the keychain you want to use (if your keychain is locked, click the lock icon then enter your keychain password to unlock it).
  3. Choose File > New Secure Note Item.
  4. Type a name for the note that will help you remember what it is.
  5. Type the information you want to preserve in the Note box, or paste text you’ve copied or cut from another document.
  6. Click Add.

Is there another way?

You bet. I recently started using the awesome app 1Password — $39.95 from Agile Web Solutions — and I’m thoroughly impressed with it. These are the distinctions Agile makes between their program and the Mac keychain scheme:

  • Store and provide easy access to more than one account for any website.
  • Correctly handle financial websites which often disable storing passwords in Safari’s AutoFill.
  • Integrate with multiple browsers, including Safari, Fluid, Firefox, DEVONagent, OmniWeb, NetNewsWire, Flock, Netscape Navigator, and Camino.
  • Eliminate the need to synchronize your data between browsers.
  • Support multiple identities, such as personal and business identities. You can even create fake identities for websites you do not trust.
  • Fill credit card information with one click.
  • Import information from a multitude of sources.
  • Integrate a strong password generator directly into the browser for quick and painless generation of super strong passwords.
  • Sync your information to the iPhone/iPod touch, as well as Palm devices.

That iPhone sync is great, because I use a different password for almost every service, so in the unlikely event someone tried to torture my passwords out of me, they’ll never get them all. Bwaaa-ha-ha-[cough-cough]!

The sync with Firefox is also stellar. I kinda like that Firefox has its own password-storage system, just because it maintains their cross-platform paradigm, but I definitely do not like that they don’t have it protected with a master password by default, unless you turn it on: Firefox > Preferences > Security > “Use a master password”:

1Password installs useful plug-ins all over the place. You get a button in the Firefox toolbar, several menu items in Safari’s Edit menu and Firefox’s View menu, and a contextual menu item in Safari and Firefox (and others, I’m sure). I just entered my credit cards as “Wallet Items,” so my browsers can fill in that info quickly without my dragging leather outta my pocket. (Did that come out wrong?)

Check out this short video for more info.

One more option: I’ve heard a lot of good things about LastPass, which does many of the same things as 1Password, and it’s free, although there is a Premium version. The only thing about LastPass that makes me a little nervous is that it synchronizes your data via the LastPass web site. Now, I sync my 1Password database via Dropbox, but I use different passwords for Dropbox and 1Password, so if someone hacks my Dropbox account (heaven forfend!), they won’t be able to get at my other passwords. As we’ve seen, no site is forever secure, and I want to be at least doubly sure my password database is tight.

Bookmarklets for your fun and convenience

I’ve come late to the game of public — or “social” — bookmarking using Delicious, but it’s so freaking useful. Instead of adding a bookmark to Safari or Firefox, I post it to Delicious, where I can tag it with multiple categories, and share it. A friend and I are planning a trip, so as I collect relevant pages, I can save them on Delicious, tag ’em with “triptowherever”, and then me and my pal can always go to http://delicious.com/jjmarcus/triptowherever to see what each other has found.
Now, if I’m surfing in Firefox, I can use the great Delicious plug-in. Safari, however, isn’t as easily extensible as Firefox, and regardless of the browser, one can get some nifty functionality using bookmarklets: little bits of JavaScript that can take information from your current browser page and perform some quick action with it. Adding a bookmark to Delicious is an excellent example.

(I should mention that I do use some fantastic Safari extensions such as SafariStand and Inquisitor; find a full list at PimpMySafari. But I digress…)

In this post, I’m going to forego writing instructions for creating bookmarklets, but I will list the ones I have found useful so far. PimpMySafari has a long list of these, too.

Here are mine (the links contain the code):

I put them all in a folder in my Bookmarks Bar, for quick access.

San Antonio realtors can switch to Mac

I meant to put this out sooner:
The San Antonio Board of Realtors contracted an MLS developer to allow agents and other members to use Firefox and mobile browsers, such as that of the iPhone, to browse real estate listings. This is a huge deal for this market, and potentially for our business.