Re: Printer config with lpadmin
You can debug differences between the two setups (GUI & command)
observing resulting parameters at:
/etc/cups/printers.conf
I've found command documentation at:
https://www.cups.org/doc/man-lpadmin.html
Sadly I don't see variables details at
https://www.cups.org/doc/man-printers.conf.html
El 31/08/17 a les 16:37, Conner, Michael S. ha escrit:
> I’m new to Linux System Administration and new to Debian. I’m
> administering roughly 100 Debian workstations that need to have printers
> configured. The printers are made available through queues on a print
> server. (ipp://linprint.myschool.edu/printers/printername)
>
> I have a script that I run after installing Debian that configures four
> printers, setting one as the default. The script uses lpadmin to
> configure the printers like so:
>
> /usr/sbin/lpadmin -p duerer -E \
>
> -v ipp://linprint.myschool.edu/printers/duerer -o Duplex=DuplexNoTumble \
>
> -P /usr/share/ppd/hplip/HP/hp-laserjet_p4015dn-hpijs.ppd
>
>
>
> When the printer is configured in this way, a test page will not print.
> An error appears:
>
> Printer Error, Printer ‘tory’: ‘cups-waiting-for-job-completed’.
>
> The error log on the print server shows:
>
> E [31/Aug/2017:09:21:54 -0500] [Job 230437] Error setting MediaType...
>
> E [31/Aug/2017:09:22:54 -0500] [Job 230438] Can't detect file type
>
> E [31/Aug/2017:09:22:54 -0500] [Job 230438] No pages were found.
>
> E [31/Aug/2017:09:22:54 -0500] [Job 230438] Job stopped due to filter
> errors; please consult the error_log file for details.
>
> If I configure the printer in the desktop environment using the GUI,
> printing is successful. The difference I notice is that a printer
> configured with lpadmin has a designated Make and Model in the Printer
> Properties window (i.e. “HP LaserJet 4350…”) while a printer configured
> with the GUI has “Remote Printer” in the Make and Model field.
>
> How can I configure a printer on the command line that is configured in
> the same way as the printers configured through the GUI?
>
Reply to: