Category Archives: OS X

This copy of OS X can’t be verified

Need to get a bootable drive to install OS X (multiple versions suffer) and immediately met the following error?:

This copy of <Some OS X version> application can’t be verified. It may have been corrupted or tampered with during downloading.”

Before you go re-imaging the drive, re-downloading the image, replacing your RAM back to OEM, or whatever else you find suggested online…. launch the terminal from the Utilities menu and set the date. Now try installing again.

The installer uses the date to try and verify the copy of OS X you’re about to install (seems dicey). If the date isn’t set, and you don’t configure the installer to use your wifi (so that the installer can make a call to a time server), the verification likely shits the bed.

The syntax for changing the date is: date <month><date><hour><minute><year>

Example:

July 14th 12:52AM 2015

mm dd HH MM yyyy

date 071400522015

Posted in OS X | Leave a comment

Mount a filesystem over SSH on OSX (sshfs)

1) Download & install FUSE for OSX.

2) Create an empty local folder to act as a mount point.

3) Mount the filesystem over SSH.

Syntax:

sshfs <username>@<IP or URL>:<remote path> <path to local mount point>

Example:

sshfs bilbo@theshire.com:/var/www/bagend ~/Desktop/mnt

I’m not a huge fan of using Vim or Nano/Pico for lengthy editing sessions on remote servers. This allows me to use Sublime Text (or whatever your editor of choice). I’ve not encountered any latency issues and it’s much smoother than forwarding X (which I never have installed on a webserver anyway).

 

Posted in Code, Linux, OS X, Uncategorized | Leave a comment

OS X Command Line Tools no longer a part of Xcode.

Apple has again changed how its command line tools are packaged. Whereas it was once bundled into Xcode and then later you had to instead manually download it from within Xcode, it is now separated from Xcode altogether.

In some earlier versions of Xcode 5 you could run a command in the terminal and still get the download option to show up in Xcode but that no longer seems to be an option. At least as far as Xcode 5.1.

Now you need to download the command line tools from Apple’s developer site.

dl_cli_tools

Posted in OS X, Xcode | Leave a comment

RVM error on OSX: Can not find compiler and ‘make’ tool

Running afoul of the following error when trying to install rubies with RVM despite having installed Xcode?

Can not find compiler and ‘make’ tool – make sure Xcode and/or Command Line Tools are installed.

With newer versions of Xcode the command line tools RVM expects are not automatically installed alongside Xcode.

Open Xcode and navigate to: Xcode > Preferences > Downloads and click Install for Command Line Tools.

Posted in Code, OS X, Ruby | Leave a comment

Xcode can’t be installed because Mac OS X Version N or later is required.

So, say you need Xcode installed (or updated) because you need GCC and/or other development support tools on your OS X 10.7 machine. So, you launch App Store expecting to install (or update) Xcode easily enough but are met with one of two messages telling you that you’re SOL.

no-install
No install
no-update
No update

At this point it seems like you’re forced into paying to upgrade OS X but there’s an alternative. Albeit, not an obvious one. You can download older version of Xcode if you have or create an Apple developer account. The direct link to the Xcode downloads page is: https://developer.apple.com/downloads/index.action?q=xcode

Note: If you’re running OS X 10.7 you’ll need (as of this writing) to install Xcode 4.6.3 as Xcode 5 requires OS X 10.8.

xcode download page

It just works, right?

Posted in Code, OS X, Uncategorized | Leave a comment

Vagrant error on OSX: Command: [“hostonlyif”, “create”]

I’ve found I occasionally run into an odd Vagrant error every now and then:

There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below.

Command: [“hostonlyif”, “create”]

For me, this sometimes happens when I try to re-instantiate a virtual machine after my laptop’s battery has died and OSX has attempted to restore state. Other people seem to encounter this error under different conditions; even immediately after installing Vagrant and attempting to spin up a virtual machine for the first time.

Run the following command to bounce VirtualBox:

sudo /Library/StartupItems/VirtualBox/VirtualBox restart

and now running:

vagrant up

should go off without a hitch.

Posted in Code, Devops, OS X, Vagrant, Virtualization | Leave a comment

Getting the Diamond BVU195 USB-to-Display Adapter to Work on OS X

I’ve been pretty impressed with the Diamond BVU195 display adapter. I’ve found USB to display adapters almost universally suck. The BVU195 seems to be one of the exceptions to the rule though. It’s definitely no replacement for a video card with multiple display ports but I work on a Macbook Pro so I’m constrained.

The adapter ships with installation media but it’s only for Windows. The manufacturer’s product  page has a drivers section and even mentions Mac OS X but the download doesn’t seem to contain any actual OS X software.

Thankfully the chipset manufacturer for the product does have an OS X driver available. The driver is currently listed as a beta but I’ve been using it with OS X 10.7 Lion without issue for several months now. You can find the DisplayLink drivers here: http://www.displaylink.com/support/mac_downloads.php

Posted in Hardware, OS X | Leave a comment