Difference between revisions of "Mac OS X"

From ivc wiki
Jump to navigationJump to search
(New page: == Tricks == === Disable sudden motion sensor === The motion sensor is great to save the hard drive if the machine is ever to fall a fair height or be struck, but it also can make the he...)
 
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Tricks ==
== Tricks ==


Line 11: Line 10:
# To disable the sensor use ''sudo pmset -a sms 0'', where 0 is disable and 1 enable
# To disable the sensor use ''sudo pmset -a sms 0'', where 0 is disable and 1 enable
# The change is permanent until the pram and maybe the SMC is reset
# The change is permanent until the pram and maybe the SMC is reset
'''Reference:'''
* [http://support.apple.com/kb/HT1934 Apple Portables: Advanced tips for Sudden Motion Sensor]
=== Turn off lid wake ===
To protect the hard drive and prevent it from accidently spinning up if the lid is slightly open when it's in a bag, turn off ''lidwake''.
# Open the Utilities folder, find Terminal
# To disable wake on lid open, use ''sudo pmset -a lidwake 0'', where 0 is disable and 1 enable
# The change is permanent and will evidently persist over the pram and SMC reset
=== Make current folder default search ===
For some reason the default search source folder is "This Mac" when CMD+F is issued. I would argue that you're more interested in the content of the current folder where you issued the command than the entire hard drive.
# Open a Finder window, select "Finder" and "Preferences"
# Go to "Advanced" and under "When performing a search", pick "Search the Current folder"
Now it's quicker to search a folder for specific files.
=== Show file extensions ===
Default behavior is to not show file extensions, for better file management disable hidden filename extensions in Finder.
# Open a Finder window, select "Finder" and "Preferences"
# Go to "Advanced" and check "Show all filename extensions"
=== Require password after sleep or screen saver ===
To avoid friends messing around with the machine, require the account password when waking-up from sleep or deactivating the screen saver.
# Open System Preferences, open Security
# Check "Require password [immediately] after sleep or screen saver begins"
=== Enable 64-bit kernel in Snow Leopard ===
By default the 32-bit kernel will be loaded when booting Snow Leopard, holding two keys during the boot will switch to the 64-bit kernel (until the next reboot).
# (Re-)start the machine
# Hold the letter keys "6" and "4", as in 64-bit
# On the firt boot, the mouse and keyboard might not respond (at least on my 2008-unibody Macbook Pro)
# Open Sytem Profiler, under Software, check if "64-bit kernel and extensions" is enabled
'''Reference:'''
* [http://news.cnet.com/8301-13579_3-10320314-37.html?part=rss&subj=news&tag=2547-1_3-0-20 64-bit Snow Leopard defaults to 32-bit kernel]
=== Mac OS X Installation from Hard Drive ===
If the optical drive is busted or you want to quickly install OS X, put the OS X Installation disc on a external hard drive and boot from that drive.
# Create a dmg-image of the Installation disc using [http://www.bombich.com/software/index.html Carbon Copy Cloner]
# Open Disk Utility and pick the external drive from the menu on the left to put the image on
# Go to the Restore tab and click Select and find the dmg-image
# Eject the external hard drive, it will be greyed out in Disk Utility but still available
# Second, drag the external hard drive icon from the list on the left to the Destination field
# Check Erase drive and click Restore, after a few moments, 30-40 minutes, the image will be successfully dumped to the drive
# Once done, shutdown and replace the old system drive with a new one if necessary and press power to start-up
# Hold the Option key (the one between CMD and CTRL) to enable the boot screen where the available boot drives will show up
# Select the Installation disc and follow the standard installation process
To use Disk Utility, do the following steps:
# Mount the .dmg image
# Open Disk Utility and pick the .dmg mounted disk from the left list
# Choose Restore and drag the USB drive to Source
# Click Restore and enter the admin password
# Reboot and hold the Option key to boot from the new drive
''' References:'''
* [http://www.macosxhints.com/article.php?story=20051227162152292&lsrc=osxh Create a hard-drive based OS X installer]
=== USB to SSD Install ===
By following the steps above, it's possible to install OS X in 18 minute from start to finish (install boot-up to desktop). The install itself, where it copies the files, takes 13 minutes. After the install is finish, the machine boots to desktop in mearly 35 seconds, that's 5 seconds for the screen to power-on, 13 seconds before the grey Apple logo appears. Everything feels snappy, but not intensely so.
This was tested on a Western Digital 250 GB USB harddrive and an Intel XM25-M Gen2 SSD drive. The Mac is a Macbook Pro first rev Unibody 2.53 GHz 4 GB memory.
Applications like Safari, iChat, iTunes, System Preferences, all start in a single bounce after they're set-up. Check the [http://db.xbench.com/merge.xhtml?doc1=443386&doc2=1&setCookie=true Xbench-mark here].
'''Update:''' Another OS X installation on OCZ Vertex 2 E 120GB SSD finished in 8 minutes, from "Install" confirmation screen to "Complete" screen.

Latest revision as of 12:07, 4 July 2012

Tricks

Disable sudden motion sensor

The motion sensor is great to save the hard drive if the machine is ever to fall a fair height or be struck, but it also can make the heads park more often than necessary.

To disable the sensor:

  1. Open the Utilities folder, find Terminal
  2. Enter sudo pmset -g to see the current system settings, sms indicates Sudden Motion Sensor and is normally 1
  3. To disable the sensor use sudo pmset -a sms 0, where 0 is disable and 1 enable
  4. The change is permanent until the pram and maybe the SMC is reset

Reference:

Turn off lid wake

To protect the hard drive and prevent it from accidently spinning up if the lid is slightly open when it's in a bag, turn off lidwake.

  1. Open the Utilities folder, find Terminal
  2. To disable wake on lid open, use sudo pmset -a lidwake 0, where 0 is disable and 1 enable
  3. The change is permanent and will evidently persist over the pram and SMC reset

Make current folder default search

For some reason the default search source folder is "This Mac" when CMD+F is issued. I would argue that you're more interested in the content of the current folder where you issued the command than the entire hard drive.

  1. Open a Finder window, select "Finder" and "Preferences"
  2. Go to "Advanced" and under "When performing a search", pick "Search the Current folder"

Now it's quicker to search a folder for specific files.

Show file extensions

Default behavior is to not show file extensions, for better file management disable hidden filename extensions in Finder.

  1. Open a Finder window, select "Finder" and "Preferences"
  2. Go to "Advanced" and check "Show all filename extensions"

Require password after sleep or screen saver

To avoid friends messing around with the machine, require the account password when waking-up from sleep or deactivating the screen saver.

  1. Open System Preferences, open Security
  2. Check "Require password [immediately] after sleep or screen saver begins"

Enable 64-bit kernel in Snow Leopard

By default the 32-bit kernel will be loaded when booting Snow Leopard, holding two keys during the boot will switch to the 64-bit kernel (until the next reboot).

  1. (Re-)start the machine
  2. Hold the letter keys "6" and "4", as in 64-bit
  3. On the firt boot, the mouse and keyboard might not respond (at least on my 2008-unibody Macbook Pro)
  4. Open Sytem Profiler, under Software, check if "64-bit kernel and extensions" is enabled

Reference:

Mac OS X Installation from Hard Drive

If the optical drive is busted or you want to quickly install OS X, put the OS X Installation disc on a external hard drive and boot from that drive.

  1. Create a dmg-image of the Installation disc using Carbon Copy Cloner
  2. Open Disk Utility and pick the external drive from the menu on the left to put the image on
  3. Go to the Restore tab and click Select and find the dmg-image
  4. Eject the external hard drive, it will be greyed out in Disk Utility but still available
  5. Second, drag the external hard drive icon from the list on the left to the Destination field
  6. Check Erase drive and click Restore, after a few moments, 30-40 minutes, the image will be successfully dumped to the drive
  7. Once done, shutdown and replace the old system drive with a new one if necessary and press power to start-up
  8. Hold the Option key (the one between CMD and CTRL) to enable the boot screen where the available boot drives will show up
  9. Select the Installation disc and follow the standard installation process

To use Disk Utility, do the following steps:

  1. Mount the .dmg image
  2. Open Disk Utility and pick the .dmg mounted disk from the left list
  3. Choose Restore and drag the USB drive to Source
  4. Click Restore and enter the admin password
  5. Reboot and hold the Option key to boot from the new drive

References:

USB to SSD Install

By following the steps above, it's possible to install OS X in 18 minute from start to finish (install boot-up to desktop). The install itself, where it copies the files, takes 13 minutes. After the install is finish, the machine boots to desktop in mearly 35 seconds, that's 5 seconds for the screen to power-on, 13 seconds before the grey Apple logo appears. Everything feels snappy, but not intensely so.

This was tested on a Western Digital 250 GB USB harddrive and an Intel XM25-M Gen2 SSD drive. The Mac is a Macbook Pro first rev Unibody 2.53 GHz 4 GB memory.

Applications like Safari, iChat, iTunes, System Preferences, all start in a single bounce after they're set-up. Check the Xbench-mark here.

Update: Another OS X installation on OCZ Vertex 2 E 120GB SSD finished in 8 minutes, from "Install" confirmation screen to "Complete" screen.