Fun hacks, WP plugins, photography, and PKI junk. Languishing since 2008.
Posts tagged mac
No Interfaces Available In Wireshark Mac OS X
Jan 31st
Many new Wireshark users on Mac OS X run into an issue where no interfaces show up when trying to begin packet capture. If you attempt to manually input an interface (such as en0) this error will occur:
The capture session could not be initiated ((no devices found) /dev/bpf0: Permission denied).
To have the interfaces show up properly you’ll need to widen the permissions on the Berkeley packet filter (BPF). By default they look like this:
crw------- 1 root wheel 23, 0 Jan 31 13:47 /dev/bpf0
We need the filter to be readable by non-root, so open Terminal.app and run this command:
sudo chmod 644 /dev/bpf*
Unfortunately every time you reboot this will More >
Building Services Using Automator Workflows in Snow Leopard (10.6)
Nov 19th
In Snow Leopard (Mac OS X 10.6) the Automator tool has been drastically upgraded to support the creation of service workflows. In simple terms, this means you can build automated chains of tasks that can be invoked in a context sensitive manner. Not simple enough? Using this tool, you can automate common actions you perform and the proper service will appear in the menu only when it is capable of being used. You can even assign global hotkeys (via the Keyboard preference pane) to your service. Let’s take a look at a simple service workflow so you can see how More >
Bypass Hulu Regional Restrictions in Mac OS X
Nov 16th
Hulu is a great site to find new shows and catch up on old, but due to various contracts no one outside the US can use it. This irritated some friends of mine from Canada, England, Germany, et cetera. So I decided to write up one (very reliable) way to circumvent the Hulu geolocation checks — using a VPN.1
Accessing Hulu Outside The USIn this case, we’ll be using a small VM and the open source VPN server pptpd. All the server side instructions below are applicable to both OS X and Windows, but the client setup is only specified More >
Fixing GrowlMail for Mail 4.2
Nov 9th
Lately Apple has been revving the version number (and plugin compatibility UUID) of Mail.app with every version of 10.6. This breaks bundles like GrowlMail even when they are still compatible. The easy fix (although not necessarily the best if it turns out an update is required!) is to run a few commands in Terminal to add the new UUIDs1 to the SupportedPluginCompatibilityUUID key in the Info.plist.2
If you have already had your plugins disabled by opening Mail.app you’ll need to look in ~/Library/Mail (or /Library/Mail if you installed globally) and move the files back to the active bundles directory. They’ll typically be More >
Installing OS X Client in VMware Fusion
Oct 27th
Mac OS X’s EULA only allows for usage of OS X Server within VMware Fusion, but with a (relatively) simple script you can modify the darwin.iso to function with OS X client as a guest.1 This script should hypothetically work with Fusion 2.0 and 3.0 on Leopard and Snow Leopard (as both guest and host). Save the following script to a file.
#!/bin/bash cd "/Library/Application Support/VMware Fusion/isoimages" mkdir original mv darwin.iso tools-key.pub *.sig original perl -n -p -e 's/ServerVersion.plist/SystemVersion.plist/g' < original/darwin.iso > darwin.iso openssl genrsa -out tools-priv.pem 2048 openssl rsa -in tools-priv.pem -pubout -out tools-key.pub openssl dgst -sha1 -sign tools-priv.pem < darwin.iso > darwin.iso.sig for i in *.iso ; do openssl dgst -sha1 -sign tools-priv.pem < $i > $i.sig ; done exit
Now open Terminal and chmod the script to executable.
chmod 755 /path/to/my/script
Finally, execute the More >
Various Useful OS X Shortcuts
Oct 7th
A few random shortcuts I use on a daily basis…1
- You can specify a unix path with the go to folder command in Finder? ⌘-⇧-G
- Using ⌘-1 through 9 in Safari will take you to your Bookmarks Bar bookmarks. Folders will be ignored in the numbering
- If you’re in a file selection dialog you can use ⌘-D to go to Desktop. Similarly ⌘-⇧-A works for Applications, ⌘-⇧-C for computer view, ⌘-⇧-H for home, and ⌘-⇧-I for idisk (automounts)
- If you have a save/don’t save dialog up you can select don’t save with ⌘-D
- ⌘-click on a window’s title bar (in Finder, Safari, and other apps) More >