Warning- most of this article is now obsolete, with Apple wanting you to use AirPrint. I’ll add updated notes as the requirements emerge, but for now, have a look at how we got AirPrint services working for a Konica Minolta C754e and Fiery E100 here

I’m beginning to love Mosyle, but it definitely has its quirks. There’s a bunch of people who rave about the incredible support they get- but they live in a different time zone. For us poor people in Australia, 90% of the time we ask a support question, we have to wait until the next day for an answer.

That wouldn’t be necessary if they had good documentation, but it just doesn’t exist. All of the docs on their website are just ‘marketising’ about how easy things are without enough detail to actually complete a task. Their Youtube videos are the same- all boasting about how wonderful they are without the stuff technicians need… but I digress

Printers are an ongoing bugbear, and in fact I only learned that Apple has been trying to deprecate CUPS and printer drivers for most of this decade, like, last week. So let’s dive into a few printer setups that we’ve completed recently.


The first thing you need is a Mac with the printer installed correctly and working, we’ll be extracting some info from that. Luckily Connectwise Control allows me a remote terminal session without bothering the client. The key commands you’ll need are these, all done from the Terminal-
lpoptions -p printername tells you what options the printer has available
lpadmin allows you to programatically change a printer setup
lpinfo -m which lists all of the 3rd party PPDs installed and shows you the path to them


There is a bunch of things that will cause your installs to fail, so be aware of
A. Printer drive package must not require any user input
B. Driver package must not be over 35MB for Mosyle to host it
ok that’s 2, there’s probably more…

Required Info

What we require to be able to do these installs is
1. Printer drivers in .pkg format
2. Name for the printer (can be anything)
3. Printer ID (no spaces or special characters)
4. Location (physical location, helps to identify if you have lots of the same model)
5. Connection path (a URL for the printer, including protocol)
6. Any special options set (you get these from the lpoptions command)
7. Path to the PPD (get this from lpinfo command)

as per the pic below from Mosyle-


The first one is for a Brother MFC-L3745CDW. There are 2 driver downloads for this, one .dmg contains all of the software wrapped up in a friendly interface, the second one is called ‘Brother_PrinterDrivers_xxxx.dmg and that’s the one you want. Download it, extract the .pkg ready to upload to Mosyle. Now let’s run those commands on a computer that already has the printer set up-

Mac_Pro:/ admin$ lpoptions copies=1 device-uri=dnssd://Brother%20MFC-L3745CDW%20series._ipp._tcp.local./?uuid=e3248000-80ce-11db-8000-3c2af4739477 finishings=3 job-cancel-after=10800 job-hold-until=no-hold job-priority=50 job-sheets=none,none marker-change-time=1595138583 marker-high-levels=100,100,100,100 marker-levels=100,50,50,50 marker-low-levels=10,10,10,10 marker-types=toner,toner,toner,toner number-up=1 printer-commands=none printer-info=’Brother MFC-L3745CDW series’ printer-is-accepting-jobs=true printer-is-shared=false printer-is-temporary=false printer-location printer-make-and-model=’Brother MFC-L3745CDW series-AirPrint’ printer-mandatory-job-attributes=attributes-charset,attributes-natural-language,printer-uri printer-state=3 printer-state-change-time=1595138614 printer-state-reasons=none printer-type=69242972 printer-uri-supported=ipp://localhost/printers/Brother_MFC_L3745CDW_series

output from lpinfo -m was too long to post here because that machine has a LOT of 3rd party drivers, I may post one below

So here’s the info we need for the setup-
1. Brother_Printer_Drivers.pkg
2. Brother MFC
3. BrotherMFCL3745CDW
4. Adam’s Office
5. dnssd://Brother%20MFC-L3745CDW%20series._ipp._tcp.local./?uuid=e3248000-80ce-11db-8000-3c2af4739477
6. <none for this printer>
7. Library/Printers/PPDs/Contents/Resources/Brother MFC-L3745CDW series.gz

So there we go- stick all of that into Mosyle, set the options (auto installed or self service), set who gets it, and bingo! Off you go to test it… interestingly this one did not pick up the custom icon for the printer, but others using the same method did.


EFI Fiery

Oh boy… straight from a $300 printer to a $100,000 printer. As you know, Fiery make RIPs for other people’s hardware. In practise, this just makes it twice was hard to figure out who to blame when stuff goes up in flames (fiery, geddit?). In this case, the client has an E100 RIP attached to a Konica Minolta C754e printer. So we have to get the drivers from EFI.
Look, there’s all sorts of issues here, let’s just say I processed the drivers through an Autopkg recipe provided by Foigus so they would be usable. And because that means they were already in Munki, I figured maybe I should deploy them from there, with a post install script to add the actual printer.
Original discussion of purpose here-
And the recipes here-
But that makes things messy, I’d rather have all the printers in one place, Mosyle.

Except you can’t, because even after processing, the driver .pkg is 37mb, and Mosyle won’t let you upload anything over 35mb. In case you’re wondering where the docs for the recipe are, they’re in the Autopkg Info description. I’ll copy them here for reference, but go back to the source in case these get updated.

setup-servicemax:~ servicemax$ autopkg info GenericFieryFD50.pkg
Description: Deconstruct a Fiery driver package, remove the Fiery Driver Updater.app, and repack. The FD50 and FD51-revision Fiery drivers appear to properly handle installing when COMMAND_LINE_INSTALL is set.

                 To start, download a FD50 or FD51 driver from:

                 Note the name of the downloaded driver dmg (e.g. "Ricoh_E41_v1_0R_FD51_v1Cert.dmg") and create an override using the dmg name:
                 autopkg make-override GenericFieryFD50.pkg -n Ricoh_E41_v1_0R_FD51_v1Cert.pkg

                 Set the Input in the override to the following suggested items:
                 - NAME of the downloadable DMG without ".dmg", and adding "_No_Update" (e.g. Ricoh_E41_v1_0R_FD51_v1Cert_No_Update)
                 - PACKAGE_ID of com.efi.DMG-Name-with-hyphens-substituted-for-underscores.pkg
                   (e.g. com.efi.Ricoh-E41-v1-0R-FD51-v1Cert.pkg)
                 - PACKAGE_VERSION of 1.$version, where $version is the digits after "FD" in the downloaded driver (e.g. 1.51)

                 Run the recipe with the "-p" option pointing to the downloaded driver dmg:
                 autopkg run Ricoh_E41_v1_0R_FD51_v1Cert.pkg -p /path/to/Ricoh_E41_v1_0R_FD51_v1Cert.dmg

                 Also note that the way that EFI's package postinstall is written causes it to behave differently when COMMAND_LINE_INSTALL is set.  When testing the output package, make sure to use "installer" rather than double-clicking the package.  From a different point of view, when the package output from this recipe installed via the GUI (i.e. Installer.app) it will NOT have the desired result of skipping the Fiery Driver Updater installation and running non-interactively.

Identifier: com.github.foigus.pkg.GenericFieryFD50
Munki import recipe: False
Has check phase: False
Builds package: True
Recipe file path: /Users/servicemax/Library/AutoPkg/RecipeRepos/com.github.autopkg.foigus-recipes/EFI/GenericFieryFD50.pkg.recipe
Parent recipe(s): /Users/servicemax/Library/AutoPkg/RecipeRepos/com.github.autopkg.foigus-recipes/EFI/GenericFieryFD50.download.recipe
Input values:
‘NAME’: ‘%NAME%’,
‘PACKAGE_ID’: ‘com.efi.replace-me-in-an-override.pkg’,

In the end I’m going to install this via Munki as an optional install and set the printer queue up as a post install task for the driver. here’s the info we needed for that one-

1. EFI_Printer_Drivers.pkg
2. Fiery_E100
3. EFI_Fiery_E100_60_55C_KM_PS_Color_Server1_2
4. XXX Office
5. dnssd://EFI%20Fiery%20E100%2060-55C-KM%20PS%20Color%20Server1.2._printer._tcp.local.
6. <none for this printer>
7. Library/Printers/PPDs/Contents/Resources/en.lproj/Fiery E100 60-55C-KM PS1.2eu


Now we need to develop the post install script for adding the print queue. Here is the vanilla command-

sudo /usr/sbin/lpadmin -p <Printer name> -L "<Location>" -E -v lpd://<address IP or DNS> -P <Path to the PPD>

Now we need to add our customisations, and it becomes

/usr/bin/lpadmin -p Fiery_E100 -L "Office" -E -v dnssd://EFI%20Fiery%20E100%2060-55C-KM%20PS%20Color%20Server1.2._printer._tcp.local. -P /Library/Printers/PPDs/Contents/Resources/en.lproj/Fiery\ E100\ 60-55C-KM\ PS1.2eu

Konica Minolta

This one was relatively refreshing. The driver package wasn’t too big, the prefs were easy to find and the whole process actually went ok for once. Let’s have a look at the data we extracted from a working client-

1. C650i_C360i_C4050i_C4000i_C3320i.pkg
2. Konica Minolta C250i
3. KONICAMINOLTA_bizhub_C250i_44_9C_3E
4. <location redacted>
5. dnssd://KONICAMINOLTA-bizhub-C250i-44-9C-3E._ipp._tcp.local./
6. <none for this printer>


Oh boy- the Canon driver install package has 248 scripts and 11 THOUSAND installable items. Where do you even start with that? In addition, the client who needed this one also needed a Canon app installed so they could add a Department ID and PIN number to their print jobs for accounting purposes. I ended up doing this manually because we only needed it on 3 machines, but this is most likely going to be handled by Munki in the future too because the print driver package is over 60mb.


ok let’s see if we can make this work- install the Canon printer drivers, or find a machine with the correct driver installed and the printer set up already. Go to /etc/cup/PPD and open the printer referenced in there- you’ll find a bunch of info hopefully including the actual name of the PPD it’s using. Hooray! And thanks to this hint. Now you’ve got the name, you can get the path in /Library/Printers… for us, we wanted a Postscript driver called “CNMCIRAC5535S2.PPD” and it was found in

1. Canon_PS_Installer.pkg
2. Canon C5540
3. Canon_C5540
4. <location redacted>
5. lpd://
6. <none for this printer>
7. /Library/Printers/PPDs/Contents/Resources/CNMCIRAC5535S2.PPD