Installing Macintosh Printers using the Command Line

Note - this is specific to the HP Color LaserJet M651 printers in the Department of Biostatistics.

Click here for information on installing these printers on Linux computers.

The process consists of 3 steps for each printer to be installed.
  1. set default path to be the location where the printer definition files are stored
  2. copy the appropriate printer definition file from this wiki to the storage location
  3. use the lpadmin command to create the printer

For a particular printer, you can skip steps 1 and 2 if you have already installed another printer of the same type.

biostatcolor1 - HP Color LaserJet M651 (general purpose printer)

cd /Library/Printers/PPDs/Contents/Resources/

sudo curl -O https://biostat.app.vumc.org/wiki/pub/Main/MacPrintersCommandLine/HP_Color_LaserJet_M651.gz

sudo lpadmin -p biostatcolor1 -L "biostatistics" -D "biostatcolor1 HP Color LaserJet M651" -P /Library/Printers/PPDs/Contents/Resources/HP_Color_LaserJet_M651.gz -v socket://biostatcolor1.dhcp.mc.vanderbilt.edu:9100/ -E

biostatcolor2 - HP Color LaserJet M651 (general purpose printer)

cd /Library/Printers/PPDs/Contents/Resources/

sudo curl -O https://biostat.app.vumc.org/wiki/pub/Main/MacPrintersCommandLine/HP_Color_LaserJet_M651.gz

sudo lpadmin -p biostatcolor2 -L "biostatistics" -D "biostatcolor2 HP Color LaserJet M651" -P /Library/Printers/PPDs/Contents/Resources/HP_Color_LaserJet_M651.gz -v socket://biostatcolor2.dhcp.mc.vanderbilt.edu:9100/ -E

biostatcolor3 - HP Color LaserJet M651 (general purpose printer)

cd /Library/Printers/PPDs/Contents/Resources/

sudo curl -O https://biostat.app.vumc.org/wiki/pub/Main/MacPrintersCommandLine/HP_Color_LaserJet_M651.gz

sudo lpadmin -p biostatcolor3 -L "biostatistics" -D "biostatcolor3 HP Color LaserJet M651" -P /Library/Printers/PPDs/Contents/Resources/HP_Color_LaserJet_M651.gz -v socket://biostatcolor3.dhcp.mc.vanderbilt.edu:9100/ -E

biostatcolor4 - HP Color M651 (administrators)

cd /Library/Printers/PPDs/Contents/Resources/

sudo curl -O https://biostat.app.vumc.org/wiki/pub/Main/MacPrintersCommandLine/HP_Color_LaserJet_M651.gz

sudo lpadmin -p biostatcolor4 -L "biostatistics" -D "biostatcolor4 HP Color LaserJet M651" -P /Library/Printers/PPDs/Contents/Resources/HP_Color_LaserJet_M651.gz -v socket://biostatcolor4.dhcp.mc.vanderbilt.edu:9100/ -E

biostatcolor5 - HP Color M553 (graduate student printer)

cd /Library/Printers/PPDs/Contents/Resources/

sudo curl -O https://biostat.app.vumc.org/wiki/pub/Main/MacPrintersCommandLine/HP_Color_LaserJet_M553.gz

sudo lpadmin -p biostatcolor5 -L "biostatistics" -D "biostatcolor5 HP Color LaserJet M553" -P /Library/Printers/PPDs/Contents/Resources/HP_Color_LaserJet_M553.gz -v socket://biostatcolor5.dhcp.mc.vanderbilt.edu:9100/ -E
Topic revision: r4 - 28 Sep 2021, ColeBeck
 

This site is powered by FoswikiCopyright © 2013-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Vanderbilt Biostatistics Wiki? Send feedback