Create a Bootable USB for Mac OS X (El Capitan 10.11 or Yosemite 10.10)

Unknown-4

OS X Yosemite

It’s Mac OS X season again and with that is a new version of Mac OS X. In this case it is Mac OS X 10.10, or what is better known as Yosemite. Most people will upgrade their Mac over the top of their existing OS, which is perfectly fine. However, there are times when OS X needs to be installed on a new (blank) hard drive, or, we simply want to perform a “clean install”. When doing this I prefer to use a bootable USB drive instead of a DVD. This is becoming especially convenient as newer Macs don’t have (or need) an internal DVD drive.

For reference, Apple has a page that covers how to create a bootable USB drive with the OS X 10.9 Mavericks installation files, but leaves out a few of the details discussed here. This should also provide is little context around this being a standard process that is supported by Apple. No hackery here.

What is needed

The process is easy and any Mac user who considers themselves to be semi-technical will be capable of creating a bootable USB drive containing the Mac OS X installation files. And, this does not require downloading any third-party tools or paying for extra utilities. Here is what you need.

  • A Mac with internet access
  • One 8 GB (or larger) USB drive
  • The OS X installation file from Apple (i.e.; “Install OS X Yosemite”)

Downloading the OS X installation file

To create a bootable USB drive for OS X, you first need to download the desired operating system setup file from Apple, such as OS X 10.10 Yosemite. You can search for the OS, “OS X Yosemite”, in the App Store (or using this link) to access it in the App Store directly. Once the download completes, you will see the OS X Install window for Yosemite (or other version), but do not proceed with the install; you need quit the install. You just needed the Install OS X Yosemite application, which should now be in the Applications folder on your computer. For Yosemite, the file name will be Yosemite.app.

Creating the bootable USB drive

Here is what you need to do:

  1. Connect the USB drive to your Mac. Backup any files that may be stored on it before you proceed because this USB drive will need to be completely reformatted.
  2. Format the USB drive, using Disk Utility, as a Mac OS Extended (Journaled) drive, named Yosemite. I suggest not using any spaces to keep a future step simple. This is performed using the Erase tab within the Disk Utility app. Be sure the USB drive does not have multiple partitions (that can happen, so use to the Partition tab to verify and correct this).
  3. Open Terminal. This located in the Applications > Utilities folder.
  4. The following command is used to make the USB drive bootable as well as copying the necessary OS installation files on the USB drive.A couple quick points to help make sense of the command below. The –volume /volume/YosemiteUSB attribute of the command specifies the target drive, the USB drive in this case. The –applicationpath attribute specifies the OS X source installation file that was downloaded earlier. You will also notice the command (createinstallmedia) used to create the installable USB drive is actually contained with Yosemite.app file that was downloaded.Type (paste) the following command

For Yosemite:

sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/YosemiteUSB --applicationpath /Applications/Install\ OS\ X\ Yosemite.app
  • For El Capitan:
sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/ElCapitanUSB --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app
  1. To kick off the process, type in your user password when requested.

This process can take upwards of 30 minutes or more without any indication on the screen it is still processing. Even though it may appear to have locked up, put your worries aside and your patience will be rewarded. The time it takes will vary depending on the speed of your Mac and the USB drive write speed.

Sample log

Below is a log of the terminal screen from when I created my bootable USB drive containing the Yosemite OS X installation files.

Marks-MacBook-Pro:~ Mark$ sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/Yosemite --applicationpath /Applications/Install\ OS\ X\ Yosemite.app
Ready to start.

To continue we need to erase the disk at /Volumes/Yosemite.
If you wish to continue type (Y) then press return: Y
Erasing Disk: 0%... 10%... 20%... 30%...100%...
Copying installer files to disk...
Copy complete.
Making disk bootable...
Copying boot files...
Copy complete.
Done.
Marks-MacBook-Pro:~ Mark$

You should now have a bootable USB drive from which you can boot your Mac and perform a fresh install of the Max OS X operating system.

Force Pairing (Connecting) an Apple bluetooth keyboard to an iPad (iOS device)

How to Force Pairing (Connecting) an Apple bluetooth keyboard to an iPad (iOS device)

Apple devices are common place in my home, and occasionally we like to connect a single shared Apple bluetooth keyboard to one of the iPads. If the bluetooth keyboard was last connected to another device that is within range and turned on, the normal steps to pair a bluetooth keyboard to an iPad will typically not work. The problem is because the keyboard immediately exits pairing mode as it connects to the other, unintended device. This can make the activity of pairing the keyboard to the intended device a bit frustrating.

The solution is easy:
Simply continue to hold the power button down on the bluetooth keyboard after the power LED light begins to flash. This will keep the keyboard in pairing mode and prevent it from automatically connecting to the last device it was paired/connected to.

General steps to pair an Apple keyboard to an iPad:

  1. Turn off the Apple keyboard by pressing the power button for three seconds.
  2. Ensure bluetooth is enabled on the iPad/iOS device you wish to connect: Settings > Bluetooth.
  3. On the Apple bluetooth keyboard, press and hold the power button. After about 5 seconds the keyboard power indicator (LED) will begin to flash indicating the keyboard is in pairing mode.
    1. To force pairing: Keep pressing the power button on the keyboard as you continue.
  4. On your desired iOS device, when the desired “Apple Wireless Keyboard” device appears in the list of discovered bluetooth devices on your iPad/iDevice, tap/select it to connect.
  5. The iPad will then prompt you with a 4-digit code to enter on the keyboard. You can now stop pressing the power button on the keyboard.
  6. On the keyboard, enter the 4-digit code and press the enter/return key. Your iPad should now be connected to the iPad.

I hope this helps.

Below are a few articles I found interesting and useful on using an Apple keyboard with your iPad.

Cheers,
Mark

Shut down or Restart Windows 8 from Remote Desktop

Here is how you can quickly and easily Shut down or Restart a Windows 8 or Windows Server 2012 computer. This works when logged in locally and when logged in via Remote Desktop.

  1. Navigate to the desktop.  Note: When logged in locally, pressing the Windows key will quickly toggle between the desktop and the start screen. When logged in via Remote Desktop, you will need to press Alt + Home to toggle.
  2. Press Alt + F4. This will present the Shut Down Windows dialog allowing you to Switch user, Sign out, Sleep, Shut down, or Restart the computer.
    Mac users: For those of you remoting in from a Mac, the keys are:  fn + Control + Command + F4

Below are examples of the Shut Down Windows dialog when logged in locally and when logged in via Remote Desktop.

Shut Down Windows dialog when logged in locally

Shut Down Windows dialog when logged in via Remote Desktop

Automatically Connect Your Mac to Shared Windows Network Folders

This posting covers how to create a script (application) for your Mac to automatically connect to a shared Windows folder when you login to your Mac.

Creating the Script

  1. Open the Apple Script Editor: Applications > Utilities > AppleScript Editor
  2. Enter the script code below:
    (Note: if you copy/paste this code you may need to re-type all the “double quotes” to correct the syntax.)
  3. Click the Compile button to validate your code.

Script:

tell application "Finder"
if not (exists disk "SHARED") then mount volume "smb://MyServer/MyShare"
end tell

Saving the Script File as an AppleScript file

This will save the script in a format that can later be edited, if you chose to make changes.

  1. File > Save
  2. Specify a name for your script. For example: MapNetworkServers.scpt
  3. File Format: Script
  4. Run Only: Unchecked

Saving the Script File as an Application

This will save the file in an executable format. This is the file that will run at login.

  1. File > Save As
  2. Specify where you want to save your script file, and specify a file name. For example: MapNetworkServers.app. I created a folder called “Commands” in my Documents folder where I store my script and application file.
  3. Set the File Format to Application.
  4. Check the Run Only check box. This will cause the script to run and exit.
  5. Click Save.

You should now have two files:

  • MapNetworkServers.scpt – keep this file so you can modify this script in the future.
  • MapNetworkServers.app – this is the script you will use to configure to execute when you login.

Configure the Script to Run at Login

  1. Go to System Preference > Accounts
  2. Select the appropriate user; the user you want this script to run when they login.
  3. Select the Login Items tab.
  4. Click the “+” button at the bottom of the list of applications to add a new startup application.
  5. Browse to your MapNetworkServers.app file and select it.
  6. You should now see it in the list.
  7. Optional: You can check the Hide check box, if you like. I suggest not doing this until you know your script is working correctly.

That’s it. Your shared Windows server folders should now be mapped automatically when you login.

This sample script only maps one folder, the “MySharedFolder” folder. However, on my home network I have several folders on the same server that exist. If you have previously selected all the shared Windows folders (using Finder > Go > Connect to Server), and provide your login credentials to that server, all the shared folders on that server will appear; which is ultimately what I want anyway. This also allows your script to be shorter and easier to maintain by having to map one shared folder in your script instead of having to write a line of code for each and every shared foler on that Windows server.

Resources:
http://support.apple.com/kb/ht1568

Map Mac Parallels "Delete" key to "Backspace"

pd6fm_half_macbookParallels is a software product that allows users to run Windows 7 on their Mac computer. I must say, it works pretty darn well. The only real annoyance I have encountered thus far is how Parallels maps the “Delete” key. This makes the Delete and Backspace keys confusing. The Apple Mac “Delete” key and the Windows “Backspace” key are located in the same (approximate) location on the keyboard; and both keys even function the same on a Windows computer compared to a Mac computer. They delete the characters to the left of the cursor.

However, for those who use Parallels to host a virtual Windows 7 machine on their Mac computer, the Mac keyboard “Delete” key deletes the characters to the right of the cursor, which was driving me crazy. The user must press fn+Delete to perform the standard Windows backspace to delete the characters to the left. This may only be a problem for people using a Mac notebook keyboard or an external Mac wireless keyboard. I expect this is not a problem for those who use an external Windows keyboard on their Mac – assuming those people even exist.

How to Re-Map the Delete Key in Parallels

Here are the steps to change (re-map) the “Delete” key to the standard Windows “Backspace” key on your Windows 7 machine running in Parallels. I prefer this because it provides a consistent action for the “Delete” key – it always deletes the character to the left of the cursor regardless of whether I’m using Windows (named “backspace”) or Mac OS (named “delete”).

1)  Open the Parallels Preferences. You can find the Preference menu option by holding the “option/alt” button and clicking the red Parallels icon ‘||‘ at the top of your Mac desktop.

2)  Press the “+” button at the bottom of the shortcuts list to add a new ‘shortcut’.

3)  In the “From” key section, press the Mac “Delete” key. The word Delete will appear.

4)  In the “To” key section, select the “Backspace” key in the drop down box.

Now your “Delete” key will perform like a Windows Backspace key, deleting the characters to the left. Remember, you can also press fn+Delete to perform the standard Windows Delete key to delete the characters to the right.

Apple Terminology and Keys

Delete
(deletes the characters to the left of the cursor)
Mac%20Delete

Forward Delete
(deletes the characters to the right of the cursor)
Mac%20fn%20(function)Mac%20Delete

References:

Apple Mac Keyboard

Pasted%20Graphic%202

Windows Keyboard (typical layout)

pc-keyboard-all-gray2