The following information could be valuable in helping other users to troubleshoot printing problems. Please read carefully.
Could someone in development investigate if libcups is the missing component in this printing problem? The package, libcups, is not available in Slitaz 4.0 repository. CUPS consists of two parts, client and server. If libcups is essential, then could someone compile libcups.tazpkg for CUPS 1.4.6?
"CUPS - Archwiki/Installing the client package -- The package libcups is the only required package. Install it ... then add your CUPS server's IP address or hostname into /etc/cups/client.conf, after ServerName. That is all you need. Every application should quickly find the printer(s) shared by that CUPS server."
The CUPS server packages:
cups -- installed manually
ghostprint -- installed manually (sometimes optional, but needed for foo2xqx)
gsfonts -- not available in Slitaz 4.0 repository
other packages --
libusb -- installed automatically by default when OS installed
bc -- installed manually (provides dc needed by foo2xqx)
foomatic-filters -- installed manually (needed by foo2xqx)
Printing Failure Summary --
"System Tools/Manage Printing" present. CUPS web interface active. "HP_LaserJet_P1006" available in Leafpad print dialog box. Page does not print. CUPS web interface displays "processing since ..." on Jobs tab. Printers tab displays "Processing - Printer not connected; will retry in 30 seconds...", also, after cancelling job, "Idle, Accepting Jobs, Not Shared, Server Default". Command-line printing fails:
tux@slitaz:~$ lp -d HP_LaserJet_P1006 output.ps
request id is HP_LaserJet_P1006-5 (1 file(s))
tux@slitaz:~$
This does work:
foo2xqx-wrapper output.ps > /dev/usb/lp0
Blacklisting usblp module resulted in "no device" error message. "lpadmin" added to SystemGroup, and "Group lp" added to /etc/cups/cupsd.conf. CUPS does not automatically detect printer. In CUPS web interface, SCSI option was displayed; this was not selected. Printer was added, along with default destination, using the command-line. Other information follows:
printer firmware not loaded --
tux@slitaz:~$ usb_printerid /dev/usb/lp0
GET_DEVICE_ID string:
MFG:Hewlett-Packard;MDL:HP LaserJet P1006;CMD:ACL;CLS:PRINTER;DES:HP LaserJet P1006;
tux@slitaz:~$
printer firmware loaded --
tux@slitaz:~$ cat /usr/share/foo2xqx/firmware/sihpP1006.dl > /dev/usb/lp0
tux@slitaz:~$ usb_printerid /dev/usb/lp0
GET_DEVICE_ID string:
MFG:Hewlett-Packard;MDL:HP LaserJet P1006;CMD:HBS,PJL,ACL;CLS:PRINTER;DES:HP LaserJet P1006;FWVER:20080415;
tux@slitaz:~$
cupsd start --
root@slitaz:/home/tux# /etc/init.d/cupsd start
Starting cups deamon: Cupsd... [ OK ]
root@slitaz:/home/tux#
printer status --
root@slitaz:/home/tux# lpstat -p -d
printer HP_LaserJet_P1006 is idle. enabled since Mon 01 Dec 2014 07:27:38 PM UTC
system default destination: HP_LaserJet_P1006
root@slitaz:/home/tux#
printer info --
root@slitaz:/home/tux# lpoptions -d HP_LaserJet_P1006
auth-info-required=none copies=1 device-uri=usb:/dev/usb/lp0 finishings=3 job-hold-until=no-hold job-priority=50 job-sheets=none,none marker-change-time=0 number-up=1 printer-commands=AutoConfigure,Clean,PrintSelfTestPage printer-info=HP_LaserJet_P1006 printer-is-accepting-jobs=true printer-is-shared=true printer-location printer-make-and-model='HP LaserJet P1006 Foomatic/foo2xqx (recommended)' printer-state=3 printer-state-change-time=1417462058 printer-state-reasons=none printer-type=8556564 printer-uri-supported=ipp://localhost:631/printers/HP_LaserJet_P1006
root@slitaz:/home/tux#
more printer info --
root@slitaz:/home/tux# lpinfo -v
network http
direct usb://HP/LaserJet%20P1006
network lpd
network ipp
network socket
direct scsi
root@slitaz:/home/tux#
loaded modules --
root@slitaz:/home/tux# lsmod
Module Size Used by Not tainted
usblp 7672 0
floppy 41138 0
parport_pc 16061 0
parport 20983 1 parport_pc
button 3602 0
snd_intel8x0 19786 1
snd_ac97_codec 77963 1 snd_intel8x0
ac97_bus 718 1 snd_ac97_codec
snd_pcm 43737 2 snd_intel8x0,snd_ac97_codec
snd_timer 12515 1 snd_pcm
snd 33394 6 snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
soundcore 3357 1 snd
snd_page_alloc 4853 2 snd_intel8x0,snd_pcm
intel_agp 7908 1
intel_gtt 9214 1 intel_agp
agpgart 18221 2 intel_agp,intel_gtt
root@slitaz:/home/tux#
usb bus info --
root@slitaz:/dev/bus/usb/001# ls -l
total 0
crw-rw-rw- 1 root root 189, 0 Dec 2 14:04 001
crw-rw-rw- 1 root lp 189, 1 Dec 2 14:04 002
crw-rw-rw- 1 root lp 189, 3 Dec 1 19:44 004
root@slitaz:/dev/bus/usb/001#
usb info --
root@slitaz:/dev/usb# ls -l
total 0
crw-r--r-- 1 root root 180, 96 Nov 30 17:55 hiddev0
crw-r--r-- 1 root root 180, 97 Nov 30 17:55 hiddev1
crw-r--r-- 1 root root 180, 98 Nov 30 17:55 hiddev2
crw-r--r-- 1 root root 180, 99 Nov 30 17:55 hiddev3
crw-r--r-- 1 root root 180, 100 Nov 30 17:55 hiddev4
crw-r--r-- 1 root root 180, 101 Nov 30 17:55 hiddev5
crw-r--r-- 1 root root 180, 102 Nov 30 17:55 hiddev6
crw-rw---- 1 root lp 180, 0 Dec 2 14:04 lp0
root@slitaz:/dev/usb#
groups and users --
root@slitaz:/etc# cat group
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:root
adm:x:4:
tty:x:5:tux
disk:x:6:root,tux
lp:x:7:root,tux
kmem:x:9:tux
wheel:x:10:root
floppy:x:11:tux
video:x:18:tux
cdrom:x:19:tux
audio:x:20:tux
tape:x:26:tux
www:x:80:
plugdev:x:83:
dialout:x:95:tux
nogroup:x:99:tux
users:x:100:
messagebus:x:25:
haldaemon:x:26:
tux:x:1000:
lpadmin:x:1001:root
root@slitaz:/etc#
/etc/cups/printers.conf --
root@slitaz:/etc/cups# cat printers.conf
# Printer configuration file for CUPS v1.4.6
# Written by cupsd on 2014-12-01 19:42
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<DefaultPrinter HP_LaserJet_P1006>
Info HP_LaserJet_P1006
MakeModel HP LaserJet P1006 Foomatic/foo2xqx (recommended)
DeviceURI usb:/dev/usb/lp0
State Idle
StateTime 1417462058
Type 8425492
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-postscript 0 foomatic-rip
Filter application/vnd.cups-command 0 commandtops
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
AllowUser root
AllowUser tux
OpPolicy default
ErrorPolicy stop-printer
</Printer>
root@slitaz:/etc/cups#
/etc/cups directory --
root@slitaz:/etc/cups# ls -l
total 52
-rw------- 1 root lp 128 Dec 1 19:28 classes.conf
-rw-r----- 1 root lp 4179 Dec 1 20:05 cupsd.conf
-rw-r----- 1 root root 4145 Jun 3 2013 cupsd.conf.default
-rw-r--r-- 1 root root 1448 Jun 3 2013 gstoraster.convs
drwxr-xr-x 2 root root 4096 Jun 3 2013 interfaces
-rw-r--r-- 1 root root 26 Dec 2 14:17 lpoptions
drwxr-xr-x 2 root lp 4096 Dec 1 19:27 ppd
-rw------- 1 root lp 621 Dec 1 19:42 printers.conf
-rw------- 1 root nogroup 592 Dec 1 19:28 printers.conf.O
-rw-r----- 1 root root 186 Jun 3 2013 snmp.conf
drwx------ 2 root lp 4096 Jun 3 2013 ssl
root@slitaz:/etc/cups#
root@slitaz:/etc/cups# cat cupsd.conf
#
# "$Id: cupsd.conf.in 9310 2010-09-21 22:34:57Z mike $"
#
# Sample configuration file for the CUPS scheduler. See "man cupsd.conf" for a
# complete description of this file.
#
# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel debug
# Administrator user group...
SystemGroup sys root lpadmin
# User group...
Group lp
# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseLocalProtocols CUPS
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Restrict access to the server...
<Location />
Order allow,deny
</Location>
# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
...
root@slitaz:/etc/cups#
info from dmesg --
root@slitaz:/home/tux# dmesg
...
parport_pc 00:07: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE,EPP]
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x03F0 pid 0x3E17
usbcore: registered new interface driver usblp
Adding 2097148k swap on /dev/hda1. Priority:-1 extents:1 across:2097148k
root@slitaz:/home/tux#