-
-
Notifications
You must be signed in to change notification settings - Fork 42
lprint -v usb://DYMO/LabelWriter%20450?serial=12111714255917 -m dymo_lm-450 "image-file"
lprint: Unable to start server: No such file or directory
Is it possible to use lprint w/o avahi? I do not need nor want network scans. I only need to print to a locally attached USB printer (shown above)
Thanks,
Will
All reactions
Replies: 7 comments 4 replies
First, you need to specify a sub-command to add a print queue for that printer.
Second, you can run lprint in a local-only mode that doesn't involve Avahi, just do:
lprint add PRINTERNAME -v usb://... -m dymo_lm-450
and then you can do:
lprint FILENAME
to print to the default (only) printer.
All reactions
lprint add dymo -v usb://DYMO/LabelWriter%20450?serial=12111714255917 -m dymo_lm-450
lprint: Unable to access 'dymo': No such file or directory
I get this error?
All reactions
You were missing a -d
lprint add -d dymo -v "usb://DYMO/LabelWriter%20450?serial=12111714255917" -m dymo_lm-450
lprint: Unable to start server: No such file or directory
But even this expects to run the server.
All reactions
Yes, it runs the server in "standalone" mode.
What would be helpful to know is what operating system/Linux distribution you are using and what version of LPrint?
All reactions
@michaelrsweet Ubuntu Core 22 -- sorry should have had that up front.
All reactions
Latest version of Lprint. I pull it down from git and build it.
All reactions
Seems lprint-server is just a script. Probably all I need to do is make sure this is in the path.
All reactions
DYMO LabelWriter 450 (USB) (usb://DYMO/LabelWriter%20450?serial=12111714255917;MFG:DYMO;CMD: ;MDL:LabelWriter 450;CLASS:PRINTER;DESCRIPTION:DYMO LabelWriter 450;SERN:12111714255917;) -> dymo_lw-450
E [2025年04月08日T12:50:39.186Z] Unable to register system, is the Avahi daemon running?
E [2025年04月08日T12:50:39.187Z] [Printer DYMO LabelWriter 450] Unable to register printer, is the Avahi daemon running?
Why does it want to start Avahi if its a local printer?
All reactions
Can pappl be built without avahi and dnssd? Hard to tell looking at the pappl configure. I was looking for a --disable-avahi or something along these lines and cannot yet find it. @michaelrsweet
All reactions
The reason I want to do this is my application is an embedded application. A gateway. Deployed to health systems. The gateway is attached to the internet via mobile and is secured such that it will not find other devices in the same private network (private network over the internet). pappl does state it is usable for embedded applications but unless I can remove the network scans for a network printer (that would never exists) I may be unable to use this. @michaelrsweet
All reactions
I am running into the same issue, am hoping to pick up where this left off. It seems that the standalone server will fail to launch when avahi is missing, though I am led to believe local-only mode doesn't require avahi? What would be the best way to troubleshoot this? I get the same output as above (but with a different printer). @michaelrsweet