Posts Tagged ‘mac os x’

Command line Mac OS X printer install

Tuesday, November 30th, 2010

Here’s a way to add a dgp http printer to mac os (and configure it to deal with the abort-job policy problem):

lpadmin -p ‘MomonWood’ -E -o name=’MomonWood’ -v ‘http://wood.dgp.toronto.edu/printers/Mom_on_Wood/.printer’ -P ‘/Library/Printers/PPDs/Contents/Resources/HP LaserJet 2430.gz’ -o printer-error-policy=”abort-job”

Resetting password on Mac OS X 10.5 (without the cd)

Wednesday, November 24th, 2010

I recently received a macbook which I didn’t have an account on, so I found the following instructions for resetting the password (from

http://www.macyourself.com/2009/08/03/how-to-reset-your-mac-os-x-password-without-an-installer-disc/ )

Reset 10.5 Leopard password

  1. Power on or restart your Mac.
  2. At the chime (or grey screen if your chime is turned off), hold down Command+S on your keyboard to enter single-user mode.
  3. This step is optional, but it’s a good idea because it checks the consistency of the hard disk before moving on. At the prompt, type fsck -fy and press Enter/Return. Wait for the checks to complete before going to the next step.
  4. Type mount -uw / and press Enter.
  5. Type launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist and press Enter.
  6. Type ls /Users and press Enter. This lists all of the usernames on the computer – helpful if you don’t know or remember what these are.
  7. Type dscl . -passwd /Users/username password and replace “username” with one of the users displayed in the previous step. Replace “password” with a new password of your choice. Press Enter.
  8. Type reboot and press Enter.

Custom print settings for Mac OS X clients

Thursday, May 21st, 2009

While I was experimenting with IPP printing last week, I found a link to a great site that explained how to fully customize the printer setup on mac os x clients.  Here is a link to the article. The important thing is knowing that you have to add the “Advanced” Icon to the toolbar in the print options in order to add a printer with an arbitrary string (i.e. that starts with http, or includes username:password in the printer location). Instead of setting up a samba printer, I used it to add the http printer (which is what windows sets up instead of an ipp printer). It looks like it would also be possible to do smb authentication this way, with a string like the following:

smb://username:password@corman/Mom

I haven’t tried this out, but I will be trying this along with other options to see what the best print solution would be. Once I’ve finished I’ll add some instructions to the wiki.