Skip to content

Navigation Menu

Sign in
Sign up

lprinting to usb only #177

wills721 started this conversation in General
Apr 6, 2025 · 7 comments · 4 replies
Discussion options

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

You must be logged in to vote

Replies: 7 comments 4 replies

Comment options

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.

You must be logged in to vote
0 replies
Comment options

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?

You must be logged in to vote
0 replies
Comment options

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.

@michaelrsweet

You must be logged in to vote
4 replies
Comment options

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?

Comment options

@michaelrsweet Ubuntu Core 22 -- sorry should have had that up front.

Comment options

Latest version of Lprint. I pull it down from git and build it.

Comment options

Seems lprint-server is just a script. Probably all I need to do is make sure this is in the path.

Comment options

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?

You must be logged in to vote
0 replies
Comment options

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

You must be logged in to vote
0 replies
Comment options

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

You must be logged in to vote
0 replies
Comment options

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

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Converted from issue

This discussion was converted from issue #176 on April 06, 2025 16:13.

AltStyle によって変換されたページ (->オリジナル) /