How To Install Windows On Your Mac When All Else Fails

This one is more of a note for me than anything else.

Early Macs (such as our 2007 Mac Mini) have 64 bit CPUs but only support 32 bit UEFI. Things get annoying and complicated when installing dual boot.

This works great to resolve the issue.

http://www.hongkiat.com/blog/install-windows-on-mac/

Running 3 Monitors off an Early 2008 Mac Pro with a Radeon HD 5770

Problem

We had an Early 2008 Mac Pro and decided to finally upgrade the video card. We found an ATI Radeon HD 5770 (Mac version) for a reasonable price. We needed to drive 3 screens from the card but hit some issues.

The Radeon HD 5770 has 3 ports – one DVI port and 2 mini display ports. I was able to drive 2 of the monitors without issue using the DVI port and a Mini DisplayPort to DVI cable. Attempting to use the third port resulted in no video on the third screen.

Googling found many articles about using 3 screens for the 2009, 2010 and mid 2012 Mac Pro models, but nothing official mentioned the early 2008 Mac Pro model. Even worse there were mixed opinions on whether it was possible to drive 3 screens at all.

Resolution

Luckily the solution was pretty simple in this case.

You need to ensure the type of DVI to Mini DisplayPort adapters you are using are active adapters as passive adapters (which I had) will not work for 3 screens.

You will note that in most cases the active adapters cost quite a bit more then the passive ones. In this case I can confirm I bought some cheapies off eBay and these still worked without issue, allowing the Mac Pro to drive all 3 screens at native resolutions.

Mac2008-2 Mac2008-1

Links

eBay auction for mentioned passive adapters

Apple Mini DisplayPort adapter FAQ

Mac Pro (Early 2009, 2010, Mid 2012) – Issues with three displays and multiple DVI, HDMI connections

Mac Pro (Early 2009, 2010, Mid 2012) – Supported display configurations

Mountain Lion IPsec VPN randomly drops out (usually around 45 minutes)

Problem:

I’ve had this issue with both Lion (MAC OS X 10.7) and Mountain Lion (MAC OS X 10.8). I decided to use the built in VPN client to connect to a CISCO VPN using IPsec, however the connection fails at around 45 minutes every time.

[Side note] – If you are looking to use Apple’s inbuilt VPN client opposed to CISCOs on Mac OS X, check out this great article on migrating across

Resolution:

To fix this I found the resolution on Apple’s forums here

Before proceeding remember, the usual disclaimer applied – you are doing this at your own risk, I take no responsibility if your system dies or turns into a pumpkin. I’ve used this method successfully and have had a VPN connection stay connected for over 9 hours. Also if you are not comfortable using the terminal, I wouldn’t recommended attempting this.

Also, this is a hack at best, you will need to make further changes if you have more then 1 VPN profile configured as we change the included config to be static for the VPN you are connecting to, as opposed to whatever is generated when connecting.

  1. Connect to your VPN as you usually would, this generates the racoon config file we need to use.
  2. The configuration file is generated on /var/run/racoon/ and will be a file named after the ip address you are connecting to followed by the extension .conf – for this example I’ve used the invalid address of 255.255.255.255.conf – we need to copy this to /etc/racoon so we can modify it. From a terminal run a command such as:  sudo cp /var/run/racoon/255.255.255.255.conf /etc/racoon
  3. Using the editor of your choice (such as vim or pico – I’ll use vim) from the terminal run: sudo vim /etc/racoon/racoon.conf
  4. Go to the end of the file (in Vim you can do this by pressing shift-g) and remark out the line that reads: include “/var/run/racoon/*.conf” ; To remark out a line, simply add a hash (#) to the beginning of it. The line will then read  #include “/var/run/racoon/*.conf” ;
  5. While the file is still open, under the line you just remarked out, configure a new include using the file we copied earlier. Remember to update the path to the correct config file, depending on the IP address you have in the filename. The new line will look like this: include “/etc/racoon/255.255.255.255.conf” ;
  6. Save the file
  7. Now we must edit the file we copied earlier, again, in your favourite text editor edit the file, remember to update the command to use the correct filename: sudo vim /etc/racoon/255.255.255.255.conf
  8. Once open, look for the line that says dpd_delay xx; xx will be a value, in my case this was 20. We need to change this to 0 (Zero). Update the value so the line now reads: dpd_delay 0;
  9. Next, find the line that states proposal_check xxxx; xxxx will be a word, mine was set to obey. We need to change this to claim. Update the word so the line now reads: proposal_check claim;
  10. Next we need to find all lines in the file (there will be multiple) that state lifetime time xxxx sec; xxxx is a value, mine was 3600. We need to update the value AND the time format (ie, from sec to hours). Update EVERY instance of this line so it reads: lifetime time 12 hours;
  11. Save the file
  12. Disconnect from the VPN session.
  13. Next time you reconnect racoon will use the updated config file and you should find you won’t get disconnected every 45 or so minutes.

Resources:

Original Apple Support Thread

Wincent.com wiki article

Anders.com guide to migrating from CISCO VPN Client to Inbuilt Mac OS X client

Apple Radar bug #12449876

Feedback

If you have any feedback, or if this works for you please leave a comment. Comments keep me motivated to publish more solutions to issues I come across.

iPhoto won’t work in Mountain Lion

On installing iLife ’11 on a new install of Mountain Lion I found that iPhoto won’t run. It advises to check for updates which don’t come up in Software Updates.

The solution is to download 2 updates from Apple’s site.

iPhoto 9.1 Update

iPhoto 9.3 Update (requires iPhoto 9.1)

After downloading and installing these iPhoto runs. Additionally, now when running software updates a new update for iPhoto 9.3.1 appears

 

Renaming a bluetooth keyboard in Mac OS X

To rename a bluetooth keyboard in Mac OS X Lion (10.7) go to System Preferences

Click the bluetooth icon under ‘Internet & Wireless’

Select the Bluetooth keyboard and click the gear icon near the bottom of the preference pane and select ‘Rename’

Enter a new name and click ‘Rename’

 

Please leave all comments/queries in the comments section of this post.

com.google.keystone.daemon appearing in console logs

Background:

You may have checked your Mac OS X console and seen something similar to the following flooding your logs:

7/01/12 10:59:34.698 PM com.apple.launchd: (com.google.keystone.daemon[52566]) bootstrap_register() erroneously called instead of bootstrap_check_in(). Mach service: com.google.Keystone.Daemon
7/01/12 10:59:34.700 PM com.apple.launchd: (com.google.keystone.daemon[52566]) Exited with code: 1
7/01/12 10:59:34.700 PM com.apple.launchd: (com.google.keystone.daemon) Throttling respawn: Will start in 10 seconds

These logs relate to Google’s software updater which keeps any Google software on your system up to date.

Additionally, this uses quite a bit of disk space, as it logs all of this to /Library/Logs/GoogleSoftwareUpdateDaemon.log – my log file was 356 MB, but reading online some users have logs up to 2 GB.

Resolution:

Google’s method

Google’s official response, which can be found here states you need to uninstall ALL Google software and then uninstall the update software using one of the following commands at a terminal (Applications -> Utilities -> Terminal).

Uninstall for a specific user:

~/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resources/GoogleSoftwareUpdateAgent.app/Contents/Resources/install.py --uninstall

Uninstall for the whole system: (needs root access)

sudo /Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resources/GoogleSoftwareUpdateAgent.app/Contents/Resources/install.py --uninstall

Once you’ve done this you should notice two new entries in your console log that looks something like this:

7/01/12 11:00:29.156 PM sudo:   username : TTY=ttys000 ; PWD=/Users/username ; USER=root ; COMMAND=/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resources/GoogleSoftwareUpdateAgent.app/Contents/Resources/install.py –uninstall
7/01/12 11:00:29.315 PM com.apple.launchd.peruser.501: ([0x0-0x1d01d].com.google.Keystone.Agent[276]) Exited: Terminated: 15

This shows I’ve run the command for the system wide uninstall and that the agent process was killed during the uninstall process.

As per Google’s notes in the link provided above, if you attempt an uninstall of the software updater without uninstalling ALL Google applications you will find these may not operate correctly, or that the update software will be automatically reinstalled next time you launch these.

Alternative methods

The methods listed here have been collated from around the internet. I have not tested these. The goal here is to permanently uninstall/disable the Google Software Updater while leaving the Google software (ie. Chrome) installed. If you have had success with any of these methods, or have an alternative method please post this in a comment below.

Twenty Ways: Permanently disable Google Software Update on OS X

  • Involves removing the .plists, creating empty .plist files and updating the permissions on those files. Check the link for exact commands.

Time Sinker: Stopping all OSX Google background ‘updater’ apps

  • Involves renaming .plists and also editing other .plists to stop them loading at launch. Again, checkout the link for exact instructions.
Feedback and Comments

As always, if you have any feedback, or alternative resolutions please post these below.

 

iTunes 10.2.2 crashes after update

Background:

So I’ve just run system updates on my realtively new Early 2011 17″ MacBook Pro only to find that iTunes 10.2.2 will not run and crashes when opening.

 

iTunes 10.2.2 crashes when launched
oh noes!

 

Console logs show the following:

23/04/11 11:04:45 AM	[0x0-0x19019].com.apple.iTunes[233]	objc[233]: Class  is implemented in both /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit and /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit. One of the two will be used. Which one is undefined.23/04/11 11:04:45 AM	[0x0-0x19019].com.apple.iTunes[233]	objc[233]: Class  is implemented in both /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit and /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit. One of the two will be used. Which one is undefined.23/04/11 11:04:45 AM	[0x0-0x19019].com.apple.iTunes[233]	objc[233]: Class  is implemented in both /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit and /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit. One of the two will be used. Which one is undefined.23/04/11 11:04:45 AM	[0x0-0x19019].com.apple.iTunes[233]	objc[233]: Class  is implemented in both /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit and /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit. One of the two will be used. Which one is undefined.23/04/11 11:04:45 AM	[0x0-0x19019].com.apple.iTunes[233]	objc[233]: Class  is implemented in both /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit and /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit. One of the two will be used. Which one is undefined.23/04/11 11:04:46 AM	com.apple.launchd.peruser.501[132]	([0x0-0x19019].com.apple.iTunes[233]) Job appears to have crashed: Bus error23/04/11 11:04:46 AM	ReportCrash[235]	Saved crash report for iTunes[233] version 10.2.2 (10.2.2) to /Users/spathi/Library/Logs/DiagnosticReports/iTunes_2011-04-23-110446_Abed.crash

 

Solution:

Download the 10.6.7 Mac OS X update from Apple and reinstall this. After I reinstalled the update iTunes worked as expected.

Note if you use an Early 2011 MacBook Pro you need to use a specific update file. I have included links to both of these below.

Mac OS X 10.6.7 update

Mac OS X 10.6.7 update for Early 2011 MacBook Pro

 

Feedback:

Please leave a comment if this resolved your issue, or If you are having similar issues and have found an alternative solution, please post the solution you have found.

 

unzip multiple files in linux or mac os x

If you’ve tried to unzip a bunch of zip files via the unix command line using a Linux distro or Mac OS X using the following command you may have come across the following.

The command:

unzip *.zip

displays the error:

caution: filename not matched

The easiest way of fixing this is by adding ‘single quotes’ to the file portion of the command, for example:

unzip '*.zip'

Which will unzip all of the zip files in the current directory.

Mac OS X users: you can access the unix terminal by running Terminal, an application found in Applications -> Utilities.

Taking screen shots in Mac OS X

A simple tip that is often asked – how do I take screen shots (or print screen as it is known in Windows) in Mac OS X?

The screen capture options in Mac OS X are quite robust, offering solutions for not only capturing the entire screen but for capturing windows of running applications, or a manual selection of the screen itself.

It is important to note screen grabs are saved to your desktop as PNG files by default.

For those looking for the commands without more information the list is below. Read on if you would like an explanation.

Command-Shift-3 – Screen shot all displays to PNG files on the desktop.
Command-Shift-4 – Screen shot a specific selection of the screen using the cross hair.
Command-Shift-4 followed by Space bar – Screen shot a running application window.

Adding Control to any of the above will copy the image to your clip board rather then a file on your Desktop.

Below is an overview of the different inbuilt methods.

Capturing the whole desktop

Pressing Command-Shift-3 will capture all desktops (in the case of multiple displays) and place the files on your Desktop. If you would prefer to copy the screen shot straight to you clipboard as opposed to a file on your desktop, add the Control key to the combination above. For example,  Command-Shift-Control-3 – Please note this appears to only copy the primary Display to the clipboard in the case of multiple displays.

Capturing a manual selection of the screen

Pressing Command-Shift-4 will change your mouse cursor into a set of cross hairs. Using this you can click a point on your screen and then drag (while holding down the mouse button) and select the area of the screen you would like to capture. When you release the mouse button the screen shot is taken. As with the previous method you can add the Control key to copy the selection directly to your clipboard. For example, Command-Shift-Control-4 will allow you to select a portion of the screen and place this in your clip board.

Capturing a specific application window

Pressing Command-Shift-4 will bring up the cross hairs as above, now instead of making a selection press Space bar. The cursor will change from the cross hairs to a picture of a Camera. You can move this around the screen and you will note when you hover over an open window it will be highlighted to show it has been selected. From here click on the desired window and it will save this to a PNG on your desktop. As before, you can add the Control key to the mix to copy the selection directly to your clip board rather then to a file. The complete command would like like the following. Command-Shift-Control-4 followed by the Space bar.

I hope you find this information useful, please feel free to leave any questions or comments below.

Shuffling Music videos on AppleTV

I made some of my own Music Videos and put them in iTunes, but found that my AppleTV wouldn’t shuffle these when selecting the Shuffle option in the Music Video section.

After some investigation I found this is caused my an option set for each individual file in iTunes itself.

To fix this find the music video in your iTunes library and right click (or control-click) the file and choose ‘Get Info’.

From there go to the ‘Options’ tab and deselect the ‘Skip when Shuffling’ option and click OK.

Things to note:

If you sync your iTunes library to your Apple TV (as opposed to streaming) you will need to resync after making these changes

You can do this to multiple Videos at once by selecting them all and then right clicking (or control-clicking) ‘Get Info’. The process is the same except you may be asked if you would like to work on multiple items at once. Also when you reach the options tab you will have a slightly different layout and will need to check the ‘Skip when Shuffling’ option and choose ‘No’ from the drop down box.

As always, I hope you find this useful and if you come across any problems, would like to share any further information or even if this just helps – please leave a comment below.