Skip to content

Instantly share code, notes, and snippets.

@funky-monkey
Forked from elia/airprint.md
Created July 12, 2024 15:23
Show Gist options
  • Save funky-monkey/8b49cbab9c87c24f80af7178c939e106 to your computer and use it in GitHub Desktop.
Save funky-monkey/8b49cbab9c87c24f80af7178c939e106 to your computer and use it in GitHub Desktop.
Enable Airprint for any printer on MacOs (BigSur)
  1. Connect printer, install printer drivers, and enable Printer Sharing.
  2. Open terminal, run: dns-sd -Z _ipp._tcp. You'll see a few lines of repeated text. Look for your printer's name, next to that record you will see a TXT, copy everything after TXT into a notepad.
  3. In that TXT line, you'll see a line like this: "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster" Change that, to add ,image/urf. So it'll look like: "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf"
  4. Now take that entire TXT line, and add it to this: dns-sd -R "name_to_be advertised" _ipp._tcp.,_universal . 631 URF=none pdl=application/pdf,image/urf YOUR_TXT_STRING
  5. Run that line in the terminal, and Airprint should be enabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment