OSX and Vagrant!

So whilst trying to get boxen to work I needed a good method to test, so of course I turned to Vagrant and standing on the works of others (namely Graham Gilbert ) I used the following steps: Requirements Packer Vagrant VMware Fusion Steps Download and install packer, the easiest method to do this I found was using homebrew $ brew install packer Cloning into '/opt/boxen/homebrew/Library/Taps/homebrew/homebrew-binary'... remote: Reusing existing pack: 143, done.

apple remote desktop and vnc

Ahh, so Apple’s Remote Desktop is just a simpler implementation of the VNC protocol (I’m sure there’s some propriety extensions in there but it’s nice to know you can use vncclient to connect to a Mac. Options that work well for VNC:- [Connection] Host=$HOSTNAME [Options] UseLocalCursor=1 UseDesktopResize=1 FullScreen=0 FullColour=1 LowColourLevel=1 PreferredEncoding=hextile AutoSelect=0 Shared=0 SendPtrEvents=1 SendKeyEvents=1 SendCutText=1 AcceptCutText=1 DisableWinKeys=1 Emulate3=0 PointerEventInterval=0 Monitor= MenuKey=F8 AutoReconnect=1 Not the fastest thing in the planet, but only enabling the Hextile option seems to work ok.

home brew fusion/hybrid drives on OS X

There’s plenty of examples of doing this already but it’s as simple as: $ diskUtil coreStorage create ssdDisk hddDisk $ diskUtil coreStorage createVolume VolumeUUID jhfs+ "fusion Drive" 100% Seems to be working so far, although with typical Apple there’s no documentation on how files/objects are moved between the SSD and HDD components

disabling atime in OS X

Create the following plist file somewhere useful, e.g. /Library/LaunchDaemons/com.local.noatime.plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> dict> <key>Label</key> <string>com.my.noatime</string> <key>ProgramArguments</key> <array> <string>mount</string> <string>-vuwo</string> <string>noatime</string> <string>/</string> </array> <key>RunAtLoad</key> <true/> </dict> </plist> Then run the following to pick up the change, or indeed, reboot: % sudo launchctl load /Library/LaunchDaemons/com.local.noatime.plist And you should now see the root file system mounted with noatime option, which should improve longevity of SSD boot drives

snow leopard and Java

So in a startling case of “Apple knows best” they have gone and removed the 1.5 JVM - I know it’s pretty old and people were complaining about not having a 1.6 JVM for a long time - but really! So the following post steps you through re-enabling the 1.5 VM and now semi-happy days

wii and os x

$ umount /Volumes/UNTITLED $ sudo ./wbfs -p /dev/disk4s1 init $ sudo ./wbfs -p /dev/disk4s1 df wbfs tot:298.08G used:0.08G free:298.00G $ sudo ./wbfs -p /dev/disk4s1 ls wbfs empty Then just use WBFS for macos X to add in the backup images you’ve created previously.

managing spotlight indexing

Show the status of spotlight on volumes: $ mdutil -sa /Shared Items/Public: Indexing enabled. /Volumes/Time Machine/Shared Items/Backups: Indexing and searching disabled. /Users: Indexing enabled. /Volumes/pool1: Indexing and searching disabled. /Shared Items/Backups: Indexing enabled. /Groups: Indexing enabled. I was receiving a few errors when trying to spotlight for applications (well they didn’t appear) - running $ sudo mdutil -i off / Error, no index found for volume. What worked to fix this for me was to move the main volume into the privacy section of spotlight and reboot (though i’d expect restarting fseventd might have the same effect) and then remove the volume from Privacy, 10 minutes later and disk has re-indexed and spotlight is working correctly.

recent applications in OS X

This little snippet will give you a new little window for all those recent applications you launch – I seem to have picked up a habit for closing applications down when I stop working with them for an hour or two (pages etc.) $ write com.apple.dock persistent-others -array-add \ '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }' $ killall Dock