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.

Share:
9,279

Related videos on Youtube

Egil
Author by

Egil

Updated on September 18, 2022

Comments

  • Egil
    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 sometimes echo 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!