Finally, you'll need to figure out which `model` (driver) to use.
`lpinfo` leys you search through available drivers by make and model:
- $ lpinfo --make-and-model 'LaserJet 4042' -m
+ $ lpinfo --make-and-model 'LaserJet 4240' -m
gutenprint.5.2://hp-lj_4240/expert HP LaserJet 4240 - CUPS+Gutenprint v5.2.5
gutenprint.5.2://hp-lj_4240/simple HP LaserJet 4240 - CUPS+Gutenprint v5.2.5 Simplified
foomatic:HP-LaserJet_4240-Postscript.ppd HP LaserJet 4240 Foomatic/Postscript
Putting it all together, add and enable the new printer:
- $ lpadmin -E -p afmlab -v socket://123.45.67.89 -m gutenprint.5.2://hp-lj_4240/expert -L "LaserJet 4042, Disque 927" -E
+ $ lpadmin -E -p afmlab -v socket://123.45.67.89 -m gutenprint.5.2://hp-lj_4240/expert -L "LaserJet 4240, Disque 927" -E
Note the two `-E` options. The first one (before `-p`) forces
encryption when connecting to the server. The last one enables the