Blog Archives

How-To: Use Time Machine Over a Network

I love Time Machine for its simplicity and the fact that it’s free. Apple did the right thing in creating a backup utility that was integrated into the OS and was actually useful. Anyone who has fought with Windows Backup can tell you, this has been needed for a long time. Apple created a beautiful backup  utility and then made money on hardware that seamlessly works with it. For the home user, nothing could be more simple.

In the office environment however, users tend to backup to server shares and not local external drives. So, let’s take a look at how to use Time Machine over a network.

Setting it Up

It’s easy to do this in Leopard Xserve by sharing a backup folder. Under Server Admin, you can check the box “Enable as Time Machine backup destination.”

This worked great in Leopard but in Snow Leopard, Time Machine no longer saw this as an available destination. Luckily, changing a property for System Preferences solves this.

Enter this command in Terminal:

sudo defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

This tells Time Machine to treat network shares as possible backup locations. Now, when I go to select a disk in the Time Machine preferences, I see my mounted AFP share listed.

Restoring

So that’s how you get the Time Machine backup working, but what about restoring. Most people don’t test the restore functionality but it’s the most important thing you can do. To restore a Time Machine backup over an AFP connection,  first boot off the Snow Leopard install DVD. Then, Launch Terminal by clicking on the Utilities menu. In the terminal window, type the following commands.

mkdir /Volumes/TimeMachine
mount -t afp user:password@afpserver.local/ShareName /Volumes/TimeMachine

This will mount your AFP share and make it available to restore from. Quit Terminal and then run “Restore from Backup” from the Utilities menu. You will see your backup listed and you should now be able to restore from it.

Time Machine is a very nice utility and if you aren’t using it, you should be. I even have other Xserves backing themselves up to this share using Time Machine. Sure, there are third-party applications out there can do so much more, but I’m for just getting the job done. Integration with the OS is also important to me. It’s the main reasons I use Safari as my main browser. As with all backup solutions though, you need to test the restore functionality once in a while. If anything, you might sleep better at night knowing your data is not only safe but recoverable.

How to Build a Hackintosh with Snow Leopard, Start to Finish [How To]

Two years ago, I detailed how to build a Hackintosh for under $800—then covered how to do the same with less hacking. Now that Snow Leopard’s out, we’re revisiting the Hackintosh, building a Hack Pro from scratch for roughly $900.

For folks eager to try a Mac but never wanted to plunk down the high price tag to get it, the Hackintosh—that is, a regular PC tweaked to run OS X—has always been an attractive option. That said, it's not something you should take on lightly unless you're willing—even enthusiastic—to build and maintain a PC entirely from scratch. I can't guarantee it'll be easy, but if you follow this guide step-for-step (it's exhaustive) and stick with the same (or at least roughly the same) hardware as I am, I can vouch for a rock solid system that also happens to cost a good deal less than you'd pay for a comparable Mac.

Price Comparisons

Most Hackintosh enthusiasts will say you shouldn’t build a Hackintosh primarily to save money, as it’s more than just an insert-disc-and-click install. Still, I always enjoy looking at the price differences between my Hackintosh and Apple’s current offerings. At the moment, the cheapest Mac in the Apple store is a Mac mini sporting a 2.0GHz Core 2 Duo processor, 1GB of RAM, and a 120GB hard drive. For $300 more, I’m running a 3.0GHz Quad-Core processor, 8GB of RAM, a 1TB hard drive, and a damn saucy video card. I could have made this build much cheaper by skimping on hardware and still ended up with a great little machine, but I liked aiming for around the $800 price point from my last build—plus I really wanted to make it fly.

The most expensive iMac, by comparison, has only a 3.06GHz Core 2 Duo with 4GB of memory for $2,200 ($1,300 more than my build, but it is built into a monitor), while the cheapest Mac Pro has a single 2.66GHz Quad-Core processor, 3GB of RAM, and a 640GB hard drive—and it costs $2,500 ($1,600 more than mine, though it’s a different and better processor and DDR3 rather than DDR2 RAM). In short, my $900 “Hack Pro” sports nearly as good or better hardware than any Mac that Apple sells short of the $3,300 8-Core Mac Pro (which can, incidentally, get more expensive, but it won’t get much better).

The Hardware

You can find plenty of hardware capable of supporting OS X on a Hackintosh—there's no definitive build—but we're not going to go into that here. I've put together a list of hardware that I'm using and that I can guarantee will (or at least has) run Snow Leopard like a dream.

Here’s a link to everything I bought over at Newegg:

The Build

Rather than detail every step necessary to put the actual pieces of your new computer together (this guide already reads like the Bible as is), I’m just going to point you to our first-timer’s guide to building a PC from scratch. Do your building, make sure everything’s booting up as it should be (i.e., you can boot the computer to the point where it does nothing, because you have nothing installed on it), then let’s move on.

What Else You’ll Need

Assuming you’ve purchased all the necessary parts for your build (linked above), you’ll still need a few other things before you get started:

  • A USB thumb drive that’s at least 8GB in size (I’m using this 16GB Corsair drive, but obviously any sufficiently sized thumb drive should do just fine.)
  • A copy of the Snow Leopard Install DVD. You can use the $29 “Upgrade” disc to install, even though this is a fresh installation. Note: If you feel like being completely honest, go ahead and buy the Mac Box Set—though, honestly, Apple's practically made it hard *not* to buy the fully functional install disc.
  • Another Mac to do some Terminal work on. (You’ll only need this other Mac for a few steps. I used my MacBook Pro, but you could also borrow a friends for an hour or so, too.)

Step One: Prepare Your Thumb Drive

We’re going to be installing Snow Leopard to your Hackintosh from your thumb drive rather than from the Snow Leopard install DVD, since in order to run the installer on your PC to begin with, you’ll need to slightly customize the way the installer is loaded. (More specifically, we’ll be loading a custom bootloader onto the thumb drive that will make booting into the install work like a charm.*)

So first things first: You need to format your thumb drive and then turn your Snow Leopard install disc into a disk image on your desktop. Here’s how to do it:

  1. Launch the Disk Utility application on your borrowed Mac (located at /Applications/Utilities/Disk Utility)
  2. Format and partition your thumb drive: Insert your thumb drive; after a second, it should show up in the Disk Utility Sidebar. When it does, (1) click on it, then (2) click on Partition. (3) Choose 1 Partition from the Volume Scheme, (4) give it a name (I called my HackintoshInstall) and select Mac OS Extended (Case-sensitive, Journaled) from the Format drop-down. Now—and this is important—(5) hit the Options button and make sure GUID Partition Table is selected as the partition scheme. Once you've made sure to set all the appropriate settings, just (6) click Apply and Disk Utility will get to partitioning your thumb drive.
  3. Copy the Snow Leopard Install DVD image to your hard drive: In the following step we’ll be turning your thumb drive into a Snow Leopard Install drive, but before we do that, we need to get the installer off your DVD and onto your hard drive. To achieve this, insert the Snow Leopard DVD. When it shows up in the Disk Utility sidebar, (1) click on it, then (2) click New Image in the Disk Utility toolbar. Choose where you want to save it (for the sake of convenience, I put it on my Desktop), then click the Save button. Now go grab yourself a cold drink. This will take some time. When it finishes, move on to the next step.
  4. Restore the Snow Leopard Install disk image to your thumb drive: Now, in Disk Utility, (1) click on HackintoshInstall (or whatever you called your partitioned thumb drive) and (2) click on Restore. (3) Drag and drop Mac OS X Install DVD.dmg from the sidebar to the Source field, then (4) drag and drop your thumb drive from the sidebar to the Destination field. Now simply (5) click on Restore and enter your password when prompted. Disk Utility will take everything on the Snow Leopard Install DVD and restore that image to your thumb drive—since, like I said above, we'll be installing Snow Leopard from our thumb drive instead of the DVD. Again, go grab yourself another drink; this will take a few minutes. When it finishes, your thumb drive has basically been turned into a Snow Leopard installation drive.

As I said earlier, the thumb drive needs a little finesse before you can boot the Snow Leopard installer on your PC hardware; let’s apply that finesse now.

Warning: Semi-heavy Terminal work ahead. It’s not that difficult, and I’ve gone into a lot of detail to make it as easy to follow along as possible, but if you’re not at least a little comfortable with the command line, it may make you pretty uncomfortable. Beg or borrow a command line geek for an afternoon, if needed.

  1. Make sure your thumb drive is still plugged in, open Terminal (/Applications/Utilities/Terminal) and type in:
    diskutil list


    We’re interested in two pieces of information here. The first is the root identifier for your thumb drive (mine looks like disk2, as you can see in the screenshot). The second is the specific identifier for the portion of the thumb drive that contains the Snow Leopard installer. (Again, see the screenshot.) In my case, the first is disk2 and the second is disk2s2. Yours may vary depending on how many disks are on your system. Copy your identifiers down somewhere. We’ll need them later.

  2. Head to the Chameleon homepage, find the Latest Releases section of the site’s sidebar, and download the latest version of Chameleon. (As of this writing, it’s Chameleon-2.0-RC2-r640.) Uncompress the download and move the Chameleon folder to someplace that’s easy to access. I’m putting it on my Desktop.
  3. Now, in Terminal, cd to the i386 folder of the Chameleon folder. On my Mac, the command looks like this:


    (1)

    cd /Users/adam/Desktop/Chameleon-2.0-RC2-r640-bin/i386/

    Yours should look similar if the Chameleon folder is on your Desktop, except your username should replace mine. (Quick shortcut: In Terminal, type cd , then drag and drop i386 folder inside Chameleon-2.0-RC2-r640 to Terminal.) Hit Enter.

  4. You’re going to be running a couple of Terminal commands that will use Chameleon to make your thumb drive friendly to booting up the OS X installer. They are, as follows:

    (2)

    sudo fdisk -f boot0 -u -y /dev/rdisk2

    IMPORTANT: On your computer, replace rdisk2 with whatever you copied down above. In my case, the thumb drive’s root identifier was disk2, so /dev/rdisk2 is as it should be.

    After you type in that command and hit Enter, you’ll need to enter your user password to execute it. Do so, then execute the following command, again paying special attention to the disk identifier we took note of above:

    (3)

    sudo dd if=boot1h of=/dev/rdisk2s2

    IMPORTANT: As I noted, my Snow Leopard partition was disk2s2, so that command is right for me. You should replace the disk2s2 portion of the command with whatever you noted as the portion of your thumb drive that contains the Snow Leopard installer.

  5. Now we’re going to place an awesome, custom EFI bootloader on your thumb drive that lets us load into the installer (and into Snow Leopard in general). So first, head over to netkas.org and download the bootloader from the bootloader link. Make sure you download it somewhere convenient. (Again, I’ve just downloaded it to my Desktop.)

    Now head back into Terminal, where we’re going to copy the boot file to your thumb drive. (One might think that you could just do this using Finder via drag-and-drop, but in this case, doing it via Terminal is necessary.) So, in Terminal, your command should look similar to this:

    sudo cp /Users/adam/Desktop/boot /Volumes/HackintoshInstall

    The easiest way to do this is simply type in sudo cp , (1) drag and drop the boot file into Terminal, then (2) drag and drop your mounted thumb drive from the desktop into Terminal. (The drag-and-drop method is a quick Terminal trick that pastes the full path to each file or directory.) After that, simply hit Enter. (Enter your password if necessary.)

  6. I know it seems like we’ve already run a marathon, but you’ve got one last step and then it’s relatively smooth sailing from here on. Download Extra.zip, unzip the file, and then drag and drop the Extra folder into your thumb drive. Nothing fancy, a simple drag and drop with your trusty old mouse will do. Once you’ve done that, open up your thumb drive and verify that it looks something like the screenshot below. (Notice the Extra folder, the boot file, and the OS X installer.)

Take a deep breath. By this time, you’ve completed all the hard work. Now it’s time to boot up your machine, tweak your BIOS settings so they’re ready for your OS X install, and then it’s smooth sailing.

Step 2: Set Your BIOS

Before you can boot into or install OS X on your Hackintosh, you’ve got to make some small adjustments to your BIOS. Rather than taking you step by step through every change you need to make, I’ve simply snapped a picture of the relevant BIOS screens and added some notes. Just click through these images and make sure your BIOS settings match up.

Step 3: Install Snow Leopard

If you've made it this far, the hard part is over. Now it's time to install Snow Leopard, which—unlike what we've done so far—is extremely easy.

Make sure you’ve set the boot priority in your BIOS to boot from your thumb drive (you can see how in this pic), then simply plug your prepared thumb drive into your Hackintosh and power it up. Since screenshots aren't really an option—and since it's a fairly easy process—my install instructions come in video format:

The quick version goes like this: Boot into the Snow Leopard installer, format the hard drive you want to install Snow Leopard to (go to Utilities -> Disk Utility, then click on the drive, select 1 Partition, Mac OS X Journaled (Case-Sensitive Update: Several readers have suggested that case-sensitive formatting can cause problems with some applications, like Adobe’s Creative Suite, so you may be better off sticking with plain old Mac OS X Journaled.), give it a name, and make sure GUID Partition Table is set in the Options. After you Apply the new partition, go back to the installer and install like normal to that drive. When you reboot after the install completes, press the arrow keys at the graphical boot menu and select the drive you just installed Snow Leopard to.

A Few Final Tweaks

You’ll notice that, the first time Snow Leopard boots up, you’re not enjoying any sound along with that snazzy intro video. We’ve got one small, but very simple tweak to make to get sound up and running. Here’s how it works:

  1. Download the Kext Utility, then download this audio kext (a kext is kind of the Mac equivalent of a driver) and unzip it to your Desktop. Once you’ve got both in front of you, drag and drop the ALC889.Fix.kext file onto the Kext Utility. You’ll be prompted to enter your password, so go ahead and do that when you’re prompted.
  2. Once the Kext Utility finishes running, open up Disk Utility (/Applications/Utilities/Disk Utility.app). Once it loads up, (1) click on your Snow Leopard drive (mine’s called Hack Leopard), then (2) click Repair Disk Permissions.
  3. Once Disk Utility finishes repairing your disk permissions, just restart. After your computer reboots, your audio should be working like a charm. (If not, open up Sound in your System Preferences and try changing the Output device.)

As things stand on your system right now, you need to have your thumb drive plugged in every time you reboot in order to load the bootloader that allows your Hackintosh to load OS X. There are certain benefits to this (for example, right now you could quite likely unplug this hard drive from your Hackintosh, plug it into a Mac Pro, and it would work just fine), but it can also be a bit of a hassle. At this point, though, you can load the bootloader and other necessary components onto the Snow Leopard hard drive and change that drive to your primary boot drive in your BIOS. All you’ve got to do is head back to the step-by-step bootloader guide above and repeat every step, except this time you’re applying each step to your hard drive rather than your thumb drive.

Congratulations! You’ve Got a Fully Functional Hackintosh

“But for realz,” you ask, “does it actually work well?”

I’ve been using one or another Hackintosh as my main computer for two years now, and while I’ve run into the occasional bump in the road, they’ve generally run extremely well. In fact, things just seem to keep on getting better and better, and the current build I’m running (the one I walked you through above) feels like the fastest, most stable build to date.

That's not to say that you won't experience an occasional kernel panic—you may very well. But I get crashes on my MacBook Pro, too, and I've never felt that my current Hack Pro has any more problems than any other proper Mac I've used on a regular basis. That may seem a bit crazy, but it's true.

As for upgrading—often, you'll be able to upgrade your Hack Pro without any problems. That said, it's something you normally need to check on beforehand, and you should take all of the upgrade precautions before giving it a go.

I’m planning on letting readers know how my Hack Pro handles various 10.6.x updates shortly after they happen, though, and if it requires a little extra work, I’ll show you how to handle it.


Let's hear your thoughts—whether you've dabbled in the world of Hackintosh, are interested in doing so, or just think it's plain crazy—in the comments.

Adam Pash is the editor of Lifehacker; he loves a good hack, cherishes his Macintosh, and craves a Mac Pro, so building a Hack Pro was a perfect fit. His special feature Hack Attack appears on Lifehacker. Subscribe to the Hack Attack RSS feed to get new installments in your newsreader.

* OS X boots in a different way than, say, Windows, using a boot tool called EFI (Extensible Firmware Interface). On store-bought Macs, EFI is loaded on the hardware by default (in fact, in place of the standard BIOS most of us are used to). In order to boot OS X on our non-factory Macs, we need to create our own custom path to EFI.

Huge thanks to stellarola, Onetrack, and weaksauce12 for all their help in getting me up to speed on installing Snow Leopard on a Hackintosh PC. The Hackintosh community is large and active, and they are awesome.






Clean Up and Revive Your Bloated, Sluggish Mac [Mac OS X]

A few years back you dropped significant cash to switch over from the virus-laden world of Windows to a shiny new Mac, but over time it’s gotten slow and crufty. Let’s clean it up.

Before you get started uninstalling this and deleting that, do yourself a favor: hook up an external drive to your Mac and back everything up with Time Machine or any other free alternative. The last thing you want is for your “clean up” to turn into “holy crap where did all my Documents go.”

Ready? Let’s get started. (PC user? You want this article.)

Find the CPU and Memory Hogs in the Activity Monitor

First things first. If your Mac is acting like a petulant three-year-old, dragging its feet, crossing its arms, and refusing to do what you ask in any reasonable amount of time, it's time to fire up the Activity Monitor (in Applications > Utilities). Here you'll see a list of running applications and processes. Sort the columns shown in the screenshot to find out what apps are hogging the most CPU time (Firefox, in this case), what apps are for Intel or PowerPC (it's a good idea to use Intel-only apps on Intel Macs), and what apps are running at all. If there are processes running for software you don't need, note them down. Also, if an app is a runaway CPU and memory hog, quit it and restart for immediate relief.

Clean Up Your Startup

Whether or not the Activity Monitor is showing processes you don’t recognize, it’s a good idea to audit what programs start up automatically when you log onto your Mac. In System Preferences, Accounts (I know, unintuitive placement), click on the Login Items tab. From there, make sure each and every app listed is something you need and use. If it isn’t? Just select it and click the minus (-) sign. (Rule of thumb: Generally you want to keep things called “SomethingHelper” where Something is an app you use, like iTunes or Growl, as shown.)

Uninstall Unneeded Apps (and Related Files)

Just like your Login Items, you want to cruise through your Applications folder and trash anything you don’t need or use any more. To be clear, this won’t speed up your Mac, but it will reclaim hard drive space.

Before you get to dragging and dropping unneeded applications to the trash, though, it’s a good idea to install a, well, uninstaller program. Strangely Apple still hasn’t shipped a proper uninstaller with Mac OS X, but a few free and pay-for apps will clear out related files when you send an application to the Trash. While the irony of having to install something in order to uninstall something isn’t lost on us, keep in mind: your Mac will be fine if an extra plist file gets left behind by an app you once used.

But, in case you’re a neat freak, you want to check out the likes of AppTrap (free, our review), AppDelete (used to be free, now requires a minimum payment of $5 after a few uses, our review), or AppZapper ($13, our review).

Personally I prefer Hazel, which will set you back $22 for a license—however, in addition to clearing away application files on uninstall, Hazel can make your Mac self-cleaning, too, which makes it worth the cost.

Do Some Maintenance

Now it's time to make sure your disks are in tip-top shape, and luckily, you can do this without any extra software. Simply run Disk Utility (in Applications > Utilities) to verify and repair disk permissions (which determine what apps can do what with what files on your Mac) and verify and repair the disk itself. These operations take some time, and you can't do them while other applications are running, so set 'em in motion before you head out to lunch or to grab coffee.

To run some more hardcore and detailed maintenance tasks, download the free OnyX (our review). While OnyX does lots of fun Mac customization (see the Parameters tab for that stuff), you want the Maintenance and Cleaning tabs. There you can do things like manually run your Mac’s daily, weekly, and monthly maintenance scripts (which don’t on their own if you shut down your Mac at night), and clear out log files and system caches. You can also fix system application-specific issues, by rebuilding Spotlight’s or Mail’s index, if those apps are acting particularly wonky.

Reclaim Hard Drive Space

While you’re on a cleaning spree, figure out exactly what’s taking up all that space on your Mac with a visual tool that maps what’s what. Disk Inventory X (free, our review), is your best bet in this area: it creates what’s called a “tree map” of your hard drive usage that will unearth things like 10 gigabytes of video files you just don’t need any more.

To get down to the unneeded-megabyte level, Macworld has some detailed advice for where to find redundant system files and Dashboard widgets. You can also reclaim space taken up by unneeded language files using the free Monolingual (our review).

Care for and Troubleshoot Your Battery and Memory

If you’ve got a Mac notebook and you’re having trouble with your battery, a few troubleshooting techniques might help. First, to get the longest life out of your battery, calibrate it to make sure your life-o-meter is giving you the right readings.

If your Mac’s battery is cutting out before issuing the “You’re running out of power” warning, you want to reset the SMC or PMU, which cleared up that very problem on my MacBook.

Finally, some problems can be resolved by resetting your Mac’s PRAM and NVRAM—but this is generally a last-resort just-short-of-the-Genius-Bar troubleshooting technique for that inexplicable problem your Mac's having.

Beef Up Your Memory and Get the Latest System Updates

This should go without saying, but the more memory your Mac has, the snappier it will be. If you’re thinking about an upgrade and you’ve got a MacBook, check out Adam’s guide to adding RAM to your Mac.

Also, it's generally a good idea to stay up-to-date with OS X patches and versions—and normally Software Update runs on its own and does just that. (Note: Yesterday the 10.5.7 update came out, and while I had no problems with it, Gizmodo reports that some people are having issues. As always, back up your stuff continuously to avoid disaster.)

Got any tales of victory or defeat when it comes to cleaning up and speeding up your Mac? Tell ‘em in the comments.

Gina Trapani, Lifehacker’s founding editor, has a MacBook Pro that’s a bit snappier today than it was yesterday. Her weekly feature, Smarterware, appears every Wednesday on Lifehacker. Subscribe to the Smarterware tag feed to get new installments in your newsreader.





Build a Hackintosh for under $240 [Hackintosh]

Industrious tinkers at eclectic technology blog UselessNinjas have put together a guide to building a sub-$240 computer to run Mac OS X.

Last year Adam showed you how to build your own Hackintosh, the build at UselessNinjas continues in that spirit of installing OS X on non-Apple hardware. They use an extremely small desktop computer from MSI, the same manufacturer that built the hackintosh friendly MSI Wind Netbook we looked at a few months ago. For the details on their build, check out the full article. Even if you aren’t in the market for a mac-clone, the specs and size on the mini-desktop unit they use for the project look promising for a Linux based XBMC project.






WP Like Button Plugin by Free WordPress Templates