2.2 Using an USB printer

A recent disstribution of Linux should automatically recognize an USB printer as soon as it is connected and powered up. This is made possible due to the vendor ID and product ID that are reported by USB devices when they connect to a host.

You can check to see if the usblp driver is loaded:

lsmod | grep usblp  
    

If not, you can load the module manually:

modprobe usblp  
    

You can check whether the printer is successfully recognized using the following command:

dmesg  
    

If you see something similar to the following lines, then the printer is successfully recognized:

... printer dev . if . alt . proto . vid 0x.... pid 0x....  
... kernel: usb.c: usblp driver claimed interface ........  
    

You should also be able to confirm the device using the following command:

ls -l /dev/usb/lp*