Editing USB Printing in VE
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
This howto tries to cover the "device" configuration for printing with a USB printer in a Container. | This howto tries to cover the "device" configuration for printing with a USB printer in a Container. | ||
Please refer to your specific distro for required printing packages. | Please refer to your specific distro for required printing packages. | ||
− | |||
− | * Install | + | * Install usbutils in both HN and VE. |
* In a shell on HN type '''lsusb''' and you'll get the list fo the usb devices on your system: | * In a shell on HN type '''lsusb''' and you'll get the list fo the usb devices on your system: | ||
Bus 002 Device 006: ID 0dda:2026 Integrated Circuit Solution, Inc. USB2.0 Card Reader | Bus 002 Device 006: ID 0dda:2026 Integrated Circuit Solution, Inc. USB2.0 Card Reader | ||
Line 27: | Line 26: | ||
** a '''printer inside''' the /dev/usb directory: <code>crw-rw---- 1 root lp 180, 0 Nov 28 14:14 lp0</code> | ** a '''printer inside''' the /dev/usb directory: <code>crw-rw---- 1 root lp 180, 0 Nov 28 14:14 lp0</code> | ||
** a '''bus/usb''' directory | ** a '''bus/usb''' directory | ||
− | ** '''many directories''' in bus/usb: named with the bus | + | ** '''many directories''' in bus/usb: named with the bus numer that you get with the first lsusb command. In this example the relevant one is '''008''' |
** in the numbered subdirectory '''1 file for every usb device attached to this bus''', the first one is the usb port: | ** in the numbered subdirectory '''1 file for every usb device attached to this bus''', the first one is the usb port: | ||
***<code>crw-rw-r-- 1 root usb 189, 896 Nov 24 16:16 001</code> | ***<code>crw-rw-r-- 1 root usb 189, 896 Nov 24 16:16 001</code> | ||
− | ***<code>crw-rw-r-- 1 root usb 189, | + | ***<code>crw-rw-r-- 1 root usb 189, 902 Nov 28 14:14 007</code> |
− | * Now that you have an idea | + | * Now that you have an idea fo the general structure of your usb devices you have to replicate them on your VE. |
− | |||
** create in /dev (if not present) the usb directory | ** create in /dev (if not present) the usb directory | ||
** create in /dev/usb the printer device typing: <code>mknod lp0 c 180 0</code> | ** create in /dev/usb the printer device typing: <code>mknod lp0 c 180 0</code> | ||
Line 38: | Line 36: | ||
**** <code>chown root:lp lp0</code> | **** <code>chown root:lp lp0</code> | ||
**** <code>chmod 660 lp0 </code> | **** <code>chmod 660 lp0 </code> | ||
− | **** check with <code>ls -l lp0</code> if the new device is '''IDENTICAL''' to the one in HN --> <code>crw-rw---- 1 root lp 180, 0 Nov | + | **** check with ls <code>ls -l lp0</code> if the new device is '''IDENTICAL''' to the one in HN --> <code>crw-rw---- 1 root lp 180, 0 Nov 28 14:14 lp0</code> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |