Archive for the 'OS X' Category

VMWare Fusion 3.1 is way faster

Posted by dre on June 2nd, 2010

Check this out. I ran the ‘openssl speed’ benchmark in Ubunto Desktop 10.0.4 in Fusion 3.0.2 and again in 3.1. The difference is pretty impressive. Link Summaryhttp://dreness.com/bits/tech/openssl-speed-fusion-3.0.2.txthttp://dreness.com/bits/tech/openssl-speed-fusion-3.1.txt

Of logs and non-boot volumes

Posted by dre on March 14th, 2010

It’s a beautiful Sunday morning, and as you wait for the coffee to start working, you figure it’s probably about time that you started on those benchmark results that have to be done by Monday. You’re sitting there thinking “MAN I wish I’d provisioned a larger boot volume for these Mac Minis, I keep filling [...]

LDAP client: local static and variable mappings

Posted by dre on November 23rd, 2009

I was recently discussing Mac OS X / Active Directory integration with a friend, and one of the things I mentioned was the local static / variable mappings feature of the Mac OS X LDAPv3 plugin. After some fairly extensive internet searching, it appears that the only reason I know about that feature is because [...]

eggdrop1.6.19+ctcpfix

Posted by dre on July 6th, 2009

Not exactly new, but since I’m the eggdrop maintainer for macports, and since I haven’t updated this port for almost 3 years… here ya go! Macports users may sudo port -d selfupdate to retrieve the updated Portfile (and new patch file). Details: https://trac.macports.org/ticket/20198

Cross-application URL cache searching!

Posted by dre on October 27th, 2008

I was out taking a (filesystem) walk, and wandered into /var/folders. Not remembering where / when this came from, I was pleased to find that the hier(7) manpage is aware of this directory, describing it as ‘per-user temporary files and caches’. More research reveals that this directory structure is created as defined by some code [...]

get notified!

Posted by dre on September 7th, 2008

Mac OS X makes extensive use of a variety of event notification mechanisms, as described here. One such mechanism is documented in the notify(3) man pages, and it is these types of libnotify notifications that are the focus of this post. Notifications can be posted and observed in a global namespace across all processes (with [...]

Hacking Time Machine

Posted by dre on August 8th, 2008

It’s “hack some shit up” Friday. Everybody ready? Have a Time Capsule or Mac OS X Server configured to provide network time machine backups? Of course you do! Let’s examine the client / server interaction. The Time Machine preference pane provides a list of available backup volumes. This list includes local volumes as well as [...]

Applied Kerberos troubleshooting

Posted by dre on July 4th, 2008

The following is an IRC transcript taken from #afp548, irc.freenode.net. It chronicles the troubleshooting process of a fairly well-hidden edge case of Kerberos configuration in Mac OS X Server. pastebin.ca was used to relay larger hunks of textual information; I’ve made local copies of the results since the pastebin pages expire in 1 month. Pastebin [...]

Exploring Leopard’s Local KDC

Posted by dre on May 13th, 2008

I recently had an excuse to dig into Leopard’s local KDC (LKDC), and have created a page on my wiki to hold the results. Some excerpts below: The Local KDC (LKDC) is a Kerberos implementation that extends “single sign-on” capabilities into ad-hoc networks. The LKDC supports the AFP, CIFS, and VNC services included in Mac [...]

disksleep

Posted by dre on November 15th, 2007

The purpose of this script is to add a bit of granularity and intelligence to the energy saver settings in Mac OS X for disk sleep. Problem: I want to let my disks sleep, but I HATE having to wait for a spinup while I’m working. Solution: Allow the disks to spin down only when [...]

Apple airport base station monitor

Posted by dre on April 27th, 2007

Download. {1} andre@dude [~] % airport -h Program Options: -h print this help -d output in comma delimited format (base station ID lines are designated by ‘*’) -v verbose mode (stacks up to 3 times) –encode Specify plaintext to retrieve the base64 encoding. This should be used to store the SNMP community name near the [...]

The opposite of split is cat.

Posted by dre on January 2nd, 2007

/usr/bin/split and /bin/cat, that is. Why is this useful information? Let’s imagine a wonderful world in which your web host gives you oodles of bandwidth and disk quota, and then one day secretly enacts a policy that disallows access to files over a certain (largish) size. Say, something like: [Tue Jan 02 13:07:24 2007] [error] [...]

Installing perl modules locally

Posted by dre on December 6th, 2006

Dealing with CPAN has always felt a little weird. Today I found a nice shortcut for getting perl modules installed in a home directory, which is really useful for when you don’t have admin on the box, or if you simply prefer to keep your custom perl stuff all cinched up in a tidy homedir [...]

VLC and wireless networks

Posted by dre on October 27th, 2006

I typically keep all my digital media on either my desktop at home or my server, but I like to watch it on the laptop while reclining in my papasan chair, or perhaps just kicked back in bed. The problem is that certain files will stutter occasionally during playback, even though the bitrate of the [...]

Decrypting afp mount strings

Posted by dre on September 15th, 2006

{10} andre@werk [~] % mount | grep /Volumes/andre afp_006Af01nOUmc001Eic06SdO0-1.2c0000ae on /Volumes/andre (nodev, nosuid, mounted by andre) Huh? how helpful is that! How can I tell what server it came from? Yeah, I could netstat, but what if there’s a bunch of AFP sessions open? DisplayURL to the rescue! {12} andre@werk [~] % ~dre/bin/DisplayURL /Volumes/andre url: [...]

Spotlight indexes on read-only media

Posted by dre on September 8th, 2006

Here’s a way to let spotlight do a full content index of a read only CD. It can even persist across uses :) #!/bin/sh # pass in the name of the r/o volume, e.g. DiskWarriorCD # this is proof of concept only. seriously :) if [ ! $1 ] ; then echo “supply a volume [...]

adduser script for Mac OS X / Mac OS X Server

Posted by dre on July 9th, 2006

http://www.dreness.com/bits/tech/adduser.html (syntax colored) http://www.dreness.com/bits/tech/adduser (raw) Link Summaryhttp://www.dreness.com/bits/tech/adduser.htmlhttp://www.dreness.com/bits/tech/adduser

The /usr/bin/defaults command gives us basic command line access to the Mac OS X preferences system. I say ‘basic’ because it provides no facility for directly operating on any keys / values that are not at the top of the heirarchy. For example: {8} andre@werk [~] % defaults read com.apple.finder ComputerOptions { ComputerListViewColumnFlags = 1; [...]

Managing dual boot Macs

Posted by dre on May 30th, 2006

How I learned to stop worrying and image / restore those dastardly windows NTFS partitions: http://www.bombich.com/mactips/dualboot.html Link Summaryhttp://www.bombich.com/mactips/dualboot.html

The Journeyman’s Guilde to Quicktime Presentations

Posted by dre on April 29th, 2006

This guide will demonstrate a method for creating multi-track, multi-media, self-contained quicktime movies. A good example of this would be the presentation format where there are multiple tracks of media that need to be coordinated with specific timings. Perhaps there is a ‘talking head’ video track, and a series of slides that need to be [...]