Bug 414161
| Summary: | cups-lpd: it is not possible to turn off banner pages (job-sheets) | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Gary Mansell <gary.mansell> |
| Component: | cups | Assignee: | Tim Waugh <twaugh> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | low | ||
| Version: | 5.3 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2007-12-11 14:04:53 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Gary Mansell
2007-12-06 15:36:14 UTC
What does 'rpm -q cups' say? This sounds like bug #230073 which is meant to be fixed already. Here are the details of all the cups packages installed: [root@nptsrv1 ~]# rpm -qa | grep cups libgnomecups-0.2.2-8 cups-lpd-1.2.4-11.14.el5_1.3 cups-libs-1.2.4-11.14.el5_1.3 cups-1.2.4-11.14.el5_1.3 hal-cups-utils-0.6.2-5 libgnomecups-0.2.2-8 cups-libs-1.2.4-11.14.el5_1.3 [root@nptsrv1 ~]# I would also like to add that I have also tried the following: server_args = -o job-sheets=none,none I believe that cups-lpd is reading the server_args line because if I put in the following: server_args = -o document-format=application/octet-stream The cups-lpd package correctly detects job format types and prints them correctly. This is the error in the messages file:
Dec 11 12:57:59 nptsrv1 xinetd[3498]: START: printer pid=880 from=172.30.50.254
Dec 11 12:57:59 nptsrv1 cups-lpd[880]: Unknown command-line option
"job-sheets=none,none" ignored!
Dec 11 12:57:59 nptsrv1 cups-lpd[880]: Connection from 172.30.50.254 (IPv4
172.30.50.254)
Dec 11 12:57:59 nptsrv1 cups-lpd[880]: Receive print job for IS2320-70
Dec 11 12:57:59 nptsrv1 cups-lpd[880]: Print file - job ID = 75
Dec 11 12:57:59 nptsrv1 cups-lpd[880]: Closing connection
Dec 11 12:57:59 nptsrv1 xinetd[3498]: EXIT: printer status=0 pid=880 duration=0(sec)
This is my /etc/xinetd.d/cups-lpd file:
[root@nptsrv1 log]# more /etc/xinetd.d/cups-lpd
# default: off
# description: Allow applications using the legacy lpd protocol to communicate
with CUPS
service printer
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = lp
server = /usr/lib/cups/daemon/cups-lpd
server_args = -o document-format=application/octet-stream
job-sheets=none,none
}
[root@nptsrv1 log]#
The reason for the error you cite in comment #4 is that you have missed '-o' before 'job-sheets=none,none' -- -o only specifies one option at a time when not quoted. Please include more information: 1. Please attach /etc/cups/printers.conf and /etc/cups/lpoptions. 2. How are jobs submitted? What is the client system, and what command is used to submit the job? Thanks - that was the error. You have to specify -o for every commandline option. Hence the correct line in the file /etc/xinetd.d/cups-lpd (if you require multiple options) is: server_args = -o document-format=application/octet-stream -o job-sheets=none,none I have to say that this is rather counter-intuitive ??? I don't seem to be able to mark it as not a bug, are you able to close it? Normally you can do this sort of thing: lp -o "document-format=application/octet-stream job-sheets=none,none" But I wouldn't like to guess how xinetd handles quoted words in the server_args field. Closing. |