LPRng - Disappearing Print Jobs
1. I installed Slackware 9 last weekend and was surprised at just how easily it went. No more difficult than Redhat or Debian. But I have encountered one problem that I cannot resolve. When I try to print - nothing happens.
Print commands execute without errors, but nothing comes out of the printer. I have searched through a number of groups and sites and have tried any suggested fixes that seemed to apply to my problem. Nothing has changed the situation. I would appreciate any help you may have to offer. And yes, as you probably guessed, I would consider myself new to all of this.
2. /etc/printcap
# APS1_BEGIN: printer1
# - don't delete start label for apsfilter printer1
# - no other printer defines between BEGIN and END LABEL
lp|omni/HP_LaserJet_1200;r=600x600;q=medium;c=full;p=letter;m=auto:\
:lp=/dev/lp0:\
:if=/etc/apsfilter/basedir/bin/apsfilter:\
:sd=/var/spool/lpd/lp:\
:lf=/var/spool/lpd/lp/log:\
:af=/var/spool/lpd/lp/acct:\
:mx#0:\
:sh:
# APS1_END - don't delete this
3. KDE Printing Manager information
- lp
- Type: Local Printer
- State: Idle
- Location: Local printer on /dev/lp0
- Description: APS Driver (omni/HP_LaserJet_1200)
- URL:
- Device: parallel:/dev/lp0
- Model: APS Dirver (omni/HP_LaserJet_1200
- Print system currently used: LPR/LPRng Print System
- Spooler type: LPRng
4. Running: echo hello > /dev/lp0 works fine, but anything more
complicated prints without formatting.
5. root_root # lp /etc/printcap && ps aux | grep lpd && lpq
request id is root@linuxbox+332
lp 466 0.0 0.1 3348 1244 ? S 09:31 0:00 [lpd]
lp 1334 0.0 0.1 3352 1428 ? S 09:51 0:00 [lpd]
lp 1335 0.0 0.1 3352 1424 ? R 09:51 0:00 [lpd]
Printer: lp@linuxbox 'omni/HP_LaserJet_1200;r=600x600;q=medium;c=full;p=letter;m=auto'
Queue: 1 printable job
Server: pid 1334 active
Unspooler: pid 1335 active
Status: processing 'dfA332linuxbox.domain.org', size 412, format 'f', IF filter 'apsfilter' at 09:51:16.302
Rank Owner/ID Class Job Files Size Time
active root@linuxbox+332 A 332 /etc/printcap 412 09:51:16
done root@linuxbox+216 A 216 /etc/printcap 412 09:49:37
6. root_root # lpq
Printer: lp@linuxbox 'omni/HP_LaserJet_1200;r=600x600;q=medium;c=full;p=letter;m=auto'
Queue: no printable jobs in queue
Server: no server active
Status: job 'root@linuxbox+332' saved at 09:51:16.865
Rank Owner/ID Class Job Files Size Time
done root@linuxbox+332 A 332 /etc/printcap 412 09:51:16
- why is the status of the job "saved" and not "printed"?
7. lpr -V /etc/printcap
root_lp # lpr -V /etc/printcap
LPRng-3.8.20, Copyright 1988-2002 Patrick Powell, <papowell@lprng.com>
sending job 'root@linuxbox+953' to lp@localhost
connecting to 'localhost', attempt 1
connected to 'localhost'
requesting printer lp@localhost
sending control file 'cfA953linuxbox.domain.org' to lp@localhost
completed sending 'cfA953linuxbox.domain.org' to lp@localhost
sending data file 'dfA953linuxbox.domain.org' to lp@localhost
completed sending 'dfA953linuxbox.domain.org' to lp@localhost
done job 'root@linuxbox+953' transfer to lp@localhost
8. Test page will not print in KDE print manager
9. APSfilter setup successfully, tries to print test page - no such file
10. I have made no changes to /etc/lpd.conf
11. root_etc # apspreview /etc/printcap
- opens gv:stdin
- displays the file correctly
- run print and nothing happens
12. lpd is running
ps aux | grep lpd
lp 466 0.0 0.1 3348 1244 ? S 09:31 0:00 [lpd]
13. lpc reread after apsfilter setup
- lpd server pid 3053 on linuxbox.domain.org, sending SIGHUP
14. Looking in /var/spool/lpd/lp after a print job:
root_lp # cat cfA271*
Aroot@linuxbox+271
CA
D2003-09-06-09:04:16.608
Hlinuxbox.domain.org
J/etc/printcap
Proot
Qlp
N/etc/printcap
fdfA271linuxbox.domain.org
UdfA271linuxbox.domain.org
15. Editted rc.modules
- uncommented the lines for Parallel Printer Support
- chmod +x rc.modules and executed it
root_rc.d # ./rc.modules
Module dependencies up to date (no new kernel modules found).
16. The KDE Printing Manager lists CUPS as an option in the
Print Systems drop-down box. But when I try to connect to it I get an error:
Unable to retrieve the printer list. Error message received from manager:
Connection to CUPS server failed.
Check that the CUPS server is correctly installed and running.
Error: connection refused.
CUPS is not listed by KPackage as being installed.
Slackware pkgtool does not recognize CUPS as being installed,
but when I look for CUPS files I find things like:
- /usr/bin/cups-calibrate
- /usr/lib/cups
- /usr/share/cups
17. Stumped.
Last edited by Gedwimor; 09-06-2003 at 10:42 AM.
|