Assign fixed path to printer (/dev/usb/lp0)
9,279
You can write udev-rules to assign different names to the printer, depending on their serial numbers.
See http://www.reactivated.net/writing_udev_rules.html#example-printer for an example of a udev printer rule.
Related videos on Youtube
![Egil](https://i.stack.imgur.com/H3Xfa.jpg?s=256&g=1)
Author by
Egil
Updated on September 18, 2022Comments
-
Egil almost 2 years
I have two USB printers. They are assigned a path depending on the order of turning them on. The first one is
/deb/usb/lp0
and the second one/deb/usb/lp1
. However, I sometimesecho
to these printers directly and need to know which one is lp0 and which one is lp1. Can I assign a fixed path in some way?Thanks!