lpadmin \
-E \
-p p3005 \
-v lpd://p3005.example.com/hp-p3005 \
-m postscript-hp:0/ppd/hplip/HP/hp-laserjet_p3005-ps.ppd \
-E
-E
option forces to use encryption when connecting to the server. Note the last -E
option which means something different entirely. We'll come back to it.-p
option expects the so-called destination, in other words the name of the printer to create.lpinfo
, the lpadmin -v
option is used for specifying the device URI, including the protocol – lpd
, here. Note that it's not the entire line as lpinfo
will normally print it out and you need to leave out the connection type, e.g. file
, direct
, file
.lpinfo
, the lpadmin -m
option lets you indicate the model. It can be referred to either with what lpinfo -m
offers to you – and there's nothing to leave out there, this time. Or it can be referred to directly with a PPD file.-E
option, this time supplied after -p
, means ena