Installing Linux 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 Macintosh computers.
The process consists of 3 steps for each printer to be installed.
- set default path to be the location where the printer definition files are stored
- copy the appropriate printer definition file from this wiki to the storage location
- 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.
Get the printer definition file (steps 1 & 2)
cd /usr/share/cups/drv
sudo wget http://biostat.mc.vanderbilt.edu/wiki/pub/Main/UbuntuSetup/hp-color_laserjet_m651-ps.ppd
biostatcolor2 - HP Color LaserJet M651 (general purpose printer)
sudo lpadmin -p biostatcolor2 -L "biostatistics" -D "HP Color LaserJet M651" -P /usr/share/cups/drv/hp-color_laserjet_m651-ps.ppd -v socket://biostatcolor2.dhcp.mc.vanderbilt.edu:9100/ -E
biostatcolor3 - HP Color LaserJet M651 (general purpose printer)
sudo lpadmin -p biostatcolor3 -L "biostatistics" -D "HP Color LaserJet M651" -P /usr/share/cups/drv/hp-color_laserjet_m651-ps.ppd -v socket://biostatcolor3.dhcp.mc.vanderbilt.edu:9100/ -E