Fork me on GitHub

CUPS and HOTPLUG

This is a really short HOWTO to configure hotplug to auto-enable usb printer on pluggin in :)

1) lsusb -v show, if printer is plugged in, his ID and VENDOR.

2) create file printer.usermap in /etc/hotplug/usb/
Here we will paste this :

printer 0×0003 0x[yourprinterid] 0x[yourprintervendorid] 0×0000 0×0000 0×00 0×00 0×00 0×00 0×00 0×00 0×00000000

3) create file printer in /etc/hotplug/usb/
Here create the script like this example that enable and accept jobs for a printer:

#!/bin/bash

if [ "${ACTION}" = "add" ]
then
lpadmin -p printername -E
fi

4) dont forget to chmod the file to make it executable :)

happy hotpluggin
antonio

No comments yet.


Leave a comment

(required)

(required)