Tag Archives: Mavericks

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`;;