<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tenyo</id>
	<title>OpenVZ Virtuozzo Containers Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tenyo"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/Special:Contributions/Tenyo"/>
	<updated>2026-05-02T15:23:40Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6754</id>
		<title>USB Printing in VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6754"/>
		<updated>2008-11-29T10:40:08Z</updated>

		<summary type="html">&lt;p&gt;Tenyo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This howto tries to cover the &amp;quot;device&amp;quot; configuration for printing with a USB printer in a Container.&lt;br /&gt;
Please refer to your specific distro for required printing packages.&lt;br /&gt;
Please note that ownership/permission/devices are referred to my system and you have to adapt to YOUR configuration: they are reported only as an EXAMPLE.&lt;br /&gt;
&lt;br /&gt;
* Install '''usbutils''' in both HN and VE. &lt;br /&gt;
* In a shell on HN type '''lsusb''' and you'll get the list fo the usb devices on your system:&lt;br /&gt;
  Bus 002 Device 006: ID 0dda:2026 Integrated Circuit Solution, Inc. USB2.0 Card Reader&lt;br /&gt;
  Bus 002 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 007 Device 002: ID 046d:c044 Logitech, Inc. &lt;br /&gt;
  Bus 007 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 006 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply &lt;br /&gt;
  Bus 006 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 001 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 005 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 004 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 003 Device 001: ID 1d6b:0001 &lt;br /&gt;
* Now examine the output of your command and you'll see two important lines: one for your printer and one for the usb port at which is attached, in my case:&lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001&lt;br /&gt;
* In '''/dev''' directory in HN you should have:&lt;br /&gt;
** a '''symlink''' to your usb printer: &amp;lt;code&amp;gt;lrwxrwxrwx 1 root root 7 Nov 28 14:14 usblp0 -&amp;gt; usb/lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''usb''' directory&lt;br /&gt;
** a '''printer inside''' the /dev/usb directory: &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 28 14:14 lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''bus/usb''' directory&lt;br /&gt;
** '''many directories''' in bus/usb: named with the bus number that you got with the first lsusb command. In this example the relevant one is '''008'''&lt;br /&gt;
** in the numbered subdirectory '''1 file for every usb device attached to this bus''', the first one is the usb port:&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 896 Nov 24 16:16 001&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 900 Nov 28 14:14 005&amp;lt;/code&amp;gt;&lt;br /&gt;
* Now that you have an idea of the general structure of your usb devices you have to replicate them on your VE.&lt;br /&gt;
** enter your VE: &amp;lt;code&amp;gt;vzctl enter VE_NUMBER&amp;lt;/code&amp;gt;&lt;br /&gt;
** create in /dev (if not present) the usb directory&lt;br /&gt;
** create in /dev/usb the printer device typing: &amp;lt;code&amp;gt;mknod lp0 c 180 0&amp;lt;/code&amp;gt;&lt;br /&gt;
*** give the correct ownership/permission to the new created device typing:&lt;br /&gt;
**** &amp;lt;code&amp;gt;chown root:lp lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
**** &amp;lt;code&amp;gt;chmod 660 lp0 &amp;lt;/code&amp;gt;&lt;br /&gt;
**** check with &amp;lt;code&amp;gt;ls -l lp0&amp;lt;/code&amp;gt; if the new device is '''IDENTICAL''' to the one in HN --&amp;gt; &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 27 13:51 lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** go back to /dev and create a symlink to the printer device: &amp;lt;code&amp;gt;ln -s /dev/usb/lp0 /dev/usblp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** create all the needed directories:&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus/usb&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus/usb/008&amp;lt;/code&amp;gt;&lt;br /&gt;
** switch to /dev/bus/usb/008 directory and create there the needed devices: one for the usb port and one for the printer&lt;br /&gt;
*** &amp;lt;code&amp;gt;mknod 001 c 189 896&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mknod 005 c 189 900&amp;lt;/code&amp;gt;&lt;br /&gt;
** assign ownership/permissions:&lt;br /&gt;
*** &amp;lt;code&amp;gt;chown root:usb *&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;chmod 664 * &amp;lt;/code&amp;gt;&lt;br /&gt;
*** check everything: &amp;lt;code&amp;gt;ls -l&amp;lt;/code&amp;gt; should give the same results as in HN:&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 896 Nov 27 13:29 001&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 900 Nov 27 13:30 005&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''Doublecheck everything!'''&lt;br /&gt;
* Now edit your VE_NUMBER.conf adding this line: &amp;lt;code&amp;gt;DEVICES=&amp;quot;c:180:0:rw c:189:896:rw c:189:900:rw&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
** These are the devices replicated in the VE with mknod.&lt;br /&gt;
* Almost there: restart your VE and enter it.&lt;br /&gt;
* In VE type: &amp;lt;code&amp;gt;lsusb&amp;lt;/code&amp;gt; and you should see the two devices created before:&lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001&lt;br /&gt;
* If not '''RECHECK''' everything.&lt;br /&gt;
* Start cups and access it via your browser&lt;br /&gt;
* You should be able to see the printer attached to the usb port&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:HOWTO]]&lt;/div&gt;</summary>
		<author><name>Tenyo</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6753</id>
		<title>USB Printing in VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6753"/>
		<updated>2008-11-28T14:53:24Z</updated>

		<summary type="html">&lt;p&gt;Tenyo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This howto tries to cover the &amp;quot;device&amp;quot; configuration for printing with a USB printer in a Container.&lt;br /&gt;
Please refer to your specific distro for required printing packages.&lt;br /&gt;
Please note that ownership/permission/devices are referred to my system and you have to adapt to YOUR configuration: they are reported only as an EXAMPLE.&lt;br /&gt;
&lt;br /&gt;
* Install '''usbutils''' in both HN and VE. &lt;br /&gt;
* In a shell on HN type '''lsusb''' and you'll get the list fo the usb devices on your system:&lt;br /&gt;
  Bus 002 Device 006: ID 0dda:2026 Integrated Circuit Solution, Inc. USB2.0 Card Reader&lt;br /&gt;
  Bus 002 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 007 Device 002: ID 046d:c044 Logitech, Inc. &lt;br /&gt;
  Bus 007 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 006 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply &lt;br /&gt;
  Bus 006 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 001 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 005 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 004 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 003 Device 001: ID 1d6b:0001 &lt;br /&gt;
* Now examine the output of your command and you'll see two important lines: one for your printer and one for the usb port at which is attached, in my case:&lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001&lt;br /&gt;
* In '''/dev''' directory in HN you should have:&lt;br /&gt;
** a '''symlink''' to your usb printer: &amp;lt;code&amp;gt;lrwxrwxrwx 1 root root 7 Nov 28 14:14 usblp0 -&amp;gt; usb/lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''usb''' directory&lt;br /&gt;
** a '''printer inside''' the /dev/usb directory: &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 28 14:14 lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''bus/usb''' directory&lt;br /&gt;
** '''many directories''' in bus/usb: named with the bus number that you got with the first lsusb command. In this example the relevant one is '''008'''&lt;br /&gt;
** in the numbered subdirectory '''1 file for every usb device attached to this bus''', the first one is the usb port:&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 896 Nov 24 16:16 001&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 900 Nov 28 14:14 005&amp;lt;/code&amp;gt;&lt;br /&gt;
* Now that you have an idea of the general structure of your usb devices you have to replicate them on your VE.&lt;br /&gt;
** enter your VE: &amp;lt;code&amp;gt;vzctl enter VE_NUMBER&amp;lt;/code&amp;gt;&lt;br /&gt;
** create in /dev (if not present) the usb directory&lt;br /&gt;
** create in /dev/usb the printer device typing: &amp;lt;code&amp;gt;mknod lp0 c 180 0&amp;lt;/code&amp;gt;&lt;br /&gt;
*** give the correct ownership/permission to the new created device typing:&lt;br /&gt;
**** &amp;lt;code&amp;gt;chown root:lp lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
**** &amp;lt;code&amp;gt;chmod 660 lp0 &amp;lt;/code&amp;gt;&lt;br /&gt;
**** check with &amp;lt;code&amp;gt;ls -l lp0&amp;lt;/code&amp;gt; if the new device is '''IDENTICAL''' to the one in HN --&amp;gt; &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 27 13:51 lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** go back to /dev and create a symlink to the printer device: &amp;lt;code&amp;gt;ln -s /dev/usb/lp0 /dev/usblp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** create all the needded directories:&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus/usb&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus/usb/008&amp;lt;/code&amp;gt;&lt;br /&gt;
** swith to /dev/bus/usb/008 directory and create there the needed devices: one for the usb port and one for the printer&lt;br /&gt;
*** &amp;lt;code&amp;gt;mknod 001 c 189 896&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mknod 005 c 189 900&amp;lt;/code&amp;gt;&lt;br /&gt;
** assign ownership/permissions:&lt;br /&gt;
*** &amp;lt;code&amp;gt;chown root:usb *&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;chmod 664 * &amp;lt;/code&amp;gt;&lt;br /&gt;
*** check everything: &amp;lt;code&amp;gt;ls -l&amp;lt;/code&amp;gt; should give the same results as in HN:&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 896 Nov 27 13:29 001&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 900 Nov 27 13:30 005&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''Doublechek everything!'''&lt;br /&gt;
* Now edit your VE_NUMBER.conf adding this line: &amp;lt;code&amp;gt;DEVICES=&amp;quot;c:180:0:rw c:189:896:rw c:189:900:rw&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
** These are the devices replicated in the VE with mknod.&lt;br /&gt;
* Almost there: restart your VE and enter it.&lt;br /&gt;
* In VE type: &amp;lt;code&amp;gt;lsusb&amp;lt;/code&amp;gt; and you should see the two devices created before:&lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001&lt;br /&gt;
* If not '''RECHECK''' everything.&lt;br /&gt;
* Start cups and access it via your browser&lt;br /&gt;
* You should be able to see the printer attached to the usb port&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:HOWTO]]&lt;/div&gt;</summary>
		<author><name>Tenyo</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6752</id>
		<title>USB Printing in VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6752"/>
		<updated>2008-11-28T14:49:30Z</updated>

		<summary type="html">&lt;p&gt;Tenyo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This howto tries to cover the &amp;quot;device&amp;quot; configuration for printing with a USB printer in a Container.&lt;br /&gt;
Please refer to your specific distro for required printing packages.&lt;br /&gt;
Please note that ownership/permission/devices are referred to my system and you have to adapt to YOUR configuration: they are reported only as an EXAMPLE.&lt;br /&gt;
&lt;br /&gt;
* Install '''usbutils''' in both HN and VE. &lt;br /&gt;
* In a shell on HN type '''lsusb''' and you'll get the list fo the usb devices on your system:&lt;br /&gt;
  Bus 002 Device 006: ID 0dda:2026 Integrated Circuit Solution, Inc. USB2.0 Card Reader&lt;br /&gt;
  Bus 002 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 007 Device 002: ID 046d:c044 Logitech, Inc. &lt;br /&gt;
  Bus 007 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 006 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply &lt;br /&gt;
  Bus 006 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 001 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 005 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 004 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 003 Device 001: ID 1d6b:0001 &lt;br /&gt;
* Now examine the output of your command and you'll see two important lines: one for your printer and one for the usb port at which is attached, in my case:&lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001&lt;br /&gt;
* In '''/dev''' directory in HN you should have:&lt;br /&gt;
** a '''symlink''' to your usb printer: &amp;lt;code&amp;gt;lrwxrwxrwx 1 root root 7 Nov 28 14:14 usblp0 -&amp;gt; usb/lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''usb''' directory&lt;br /&gt;
** a '''printer inside''' the /dev/usb directory: &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 28 14:14 lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''bus/usb''' directory&lt;br /&gt;
** '''many directories''' in bus/usb: named with the bus numer that you got with the first lsusb command. In this example the relevant one is '''008'''&lt;br /&gt;
** in the numbered subdirectory '''1 file for every usb device attached to this bus''', the first one is the usb port:&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 896 Nov 24 16:16 001&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 900 Nov 28 14:14 005&amp;lt;/code&amp;gt;&lt;br /&gt;
* Now that you have an idea of the general structure of your usb devices you have to replicate them on your VE.&lt;br /&gt;
** enter your VE: &amp;lt;code&amp;gt;vzctl enter VE_NUMBER&amp;lt;/code&amp;gt;&lt;br /&gt;
** create in /dev (if not present) the usb directory&lt;br /&gt;
** create in /dev/usb the printer device typing: &amp;lt;code&amp;gt;mknod lp0 c 180 0&amp;lt;/code&amp;gt;&lt;br /&gt;
*** give the correct ownership/permission to the new created device typing:&lt;br /&gt;
**** &amp;lt;code&amp;gt;chown root:lp lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
**** &amp;lt;code&amp;gt;chmod 660 lp0 &amp;lt;/code&amp;gt;&lt;br /&gt;
**** check with &amp;lt;code&amp;gt;ls -l lp0&amp;lt;/code&amp;gt; if the new device is '''IDENTICAL''' to the one in HN --&amp;gt; &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 27 13:51 lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** go back to /dev and create a symlink to the printer device: &amp;lt;code&amp;gt;ln -s /dev/usb/lp0 /dev/usblp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** create all the needded directories:&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus/usb&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus/usb/008&amp;lt;/code&amp;gt;&lt;br /&gt;
** swith to /dev/bus/usb/008 directory and create there the needed devices: one for the usb port and one for the printer&lt;br /&gt;
*** &amp;lt;code&amp;gt;mknod 001 c 189 896&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mknod 005 c 189 900&amp;lt;/code&amp;gt;&lt;br /&gt;
** assign ownership/permissions:&lt;br /&gt;
*** &amp;lt;code&amp;gt;chown root:usb *&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;chmod 664 * &amp;lt;/code&amp;gt;&lt;br /&gt;
*** check everything: &amp;lt;code&amp;gt;ls -l&amp;lt;/code&amp;gt; should give the same results as in HN:&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 896 Nov 27 13:29 001&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 900 Nov 27 13:30 005&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''Doublechek everything!'''&lt;br /&gt;
* Now edit your VE_NUMBER.conf adding this line: &amp;lt;code&amp;gt;DEVICES=&amp;quot;c:180:0:rw c:189:896:rw c:189:900:rw&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
** These are the devices replicated in the VE with mknod.&lt;br /&gt;
* Almost there: restart your VE and enter it.&lt;br /&gt;
* In VE type: &amp;lt;code&amp;gt;lsusb&amp;lt;/code&amp;gt; and you should see the two devices created before:&lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001&lt;br /&gt;
* If not '''RECHECK''' everything.&lt;br /&gt;
* Start cups and access it via your browser&lt;br /&gt;
* You should be able to see the printer attached to the usb port&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:HOWTO]]&lt;/div&gt;</summary>
		<author><name>Tenyo</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6751</id>
		<title>USB Printing in VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6751"/>
		<updated>2008-11-28T14:20:25Z</updated>

		<summary type="html">&lt;p&gt;Tenyo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This howto tries to cover the &amp;quot;device&amp;quot; configuration for printing with a USB printer in a Container.&lt;br /&gt;
Please refer to your specific distro for required printing packages.&lt;br /&gt;
Please note that ownership/permission/devices are referred to my system and you have to adapt to YOUR configuration: they are reported only as an EXAMPLE.&lt;br /&gt;
&lt;br /&gt;
* Install '''usbutils''' in both HN and VE. &lt;br /&gt;
* In a shell on HN type '''lsusb''' and you'll get the list fo the usb devices on your system:&lt;br /&gt;
  Bus 002 Device 006: ID 0dda:2026 Integrated Circuit Solution, Inc. USB2.0 Card Reader&lt;br /&gt;
  Bus 002 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 007 Device 002: ID 046d:c044 Logitech, Inc. &lt;br /&gt;
  Bus 007 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 006 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply &lt;br /&gt;
  Bus 006 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 001 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 005 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 004 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 003 Device 001: ID 1d6b:0001 &lt;br /&gt;
* Now examine the output of your command and you'll see two important lines: one for your printer and one for the usb port at which is attached, in my case:&lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001&lt;br /&gt;
* In '''/dev''' directory in HN you should have:&lt;br /&gt;
** a '''symlink''' to your usb printer: &amp;lt;code&amp;gt;lrwxrwxrwx 1 root root 7 Nov 28 14:14 usblp0 -&amp;gt; usb/lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''usb''' directory&lt;br /&gt;
** a '''printer inside''' the /dev/usb directory: &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 28 14:14 lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''bus/usb''' directory&lt;br /&gt;
** '''many directories''' in bus/usb: named with the bus numer that you got with the first lsusb command. In this example the relevant one is '''008'''&lt;br /&gt;
** in the numbered subdirectory '''1 file for every usb device attached to this bus''', the first one is the usb port:&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 896 Nov 24 16:16 001&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 900 Nov 28 14:14 005&amp;lt;/code&amp;gt;&lt;br /&gt;
* Now that you have an idea of the general structure of your usb devices you have to replicate them on your VE.&lt;br /&gt;
** enter your VE: &amp;lt;code&amp;gt;vzctl enter VE_NUMBER&amp;lt;/code&amp;gt;&lt;br /&gt;
** create in /dev (if not present) the usb directory&lt;br /&gt;
** create in /dev/usb the printer device typing: &amp;lt;code&amp;gt;mknod lp0 c 180 0&amp;lt;/code&amp;gt;&lt;br /&gt;
*** give the correct ownership/permission to the new created device typing:&lt;br /&gt;
**** &amp;lt;code&amp;gt;chown root:lp lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
**** &amp;lt;code&amp;gt;chmod 660 lp0 &amp;lt;/code&amp;gt;&lt;br /&gt;
**** check with &amp;lt;code&amp;gt;ls -l lp0&amp;lt;/code&amp;gt; if the new device is '''IDENTICAL''' to the one in HN --&amp;gt; &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 27 13:51 lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** go back to /dev and create a symlink to the printer device: &amp;lt;code&amp;gt;ln -s /dev/usb/lp0 /dev/usblp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** create all the needded directories:&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus/usb&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus/usb/008&amp;lt;/code&amp;gt;&lt;br /&gt;
** swith to /dev/bus/usb/008 directory and create there the needed devices: one for the usb port and one for the printer&lt;br /&gt;
*** &amp;lt;code&amp;gt;mknod 001 c 189 896&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mknod 005 c 189 900&amp;lt;/code&amp;gt;&lt;br /&gt;
** assign ownership/permissions:&lt;br /&gt;
*** &amp;lt;code&amp;gt;chown root:usb *&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;chmod 664 * &amp;lt;/code&amp;gt;&lt;br /&gt;
*** check everything: &amp;lt;code&amp;gt;ls -l&amp;lt;/code&amp;gt; should give the same results as in HN:&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 896 Nov 27 13:29 001&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 900 Nov 27 13:30 005&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''Doublechek everything!'''&lt;br /&gt;
* Now edit your VE_NUMBER.conf adding this line: &amp;lt;code&amp;gt;DEVICES=&amp;quot;c:180:0:rw c:189:896:rw c:189:900:rw&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
** These are the devices replicated in the VE with mknod.&lt;br /&gt;
* Almost there: restart your VE and enter it.&lt;br /&gt;
* In VE type: &amp;lt;code&amp;gt;lsusb&amp;lt;/code&amp;gt; and you should see the two devices created before:&lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001&lt;br /&gt;
* If not '''RECHECK''' everything.&lt;br /&gt;
* Start cups and access it via your browser&lt;br /&gt;
* You should be able to see the printer attached to the usb port&lt;/div&gt;</summary>
		<author><name>Tenyo</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6750</id>
		<title>USB Printing in VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6750"/>
		<updated>2008-11-28T14:19:54Z</updated>

		<summary type="html">&lt;p&gt;Tenyo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This howto tries to cover the &amp;quot;device&amp;quot; configuration for printing with a USB printer in a Container.&lt;br /&gt;
Please refer to your specific distro for required printing packages.&lt;br /&gt;
Please note that ownership/permission/devices are referred to my system and you have to adapt to YOUR configuration: they are reported only as an EXAMPLE.&lt;br /&gt;
&lt;br /&gt;
* Install '''usbutils''' in both HN and VE. &lt;br /&gt;
* In a shell on HN type '''lsusb''' and you'll get the list fo the usb devices on your system:&lt;br /&gt;
  Bus 002 Device 006: ID 0dda:2026 Integrated Circuit Solution, Inc. USB2.0 Card Reader&lt;br /&gt;
  Bus 002 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 007 Device 002: ID 046d:c044 Logitech, Inc. &lt;br /&gt;
  Bus 007 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 006 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply &lt;br /&gt;
  Bus 006 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 001 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 005 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 004 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 003 Device 001: ID 1d6b:0001 &lt;br /&gt;
* Now examine the output of your command and you'll see two important lines: one for your printer and one for the usb port at which is attached, in my case:&lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001&lt;br /&gt;
* In '''/dev''' directory in HN you should have:&lt;br /&gt;
** a '''symlink''' to your usb printer: &amp;lt;code&amp;gt;lrwxrwxrwx 1 root root 7 Nov 28 14:14 usblp0 -&amp;gt; usb/lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''usb''' directory&lt;br /&gt;
** a '''printer inside''' the /dev/usb directory: &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 28 14:14 lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''bus/usb''' directory&lt;br /&gt;
** '''many directories''' in bus/usb: named with the bus numer that you got with the first lsusb command. In this example the relevant one is '''008'''&lt;br /&gt;
** in the numbered subdirectory '''1 file for every usb device attached to this bus''', the first one is the usb port:&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 896 Nov 24 16:16 001&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 900 Nov 28 14:14 005&amp;lt;/code&amp;gt;&lt;br /&gt;
* Now that you have an idea fo the general structure of your usb devices you have to replicate them on your VE.&lt;br /&gt;
** enter your VE: &amp;lt;code&amp;gt;vzctl enter VE_NUMBER&amp;lt;/code&amp;gt;&lt;br /&gt;
** create in /dev (if not present) the usb directory&lt;br /&gt;
** create in /dev/usb the printer device typing: &amp;lt;code&amp;gt;mknod lp0 c 180 0&amp;lt;/code&amp;gt;&lt;br /&gt;
*** give the correct ownership/permission to the new created device typing:&lt;br /&gt;
**** &amp;lt;code&amp;gt;chown root:lp lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
**** &amp;lt;code&amp;gt;chmod 660 lp0 &amp;lt;/code&amp;gt;&lt;br /&gt;
**** check with &amp;lt;code&amp;gt;ls -l lp0&amp;lt;/code&amp;gt; if the new device is '''IDENTICAL''' to the one in HN --&amp;gt; &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 27 13:51 lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** go back to /dev and create a symlink to the printer device: &amp;lt;code&amp;gt;ln -s /dev/usb/lp0 /dev/usblp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** create all the needded directories:&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus/usb&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus/usb/008&amp;lt;/code&amp;gt;&lt;br /&gt;
** swith to /dev/bus/usb/008 directory and create there the needed devices: one for the usb port and one for the printer&lt;br /&gt;
*** &amp;lt;code&amp;gt;mknod 001 c 189 896&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mknod 005 c 189 900&amp;lt;/code&amp;gt;&lt;br /&gt;
** assign ownership/permissions:&lt;br /&gt;
*** &amp;lt;code&amp;gt;chown root:usb *&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;chmod 664 * &amp;lt;/code&amp;gt;&lt;br /&gt;
*** check everything: &amp;lt;code&amp;gt;ls -l&amp;lt;/code&amp;gt; should give the same results as in HN:&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 896 Nov 27 13:29 001&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 900 Nov 27 13:30 005&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''Doublechek everything!'''&lt;br /&gt;
* Now edit your VE_NUMBER.conf adding this line: &amp;lt;code&amp;gt;DEVICES=&amp;quot;c:180:0:rw c:189:896:rw c:189:900:rw&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
** These are the devices replicated in the VE with mknod.&lt;br /&gt;
* Almost there: restart your VE and enter it.&lt;br /&gt;
* In VE type: &amp;lt;code&amp;gt;lsusb&amp;lt;/code&amp;gt; and you should see the two devices created before:&lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001&lt;br /&gt;
* If not '''RECHECK''' everything.&lt;br /&gt;
* Start cups and access it via your browser&lt;br /&gt;
* You should be able to see the printer attached to the usb port&lt;/div&gt;</summary>
		<author><name>Tenyo</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6749</id>
		<title>USB Printing in VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6749"/>
		<updated>2008-11-28T14:18:51Z</updated>

		<summary type="html">&lt;p&gt;Tenyo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This howto tries to cover the &amp;quot;device&amp;quot; configuration for printing with a USB printer in a Container.&lt;br /&gt;
Please refer to your specific distro for required printing packages.&lt;br /&gt;
Please note that ownership/permission/devices are referred to my system and you have to adapt to YOUR configuration: they are reported only as an EXAMPLE.&lt;br /&gt;
&lt;br /&gt;
* Install '''usbutils''' in both HN and VE. &lt;br /&gt;
* In a shell on HN type '''lsusb''' and you'll get the list fo the usb devices on your system:&lt;br /&gt;
  Bus 002 Device 006: ID 0dda:2026 Integrated Circuit Solution, Inc. USB2.0 Card Reader&lt;br /&gt;
  Bus 002 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 007 Device 002: ID 046d:c044 Logitech, Inc. &lt;br /&gt;
  Bus 007 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 006 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply &lt;br /&gt;
  Bus 006 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 001 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 005 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 004 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 003 Device 001: ID 1d6b:0001 &lt;br /&gt;
* Now examine the output of your command and you'll see two important lines: one for your printer and one for the usb port at which is attached, in my case:&lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001&lt;br /&gt;
* In '''/dev''' directory in HN you should have:&lt;br /&gt;
** a '''symlink''' to your usb printer: &amp;lt;code&amp;gt;lrwxrwxrwx 1 root root 7 Nov 28 14:14 usblp0 -&amp;gt; usb/lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''usb''' directory&lt;br /&gt;
** a '''printer inside''' the /dev/usb directory: &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 28 14:14 lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''bus/usb''' directory&lt;br /&gt;
** '''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'''&lt;br /&gt;
** in the numbered subdirectory '''1 file for every usb device attached to this bus''', the first one is the usb port:&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 896 Nov 24 16:16 001&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 900 Nov 28 14:14 005&amp;lt;/code&amp;gt;&lt;br /&gt;
* Now that you have an idea fo the general structure of your usb devices you have to replicate them on your VE.&lt;br /&gt;
** enter your VE: &amp;lt;code&amp;gt;vzctl enter VE_NUMBER&amp;lt;/code&amp;gt;&lt;br /&gt;
** create in /dev (if not present) the usb directory&lt;br /&gt;
** create in /dev/usb the printer device typing: &amp;lt;code&amp;gt;mknod lp0 c 180 0&amp;lt;/code&amp;gt;&lt;br /&gt;
*** give the correct ownership/permission to the new created device typing:&lt;br /&gt;
**** &amp;lt;code&amp;gt;chown root:lp lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
**** &amp;lt;code&amp;gt;chmod 660 lp0 &amp;lt;/code&amp;gt;&lt;br /&gt;
**** check with &amp;lt;code&amp;gt;ls -l lp0&amp;lt;/code&amp;gt; if the new device is '''IDENTICAL''' to the one in HN --&amp;gt; &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 27 13:51 lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** go back to /dev and create a symlink to the printer device: &amp;lt;code&amp;gt;ln -s /dev/usb/lp0 /dev/usblp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** create all the needded directories:&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus/usb&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus/usb/008&amp;lt;/code&amp;gt;&lt;br /&gt;
** swith to /dev/bus/usb/008 directory and create there the needed devices: one for the usb port and one for the printer&lt;br /&gt;
*** &amp;lt;code&amp;gt;mknod 001 c 189 896&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mknod 005 c 189 900&amp;lt;/code&amp;gt;&lt;br /&gt;
** assign ownership/permissions:&lt;br /&gt;
*** &amp;lt;code&amp;gt;chown root:usb *&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;chmod 664 * &amp;lt;/code&amp;gt;&lt;br /&gt;
*** check everything: &amp;lt;code&amp;gt;ls -l&amp;lt;/code&amp;gt; should give the same results as in HN:&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 896 Nov 27 13:29 001&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 900 Nov 27 13:30 005&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''Doublechek everything!'''&lt;br /&gt;
* Now edit your VE_NUMBER.conf adding this line: &amp;lt;code&amp;gt;DEVICES=&amp;quot;c:180:0:rw c:189:896:rw c:189:900:rw&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
** These are the devices replicated in the VE with mknod.&lt;br /&gt;
* Almost there: restart your VE and enter it.&lt;br /&gt;
* In VE type: &amp;lt;code&amp;gt;lsusb&amp;lt;/code&amp;gt; and you should see the two devices created before:&lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001&lt;br /&gt;
* If not '''RECHECK''' everything.&lt;br /&gt;
* Start cups and access it via your browser&lt;br /&gt;
* You should be able to see the printer attached to the usb port&lt;/div&gt;</summary>
		<author><name>Tenyo</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6748</id>
		<title>USB Printing in VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6748"/>
		<updated>2008-11-28T14:14:08Z</updated>

		<summary type="html">&lt;p&gt;Tenyo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This howto tries to cover the &amp;quot;device&amp;quot; configuration for printing with a USB printer in a Container.&lt;br /&gt;
Please refer to your specific distro for required printing packages.&lt;br /&gt;
Please note that ownership/permission/devices are referred to my system and you have to adapt to YOUR configuration: they are reported only as an EXAMPLE.&lt;br /&gt;
&lt;br /&gt;
* Install '''usbutils''' in both HN and VE. &lt;br /&gt;
* In a shell on HN type '''lsusb''' and you'll get the list fo the usb devices on your system:&lt;br /&gt;
  Bus 002 Device 006: ID 0dda:2026 Integrated Circuit Solution, Inc. USB2.0 Card Reader&lt;br /&gt;
  Bus 002 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 007 Device 002: ID 046d:c044 Logitech, Inc. &lt;br /&gt;
  Bus 007 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 006 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply &lt;br /&gt;
  Bus 006 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 001 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 005 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 004 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 003 Device 001: ID 1d6b:0001 &lt;br /&gt;
* Now examine the output of your command and you'll see two important lines: one for your printer and one for the usb port at which is attached, in my case:&lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001&lt;br /&gt;
* In '''/dev''' directory in HN you should have:&lt;br /&gt;
** a '''symlink''' to your usb printer: &amp;lt;code&amp;gt;lrwxrwxrwx 1 root root 7 Nov 28 14:14 usblp0 -&amp;gt; usb/lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''usb''' directory&lt;br /&gt;
** a '''printer inside''' the /dev/usb directory: &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 28 14:14 lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''bus/usb''' directory&lt;br /&gt;
** '''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'''&lt;br /&gt;
** in the numbered subdirectory '''1 file for every usb device attached to this bus''', the first one is the usb port:&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 896 Nov 24 16:16 001&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 900 Nov 28 14:14 005&amp;lt;/code&amp;gt;&lt;br /&gt;
* Now that you have an idea fo the general structure of your usb devices you have to replicate them on your VE.&lt;br /&gt;
** enter your VE: &amp;lt;code&amp;gt;vzctl enter VE_NUMBER&amp;lt;/code&amp;gt;&lt;br /&gt;
** create in /dev (if not present) the usb directory&lt;br /&gt;
** create in /dev/usb the printer device typing: &amp;lt;code&amp;gt;mknod lp0 c 180 0&amp;lt;/code&amp;gt;&lt;br /&gt;
*** give the correct ownership/permission to the new created device typing:&lt;br /&gt;
**** &amp;lt;code&amp;gt;chown root:lp lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
**** &amp;lt;code&amp;gt;chmod 660 lp0 &amp;lt;/code&amp;gt;&lt;br /&gt;
**** check with &amp;lt;code&amp;gt;ls -l lp0&amp;lt;/code&amp;gt; if the new device is '''IDENTICAL''' to the one in HN --&amp;gt; &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 27 13:51 lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** go back to /dev and create a symlink to the printer device: &amp;lt;code&amp;gt;ln -s /dev/usb/lp0 /dev/usblp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** create all the needded directories:&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus/usb&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus/usb/008&amp;lt;/code&amp;gt;&lt;br /&gt;
** swith to /dev/bus/usb/008 directory and create there the needed devices: one for the usb port and one for the printer&lt;br /&gt;
*** &amp;lt;code&amp;gt;mknod 001 c 189 896&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mknod 005 c 189 900&amp;lt;/code&amp;gt;&lt;br /&gt;
** assign ownership/permissions:&lt;br /&gt;
*** &amp;lt;code&amp;gt;chown root:usb *&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;chmod 664 * &amp;lt;/code&amp;gt;&lt;br /&gt;
*** check everything: &amp;lt;code&amp;gt;ls -l&amp;lt;/code&amp;gt; should give the same results as in HN:&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 896 Nov 27 13:29 001&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 900 Nov 27 13:30 005&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''Doublechek everything!'''&lt;br /&gt;
* Now edit your VE_NUMBER.conf adding this line: &amp;lt;code&amp;gt;DEVICES=&amp;quot;c:180:0:rw c:189:896:rw c:189:900:rw&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
** These are the devices replicated in the VE with mknod.&lt;/div&gt;</summary>
		<author><name>Tenyo</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6747</id>
		<title>USB Printing in VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6747"/>
		<updated>2008-11-28T14:10:37Z</updated>

		<summary type="html">&lt;p&gt;Tenyo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This howto tries to cover the &amp;quot;device&amp;quot; configuration for printing with a USB printer in a Container.&lt;br /&gt;
Please refer to your specific distro for required printing packages.&lt;br /&gt;
Please note that ownership/permission/devices are referred to my system and you have to adapt to YOUR configuration: they are reported only as an EXAMPLE.&lt;br /&gt;
&lt;br /&gt;
* Install '''usbutils''' in both HN and VE. &lt;br /&gt;
* In a shell on HN type '''lsusb''' and you'll get the list fo the usb devices on your system:&lt;br /&gt;
  Bus 002 Device 006: ID 0dda:2026 Integrated Circuit Solution, Inc. USB2.0 Card Reader&lt;br /&gt;
  Bus 002 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 007 Device 002: ID 046d:c044 Logitech, Inc. &lt;br /&gt;
  Bus 007 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 006 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply &lt;br /&gt;
  Bus 006 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 001 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 005 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 004 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 003 Device 001: ID 1d6b:0001 &lt;br /&gt;
* Now examine the output of your command and you'll see two important lines: one for your printer and one for the usb port at which is attached, in my case:&lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001&lt;br /&gt;
* In '''/dev''' directory in HN you should have:&lt;br /&gt;
** a '''symlink''' to your usb printer: &amp;lt;code&amp;gt;lrwxrwxrwx 1 root root 7 Nov 28 14:14 usblp0 -&amp;gt; usb/lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''usb''' directory&lt;br /&gt;
** a '''printer inside''' the /dev/usb directory: &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 28 14:14 lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''bus/usb''' directory&lt;br /&gt;
** '''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'''&lt;br /&gt;
** in the numbered subdirectory '''1 file for every usb device attached to this bus''', the first one is the usb port:&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 896 Nov 24 16:16 001&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 900 Nov 28 14:14 005&amp;lt;/code&amp;gt;&lt;br /&gt;
* Now that you have an idea fo the general structure of your usb devices you have to replicate them on your VE.&lt;br /&gt;
** enter your VE: &amp;lt;code&amp;gt;vzctl enter VE_NUMBER&amp;lt;/code&amp;gt;&lt;br /&gt;
** create in /dev (if not present) the usb directory&lt;br /&gt;
** create in /dev/usb the printer device typing: &amp;lt;code&amp;gt;mknod lp0 c 180 0&amp;lt;/code&amp;gt;&lt;br /&gt;
*** give the correct ownership/permission to the new created device typing:&lt;br /&gt;
**** &amp;lt;code&amp;gt;chown root:lp lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
**** &amp;lt;code&amp;gt;chmod 660 lp0 &amp;lt;/code&amp;gt;&lt;br /&gt;
**** check with &amp;lt;code&amp;gt;ls -l lp0&amp;lt;/code&amp;gt; if the new device is '''IDENTICAL''' to the one in HN --&amp;gt; &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 27 13:51 lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** go back to /dev and create a symlink to the printer device: &amp;lt;code&amp;gt;ln -s /dev/usb/lp0 /dev/usblp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** create all the needded directories:&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus/usb&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus/usb/008&amp;lt;/code&amp;gt;&lt;br /&gt;
** swith to /dev/bus/usb/008 directory and create there the needed devices: one for the usb port and one for the printer&lt;br /&gt;
*** &amp;lt;code&amp;gt;mknod 001 c 189 896&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mknod 005 c 189 900&amp;lt;/code&amp;gt;&lt;br /&gt;
** assign ownership/permissions:&lt;br /&gt;
*** &amp;lt;code&amp;gt;chown root:usb *&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;chmod 664 * &amp;lt;/code&amp;gt;&lt;br /&gt;
*** check everything: &amp;lt;code&amp;gt;ls -l&amp;lt;/code&amp;gt; should give the same results as in HN:&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 896 Nov 27 13:29 001&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 900 Nov 27 13:30 005&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''Doublechek everything!'''&lt;/div&gt;</summary>
		<author><name>Tenyo</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6746</id>
		<title>USB Printing in VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6746"/>
		<updated>2008-11-28T14:04:26Z</updated>

		<summary type="html">&lt;p&gt;Tenyo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This howto tries to cover the &amp;quot;device&amp;quot; configuration for printing with a USB printer in a Container.&lt;br /&gt;
Please refer to your specific distro for required printing packages.&lt;br /&gt;
Please note that ownership/permission/devices are referred to my system and you have to adapt to YOUR configuration: they are reported only as an EXAMPLE.&lt;br /&gt;
&lt;br /&gt;
* Install '''usbutils''' in both HN and VE. &lt;br /&gt;
* In a shell on HN type '''lsusb''' and you'll get the list fo the usb devices on your system:&lt;br /&gt;
  Bus 002 Device 006: ID 0dda:2026 Integrated Circuit Solution, Inc. USB2.0 Card Reader&lt;br /&gt;
  Bus 002 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 007 Device 002: ID 046d:c044 Logitech, Inc. &lt;br /&gt;
  Bus 007 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 006 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply &lt;br /&gt;
  Bus 006 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 001 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 005 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 004 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 003 Device 001: ID 1d6b:0001 &lt;br /&gt;
* Now examine the output of your command and you'll see two important lines: one for your printer and one for the usb port at which is attached, in my case:&lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001&lt;br /&gt;
* In '''/dev''' directory in HN you should have:&lt;br /&gt;
** a '''symlink''' to your usb printer: &amp;lt;code&amp;gt;lrwxrwxrwx 1 root root 7 Nov 28 14:14 usblp0 -&amp;gt; usb/lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''usb''' directory&lt;br /&gt;
** a '''printer inside''' the /dev/usb directory: &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 28 14:14 lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''bus/usb''' directory&lt;br /&gt;
** '''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'''&lt;br /&gt;
** in the numbered subdirectory '''1 file for every usb device attached to this bus''', the first one is the usb port:&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 896 Nov 24 16:16 001&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 900 Nov 28 14:14 005&amp;lt;/code&amp;gt;&lt;br /&gt;
* Now that you have an idea fo the general structure of your usb devices you have to replicate them on your VE.&lt;br /&gt;
** enter your VE: &amp;lt;code&amp;gt;vzctl enter VE_NUMBER&amp;lt;/code&amp;gt;&lt;br /&gt;
** create in /dev (if not present) the usb directory&lt;br /&gt;
** create in /dev/usb the printer device typing: &amp;lt;code&amp;gt;mknod lp0 c 180 0&amp;lt;/code&amp;gt;&lt;br /&gt;
*** give the correct ownership/permission to the new created device typing:&lt;br /&gt;
**** &amp;lt;code&amp;gt;chown root:lp lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
**** &amp;lt;code&amp;gt;chmod 660 lp0 &amp;lt;/code&amp;gt;&lt;br /&gt;
**** check with &amp;lt;code&amp;gt;ls -l lp0&amp;lt;/code&amp;gt; if the new device is '''IDENTICAL''' to the one in HN --&amp;gt; &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 28 14:14 lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** go back to /dev and create a symlink to the printer device: &amp;lt;code&amp;gt;ln -s /dev/usb/lp0 /dev/usblp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** create all the needded directories:&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus/usb&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mkdir /dev/bus/usb/008&amp;lt;/code&amp;gt;&lt;br /&gt;
** swith to /dev/bus/usb/008 directory and create there the needed devices: one for the usb port and one for the printer&lt;br /&gt;
*** &amp;lt;code&amp;gt;mknod 001 c 189 896&amp;lt;/code&amp;gt;&lt;br /&gt;
*** &amp;lt;code&amp;gt;mknod 005 c 189 900&amp;lt;/code&amp;gt;&lt;br /&gt;
** assign ownership/permissions:&lt;/div&gt;</summary>
		<author><name>Tenyo</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6745</id>
		<title>USB Printing in VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6745"/>
		<updated>2008-11-28T13:56:50Z</updated>

		<summary type="html">&lt;p&gt;Tenyo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This howto tries to cover the &amp;quot;device&amp;quot; configuration for printing with a USB printer in a Container.&lt;br /&gt;
Please refer to your specific distro for required printing packages.&lt;br /&gt;
Please note that ownership/permission/devices are referred to my system and you have to adapt to YOUR configuration: they are reported only as an EXAMPLE.&lt;br /&gt;
&lt;br /&gt;
* Install usbutils in both HN and VE. &lt;br /&gt;
* In a shell on HN type '''lsusb''' and you'll get the list fo the usb devices on your system:&lt;br /&gt;
  Bus 002 Device 006: ID 0dda:2026 Integrated Circuit Solution, Inc. USB2.0 Card Reader&lt;br /&gt;
  Bus 002 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 007 Device 002: ID 046d:c044 Logitech, Inc. &lt;br /&gt;
  Bus 007 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 006 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply &lt;br /&gt;
  Bus 006 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 001 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 005 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 004 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 003 Device 001: ID 1d6b:0001 &lt;br /&gt;
* Now examine the output of your command and you'll see two important lines: one for your printer and one for the usb port at which is attached, in my case:&lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001&lt;br /&gt;
* In '''/dev''' directory in HN you should have:&lt;br /&gt;
** a '''symlink''' to your usb printer: &amp;lt;code&amp;gt;lrwxrwxrwx 1 root root 7 Nov 28 14:14 usblp0 -&amp;gt; usb/lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''usb''' directory&lt;br /&gt;
** a '''printer inside''' the /dev/usb directory: &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 28 14:14 lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''bus/usb''' directory&lt;br /&gt;
** '''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'''&lt;br /&gt;
** in the numbered subdirectory '''1 file for every usb device attached to this bus''', the first one is the usb port:&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 896 Nov 24 16:16 001&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 902 Nov 28 14:14 007&amp;lt;/code&amp;gt;&lt;br /&gt;
* Now that you have an idea fo the general structure of your usb devices you have to replicate them on your VE.&lt;br /&gt;
** create in /dev (if not present) the usb directory&lt;br /&gt;
** create in /dev/usb the printer device typing: &amp;lt;code&amp;gt;mknod lp0 c 180 0&amp;lt;/code&amp;gt;&lt;br /&gt;
*** give the correct ownership/permission to the new created device typing:&lt;br /&gt;
**** &amp;lt;code&amp;gt;chown root:lp lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
**** &amp;lt;code&amp;gt;chmod 660 lp0 &amp;lt;/code&amp;gt;&lt;br /&gt;
**** check with &amp;lt;code&amp;gt;ls -l lp0&amp;lt;/code&amp;gt; if the new device is '''IDENTICAL''' to the one in HN --&amp;gt; &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 28 14:14 lp0&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tenyo</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6744</id>
		<title>USB Printing in VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6744"/>
		<updated>2008-11-28T13:54:56Z</updated>

		<summary type="html">&lt;p&gt;Tenyo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This howto tries to cover the &amp;quot;device&amp;quot; configuration for printing with a USB printer in a Container.&lt;br /&gt;
Please refer to your specific distro for required printing packages.&lt;br /&gt;
&lt;br /&gt;
* Install usbutils in both HN and VE. &lt;br /&gt;
* In a shell on HN type '''lsusb''' and you'll get the list fo the usb devices on your system:&lt;br /&gt;
  Bus 002 Device 006: ID 0dda:2026 Integrated Circuit Solution, Inc. USB2.0 Card Reader&lt;br /&gt;
  Bus 002 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 007 Device 002: ID 046d:c044 Logitech, Inc. &lt;br /&gt;
  Bus 007 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 006 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply &lt;br /&gt;
  Bus 006 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 001 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 005 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 004 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 003 Device 001: ID 1d6b:0001 &lt;br /&gt;
* Now examine the output of your command and you'll see two important lines: one for your printer and one for the usb port at which is attached, in my case:&lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001&lt;br /&gt;
* In '''/dev''' directory in HN you should have:&lt;br /&gt;
** a '''symlink''' to your usb printer: &amp;lt;code&amp;gt;lrwxrwxrwx 1 root root 7 Nov 28 14:14 usblp0 -&amp;gt; usb/lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''usb''' directory&lt;br /&gt;
** a '''printer inside''' the /dev/usb directory: &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 28 14:14 lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''bus/usb''' directory&lt;br /&gt;
** '''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'''&lt;br /&gt;
** in the numbered subdirectory '''1 file for every usb device attached to this bus''', the first one is the usb port:&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 896 Nov 24 16:16 001&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 902 Nov 28 14:14 007&amp;lt;/code&amp;gt;&lt;br /&gt;
* Now that you have an idea fo the general structure of your usb devices you have to replicate them on your VE.&lt;br /&gt;
** create in /dev (if not present) the usb directory&lt;br /&gt;
** create in /dev/usb the printer device typing: &amp;lt;code&amp;gt;mknod lp0 c 180 0&amp;lt;/code&amp;gt;&lt;br /&gt;
*** give the correct ownership/permission to the new created device typing:&lt;br /&gt;
**** &amp;lt;code&amp;gt;chown root:lp lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
**** &amp;lt;code&amp;gt;chmod 660 lp0 &amp;lt;/code&amp;gt;&lt;br /&gt;
**** check with &amp;lt;code&amp;gt;ls -l lp0&amp;lt;/code&amp;gt; if the new device is '''IDENTICAL''' to the one in HN --&amp;gt; &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 28 14:14 lp0&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tenyo</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6743</id>
		<title>USB Printing in VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6743"/>
		<updated>2008-11-28T13:54:38Z</updated>

		<summary type="html">&lt;p&gt;Tenyo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This howto tries to cover the &amp;quot;device&amp;quot; configuration for printing with a USB printer in a Container.&lt;br /&gt;
Please refer to your specific distro for required printing packages.&lt;br /&gt;
&lt;br /&gt;
* Install usbutils in both HN and VE. &lt;br /&gt;
* In a shell on HN type '''lsusb''' and you'll get the list fo the usb devices on your system:&lt;br /&gt;
  Bus 002 Device 006: ID 0dda:2026 Integrated Circuit Solution, Inc. USB2.0 Card Reader&lt;br /&gt;
  Bus 002 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 007 Device 002: ID 046d:c044 Logitech, Inc. &lt;br /&gt;
  Bus 007 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 006 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply &lt;br /&gt;
  Bus 006 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 001 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 005 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 004 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 003 Device 001: ID 1d6b:0001 &lt;br /&gt;
* Now examine the output of your command and you'll see two important lines: one for your printer and one for the usb port at which is attached, in my case:&lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001&lt;br /&gt;
* In '''/dev''' directory in HN you should have:&lt;br /&gt;
** a '''symlink''' to your usb printer: &amp;lt;code&amp;gt;lrwxrwxrwx 1 root root 7 Nov 28 14:14 usblp0 -&amp;gt; usb/lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''usb''' directory&lt;br /&gt;
** a '''printer inside''' the /dev/usb directory: &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 28 14:14 lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''bus/usb''' directory&lt;br /&gt;
** '''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'''&lt;br /&gt;
** in the numbered subdirectory '''1 file for every usb device attached to this bus''', the first one is the usb port:&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 896 Nov 24 16:16 001&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;crw-rw-r--  1 root usb  189, 902 Nov 28 14:14 007&amp;lt;/code&amp;gt;&lt;br /&gt;
* Now that you have an idea fo the general structure of your usb devices you have to replicate them on your VE.&lt;br /&gt;
** create in /dev (if not present) the usb directory&lt;br /&gt;
** create in /dev/usb the printer device typing: &amp;lt;code&amp;gt;mknod lp0 c 180 0&amp;lt;/code&amp;gt;&lt;br /&gt;
*** give the correct ownership/permission to the new created device typing:&lt;br /&gt;
**** &amp;lt;code&amp;gt;chown root:lp lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
**** &amp;lt;code&amp;gt;chmod 660 lp0 &amp;lt;/code&amp;gt;&lt;br /&gt;
**** check with ls &amp;lt;code&amp;gt;ls -l lp0&amp;lt;/code&amp;gt; if the new device is '''IDENTICAL''' to the one in HN --&amp;gt; &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 28 14:14 lp0&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tenyo</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6742</id>
		<title>USB Printing in VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=USB_Printing_in_VE&amp;diff=6742"/>
		<updated>2008-11-28T13:39:21Z</updated>

		<summary type="html">&lt;p&gt;Tenyo: New page: This howto tries to cover the &amp;quot;device&amp;quot; configuration for printing with a USB printer in a Container. Please refer to your specific distro for required printing packages.  * Install usbutil...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This howto tries to cover the &amp;quot;device&amp;quot; configuration for printing with a USB printer in a Container.&lt;br /&gt;
Please refer to your specific distro for required printing packages.&lt;br /&gt;
&lt;br /&gt;
* Install usbutils in both HN and VE. &lt;br /&gt;
* In a shell on HN type '''lsusb''' and you'll get the list fo the usb devices on your system:&lt;br /&gt;
  Bus 002 Device 006: ID 0dda:2026 Integrated Circuit Solution, Inc. USB2.0 Card Reader&lt;br /&gt;
  Bus 002 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB&lt;br /&gt;
  Bus 002 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 007 Device 002: ID 046d:c044 Logitech, Inc. &lt;br /&gt;
  Bus 007 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 006 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply &lt;br /&gt;
  Bus 006 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 001 Device 001: ID 1d6b:0002  &lt;br /&gt;
  Bus 005 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 004 Device 001: ID 1d6b:0001  &lt;br /&gt;
  Bus 003 Device 001: ID 1d6b:0001 &lt;br /&gt;
* Now examine the output of your command and you'll see two important lines: one for your printer and one for the usb port at which is attached, in my case:&lt;br /&gt;
  Bus 008 Device 005: ID 04b8:0005 Seiko Epson Corp. Stylus Printer&lt;br /&gt;
  Bus 008 Device 001: ID 1d6b:0001&lt;br /&gt;
* In '''/dev''' directory in HN you should have:&lt;br /&gt;
** a '''symlink''' to your usb printer: &amp;lt;code&amp;gt;lrwxrwxrwx 1 root root 7 Nov 28 14:14 usblp0 -&amp;gt; usb/lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''usb''' directory&lt;br /&gt;
** a '''printer inside''' the /dev/usb directory: &amp;lt;code&amp;gt;crw-rw---- 1 root lp 180, 0 Nov 28 14:14 lp0&amp;lt;/code&amp;gt;&lt;br /&gt;
** a '''bus/usb''' directory&lt;br /&gt;
** '''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'''&lt;/div&gt;</summary>
		<author><name>Tenyo</name></author>
		
	</entry>
</feed>