Tag Archives: Macintosh

Mac – Fusion Drive Format

In certain circumstances, Bootcamp can mess up Fusion drive formatting. Here is a detailed posting of how to recover your drive. It basically entails, booting the Internet Recovery from Apple Restart by pressing alt cmd R at startup and then using a series of diskutil commands to first remove, replace and rebuild the logical disk.

It seems that a “fusion” drive is really a “logical” drive made up of two (or I suppose more) physical drives …

See all the ugly details at:
http://apple.stackexchange.com/questions/168723/i-think-i-messed-up-the-fusion-drive-on-my-1tb-imac-with-bootcamp

Mac – Disable/Enable Gatekeeper from command line

GateKeeper is the application on Mac OS 10.8 and above that prevents running applications from unknown sources. On the “Lab” image this can not be enabled since many of the older academic software programs would not be able to run.

Get current status of this setting: sudo spctl --status
Disable GatetKeeper to allow all apps to run: spctl --master-disable
Enable GateKeeper to prevent unknwon apps from running: spctl --master-enable

To see more see:
http://osxdaily.com/2015/05/04/disable-gatekeeper-command-line-mac-osx/

Mac – Mavericks — AFP shares need to become SMB shares

With Mavericks, Apple is moving farther away from AFP support. It’s time to change our AFP points in our Network Shares to smb pointers.

Two commands come in very handy to find and replace the needed text in the files …

perl -pi -w -e 's/afp/smb/g;' *afploc
perl -pi -w -e 's/ACHILLES.//g;' *afploc
perl -pi -w -e 's/HECTOR.//g;' *afploc
perl -pi -w -e 's/ATHENA.//g;' *afploc
perl -pi -w -e 's/HELEN.//g;' *afploc
perl -pi -w -e 's/JASPER.//g;' *afploc

Mac – Setting “default” printer

Setting a “default” printer on Mac –

Printers are listed to the mac user on the drop down menu in alphabetic order so you need to add “A” to the beginning of the name of the default printer if the default printer isn’t already first in alpha order.

If printers are already installed you can change the name in the System Preferences – Printers – then “options” for that printer.

Or, if the printers aren’t installed yet, for Williams printer installer packages you can change the name in the packaged installer before you run the installer. To do that:
1) Right-click (or option-click) on the printer installer package and “Show Package Contents”
2) Open Contents
3) Open Resources
4) Open “postflight” with AquaMacs and edit the lpadmin line to add “A” to the default printer name

Example:
`lpadmin -p Spencer-216-Color -L '' -E -v http://print-mac.williams.edu:631/printers/Spencer-216-Color -P /etc/cups/ppd/Spencer-216-Color.ppd`;;

Becomes:

`lpadmin -p ASpencer-216-Color -L '' -E -v http://print-mac.williams.edu:631/printers/Spencer-216-Color -P /etc/cups/ppd/Spencer-216-Color.ppd`;;