[SOLVED] Adding printer using lpadmin problem added printer paused
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Adding printer using lpadmin problem added printer paused
Hi everyone, i am trying to add a printer using lpadmin command from terminal. Although the printer get added but is paused and can not be use for printing.
Tried commands:
Code:
lpadmin -p P-3045DN-Ent-V2-Airprint -v dnssd://P-3045DN-Ent-V2-Airprint%20%40%20Raspi._ipps._tcp.local./?uuid=a9885352-dd0f-3a15-44c3-1a04f131a90d -o printer-is-shared=false -P /Library/Printers/PPDs/Contents/Resources/Kyocera\ ECOSYS\ P3045dn.ppd
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
Code:
# cat /etc/cups/printers.conf
# Printer configuration file for CUPS v2.3.4
# Written by cupsd on 2022-12-14 11:15
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
NextPrinterId 17
<Printer P-3045DN-Ent-V2-Airprint>
PrinterId 16
UUID urn:uuid:03a5df71-c660-3857-4525-67d898583278
AuthInfoRequired negotiate
Info P-3045DN-Ent-V2-Airprint
MakeModel Kyocera ECOSYS P3045dn (KPDL)
DeviceURI dnssd://P-3045DN-Ent-V2-Airprint%20%40%20Raspi._ipps._tcp.local./?uuid=a9885352-dd0f-3a15-44c3-1a04f131a90d
State Stopped
StateTime 1671012899
ConfigTime 1671012899
Type 8425684
Accepting No
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
I have just been looking at this stuff in the Slackware forum, so some copy and paste from my end.
From local CUPS Help under "Printer Drivers and PPDs":
Quote:
The everywhere driver is used for nearly all modern networks printers sold since about 2009. For example, the following command creates a destination for a printer at IP address 11.22.33.44:
You show as running CUPS v2.3.4, which does support IPP Everywhere, and your Kyocera ECOSYS P3045dn shows as supporting Apple Bonjour, so should work with IPP.
A suitable IPP URI is needed (the -v option). (This would typically be discovered by Multicast DNS and DNS Service Discovery if CUPS has avahi support when looking for network printers.) My quick web search has not shown any candidates, but ipp://10.53.33.232/ipp is worth a try.
You also have references to Raspi, which takes me into an area with which I am not familiar. Perhaps you could use nmap to perform discovery of the IPP URI
Thanks @allend. I have tried following but unfortunately the result is same, printer is added but the status is paused and can not be used for printing.
Code:
lpadmin -p P-3045DN-Ent-V2-Airprint -v ipp://10.53.33.232/ipp/P-3045DN-Entw-V2-Airprint -o printer-is-shared=false -P /Library/Printers/PPDs/Contents/Resources/Kyocera\ ECOSYS\ P3045dn.ppd -o auth-info-required=negotiate
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
One detail was missing, the IP address is from CUPS server which has multiple printers, not directly from printer . Once one will be added sucessfully, i will add the remaining from terminal
Forget AirPrint, that is Apple specific.
You need the IP address of the printer.
That IPP URI looks bogus.
Drop the additional options.
Do not try to specify the .ppd file. It will be automatically generated in /etc/cups/ppd/.
KISS rule. Get it working with minimal options, then fine tune after.
@allend i have to add the printer using cups server IP not individual printer IP. When i add the print using GUI i also select the driver for the printer. Is there any way out to perform this from terminal ?Adding the printer is not problem it get listed but in paused state.
One detail was missing, the IP address is from CUPS server which has multiple printers, not directly from printer . Once one will be added sucessfully, i will add the remaining from terminal
Is the printer installed and working on the CUPS server? Is this printer connected as part of LAN or directly to the CUPS server?
For those that are still struggling with this and may run accross this thread, using the -E flag worked for me in my case. It's already being used in the snippets posted in this thread, but it can be a little hard to parse if you have a squirell brain like myself and maybe didn't notice the flag being used.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.