This is the old SliTaz forum - Please use the main forum.slitaz.org

Wiki for USB printer
  • pre_historic94pre_historic94 November 2009
    Can someone make a manual for printing in SliTaz. Cups already been upgraded to 1.4.2.
  • ChrisMossChrisMoss December 2009
    I have also experienced problems setting this up. I have installed CUPS but when I try to add a local printer but the USB option doesn't appear. I checked that the USB backend exists and also followed a few posts online but without success. I also tried playing with the lp/lpr option but these errored. Unfortunately I'm not at my normal machines so I can't paste in the errors but the log suggestes that CUPS is unable to open a socket which I guess makes sense as I am trying to send to a USB printer.

    If anyone can suggest how I get the USB option to appear in the web interface as a local printer I would be most grateful.

    Thanks

    Chris
  • jozeejozee December 2009
    We are trying to improve printing.

    You need a printer driver. CUPS comes with few. The easiest way is to download:

    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

    If in confusion, install all. Sometimes other brand drivers work for your particular printer, e.g. Dell needs lexmark drivers. Otherwise find your particular printer from OPEN Printing database: http://www.linuxprinting.org/printer_list.cgi

    Few things that may be of help:

    1) Add yourself to "lp" group

    2) Upon connecting usb printer; do:

    dmesg|tail
    ls -l /dev/bus/usb/*/*


    The permissions should show something like root:lp 0660. If you do have permission problem. there are two ways:

    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


    If there is still a permission problem, download hal-cups-utils (its been recently added to repos, so you wait for sometime for it to be on mirrors). This has been reported to help in ubuntu and arch linux forums.



    Once driver pkgs are installed and permissions are fine, use CUPS frontend. Start webserver (say, lighttpd and cups)

    /etc/init.d/lighttpd start &
    /etc/init.d/cups start


    Your printer should work. If still does not work, please report back.


  • pre_historic94pre_historic94 December 2009
    @jozee

    My printer arent still work.

    1. How to add myself to lp group?

    2. There is no directory /bus in /dev

    tux@slitaz:~$ 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 2-2: new full speed USB device using uhci_hcd and address 2

    usb 2-2: configuration #1 chosen from 1 choice

    Generic RTC Driver v1.07

    tux@slitaz:~$ ls -l /dev/bus/usb/*/*

    ls: /dev/bus/usb/*/*: No such file or directory
  • jozeejozee December 2009
    addgroup tux lp

    I assumed you are using a usb printer (are you??). "dmesg" doesn't show anything that your printer is connected to computer but it does show that your sound (snd_via82xx) is broken.

    What printer do you have? Have you installed the printer driver pkgs as detailed above?

    Rohit
  • pre_historic94pre_historic94 December 2009
    @jozee
    My sound still broken using the official linux-sound.

    I am using Brother HL-1430 usb printer. i had connected it. i had installed the printer driver gutenprint

    If I unplugged the printer. It shows:

    usb 2-2: USB disconnect,address 2
  • pre_historic94pre_historic94 December 2009
    any idea?
  • jozeejozee December 2009
    As I have written above, you should check your printer driver in Open Printing database. This is the most important site for linux printing. In your case, read description here:
    http://www.linuxprinting.org/show_printer.cgi?recnum=Brother-HL-1430

    download the ppd file (there are few there, atleast one/all should work) and save it in /usr/share/cups/model/ and then, try the above steps again.
  • pre_historic94pre_historic94 December 2009
    jozee,

    I think the usb printer should show up after clicking the find new printer in cups? Should I do this it is in the old forum:

    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
  • pre_historic94pre_historic94 December 2009
    If i just do only -copy the .ppd file-,dmesg|tail
    usb 2-2: configuration #1 chosen from 1 choice
  • pre_historic94pre_historic94 December 2009
    But all of them cant make my printer working.
  • jozeejozee December 2009
    "usblp" is known to create problems with CUPS-1.4.x. So, don't modprobe it. That used to be with 1.3.x series. Also, you should not need to do mknod and chmod steps. This is automatically handled using udev and udev-rules.

    Can you download "usbutils" pkg and then after connecting your printer, do:
    lsusb

    I don't really know what's happening at your end. Maybe someone can help.
  • pre_historic94pre_historic94 December 2009
    I uninstall slitaz and install it again with all the drivers+cups+hal-utils-cups+usbutils and do all of the instructions.

    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
  • pre_historic94pre_historic94 December 2009
    @jozee

    I changed my printer to another usb port.
    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
  • jozeejozee December 2009
    Bus 003 Device 002: ID 04f9:001a Brother Industries, Ltd HL-1430 Laser Printer


    This looks good. Atleast printer is being recognized. Now, let's first check the permissions:

    ls -l /dev/bus/usb/*/*

  • pre_historic94pre_historic94 December 2009
    There are no such directory /dev/bus/usb/
    But there are /proc/bus/usb/ or /sys/bus/usb or /dev/usb
    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
  • jozeejozee December 2009
    ok what does "ls -l /dev/usb" say?
  • jozeejozee December 2009
    BTW, I think udev rules are not triggering on your computer.
    Based on your lsusb output,
    Bus 003 Device 002: ID 04f9:001a Brother Industries, Ltd HL-1430 Laser Printer


    can you create a new file /etc/udev/rules.d/10-customprinter.rules and add the following udev rule

    ATTR{idVendor}=="04f9", ATTR{idProduct}=="001a", MODE:="0660", GROUP:="lp"


    Note, idVendor and idProduct are based on your above lsusb output.

    Also make sure your "ppd" file is in "/usr/share/cups/model". Then, reboot your computer.

    post the permission command as above
  • pre_historic94pre_historic94 December 2009
    I had put the ppd in /cups/model and the udev rules and restart the computer. But theres nothing like permission rules on ls -l /dev/usb

    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
  • pre_historic94pre_historic94 December 2009

    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
  • pre_historic94pre_historic94 December 2009
    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
  • pre_historic94pre_historic94 December 2009
    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
  • pre_historic94pre_historic94 December 2009
    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
  • pre_historic94pre_historic94 December 2009
    /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
  • pre_historic94pre_historic94 December 2009
    /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
  • pre_historic94pre_historic94 December 2009
    /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
  • pre_historic94pre_historic94 December 2009
    part of ls -l /dev
    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
  • pre_historic94pre_historic94 December 2009
    @jozee

    1) I tried to use slitaz old cooking because there are /dev/usb

    2) I had downloaded all the drivers + usbutils + hal-cups-utils

    3) I add the udev rules and restart computer

    4) Here are the output
    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
  • pre_historic94pre_historic94 December 2009
    @jozee

    I just tried this. Is this correct?
    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
  • ChrisMossChrisMoss December 2009
    I have managed to setup usb printing. Unfortunately I make various changes so not sure which one did the business. However what I did was to install all the Foomatic packages, the HAL-CUPS-UTILS and USB Utils packages. I also set the permissions on /dev/bus/usb/*/* to 666 and change group ownership to lp and added root and tux to the lp group. Once I made these changes I used the find printer option in cups which did find the printer which I set up with the Brother HL1450 driver. When I tried to print the lights on the printer began flashing but no printer output was produced. However this proved that Cups could see the printer. The final step was to download the HL1250 driver from http://www.linuxprinting.org/printer_list.cgi. Modifying the printer to point at this driver finally did the business.

    N.B. I did try reverting to Slitaz 2.6.25.5 but that worked no better.

    Hope this helps.

    Chris
  • pre_historic94pre_historic94 December 2009
    I download all the packages + hal-cups-utils + usbutils.
    And do this in the terminal. The cups detect it and choose CUPS Gutenprint HL-1430, the printer just blinking but not printing, I modified the printer and change the driver to Brother HL-1430 Foomatic/hl1250 that I get from http://www.linuxprinting.org/printer_list.cgi. The printer are working :)
    addgroup tux lp
    addgroup root lp
    lsusb
    chmod 666 /dev/bus/usb/*/*
    chgrp lp /dev/bus/usb/*/*
    /etc/init.d/cupsd start
  • ChrisMossChrisMoss December 2009
    Have you also installed the HL1250.ppd driver instead of the built in one? Getting blinking lights is a partial success.

    On a related point having said printing is working it is only as far as sending test jobs from within Cups. None of the applications I have tried e.g. Abiword make reference to a printer. Is there a way to default all printing to use the default cups printer? Or if not are there instructions to setup a specific application?

    N.B. I have tried using lp and lpr command line printing and even as root I get "Not allowed to print". I have tried chgrp ing to lp but still the same message.

    Thanks

    Chris
  • jozeejozee December 2009
    @pre_historic94 : This is most likely ppd driver problem so rest is working nicely.

    As Chris above suggested, try both HL-1250 and HL-1450:

    a) http://www.linuxprinting.org/show_printer.cgi?recnum=Brother-HL-1250

    b) http://www.linuxprinting.org/show_printer.cgi?recnum=Brother-HL-1450


    @ChrisMoss and pre_historic94:
    Can you also try gtklp application (its a lightweight frond end to cups) from here: http://people.slitaz.org/~jozee/packages/gtklp-1.2.7.tazpkg
  • pre_historic94pre_historic94 December 2009
    Brother HL-1430 are printing using Brother HL-1430 Foomatic/hl1250.ppd
    Thanks :)
    Slitaz are printing
  • pre_historic94pre_historic94 December 2009
    add cupsd daemon and make default printer. Now can print in Abiword
  • pre_historic94pre_historic94 December 2009
    @jozee : How to test gtklp?
  • jozeejozee December 2009
    run "gtklp" from command line. I think I forgot to create .desktop file for this pkg. This doc may help: http://gtklp.sourceforge.net/docs.shtml
  • pre_historic94pre_historic94 December 2009
    It is printing but the terminal shows this
    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

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

SliTaz Social