Archive

Archive for October, 2012

fix OSX Mountian Lion sleep connectivity problem

October 21, 2012 Comments off

If your imac or other osx device has no network connectivity after entering the sleep mode, you can fix it by entering the su mode and editing this file:

/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist

Locate the two lines containing PrioritizeNetworkReachabilityOverSleep

and change the value in the next line from <integer>0</integer> to <integer>1</integer>

Now your ethernet connection should remain active even while the computer is in the sleep mode.

Advertisements
Categories: sysadmin

Update — Airprint for IOS6

October 15, 2012 Comments off

IOS6 requires these additions to my previous instructions to work with airprint.

Create the following files

/usr/share/cups/mime/airprint.types

##contents of airprint.types##

image/urf urf string(0,UNIRAST<00>)

/usr/share/cups/mime/airprint.convs

##contents of airprint.convs###

image/urf application/pdf 100 pdftoraster

recreate /etc/avahi/services with airprint-generate.py

wget https://github.com/tjfontaine/airprint-generate/blob/master/airprint-generate.py

chmod +x airprint-generate.py

./airprint-generate.py -d /etc/avahi/services/

service restart cups

service restart avahi-daemon

Printing should now work!

 

Categories: sysadmin