a) hplip : for hp printers
b) gutenprint : for canon, epson, Lexmark, Sony, Olympus
c) foomatic-db, foomatic-db-engine, foomatic-db-nonfree and foomatic-filters : several free software printer drivers
d) ufr2: for canon printers (extra drivers)
e) splix: for samsung
f) cups-pdf: for pdf printing
dmesg|tail
ls -l /dev/bus/usb/*/*
1) Make a custom udev rule in /etc/udev/rules.d (google search may help :-) ) OR
2) Change the permission of the device node /dev/bus/usb/AAA/BBB manually; where AAA and BBB are your BUS no. and device nodes of your printer machine
/etc/init.d/lighttpd start &
/etc/init.d/cups start
addgroup tux lp
usb 2-2: USB disconnect,address 2
1. load modules: (modprobe...)
usblp
ohci-hcd
usbserial
(perhaps the last is not necessary, i don't know)
2. create a node
mknod /dev/usb/lp0 c 180 0
but again there is a problem with dev/usb/lp0 :
Perhaps a solution in rules ?
3 so try :
chmod a+rw /dev/usb/lp0
4 reload cups after stop
/etc/init.d/cups start
If I do this it says:
root@slitaz:/home/tux# modprobe usblp
root@slitaz:/home/tux# mknod /dev/usb/lp0 c 180 0
mknod: /dev/usb/lp0: File exists
root@slitaz:/home/tux# chmod a+rw /dev/usb/lp0
root@slitaz:/home/tux# /etc/init.d/cupsd start
Starting cups deamon: Cupsd... [ OK ]
root@slitaz:/home/tux# dmesg|tail
EXT3 FS on hda2, internal journal
ACPI: PCI Interrupt Link [ALKC] enabled at IRQ 22
VIA 82xx Audio 0000:00:11.5: PCI INT C -> Link[ALKC] -> GSI 22 (level, low) -> IRQ 22
VIA 82xx Audio 0000:00:11.5: setting latency timer to 64
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
usb 2-2: USB disconnect, address 2
usb 2-2: new full speed USB device using uhci_hcd and address 3
usb 2-2: configuration #1 chosen from 1 choice
usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04F9 pid 0x001A
usbcore: registered new interface driver usblp
dmesg|tail
usb 2-2: configuration #1 chosen from 1 choice
lsusb
tux@slitaz:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
tux@slitaz:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 04f9:001a Brother Industries, Ltd HL-1430 Laser Printer
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
tux@slitaz:~$ dmesg|tail
snd_via82xx: Unknown symbol __gameport_register_port
snd_via82xx: Unknown symbol gameport_set_phys
snd_via82xx: Unknown symbol gameport_unregister_port
snd_via82xx: Unknown symbol __gameport_register_port
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
snd_via82xx: Unknown symbol gameport_set_phys
snd_via82xx: Unknown symbol gameport_unregister_port
snd_via82xx: Unknown symbol __gameport_register_port
usb 3-2: new full speed USB device using uhci_hcd and address 2
usb 3-2: configuration #1 chosen from 1 choice
tux@slitaz:~$ su
Password:
root@slitaz:/home/tux# addgroup tux lp
root@slitaz:/home/tux# ls -l /dev/bus/usb/*/*
ls: /dev/bus/usb/*/*: No such file or directory
Bus 003 Device 002: ID 04f9:001a Brother Industries, Ltd HL-1430 Laser Printer
ATTR{idVendor}=="04f9", ATTR{idProduct}=="001a", MODE:="0660", GROUP:="lp"
tux@slitaz:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 04f9:001a Brother Industries, Ltd HL-1430 Laser Printer
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
tux@slitaz:~$ su
Password:
root@slitaz:/home/tux# addgroup tux lp
root@slitaz:/home/tux# dmesg|tail
snd_via82xx: Unknown symbol gameport_set_phys
snd_via82xx: Unknown symbol gameport_unregister_port
snd_via82xx: Unknown symbol __gameport_register_port
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
snd_via82xx: Unknown symbol gameport_set_phys
snd_via82xx: Unknown symbol gameport_unregister_port
snd_via82xx: Unknown symbol __gameport_register_port
usb 3-2: USB disconnect, address 2
usb 3-2: new full speed USB device using uhci_hcd and address 3
usb 3-2: configuration #1 chosen from 1 choice
root@slitaz:/home/tux# ls -l /dev/bus/usb/*/*
ls: /dev/bus/usb/*/*: No such file or directory
root@slitaz:/home/tux# ls -l /dev/usb
crw-r--r-- 1 root root 180, 96 Dec 16 07:22 hiddev0
crw-r--r-- 1 root root 180, 97 Dec 16 07:22 hiddev1
crw-r--r-- 1 root root 180, 98 Dec 16 07:22 hiddev2
crw-r--r-- 1 root root 180, 99 Dec 16 07:22 hiddev3
crw-r--r-- 1 root root 180, 100 Dec 16 07:22 hiddev4
crw-r--r-- 1 root root 180, 101 Dec 16 07:22 hiddev5
crw-r--r-- 1 root root 180, 102 Dec 16 07:22 hiddev6
root@slitaz:/home/tux# ls -l /proc/bus/usb
dr-xr-xr-x 2 root root 0 Dec 17 07:23 001
dr-xr-xr-x 2 root root 0 Dec 17 07:23 002
dr-xr-xr-x 2 root root 0 Dec 17 07:23 003
dr-xr-xr-x 2 root root 0 Dec 17 07:23 004
dr-xr-xr-x 2 root root 0 Dec 17 07:23 005
-r--r--r-- 1 root root 0 Dec 17 07:25 devices
root@slitaz:/home/tux# ls -l /proc/bus/usb/*/*
-rw-r--r-- 1 root root 43 Dec 17 07:23 /proc/bus/usb/001/001
-rw-r--r-- 1 root root 43 Dec 17 07:23 /proc/bus/usb/002/001
-rw-r--r-- 1 root root 43 Dec 17 07:23 /proc/bus/usb/003/001
-rw-r--r-- 1 root root 50 Dec 17 07:25 /proc/bus/usb/003/003
-rw-r--r-- 1 root root 43 Dec 17 07:23 /proc/bus/usb/004/001
-rw-r--r-- 1 root root 43 Dec 17 07:23 /proc/bus/usb/005/001
root@slitaz:/home/tux# ls -l /sys/bus/usb
drwxr-xr-x 2 root root 0 Dec 17 07:25 devices
drwxr-xr-x 8 root root 0 Dec 17 07:23 drivers
-rw-r--r-- 1 root root 4096 Dec 17 07:31 drivers_autoprobe
--w------- 1 root root 4096 Dec 17 07:31 drivers_probe
--w------- 1 root root 4096 Dec 17 07:31 uevent
root@slitaz:/home/tux# ls -l /sys/bus/usb/*/*
lrwxrwxrwx 1 root root 0 Dec 17 07:23 /sys/bus/usb/devices/1-0:1.0 -> ../../../devices/pci0000:00/0000:00:10.4/usb1/1-0:1.0
lrwxrwxrwx 1 root root 0 Dec 17 07:23 /sys/bus/usb/devices/2-0:1.0 -> ../../../devices/pci0000:00/0000:00:10.0/usb2/2-0:1.0
lrwxrwxrwx 1 root root 0 Dec 17 07:23 /sys/bus/usb/devices/3-0:1.0 -> ../../../devices/pci0000:00/0000:00:10.1/usb3/3-0:1.0
lrwxrwxrwx 1 root root 0 Dec 17 07:25 /sys/bus/usb/devices/3-2 -> ../../../devices/pci0000:00/0000:00:10.1/usb3/3-2
lrwxrwxrwx 1 root root 0 Dec 17 07:31 /sys/bus/usb/devices/3-2:1.0 -> ../../../devices/pci0000:00/0000:00:10.1/usb3/3-2/3-2:1.0
lrwxrwxrwx 1 root root 0 Dec 17 07:23 /sys/bus/usb/devices/4-0:1.0 -> ../../../devices/pci0000:00/0000:00:10.2/usb4/4-0:1.0
lrwxrwxrwx 1 root root 0 Dec 17 07:23 /sys/bus/usb/devices/5-0:1.0 -> ../../../devices/pci0000:00/0000:00:10.3/usb5/5-0:1.0
lrwxrwxrwx 1 root root 0 Dec 17 07:23 /sys/bus/usb/devices/usb1 -> ../../../devices/pci0000:00/0000:00:10.4/usb1
lrwxrwxrwx 1 root root 0 Dec 17 07:23 /sys/bus/usb/devices/usb2 -> ../../../devices/pci0000:00/0000:00:10.0/usb2
lrwxrwxrwx 1 root root 0 Dec 17 07:23 /sys/bus/usb/devices/usb3 -> ../../../devices/pci0000:00/0000:00:10.1/usb3
lrwxrwxrwx 1 root root 0 Dec 17 07:23 /sys/bus/usb/devices/usb4 -> ../../../devices/pci0000:00/0000:00:10.2/usb4
lrwxrwxrwx 1 root root 0 Dec 17 07:23 /sys/bus/usb/devices/usb5 -> ../../../devices/pci0000:00/0000:00:10.3/usb5
/sys/bus/usb/drivers/hiddev:
--w------- 1 root root 4096 Dec 17 07:31 bind
lrwxrwxrwx 1 root root 0 Dec 17 07:31 module -> ../../../../module/usbhid
--w------- 1 root root 4096 Dec 17 07:31 new_id
--w------- 1 root root 4096 Dec 17 07:31 uevent
--w------- 1 root root 4096 Dec 17 07:31 unbind
/sys/bus/usb/drivers/hub:
lrwxrwxrwx 1 root root 0 Dec 17 07:31 1-0:1.0 -> ../../../../devices/pci0000:00/0000:00:10.4/usb1/1-0:1.0
lrwxrwxrwx 1 root root 0 Dec 17 07:31 2-0:1.0 -> ../../../../devices/pci0000:00/0000:00:10.0/usb2/2-0:1.0
lrwxrwxrwx 1 root root 0 Dec 17 07:31 3-0:1.0 -> ../../../../devices/pci0000:00/0000:00:10.1/usb3/3-0:1.0
lrwxrwxrwx 1 root root 0 Dec 17 07:31 4-0:1.0 -> ../../../../devices/pci0000:00/0000:00:10.2/usb4/4-0:1.0
lrwxrwxrwx 1 root root 0 Dec 17 07:31 5-0:1.0 -> ../../../../devices/pci0000:00/0000:00:10.3/usb5/5-0:1.0
--w------- 1 root root 4096 Dec 17 07:31 bind
lrwxrwxrwx 1 root root 0 Dec 17 07:31 module -> ../../../../module/usbcore
--w------- 1 root root 4096 Dec 17 07:31 new_id
--w------- 1 root root 4096 Dec 17 07:31 uevent
--w------- 1 root root 4096 Dec 17 07:31 unbind
/sys/bus/usb/drivers/usb:
lrwxrwxrwx 1 root root 0 Dec 17 07:31 3-2 -> ../../../../devices/pci0000:00/0000:00:10.1/usb3/3-2
--w------- 1 root root 4096 Dec 17 07:31 bind
--w------- 1 root root 4096 Dec 17 07:31 uevent
--w------- 1 root root 4096 Dec 17 07:31 unbind
lrwxrwxrwx 1 root root 0 Dec 17 07:31 usb1 -> ../../../../devices/pci0000:00/0000:00:10.4/usb1
lrwxrwxrwx 1 root root 0 Dec 17 07:31 usb2 -> ../../../../devices/pci0000:00/0000:00:10.0/usb2
lrwxrwxrwx 1 root root 0 Dec 17 07:31 usb3 -> ../../../../devices/pci0000:00/0000:00:10.1/usb3
lrwxrwxrwx 1 root root 0 Dec 17 07:31 usb4 -> ../../../../devices/pci0000:00/0000:00:10.2/usb4
lrwxrwxrwx 1 root root 0 Dec 17 07:31 usb5 -> ../../../../devices/pci0000:00/0000:00:10.3/usb5
/sys/bus/usb/drivers/usb-storage:
--w------- 1 root root 4096 Dec 17 07:31 bind
lrwxrwxrwx 1 root root 0 Dec 17 07:31 module -> ../../../../module/usb_storage
--w------- 1 root root 4096 Dec 17 07:31 new_id
--w------- 1 root root 4096 Dec 17 07:31 uevent
--w------- 1 root root 4096 Dec 17 07:31 unbind
/sys/bus/usb/drivers/usbfs:
--w------- 1 root root 4096 Dec 17 07:31 bind
lrwxrwxrwx 1 root root 0 Dec 17 07:31 module -> ../../../../module/usbcore
--w------- 1 root root 4096 Dec 17 07:31 new_id
--w------- 1 root root 4096 Dec 17 07:31 uevent
--w------- 1 root root 4096 Dec 17 07:31 unbind
/sys/bus/usb/drivers/usbhid:
--w------- 1 root root 4096 Dec 17 07:31 bind
lrwxrwxrwx 1 root root 0 Dec 17 07:31 module -> ../../../../module/usbhid
--w------- 1 root root 4096 Dec 17 07:31 new_id
--w------- 1 root root 4096 Dec 17 07:31 uevent
--w------- 1 root root 4096 Dec 17 07:31 unbind
drwxr-xr-x 2 root root 4096 Dec 16 07:22 usb
crw-rw-rw- 1 root root 189, 0 Dec 16 21:13 usb1
crw-rw-rw- 1 root root 189, 128 Dec 16 21:13 usb2
crw-rw-rw- 1 root root 189, 256 Dec 16 21:13 usb3
crw-rw-rw- 1 root root 189, 384 Dec 16 21:13 usb4
crw-rw-rw- 1 root root 189, 512 Dec 16 21:13 usb5
crw-rw-rw- 1 root root 189, 0 Dec 16 21:13 usbdev1.1
crw-rw---- 1 root root 254, 1 Dec 16 21:13 usbdev1.1_ep00
crw-rw---- 1 root root 254, 0 Dec 16 21:13 usbdev1.1_ep81
crw-rw-rw- 1 root root 189, 128 Dec 16 21:13 usbdev2.1
crw-rw---- 1 root root 254, 3 Dec 16 21:13 usbdev2.1_ep00
crw-rw---- 1 root root 254, 2 Dec 16 21:13 usbdev2.1_ep81
crw-rw-rw- 1 root root 189, 129 Dec 16 08:23 usbdev2.2
crw-rw---- 1 root root 254, 12 Dec 16 08:23 usbdev2.2_ep00
crw-rw---- 1 root root 254, 10 Dec 16 08:23 usbdev2.2_ep01
crw-rw---- 1 root root 254, 11 Dec 16 08:23 usbdev2.2_ep82
crw-rw-rw- 1 root root 189, 256 Dec 16 21:13 usbdev3.1
crw-rw---- 1 root root 254, 5 Dec 16 21:13 usbdev3.1_ep00
crw-rw---- 1 root root 254, 4 Dec 16 21:13 usbdev3.1_ep81
crw-rw-rw- 1 root root 189, 258 Dec 17 07:25 usbdev3.3
crw-rw---- 1 root root 254, 12 Dec 17 07:25 usbdev3.3_ep00
crw-rw---- 1 root root 254, 10 Dec 17 07:25 usbdev3.3_ep01
crw-rw---- 1 root root 254, 11 Dec 17 07:25 usbdev3.3_ep82
crw-rw-rw- 1 root root 189, 384 Dec 16 21:13 usbdev4.1
crw-rw---- 1 root root 254, 7 Dec 16 21:13 usbdev4.1_ep00
crw-rw---- 1 root root 254, 6 Dec 16 21:13 usbdev4.1_ep81
crw-rw-rw- 1 root root 189, 512 Dec 16 21:13 usbdev5.1
crw-rw---- 1 root root 254, 9 Dec 16 21:13 usbdev5.1_ep00
crw-rw---- 1 root root 254, 8 Dec 16 21:13 usbdev5.1_ep81
tux@slitaz:~$ su
Password:
root@slitaz:/home/tux# addgroup tux lp
root@slitaz:/home/tux# dmesg|tail
Freeing unused kernel memory: 256k freed
EXT3 FS on hda2, internal journal
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
ACPI: PCI Interrupt Link [ALKC] enabled at IRQ 22
ACPI: PCI Interrupt 0000:00:11.5[C] -> Link [ALKC] -> GSI 22 (level, low) -> IRQ 22
PCI: Setting latency timer of device 0000:00:11.5 to 64
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
hub 1-0:1.0: unable to enumerate USB device on port 4
usb 3-2: new full speed USB device using uhci_hcd and address 2
usb 3-2: configuration #1 chosen from 1 choice
root@slitaz:/home/tux# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 04f9:001a Brother Industries, Ltd HL-1430 Laser Printer
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@slitaz:/home/tux# ls -l /dev/bus/usb/*/*
crw-rw-r-- 1 root root 189, 0 Dec 19 14:11 /dev/bus/usb/001/001
crw-rw-r-- 1 root root 189, 128 Dec 19 14:11 /dev/bus/usb/002/001
crw-rw-r-- 1 root root 189, 256 Dec 19 14:11 /dev/bus/usb/003/001
crw-rw-r-- 1 root root 189, 257 Dec 19 14:11 /dev/bus/usb/003/002
crw-rw-r-- 1 root root 189, 384 Dec 19 14:11 /dev/bus/usb/004/001
crw-rw-r-- 1 root root 189, 512 Dec 19 14:11 /dev/bus/usb/005/001
root@slitaz:/home/tux# chgrp lp /dev/bus/usb/003/002
root@slitaz:/home/tux# ls -l /dev/bus/usb/*/*
crw-rw-r-- 1 root root 189, 0 Dec 19 14:11 /dev/bus/usb/001/001
crw-rw-r-- 1 root root 189, 128 Dec 19 14:11 /dev/bus/usb/002/001
crw-rw-r-- 1 root root 189, 256 Dec 19 14:11 /dev/bus/usb/003/001
crw-rw-r-- 1 root lp 189, 257 Dec 19 14:11 /dev/bus/usb/003/002
crw-rw-r-- 1 root root 189, 384 Dec 19 14:11 /dev/bus/usb/004/001
crw-rw-r-- 1 root root 189, 512 Dec 19 14:11 /dev/bus/usb/005/001
addgroup tux lp
addgroup root lp
lsusb
chmod 666 /dev/bus/usb/*/*
chgrp lp /dev/bus/usb/*/*
/etc/init.d/cupsd start
tux@slitaz:~$ gtklp
(gtklp:23681): GLib-GIO-WARNING **: Could not initialize inotify
(gtklp:23681): GLib-GIO-WARNING **: Could not initialize inotify
(gtklp:23681): Gtk-WARNING **: Unable to find default local directory monitor type
(gtklp:23681): Gtk-WARNING **: Unable to find default local directory monitor type
(gtklp:23681): Gtk-WARNING **: Unable to find default local directory monitor type
(gtklp:23681): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed
It looks like you're new here. If you want to get involved, click one of these buttons!