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 27: | Line 27: | ||
** 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 got 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> | ||
Line 40: | Line 40: | ||
**** 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 27 13:51 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 27 13:51 lp0</code> | ||
** go back to /dev and create a symlink to the printer device: <code>ln -s /dev/usb/lp0 /dev/usblp0</code> | ** go back to /dev and create a symlink to the printer device: <code>ln -s /dev/usb/lp0 /dev/usblp0</code> | ||
− | ** create all the | + | ** create all the needded directories: |
*** <code>mkdir /dev/bus</code> | *** <code>mkdir /dev/bus</code> | ||
*** <code>mkdir /dev/bus/usb</code> | *** <code>mkdir /dev/bus/usb</code> | ||
*** <code>mkdir /dev/bus/usb/008</code> | *** <code>mkdir /dev/bus/usb/008</code> | ||
− | ** | + | ** swith to /dev/bus/usb/008 directory and create there the needed devices: one for the usb port and one for the printer |
*** <code>mknod 001 c 189 896</code> | *** <code>mknod 001 c 189 896</code> | ||
*** <code>mknod 005 c 189 900</code> | *** <code>mknod 005 c 189 900</code> | ||
Line 53: | Line 53: | ||
***<code>crw-rw-r-- 1 root usb 189, 896 Nov 27 13:29 001</code> | ***<code>crw-rw-r-- 1 root usb 189, 896 Nov 27 13:29 001</code> | ||
***<code>crw-rw-r-- 1 root usb 189, 900 Nov 27 13:30 005</code> | ***<code>crw-rw-r-- 1 root usb 189, 900 Nov 27 13:30 005</code> | ||
− | * ''' | + | * '''Doublechek everything!''' |
* Now edit your VE_NUMBER.conf adding this line: <code>DEVICES="c:180:0:rw c:189:896:rw c:189:900:rw"</code> | * Now edit your VE_NUMBER.conf adding this line: <code>DEVICES="c:180:0:rw c:189:896:rw c:189:900:rw"</code> | ||
** These are the devices replicated in the VE with mknod. | ** These are the devices replicated in the VE with mknod. | ||
Line 64: | Line 64: | ||
* You should be able to see the printer attached to the usb port | * You should be able to see the printer attached to the usb port | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:HOWTO]] | [[Category:HOWTO]] |