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

Help! Parallel port #1 not listed in CUPS
  • CurtCurt January 2010
    Hi! I am trying out Slitaz again. I am determined to find a small, light, fast Linux, and I like the general look of Slitaz. I just need to figure out how to get my stuff working.

    And first on the list is to get my printer working. My printer is a Hewlett Packard LaserJet 5000. It's an old printer that I bought brand new (with the cool duplexer) back in 1997 if I remember correctly, and it has been my workhorse for these 12 years. I love this printer. But I am having trouble getting it to connect. More specifically, when I boot Slitaz, CUPS can't find the parallel port.

    I noticed that when I boot Puppy Linux and install CUPS, I can install the printer on the parallel printer port #1. But if I install Scribus before I install CUPS, then I can't see the parallel printer port #1 in the list of devices in CUPS.

    In Slitaz, I install CUPS first, but I never see the parallel printer port.

    So does anyone have any ideas what I am doing wrong or what I need to do? Do you need any additional information?

    I am running a Celeron 1.7GHz processor with 384MB of RAM, and no hard drive. I am booting from the Slitaz or Puppy Linux Live CD.

    Thanks for your help.

  • cavalier911cavalier911 January 2010
    My experience installing a Deskjet 540 to SliTaz 2.0

    All xterm commands are done as root user.

    The kernel modules for the parallel port must be loaded at bootup.

    Verify parallel port modules are loaded

    lsmod | grep par

    No modules are loaded so lets go to:

    Menu/System Tools/Control Box/Initialization tab

    Add the following to Load Modules: lp parport parport_pc

    Click the Change button, exit, shutdown,printer attached,turned on,reboot

    Verify parallel port modules are loaded

    lsmod | grep par

    parport_pc 22292 1

    parport 29012 2 parport_pc,lp

    Verify printer is recognized by kernel

    dmesg | grep -i printer

    parport0: Printer, HEWLETT-PACKARD DESKJET 540

    cat /proc/sys/dev/parport/parport*/autoprobe*

    CLASS:PRINTER;

    MODEL:DESKJET 540;

    MANUFACTURER:HEWLETT-PACKARD;

    DESCRIPTION:Hewlett-Packard DeskJet 540;

    COMMAND SET:MLC,PCL,PML;

    The printer is recognized but no Cups LPT# Device.

    E [13/Jan/2010:05:37:46 +0000] [Job 4] Unable to open device file "/dev/lp0": Permission denied

    E [13/Jan/2010:05:37:46 +0000] PID 1594 (/usr/lib/cups/backend/parallel) stopped with status 1!

    So parallel doesn't have proper permissions to access /dev/lp0

    chmod 0700 /usr/lib/cups/backend/parallel

    reboot

    lpinfo -v

    network socket

    network http

    network ipp

    network lpd

    direct parallel:/dev/lp0

    direct scsi

    Cups Printer Setup Device: LPT #1













  • TotoetsasoeurTotoetsasoeur February 2010
    Hi,
    I am faced to the same problem as Curt:

    I have a printer connected to parallel port, but no parallel port is shown on cups interface.

    As suggested by cavalier911, I checked the following:

    a) Are parallel modules loaded? => yes

    root@slitaz:# lsmod | grep par
    parport_pc 21828 1
    parport 27904 2 parport_pc,lp
    root@slitaz:#


    Here are the message during booting:

    root@slitaz:/# dmesg | grep parport
    parport_pc 00:06: reported by Plug and Play ACPI
    parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP,TRISTATE]
    parport0: Legacy device
    lp0: using parport0 (interrupt-driven).
    root@slitaz:#


    The lpinfo returns:

    root@slitaz:# lpinfo -v
    network socket
    network lpd
    network ipp
    network http
    direct scsi
    root@slitaz:#


    Just to make sure that users are in lp group:

    root@slitaz:# cat /etc/group | grep lp
    lp:x:10:tux,root
    root@slitaz:#


    Does anyone know what should I do in order to make parallel port available to cups?

    Thanks for helping.
    Stephane
  • mojomojo February 2010
    Stephane

    Look again

    The lpinfo returns:

    root@slitaz:# lpinfo -v
    network socket
    network lpd
    network ipp
    network http
    direct scsi
    root@slitaz:#


    there is no

    direct parallel:/dev/lp0

    to correct

    Follow cavalier911 instructions from

    chmod 0700 /usr/lib/cups/backend/parallel

    to the end.
  • TotoetsasoeurTotoetsasoeur February 2010
    Hi mojo,
    Thanks for pointing this out.

    I did the following:

    root@slitaz:# chmod 0700 /usr/lib/cups/backend/parallel

    root@slitaz:# lpinfo -v
    network socket
    direct parallel:/dev/lp0
    network lpd
    network ipp
    network http
    direct scsi
    network beh
    root@slitaz:#


    As you can see, direct parallel:/dev/lp0 is here. :-)

    But it was not enough!!! I needed to install foomatic:

    root@slitaz:# tazpkg get-install foomatic-filters
    root@slitaz:# tazpkg get-install foomatic-db
    root@slitaz:# tazpkg get-install foomatic-db-engine


    And now I (root AND tux) can print to my printer from terminal. :))

    root@slitaz:# lpr -P brother_hl720 toto.txt
    tux@slitaz:# lpr -P brother_hl720 toto.txt


    However printing from terminal is fine, what about any GUI application?
    I cannot select the printer from any GUI application.
    Do you know by any chance what has to be done in order to access this printer from GUI application?

    Thanks for helping.
    Stephane

  • mojomojo February 2010
    Bravo Stephane

    I can't say what the issue would be if your running cooking.

    Cooking from november 2009 has no print support in firefox-shiretoko according to this post.

    http://forum.slitaz.org/index.php/discussion/comment/520/#Comment_520

    But on full install stable slitaz-2.0 the only program I changed for print support was epdfview-cups to replace epdfview.

    Choose File/Print or ctrl+P in Opera,Minefield,Leafpad,Geany,epdfview the same Print dialog box opens.
    My printer's name on Destination tab print range,copies.Options tab with paper size and orientation.Printer program tab with nothing filled in and print,cancel,apply buttons on the bottom.





  • TotoetsasoeurTotoetsasoeur February 2010
    Hi,

    Actually I have only "Print to a file" in the Destination tab print. My printer's name is not listed in this tab. It happens with leafpad and epdfview as well.

    As far this is quite "off topic", I will create a new discussion about this issue I am faced to.

    Once again thank you for your help.
    Stephane

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