Leopard VNC Server Serial Number Password
Posted in Leopard, Mac OS X, System Administration on 02/29/2008 10:36 am by jmccune
Digging around in a NetBoot-Install.dmg file created by NetRestore Helper, I found a nice little gem.
In Leopard, and perhaps earlier versions of Mac OS X, we’re able to start a VNC server with the machine serial number as a password. This is particularly interesting for a managed network or lab environment.
As an example, I’m starting a VNC server in my NetBoot-Install image with the following shell script:
# Credit to Mike Bombich for this snippet
VNC="/System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/MacOS/AppleVNCServer"
if [ -x "$VNC" ]; then
"$VNC" -noRegister -serialNumber &
fi
I’m then able to quickly connect with Cmd+K in the finder:

If you’re scripting this, here’s a quick way to snag the serial number. I do this before I bless a client machine to netboot, so I have the serial number to connect back up once it’s in the NetRestore system.
system_profiler SPHardwareDataType | \ grep -i 'serial number' | \ perl -ple 's/.*:\s+(\w+).*?/$1/'
After upgrading all of my personal machines to Leopard, I’ve found myself using the Screen Sharing feature quite often. Many people have two Mac’s these days, particularly owners of the MacBook Air, and screen sharing makes it incredibly convenient to access a machine in another room.

Nigel has posted slides from our Macworld 2008 presentation on Puppet.
I picked up a 250 Gig Western Digital Passport portable hard drive to keep a backup copy of my file vault home directory, among other things while I travel next week, in the somewhat-likely event something disastrous happens to my laptop.
I usually compute with n-tupel of Mac computers sitting in front of me. I have a strong aversion to clutter, despite the state of my apartment, and the power of Teleport providing seamless, encrypted keyboard sharing, a-la so called “soft KVM” utilities is a killer app for me.

I had $15 in expiring gift cards from when I bought my new TV, so I decided to pick up an inexpensive 2gig Flash drive online.
Joel just posted a great article titled 
