jump to navigation

Run iMovie HD (and maybe other older applications) in Yosemite (and now El Capitan) January 23, 2015

Posted by Robert Harder in Uncategorized.
Tags: , , ,
97 comments

I was disappointed to see that I could no longer run iMovie HD (available here) after upgrading to Mac OS X 10.10 Yosemite. The Finder gave me an error saying, You can’t use this version of the application “iMovie HD” with this version of OS X. You have “iMovie HD” 6.0.3. I was delighted to discover a workaround that works, well, for now. Here’s how.

UPDATE, Sept 2015: Looks like this trick works in El Capitan too.

UPDATE, Nov 2015: Skip straight to Rolando’s comment below for the best solution yet.

iMovie HD error message on Yosemite
(more…)

Searching GZipped Log Files March 18, 2014

Posted by Robert Harder in Utility.
Tags: , , , , , ,
2 comments

I have a few handy scripts for searching through log files, especially monitoring SSH login attempts. I cannot just grep through log files however, because the log files get “rolled”: compressed, and archived.

rob@kanga:/var/log $ ls -lh system.log*
-rw-r-----@ 1 root  admin   289K Mar 18 17:16 system.log
-rw-r-----  1 root  admin    79K Mar 18 00:00 system.log.0.gz
-rw-r-----  1 root  admin    39K Mar 17 00:02 system.log.1.gz
-rw-r-----  1 root  admin    36K Mar 16 00:02 system.log.2.gz
-rw-r-----  1 root  admin    35K Mar 15 00:02 system.log.3.gz
-rw-r-----  1 root  admin    25K Mar 14 00:01 system.log.4.gz
-rw-r-----  1 root  admin    69K Mar 13 00:01 system.log.5.gz
-rw-r-----  1 root  admin    68K Mar 12 00:01 system.log.6.gz
rob@kanga:/var/log $

Suppose you want to grep through your log files for SSH login activity, you can do it like this:

rob@kanga:/var/log $ { cat /private/var/log/system.log ; gunzip -c /private/var/log/system.*.gz ; } | grep sshd | wc -l
   11364
rob@kanga:/var/log $

The magic happens in the curly braces, which concatenates the standard output of all enclosed commands. Be sure to include a semicolon after the last command, right before the closing curly brace.

An even shorter example:

rob@kanga:/var/log $ { echo hello ; echo world ; } | cat -n
     1	hello
     2	world
rob@kanga:/var/log $

Deleting Yourself with Mac Directory Services dscl . -delete July 12, 2011

Posted by Robert Harder in Utility.
Tags: , , , , ,
1 comment so far

In case it ever crossed your mind, when you are at the command line, never type

sudo dscl . -delete /Users/rob

when you mean to type

sudo dscl . -delete /Users/proxy

It will slow down your productivity. (more…)