Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

Assign fixed path to printer (/dev/usb/lp0)

Writer Matthew Barrera

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!

1 Answer

You can write udev-rules to assign different names to the printer, depending on their serial numbers.

See for an example of a udev printer rule.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy