/PrinterSetup

A simple printer utility that generates lpadmin output to add printers

Primary LanguageSwiftMIT LicenseMIT


PrinterSetup

A simple printer utility that generates lpadmin output to add printers.
It also generates lpadmin options from the PPD file.
From options lookup the ip number of a bonjour (dnssd) printer (you need to be on the same network as the printer)
Export output as no payload pkg and munki pkg info.
From the preferences settings you can choose to generate a signed pkg and enable Cups Webinterface.

You can also use it to export any bashscript by simply paste your bashscript to the Final settings field
and give the output a name in the Cups print queue name field and then choose the export options.


Download latest version here: https://github.com/mikaellofgren/PrinterSetup/releases

System requirements: 10.13 or later
Icon: vecteezy.com

Export for manual distribution

If you want to export for manual distribution, make sure you got the printerdriver installer
then add this command before the lpadmin command, and change: CHANGE_ME_TO_PRINTERDRIVER_NAME
in the command to match the name of the printerdriver installer then Export as no payload pkg.

Put the no payload pkg and printerdriver installer into a folder and run only the
no payload pkg, if everythings works it should first install the printerdriver and then add the printer.

If you want to hide the printerdriver installer add a period before the filename
dont forget to change in the command too.

Create a .dmg imagefile for distribution from discutility of the folder containing the the hidden printerdriver installer and the no payload pkg.

#!/bin/bash
PATH_SCRIPT=$(dirname "$1")
/usr/sbin/installer -pkg "$PATH_SCRIPT/CHANGE_ME_TO_PRINTERDRIVER_NAME.pkg" -target /