Giter Club home page Giter Club logo

cups's Introduction

README - Apple CUPS v2.3.6 - 2022-05-25

Note: Apple CUPS is the version of CUPS that is shipped with macOS and iOS. For the current version of CUPS that is used on other operating systems, see https://openprinting.github.io/cups for details.

INTRODUCTION

CUPS is a standards-based, open source printing system developed by Apple Inc. for macOS® and other UNIX®-like operating systems. CUPS uses the Internet Printing Protocol ("IPP") and provides System V and Berkeley command-line interfaces, a web interface, and a C API to manage printers and print jobs. It supports printing to both local (parallel, serial, USB) and networked printers, and printers can be shared from one computer to another, even over the Internet!

Internally, CUPS uses PostScript Printer Description ("PPD") files to describe printer capabilities and features and a wide variety of generic and device- specific programs to convert and print many types of files. Sample drivers are included with CUPS to support many Dymo, EPSON, HP, Intellitech, OKIDATA, and Zebra printers. Many more drivers are available online and (in some cases) on the driver CD-ROM that came with your printer.

CUPS is licensed under the Apache License Version 2.0. See the file "LICENSE" for more information.

READING THE DOCUMENTATION

Initial documentation to get you started is provided in the root directory of the CUPS sources:

  • CHANGES.md: A list of changes in the current major release of CUPS.
  • CONTRIBUTING.md: Guidelines for contributing to the CUPS project.
  • CREDITS.md: A list of past contributors to the CUPS project.
  • DEVELOPING.md: Guidelines for developing code for the CUPS project.
  • INSTALL.md: Instructions for building and installing CUPS.
  • LICENSE: The CUPS license agreement (Apache 2.0).
  • NOTICE: Copyright notices and exceptions to the CUPS license agreement.
  • README.md: This file.

Once you have installed the software you can access the documentation (and a bunch of other stuff) online at http://localhost:631/ and using the man command, for example man cups.

If you're having trouble getting that far, the documentation is located under the doc/help and man directories.

Please read the documentation before asking questions.

GETTING SUPPORT AND OTHER RESOURCES

If you have problems, read the documentation first! We also provide two mailing lists which are available at https://lists.cups.org/mailman/listinfo.

See the CUPS web site at https://www.cups.org/ for other resources.

SETTING UP PRINTER QUEUES USING YOUR WEB BROWSER

CUPS includes a web-based administration tool that allows you to manage printers, classes, and jobs on your server. Open http://localhost:631/admin/ in your browser to access the printer administration tools:

Do not use the hostname for your machine - it will not work with the default CUPS configuration. To enable administration access on other addresses, check the Allow Remote Administration box and click on the Change Settings button.

You will be asked for the administration password (root or any other user in the "sys", "system", "root", "admin", or "lpadmin" group on your system) when performing any administrative function.

SETTING UP PRINTER QUEUES FROM THE COMMAND-LINE

CUPS currently uses PPD (PostScript Printer Description) files that describe printer capabilities and driver programs needed for each printer. The everywhere PPD is used for nearly all modern networks printers sold since about 2009. For example, the following command creates a print queue for a printer at address "11.22.33.44":

lpadmin -p printername -E -v ipp://11.22.33.44/ipp/print -m everywhere

CUPS also includes several sample PPD files you can use for "legacy" printers:

Driver PPD Name
Dymo Label Printers drv:///sample.drv/dymo.ppd
Intellitech Intellibar drv:///sample.drv/intelbar.ppd
EPSON 9-pin Series drv:///sample.drv/epson9.ppd
EPSON 24-pin Series drv:///sample.drv/epson24.ppd
Generic PCL Laser Printer drv:///sample.drv/generpcl.ppd
Generic PostScript Printer drv:///sample.drv/generic.ppd
HP DeskJet Series drv:///sample.drv/deskjet.ppd
HP LaserJet Series drv:///sample.drv/laserjet.ppd
OKIDATA 9-Pin Series drv:///sample.drv/okidata9.ppd
OKIDATA 24-Pin Series drv:///sample.drv/okidat24.ppd
Zebra CPCL Label Printer drv:///sample.drv/zebracpl.ppd
Zebra EPL1 Label Printer drv:///sample.drv/zebraep1.ppd
Zebra EPL2 Label Printer drv:///sample.drv/zebraep2.ppd
Zebra ZPL Label Printer drv:///sample.drv/zebra.ppd

You can run the lpinfo -m command to list all of the available drivers:

lpinfo -m

Run the lpinfo -v command to list the available printers:

lpinfo -v

Then use the correct URI to add the printer using the lpadmin command:

lpadmin -p printername -E -v device-uri -m ppd-name

Current network printers typically use ipp or ipps URIS:

lpadmin -p printername -E -v ipp://11.22.33.44/ipp/print -m everywhere
lpadmin -p printername -E -v ipps://11.22.33.44/ipp/print -m everywhere

Older network printers typically use socket or lpd URIs:

lpadmin -p printername -E -v socket://11.22.33.44 -m ppd-name
lpadmin -p printername -E -v lpd://11.22.33.44/ -m ppd-name

The sample drivers provide basic printing capabilities, but generally do not exercise the full potential of the printers or CUPS. Other drivers provide greater printing capabilities.

PRINTING FILES

CUPS provides both the System V lp and Berkeley lpr commands for printing:

lp filename
lpr filename

Both the lp and lpr commands support printing options for the driver:

lp -o media=A4 -o resolution=600dpi filename
lpr -o media=A4 -o resolution=600dpi filename

CUPS recognizes many types of images files as well as PDF, PostScript, and text files, so you can print those files directly rather than through an application.

If you have an application that generates output specifically for your printer then you need to use the -oraw or -l options:

lp -o raw filename
lpr -l filename

This will prevent the filters from misinterpreting your print file.

LEGAL STUFF

Copyright © 2007-2021 by Apple Inc. Copyright © 1997-2007 by Easy Software Products.

CUPS is provided under the terms of the Apache License, Version 2.0 with exceptions for GPL2/LGPL2 software. A copy of this license can be found in the file LICENSE. Additional legal information is provided in the file NOTICE.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

cups's People

Contributors

albert-astals-cid-kdab avatar atalanttore avatar ataridreams avatar benlees avatar computersforpeace avatar daviev avatar hardfalcon avatar jschwender avatar kenshin33 avatar kesterriley avatar michaelrsweet avatar michaelweghorn avatar mingcongbai avatar mpsuzuki avatar neheb avatar nils-van-zuijlen avatar odyx avatar paulmenzel avatar polluks avatar reddevillg avatar robert-scheck avatar rohieb avatar salgernon avatar sanbrother avatar sanvila avatar sblondon avatar scootergrisen avatar speachy avatar stefanscherer avatar zdohnal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cups's Issues

"make test" uses wrong name for report files

Version: 1.2-current
CUPS.org User: pipitas

In "run-stp-tests.sh", chang the name for the report file(s).
Currently it uses this line:

strfile=cups-str-1.1-date +%Y-%m-%d-whoami.shtml

It should rather use

strfile=cups-str-1.2cvs-date +%Y-%m-%d-whoami.shtml

Unable to Print to HP LaserJet 4M Plus

Version: 1.1.17
CUPS.org User: dknowles.clearfield

Using a default installation of RedHat 9.

Printer LaserJet 4M Plus (PS capable)

Created a new printer hplj4mp using the driver HP LaserJet 4 Plus/4M Plus

Reconfigured samba to use cups (printing = cups)

Used existing windows machine with preinstalled Microsoft drivers for this printer. (Windows XP).

While the test pages in the Printer configuration worked printing from within Open Office on Linux Server failed.

When printing from Windows Client the printer would blink once and then ignore the print job.

Setting the cups logging to debug got the following error_log (extract)

overwrote the /etc/cups/ppd/hplj4mp.ppd with a new file from hp.sourceforge.net for this printer (PS) and the printing starting working correctly.

D [25/Apr/2003:10:05:21 -1200] ProcessIPPRequest: 3 status_code=0
D [25/Apr/2003:10:05:21 -1200] CloseClient() 3
D [25/Apr/2003:10:05:21 -1200] AcceptClient() 3 from localhost:631.
D [25/Apr/2003:10:05:21 -1200] ReadClient() 3 POST / HTTP/1.1
D [25/Apr/2003:10:05:21 -1200] ProcessIPPRequest: 3 status_code=0
D [25/Apr/2003:10:05:21 -1200] CloseClient() 3
D [25/Apr/2003:10:05:21 -1200] AcceptClient() 3 from localhost:631.
D [25/Apr/2003:10:05:21 -1200] ReadClient() 3 POST / HTTP/1.1
D [25/Apr/2003:10:05:21 -1200] ProcessIPPRequest: 3 status_code=0
D [25/Apr/2003:10:05:21 -1200] CloseClient() 3
D [25/Apr/2003:10:05:21 -1200] AcceptClient() 3 from localhost:631.
D [25/Apr/2003:10:05:21 -1200] ReadClient() 3 POST / HTTP/1.1
D [25/Apr/2003:10:05:21 -1200] ProcessIPPRequest: 3 status_code=0
D [25/Apr/2003:10:05:21 -1200] CloseClient() 3
D [25/Apr/2003:10:05:21 -1200] AcceptClient() 3 from localhost:631.
D [25/Apr/2003:10:05:21 -1200] ReadClient() 3 POST /printers/hplj4mp HTTP/1.1
D [25/Apr/2003:10:05:21 -1200] print_job: auto-typing file...
D [25/Apr/2003:10:05:21 -1200] print_job: request file type is application/vnd.cups-postscript.
D [25/Apr/2003:10:05:21 -1200] check_quotas: requesting-user-name = 'dknowles'
D [25/Apr/2003:10:05:21 -1200] print_job: requesting-user-name = 'dknowles'
D [25/Apr/2003:10:05:21 -1200] Adding default job-sheets values "none,none"...
I [25/Apr/2003:10:05:21 -1200] Job 39 queued on 'hplj4mp' by 'dknowles'.
D [25/Apr/2003:10:05:21 -1200] Job 39 hold_until = 0
D [25/Apr/2003:10:05:21 -1200] StartJob(39, 0x80916f0)
D [25/Apr/2003:10:05:21 -1200] StartJob() id = 39, file = 0/1
D [25/Apr/2003:10:05:21 -1200] job-sheets=none,none
D [25/Apr/2003:10:05:21 -1200] banner_page = 0
D [25/Apr/2003:10:05:21 -1200] StartJob: argv = "hplj4mp","39","dknowles","PFE - Untitled1","1","","/var/spool/cups/d00039-001"
D [25/Apr/2003:10:05:21 -1200] StartJob: envp = "PATH=/usr/lib/cups/filter:/bin:/usr/bin","SOFTWARE=CUPS/1.1","USER=root","CHARSET=iso-8859-1","LANG=en_US",""
,"PPD=/etc/cups/ppd/hplj4mp.ppd","CUPS_SERVERROOT=/etc/cups","RIP_MAX_CACHE=8m","TMPDIR=/var/spool/cups/tmp","CONTENT_TYPE=application/vnd.cups-postscript","D
EVICE_URI=socket://192.168.1.50:9100","PRINTER=hplj4mp","CUPS_DATADIR=/usr/share/cups","CUPS_FONTPATH=/usr/share/cups/fonts","","",""
D [25/Apr/2003:10:05:21 -1200] StartJob: statusfds = 5, 6
D [25/Apr/2003:10:05:21 -1200] StartJob: filterfds[1] = 7, -1
D [25/Apr/2003:10:05:21 -1200] StartJob: filter = "/usr/lib/cups/filter/cupsomatic"
D [25/Apr/2003:10:05:21 -1200] StartJob: filterfds[0] = 8, 9
D [25/Apr/2003:10:05:21 -1200] start_process("/usr/lib/cups/filter/cupsomatic", 0xbfff0330, 0xbffef7e0, 7, 9, 6)
I [25/Apr/2003:10:05:21 -1200] Started filter /usr/lib/cups/filter/cupsomatic (PID 23885) for job 39.
D [25/Apr/2003:10:05:21 -1200] StartJob: backend = "/usr/lib/cups/backend/socket"
D [25/Apr/2003:10:05:21 -1200] StartJob: filterfds[1] = -1, 7
D [25/Apr/2003:10:05:21 -1200] start_process("/usr/lib/cups/backend/socket", 0xbfff0330, 0xbffef7e0, 8, 7, 6)
I [25/Apr/2003:10:05:21 -1200] Started backend /usr/lib/cups/backend/socket (PID 23886) for job 39.
D [25/Apr/2003:10:05:21 -1200] ProcessIPPRequest: 3 status_code=0
D [25/Apr/2003:10:05:21 -1200] CloseClient() 3
D [25/Apr/2003:10:05:21 -1200] [Job 39] Cupsomatic backend version $Revision: 2.13 $ running...
D [25/Apr/2003:10:05:21 -1200] [Job 39] inputfile handling is broken!!!inputfile handling is broken!!! at /usr/lib/cups/filter/cupsomatic line 167.
D [25/Apr/2003:10:05:21 -1200] [Job 39] ppd=/etc/cups/ppd/hplj4mp.ppd
D [25/Apr/2003:10:05:21 -1200] [Job 39] Seaerching job for option settings ...
D [25/Apr/2003:10:05:21 -1200] [Job 39] /usr/lib/cups/filter/cupsomatic: inserted option PS code:
D [25/Apr/2003:10:05:21 -1200] [Job 39] gs PID pid2=23888
D [25/Apr/2003:10:05:21 -1200] [Job 39] gs command: gs -q -dPARANOIDSAFER -dBATCH -dNOPAUSE -sOutputFile=- -sDEVICE=omni -sDeviceName=HP_LaserJet_4_Plus_4M_Pl
us -sproperties=" form=iso_a4_2100.00x2970.00mm tray=TRAY_MULTI_TRAY media=MEDIA_PLAIN resolution=600x600 printmode=PRINT_MODE_1_ANY dither=DITHER_STUCKI_DIFF
USION orientation=portrait HardwareScaling=0" -
D [25/Apr/2003:10:05:21 -1200] [Job 39] foomatic-gswrapper: gs '-dPARANOIDSAFER' '-dBATCH' '-dNOPAUSE' '-sOutputFile=/dev/fd/3' '-sDEVICE=omni' '-sDeviceName=
HP_LaserJet_4_Plus_4M_Plus' '-sproperties= form=iso_a4_2100.00x2970.00mm tray=TRAY_MULTI_TRAY media=MEDIA_PLAIN resolution=600x600 printmode=PRINT_MODE_1_ANY
dither=DITHER_STUCKI_DIFFUSION orientation=portrait HardwareScaling=0' '/dev/fd/0' 3>&1 1>&2
D [25/Apr/2003:10:05:21 -1200] [Job 39] GNU Ghostscript 7.05 (2002-04-22)
D [25/Apr/2003:10:05:21 -1200] [Job 39] Copyright (C) 2002 artofcode LLC, Benicia, CA. All rights reserved.
D [25/Apr/2003:10:05:21 -1200] [Job 39] This software comes with NO WARRANTY: see the file PUBLIC for details.
D [25/Apr/2003:10:05:22 -1200] [Job 39] Loading NimbusRomNo9L-Regu font from /usr/share/fonts/default/Type1/n021003l.pfb... 2411676 1053356 1642520 347466 0 d
one.
D [25/Apr/2003:10:05:23 -1200] [Job 39] Loading NimbusSanL-Regu font from /usr/share/fonts/default/Type1/n019003l.pfb... 2786636 1379234 1662616 358654 0 done
.
D [25/Apr/2003:10:05:23 -1200] [Job 39] Using NimbusSansL-Regu font for NimbusSanL-Regu.
D [25/Apr/2003:10:05:23 -1200] [Job 39] Error: /typecheck in --.unread--
D [25/Apr/2003:10:05:23 -1200] [Job 39] Operand stack:
D [25/Apr/2003:10:05:23 -1200] [Job 39] true --nostringval-- true 0
D [25/Apr/2003:10:05:23 -1200] [Job 39] Execution stack:
D [25/Apr/2003:10:05:23 -1200] [Job 39] %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
--nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop --nostringval-- 1 1 3 --nostringval-- %for_pos_int_continue
--nostringval-- --nostringval-- --nostringval--
D [25/Apr/2003:10:05:23 -1200] [Job 39] Dictionary stack:
D [25/Apr/2003:10:05:23 -1200] [Job 39] --dict:1062/1123(ro)(G)-- --dict:0/20(G)-- --dict:88/200(L)--
D [25/Apr/2003:10:05:23 -1200] [Job 39] Current allocation mode is local
D [25/Apr/2003:10:05:23 -1200] [Job 39] Last OS error: 29
D [25/Apr/2003:10:05:23 -1200] [Job 39] GNU Ghostscript 7.05: Unrecoverable error, exit code 1
D [25/Apr/2003:10:05:23 -1200] [Job 39]
Couldn't exec foomatic-gswrapper -q -dPARANOIDSAFER -dBATCH -dNOPAUSE -sOutputFile=- -sDEVICE=omni -sDeviceName=HP_La
serJet_4_Plus_4M_Plus -sproperties=" form=iso_a4_2100.00x2970.00mm tray=TRAY_MULTI_TRAY media=MEDIA_PLAIN resolution=600x600 printmode=PRINT_MODE_1_ANY dither
=DITHER_STUCKI_DIFFUSION orientation=portrait HardwareScaling=0" - at /usr/lib/cups/filter/cupsomatic line 1097.
D [25/Apr/2003:10:05:23 -1200] [Job 39] Main process finished
D [25/Apr/2003:10:05:23 -1200] [Job 39] tail process done writing data to *main::STDOUT
D [25/Apr/2003:10:05:23 -1200] [Job 39] KID4 finished
D [25/Apr/2003:10:05:23 -1200] UpdateJob: job 39, file 0 is complete.
D [25/Apr/2003:10:05:23 -1200] CancelJob: id = 39
D [25/Apr/2003:10:05:23 -1200] StopJob: id = 39, force = 0
D [25/Apr/2003:10:05:23 -1200] StopJob: printer state is 3
D [25/Apr/2003:10:05:50 -1200] AcceptClient() 3 from localhost:631.
D [25/Apr/2003:10:05:50 -1200] AcceptClient() 5 from localhost:631.
D [25/Apr/2003:10:05:50 -1200] ReadClient() 5 POST / HTTP/1.1
D [25/Apr/2003:10:05:50 -1200] ProcessIPPRequest: 5 status_code=0
D [25/Apr/2003:10:05:50 -1200] CloseClient() 5
D [25/Apr/2003:10:05:50 -1200] AcceptClient() 5 from localhost:631.
D [25/Apr/2003:10:05:50 -1200] ReadClient() 5 POST / HTTP/1.1
D [25/Apr/2003:10:05:50 -1200] ProcessIPPRequest: 5 status_code=0
D [25/Apr/2003:10:05:50 -1200] CloseClient() 5
D [25/Apr/2003:10:05:50 -1200] AcceptClient() 5 from localhost:631.
D [25/Apr/2003:10:05:50 -1200] ReadClient() 5 POST / HTTP/1.1
D [25/Apr/2003:10:05:50 -1200] ProcessIPPRequest: 5 status_code=0
D [25/Apr/2003:10:05:50 -1200] ReadClient() 3 POST / HTTP/1.1
D [25/Apr/2003:10:05:50 -1200] ProcessIPPRequest: 3 status_code=0
D [25/Apr/2003:10:05:50 -1200] CloseClient() 3
D [25/Apr/2003:10:05:50 -1200] CloseClient() 5

Test problem

Version: 1.2-current
CUPS.org User: mike

This is just a test.

StartJob logs garbage on MacOSX

Version: 1.1.19rc1
CUPS.org User: jlovell

With loglevel debug StartJob logs an unitialized string.

Index: job.c

RCS file: /home/anoncvs/cups/scheduler/job.c,v
retrieving revision 1.205
diff -u -d -b -w -r1.205 job.c
--- job.c 14 Apr 2003 18:33:26 -0000 1.205
+++ job.c 14 Apr 2003 19:53:18 -0000
@@ -1753,6 +1753,7 @@
}

#ifdef APPLE

  • strlcpy(processPath, "", sizeof(processPath));
    envp[envc ++] = processPath;
    #endif /* APPLE */

Strange error between SAMBA 2.2.8a & CUPS 1.1.18, fix in 1.1.19?

Version: 1.1.18
CUPS.org User: mark_devlyn.hotmail

Hi,

I'm trying to compile Samba 2.2.8a ( I know that this isn't the subject here but it's kind of strange) everything goes well If I compile it with CUPS 1.1.14, that comes with my Solaris 9 x86 distribution, but, when I compile & install CUPS 1.1.18 first and after that I try to compile Samba 2.2.8a It fails at the configure phase, it says:

configure: error: cant find test code. Aborting config

I try to find what's goin' on, every path, every package is installed, because CUPS 1.1.14 and SAMBA 2.2.8a works fine, but due to security reasons I'm forced to move to CUPS 1.1.18, and Specially, because Printers doesn't work well between CUPS 1.1.14 and SAMBA 2.2.8a. (JetDirect Printers)

Does anyone knows if there's a patch, o tip to get compiled it? (SAMBA 2.2.8a with CUPS 1.1.18).

Thnx

ESP GhostScript does not display/print files produced with GNU libplot

Version: 7.05.6
CUPS.org User: till.kamppeter

A user of Mandrake Linux 9.0 reported the following bug already some time ago

https://qa.mandrakesoft.com/show_bug.cgi?id=431

He has found out that all plots created with the GNU libplot library cause an error when trying to display or print these with ESP GhostScript 7.05.5 or 7.05.6. They work fine with GNU or AFPL GhostScript.

I could reproduce the bug. The file

http://www.linuxprinting.org/till/tmp/ESP_GS_7.05.5_does_not_display_this.ps

causes an error in ESP GhostScript (Mandrake 9.0 or 9.1, ESP GhostScript 7.05.5 or 7.05.6) and works correctly with GNU GhostScript (version 6.53 from Mandrake 8.2).


$ gs -sDEVICE=x11 ESP_GS_7.05.5_does_not_display_this.ps

ESP Ghostscript 7.05 (2002-09-02)
Copyright (C) 2002 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Loading NimbusSanL-Regu font from /usr/share/fonts/default/Type1/n019003l.pfb... 2038856 677148 1642520 351139 0 done.
Using NimbusSansL-Regu font for NimbusSanL-Regu.
Error: /rangecheck in --get--
Operand stack:
--nostringval-- --nostringval-- --nostringval-- descender 0 --nostringval-- 1
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3
%oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval--
2 %stopped_push --nostringval-- --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1047/1123(ro)(G)-- --dict:0/20(G)-- --dict:69/200(L)-- --dict:39/50(L)-- --dict:2/17(L)-- --dict:5/17(L)-- --dict:1/3(L)-- --dict:13/14(ro)(L)--
Current allocation mode is local
Current file position is 11008
ESP Ghostscript 7.05.5: Unrecoverable error, exit code 1

$

documentation error regarding netatalk

Version: 1.1.19rc2
CUPS.org User: thomas.kaiser.phg-online

In the chapter titled "NetATalk" the syntax for papd.conf entries is wrong. It should not read

Printer Description:MyPrinter@MyServer:\

but

Printer Name@Zone Name:\

AppleTalk entities are built up of three elements:

Device Name:Device Type@Zone Name

In papd.conf one only needs to specify "Device Name" and in case the spooler should be registered in another than the standard zone, the appropriate zone name. The "Device Type" will be substituted with "LaserWriter" and a missing zone argument with the "*" (means standard zone).

So

My CUPS printer:\

will lead to a NBP (Name Binding Protocol) name

My CUPS printer:LaserWriter@*

and

My CUPS printer@First Floor:\

to

My CUPS printer:LaserWriter@First Floor

If you need more details on papd.conf syntax have a look at http://marc.theaimsgroup.com/?l=netatalk

espgs doesn't compile with the sparc driver enabled

Version: 7.05.6
CUPS.org User: alan.cesma.usb

espgs doesn't compile with the sparc driver enabled.
I have a patch to fix this, but to be able to build it you need the lpviio.h file.
This file is copyrighted by Sun, but it can be found in the software that comes with the printer.

Sending SIGHUP to cupsd permently deletes all printers

Version: 1.1.19rc2
CUPS.org User: jlovell

Because StopPrinter() now updates the printer state via SetPrinterState() (which updates printers.conf) this causes DeleteAllPrinters to permently remove all printers. To reproduce this try a 'killall -HUP cupsd'.

Although not particularly pretty this patch fixes it.

Index: printers.c

RCS file: /home/anoncvs/cups/scheduler/printers.c,v
retrieving revision 1.149
diff -u -d -b -w -r1.149 printers.c
--- printers.c 16 Apr 2003 20:31:45 -0000 1.149
+++ printers.c 24 Apr 2003 15:38:23 -0000
@@ -308,7 +308,14 @@
next = p->next;

 if (!(p->type & CUPS_PRINTER_CLASS))
  • {
  •  /*
    
  •   \* Prevent SetPrinterState from updating printers.conf
    
  •   */
    
  •  p->state = IPP_PRINTER_STOPPED;
    
    • DeletePrinter(p);
  • }
    }

if (CommonData)

Problem compiling cups 1.1.19

Version: 1.1.19rc1
CUPS.org User: pierre42d.9online

Hi,

I try to compile cups-1.1.19rc1 on my GNU/Linux system with gcc-3.2
there was no problem with the configure, but for the make I got this :

[...]
Compiling util.c...
Linking libcups.so.2...
/bin/sh: /bin/ln: No such file or directory
gmake[1]: *** [libcups.so.2] Error 127
gmake: *** [all] Error 1

On my system "ln" is in /usr/local/bin
Why is an absolute path used ?

Regards,

Pierre.

charset encoding always latin1

Version: 1.1.18
CUPS.org User: maccy2.yahoo

no matter what is defined for default charset in cupsd.conf (the default should be utf-8) cups treats all text files as latin1. printing an utf-8 encoded text file should print file with a default installtion because utf-8 is the default but it isn't really.
Shouldn't there also be an option for lp/lpr to define a charset encoding, which should be handed over to the cups server?

Can't print on that shared printer

Version: 1.1.19rc1
CUPS.org User: totalsi.terra.com

I'm seting a windows 2000 shared printer on my linux RH 9.0 server. I can see the browse tree, but when i can't print on that shared printer.
The /var/log/cups/error.log, say that i don't have permission to print ...

Problems when stop/start cupsd

Version: 1.1.19rc2
CUPS.org User: steve.p.walsh.hp

Strange happenings when I stop and start cups via init.d script.

Solaris 5.8 gcc 3.2
cupsd.conf unmodified from shipped except for debug2 added.

Occasionally, when starting cups I get the message
"User Signal 1
cups: unable to start scheduler"
though the schedular actually starts.

I also get, maybe coincidental to the signal, the deletion of a printer from printers.conf. printers.conf.0 is saved.

I have open http://localhost:631/printers during the stop/start operations ( may be significant ? ).

Xerox DocuPrint 4025 PPD crashes CUPS config CGI

Version: 1.1.14
CUPS.org User: craig.ringer

When I create a new printer in the cups web interface and specify the Xerox DocuPrint 4025 PPD in /usr/share/cups/models (its a manufacturer-supplied PPD), the printer is created fine. However, when I go in to the configuration section to change the default page size from US Letter (sigh) to A4, the CGI script crashes with a segfault. As a result I'm unable to configure the printer.

You can get the PPD from Xerox or at
http://www.postnewspapers.com.au/~craig/cupsys/xerox_docuprint_4025.ppd

I've provided an strace of printers.cgi here:
http://www.postnewspapers.com.au/~craig/cupsys/strace_printerscgi_woody

and here generated from Debian Sarge (sorry, forgotten what CUPS version)

http://www.postnewspapers.com.au/~craig/cupsys/strace_printerscgi

Without this ppd, the margins are all wrong and the majority of the printer's functions can't be configured. Its been a problem for a while.

I will try the latest version of CUPS. Its also an issue on 1.1.14 in RH8.

Please get back to me if you need more debugging info.

Netatalk documentation enhancements

Version: 1.1.19rc2
CUPS.org User: thomas.kaiser.phg-online

First, Netatalk should be written as "Netatalk" and not "NeTAtalk" as in the SAM.

Umich wrote it that way and the sourceforge folks do so, too (http://rsug.itd.umich.edu/software/netatalk.html and http://netatalk.sourceforge.net/)

Currently patches for netatalk's papd are on the way that help automagically publish all CUPS spoolers via PAP (Printer Access Protocol) to Macintosh clients. A prerelease (http://netatalk.agentur-fineline.de/) is available. I can inform you when it's final, if you want.

In the meantime there are some backends available to print to AppleTalk printers via Netatalk. I started writing my own, too that has some unique (but IMO absolutely necessary) features:

  • full device discovery (including sending printer queries
    to get the "product" name of the printers)
  • support for multiple zones
  • encoding of device names (don't know whether that's
    absolutely necessary but I thought it would be a good
    idea as only three chars in MacRoman are illegal in
    AppleTalk device names)
  • additional form feeds for devices of type "DeskWriter"
  • Notifications for the scheduler

If you find this useful, I can try to strip the functionality down to Netatalk only (currently the backend also supports MacOS X/Darwin) and add the pagecount query stuff to exactly report the printed pages.

http://users.phg-online.de/tk/CUPS/backend/pap

Cups is agnostic to resolv.conf changes

Version: 1.1.15
CUPS.org User: lurch.gmx

If the resolv.conf is changed after startup of cups (for example, by DHCP), cups still uses the old value(s) of nameserver for lookup.

Web interface: "Test Printer" points to "ServerName", not to "localhost"

Version: 1.1.19rc2
CUPS.org User: till.kamppeter

I am running Mandrake 9.1 with CUPS 1.1.19rc2 (freshly RPMized, RPM on current Cooker). My /etc/cups/cupsd.conf contains a "ServerName ..." directive. When I browse (Browser: Konqueror from KDE 3.1.0) all printers with

http://localhost:631/printers

or one locally defined printer with

http://localhost:631/printers/

and click on "Test Printer", I get to the URL

http://:631/printers/?op=print-test-page

where is the name which I have specified in the "ServerName ..." directive. What I expect is "localhost" as I get with all the other buttons ("Configure Printer", "Modify Printer", ...). I get "localhost" when I comment out or remove the "ServerName ..." directive in /etc/cups/cupsd.conf.

This leads to the following problem: If you need a "ServerName ..." directive (for example if you have two network interfaces and on the two networks your machine has different names) and you restrict the web interface to only be accessible by "localhost" you will not be able to print a test page from the web interface.

For admin access the web interface is restricted to "localhost" on most machines, and if you ar adjusting the printer defaults with "Configure Printer", then use "Test Printer" to check whether your settings are OK, and afterwards click the link on the "Test page sent; job ID is -." page to get back to the printer page, you will arrive on

http://:631/printers/

and not on

http://localhost:631/printers/

and so another click on "Configure Printer" goes to

http://:631/admin/?op=config-printer&printer_name=

which gives you a "Permission denied".

Windows Driver: paper size selection problems

Version: 1.1.18
CUPS.org User: h.blischke

After properly installing a CUPS configured printer on
Windows XP, the printer's paper format popup menu always
displays a default list of paper formats regardless of what
formats are defined as available by the printer's PPD.
Moreover, is the user (on WIn XP) happens to select a paper
format not supported by the printer's PPD, some other format
gets selected.
Example: a printer instance set up using Adobe's ADIST5.PPD:
selecting the (not available) "A4 extra" forces use of "A3".

[possible DoS] Sending a bad request to port 631 (answers a normal HTTP 400) keeps the connection open

Version: 1.1.17
CUPS.org User: evi.smokingcube

When somebody telnet to port 631 and sends a bad request (whatever code) it answers as it should with:

<TITLE>400 Bad Request</TITLE>

Bad Request

Bad Request But it doesn't disconnects the client (it just does nothing) It should give a: Connection closed by foreign host (as other webservers do) When I kill the telnet session with a kill commando and run netstat -a on that machine I see: tcp 35 0 D57611F7.kabel.tele:ipp D57611F7.kabel.te:32930 CLOSE_WAIT When I let the telnet session end by itself sending a '^]' char, then 'quit' this comes in netstat: tcp 0 0 D57611F7.kabel.te:32931 D57611F7.kabel.tele:ipp FIN_WAIT2 Now the biggest problem: It just stays there in netstat, it doesn't disappear so actually it's not ending the sessions (it does after a certain timeout. But it takes a remote port everytime.). I didn't put this in a loop but if somebody puts it in a loop it possibly should fill up the netstat table and possibly use all ports so other people can't use those ports anymore. Anyway, it should kill the connection immediately in place of just doing nothing.

CUPS does not downgrade PS version if printer/PPD requires it

Version: 1.1.17
CUPS.org User: greenfeld.2.osu

If a user submits a higher level of version of Postscript than a printer supports, CUPS does not attempt to downgrade the version of Postscript used or refuse to print the file. Detection of the Postscript version supported by a printer should be possible via the "LanguageLevel" parameter found in many (but not all!) PPD files.

I assume you can default to allowing printing reguardless of the Postscript level when you do not know what is supported, but if a PPD specifies a maximum level of Postscript support, it should be honored.

Example scenario: A user prints out a file with a header of "%!PS-Adobe-3.0". But the printer only supports Postscript level 2. CUPS still sends the file as Postscript level 3 data to the printer, possibly including some Type 3 (?) fonts.

In response, the printer may refuse to print the job, or in the case of certain printers (such as our HP 4000 at work) hang until reset. (And yes, our PPD for the HP 4000 specifies *LanguageLevel: "2")

client-error-not-possible problem

Version: 1.1.18
CUPS.org User: r61076.motorola

I'm using a Cups to install a HPLJ5(Jetdirct). But when I print a test page to the printer, nothing comes out. when I try to restart the job, the error message displayed as below.
client-error-not-possible

cannot print anything to hp usb

Version: 1.1.18
CUPS.org User: voltron.onlinehome

Greetings,

I am completely unable to print anything, even plain text, to my usb printer. I've used the web page to set up the printer. It's an hp deskjet 3320. I installed cups using the source code. /var/log/messages tells me the kernel definitely recognizes the device:
Apr 5 15:02:46 gem kernel: usb.c: USB device number 2 default language ID 0x409
Apr 5 15:02:46 gem kernel: Manufacturer: hp
Apr 5 15:02:46 gem kernel: Product: deskjet 3320

lsmod shows the usb and printer modules are loaded. However, I print a file to the printer and nothing happens.

When I configured using the web page I selected HP, the first USB device, and I've tried using both the HP Deskjet and New HP Deskjet drivers. But nothing prints.

I hope you are able to help me with this. I appreciate your time.

Sincerely
Ben

imagetops not centering / scaling images properly

Version: 1.1.19rc1
CUPS.org User: speter.codehost

The latest version of the imagetops filter seems to not center / scale images properly. This seems to happen regardless of the PPD being used.

I am specifically trying to print an image on the full page by using the scaling option, as such :

lp -o scaling=100 image.jpg

I put a few images and PPDs that show that behavior up on http://www.megastep.org/cups/

extra mime.types and mime.convs for specific printer queues

Version: 1.1.17
CUPS.org User: ausi.gmx

It would be helpful, if one could assign special edited mime.types and mime.convs to a specific printer queue.

At the moment there is only one mime.types and only one mime.convs, which apply to all printer queues.

Possibility to update PPD database by backends

Version: 1.1.15-1
CUPS.org User: thomas.kaiser.phg-online

Doing the lookup for PPDs after the lookup for devices would allow backends to register PPDs theirselves. Currently when a backend wants the scheduler rebuild ppds.dat on demand (by sending SIGHUP), all backends are called again which can lead to an infinite loop if the backend doesn't make special arrangements for this case.

This RfE is a result of discussion on cups.general on 4/5 Apr 2003

Strange printer names a la "\localhost\ir85wm" with device-URIs "\localhost\print$\WIN40\0" appearing in printers.conf

Version: 1.1.19rc2
CUPS.org User: pipitas

I played with Samba (2.2.7a), cupsaddsmb and the CUPS PostScript drivers (1.1.19rc2), with a WinXPProf client.
Initially it worked fine. I deleted and re-created various
CUPS printers (re-using same names) via "lpadmin". It
printed OK too, and created PDFs etc.

I also deleted and re-installed (via "Point'n'Print") some
printers on the WinXP client. I changed various settings in
smb.conf ("map to guest = bad user"; guest access to [print$] share on and of, etc.) All worked fine until, all
of a sudden, things stopped working well. First symptom was
this: while the driver download completed and the connection
to the CUPS printer(s) seemed to be there, any attempt to
go to "Printer Properties" caused various kinds of error
messages, like "procedure could not be completed" (similar
as if the driver had not been installed). The registry
entries were there, looking all the same as those of still
working printers. The PPD was there too. Deleting the
printer on WinXP deleted the PPD and removed the registry
entry. Re-installing the printer/driver combo from the
CUPS server lead to same symptoms....

I then stopped smbd and deleted all *tdb files and the CUPS-
generated printcap. Restarted smbd. Re-run cupsaddsmb. Re-installed printers on WinXP.

Same problem with some printers. But now I saw some these
printers appearing twice or even three times in the
CUPS/Samba server's "Printers" folder in Network
Neighbourhood...

At this point I looked into printers conf. Here is the
beginning of it:


Printer configuration file for CUPS v1.1.19rc2

Written by cupsd on Wed 23 Apr 2003 11:07:03 PM GMT

<Printer \kde-bitshop\ir85wm2>
Info ir85wm2
Location
DeviceURI \kde-bitshop\print$\WIN40\0
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0

<Printer \kde-bitshop\PDFcreator2>
Info PDFcreator2
Location
DeviceURI \kde-bitshop\print$\WIN40\0
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0

<Printer \kde-bitshop\PDFcreatorKP>
Info PDFcreatorKP
Location
DeviceURI \kde-bitshop\print$\WIN40\0
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0

[...in total 8 entries like this, plus a few "sane" ones...]

Here is what "lpstat -p" says:


kde-bitshop:/home/kde4/BUCHonCUPS # lpstat -p
printer \kde-bitshop\ir85wm2 is idle. enabled since Jan 01 00:00
printer \kde-bitshop\PDFcreator2 is idle. enabled since Jan 01 00:00
printer \kde-bitshop\PDFcreatorKP is idle. enabled since Jan 01 00:00
printer \localhost\DigiMaster is idle. enabled since Jan 01 00:00
printer \localhost\ir85wm is idle. enabled since Jan 01 00:00
printer \localhost\ir85wm2 is idle. enabled since Jan 01 00:00
printer \localhost\laserjet4 is idle. enabled since Jan 01 00:00
printer \localhost\PDFcreatorKP is idle. enabled since Jan 01 00:00
printer [email protected] disabled since Jan 01 00:00 -

printer [email protected] now printing [email protected]. enabled since Jan 01 00:00
printer [email protected] is idle. enabled since Jan 01 00:00
printer [email protected] now printing [email protected]. enabled since Jan 01 00:00
printer [email protected] is idle. enabled since Jan 01 00:00
printer [email protected] is idle. enabled since Jan 01 00:00
printer devnull is idle. enabled since Jan 01 00:00
printer devnull2 is idle. enabled since Jan 01 00:00

printer DigiMaster is idle. enabled since Jan 01 00:00

(empty line in above output as in original....)

Here is what's in /etc/printcap:


kde-bitshop:/home/kde4/BUCHonCUPS # cat /etc/printcap

This file was automatically generated by cupsd(8) from the

/etc/cups/printers.conf file. All changes to this file

will be lost.

mopi|mopi:rm=10.160.51.60:rp=mopi:
\kde-bitshop\ir85wm2|ir85wm2:rm=10.160.51.60:rp=\kde-bitshop\ir85wm2:
\kde-bitshop\PDFcreator2|PDFcreator2:rm=10.160.51.60:rp=\kde-bitshop\PDFcreator2:
\kde-bitshop\PDFcreatorKP|PDFcreatorKP:rm=10.160.51.60:rp=\kde-bitshop\PDFcreatorKP:
\localhost\DigiMaster|DigiMaster:rm=10.160.51.60:rp=\localhost\DigiMaster:
\localhost\ir85wm|ir85wm:rm=10.160.51.60:rp=\localhost\ir85wm:
\localhost\ir85wm2|ir85wm2:rm=10.160.51.60:rp=\localhost\ir85wm2:
\localhost\laserjet4|laserjet4:rm=10.160.51.60:rp=\localhost\laserjet4:
\localhost\PDFcreatorKP|PDFcreatorKP:rm=10.160.51.60:rp=\localhost\PDFcreatorKP:
[email protected]|BROTHER HL-1070:rm=10.160.51.60:[email protected]:
[email protected]|canon13:rm=10.160.51.60:[email protected]:
[email protected]|marktweit beste ColorLaser-Drucke:rm=10.160.51.60:[email protected]:
[email protected]|m. 7-Fach-Mailbox, lochen+heften:rm=10.160.51.60:[email protected]:
[email protected]|HP DESKJET 990C:rm=10.160.51.60:[email protected]:
[email protected]|devnul:rm=10.160.51.60:[email protected]:
devnull|devnull:rm=10.160.51.60:rp=devnull:
devnull2|devnull2:rm=10.160.51.60:rp=devnull2:

DigiMaster|DigiMaster:rm=10.160.51.60:rp=DigiMaster:

Samba might have some known bugs -- but CUPS shouldn't
"create" printers that look like Samba/Windows UNC paths
to driver shares...

I'll stop investigation for now and re-start (after a good
night's sleep) tomorrow again...

Cheers,
Kurt

Compilation problem with gcc-2.95.3

Version: 1.1.19rc1
CUPS.org User: egal1976.web

Under Solaris with gcc 2.95.3, I get the error messages
Compiling ipp-var.c...
ipp-var.c: In function ippSetCGIVars': ipp-var.c:240: warning: null format string ipp-var.c:326: union has no member namedcollection'
make[1]: *** [ipp-var.o] Error 1
make: *** [all] Error 1

Under IRIX with original compiler there is no problem.

Additional info:
gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/specs
gcc version 2.95.3 20010315 (release)

No problem with gcc-3.2.x or original IRIX Compiler.

Typo in config-scripts/cups-common.m4

Version: 1.2-current
CUPS.org User: heath.kehoe.intermec

A non-fatal error happens when running the configure script, due to a typo in config-scripts/cups-common.m4. The following diff fixes it:

--- cups-common.m4 12 Mar 2003 20:40:09 -0000 1.12.2.12
+++ cups-common.m4 4 Apr 2003 19:28:44 -0000
@@ -70,7 +70,7 @@
if test "$ac_cv_lib_c_crypt" = "no"; then
AC_CHECK_LIB(crypt,crypt)
fi
-AC_SEARCH_LIBS(getspent, sec, gen)
+AC_SEARCH_LIBS(getspent, sec gen)

LIBMALLOC=""
AC_ARG_ENABLE(mallinfo, [ --enable-mallinfo turn on malloc debug information, default=no])

Please expand "Problem Description Field" for STP web form for more convenient editing.

Version: 1.1.19rc2
CUPS.org User: pipitas

123456789012345678901234567890123456789012345678901234567890123
2 This field only accepts 33 characters in the width..........
3
4
5
6
7
8 ......and 8 lines in the height...........................

Hardly a good space for "Detailed Description of Problems".

Please make it more convenient; double the width, make
height 5fold. Scrolling is a pain... (I understand there
are people with 800x600 screens, but even these should be
able to display a text field of 66 chars.

Cheers,
Kurt

Status 1 errors printing to LPD port

Version: 1.1.19rc1
CUPS.org User: str433.realcomputerguy

With the new LPD backend timeout feature, we're losing a printer to a stopped state with status 1.

[Job 238] Remote host did not respond with command status byte after 300 seconds!
PID 16801 stopped with status 1!

I can find no information on changing the value of this particular timeout.

CUPS displays PPD options without "*OpenUI" ... "*CloseUI"

Version: 1.1-current
CUPS.org User: till.kamppeter

In PPD files there are options defined to tell the client, the spooler, and the driver about the capabilities of a printer and how they are accessed. Many printer features are user-controllable and to tell the client to put a control widget into the printing dialog the description is enclosed in "_OpenUI" and "_CloseUI" keywords:

*OpenUI *InputSlot/Media Source: PickOne
*OrderDependency: 10 AnySetup *InputSlot
*DefaultInputSlot: Default
*InputSlot Default/Default: ""
*InputSlot Tray1/Tray 1: "<</ManualFeed false /MediaPosition 3>>setpagedevice"
*InputSlot Tray2/Tray 2: "<</ManualFeed false /MediaPosition 0>>setpagedevice"
*InputSlot Tray3/Tray 3: "<</ManualFeed false /MediaPosition 1>>setpagedevice"
*InputSlot Manual/Manual Feed: "<</ManualFeed true /MediaPosition 3>>setpagedevi
ce"
*CloseUI: *InputSlot

It is also possible (at least for the resolution of the printer) to have a similar structure without "_OpenUI" and "_CloseUI" keywords, which means no widget should be shown. This one does for a printer with only one resolution. There should not be an enumerated choice widget to choose out of one possibility, but the client, the spooler, and the driver should know the resolution of the printer. So one uses a structure like this:

*DefaultResolution: 1200dpi
*Resolution 1200dpi/1200 dpi: ""

(example file: http://www.linuxprinting.org/foomatic2.9/ppd-o-matic.cgi?driver=hpijs&printer=HP-PSC_950xi&show=1)

The bug is the following: These two lines produce a widget, even if they don´t have "_OpenUI" and "_CloseUI" lines. The widget appears in all frontends: the web interface ("Configure Printer"), XPP ("Options"), kprinter ("Properties" -> "Driver settings") in the "Extra" option group. It always is a listbox with an empty label and the one given resolution as choosable entry. This widget should not appear in the frontends.

The frontends get the information about the PPD options through the CUPS API, so the problem is most probably in the API functions.

cups demon takes all available CPU time

Version: 1.1.19rc2
CUPS.org User: meyerv.winflex

Installed cups 1.1.19rc2, packaged from Mandrake Cooker as 1.1.19-0.6mdk. On restarting, the demon takes all available cpu time.
Restarting the demon shows the same behavior.

cancel -u doesn't work

Version: 1.1.19rc2
CUPS.org User: steve.p.walsh.hp

cancel -u doesn't do anything. After setting op=IPP_PURGE_JOBS and user it just drops out of the for loop and exits.

cancel -u <username causes endless loop with messages:

CancelJob: id = 4
SaveJob: Closing File 10...

until cupsd is stopped.

Solaris 8. gcc 3.2. cups build as per STR ID 46

connect from cups client to bsd lpd server fails : Remote host did not accept control file (100)

Version: 1.1.18
CUPS.org User: c.w.j.lemmens.its.tudelft

lpr --version , cupsd --version or cupsd -V do not work but I think I have version 1.1.18.

Problem :

CUPS to CUPS works fine but I badly need access to some remote
BSD lpd servers if I want to make the transition from lprng to cups. However, no matter what I try, if I define a remote lpd based printer it always ends up with the following error message :

D [04/Apr/2003:11:28:11 +0200] [Job 4] lpd_command 02 lp1
D [04/Apr/2003:11:28:11 +0200] [Job 4] Sending command string (5 bytes)...
D [04/Apr/2003:11:28:11 +0200] [Job 4] Reading command status...
D [04/Apr/2003:11:28:11 +0200] [Job 4] lpd_command returning 108
D [04/Apr/2003:11:28:11 +0200] [Job 4] Control file is:
D [04/Apr/2003:11:28:11 +0200] [Job 4] Hdutind6
D [04/Apr/2003:11:28:11 +0200] [Job 4] Proot
D [04/Apr/2003:11:28:11 +0200] [Job 4] J_stdin_
D [04/Apr/2003:11:28:11 +0200] [Job 4] UdfA750dutind6
D [04/Apr/2003:11:28:11 +0200] [Job 4] N_stdin_
D [04/Apr/2003:11:28:11 +0200] [Job 4] lpd_command 02 48 cfA750dutind6
D [04/Apr/2003:11:28:11 +0200] [Job 4] Sending command string (18 bytes)...
D [04/Apr/2003:11:28:11 +0200] [Job 4] Reading command status...
D [04/Apr/2003:11:28:11 +0200] [Job 4] lpd_command returning 112
E [04/Apr/2003:11:28:11 +0200] [Job 4] Remote host did not accept control file (100)

Searching through Google showed that many others are suffering from the same problem, but the only solution they came up with is to convert all systems to CUPS ! However, that is no viable option in this case.

extra include/lib path via CPPFLAGS/LDFLAGS not working

Version: 1.2-current
CUPS.org User: heath.kehoe.intermec

I set env vars when running configure so that it finds my libjpeg, libtiff, libz, and libpng. These are:

CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"

The configure finds the libs and headers OK and sets config.h appropriately. But when I go to compile, the -I/usr/local/include is not appearing on the compile command lines. Also, the -L/usr/local/lib does not appear on the shared-library link command line.

To fix the -I, I changed Makedefs.in as follows:

--- Makedefs.in 12 Mar 2003 20:40:09 -0000 1.36.2.14
+++ Makedefs.in 7 Apr 2003 22:52:31 -0000
@@ -84,7 +84,7 @@

ARFLAGS = @ARFLAGS@
BACKLIBS = @BACKLIBS@
-CFLAGS = $(RC_CFLAGS) @CFLAGS@ -I.. $(OPTIONS)
+CFLAGS = $(RC_CFLAGS) @CFLAGS@ @CPPFLAGS@ -I.. $(OPTIONS)
COMMONLIBS = @Commonlibs@
CXXFLAGS = $(RC_CFLAGS) @CXXFLAGS@ -I.. $(OPTIONS)
CXXLIBS = @CXXLIBS@

And to fix the -L for shared libs I changed config-scripts/cups-sharedlibs.m4:

--- cups-sharedlibs.m4 28 Jan 2003 15:32:57 -0000 1.6.2.14
+++ cups-sharedlibs.m4 7 Apr 2003 22:53:22 -0000
@@ -24,6 +24,7 @@

PICFLAG=1
DSOFLAGS="${DSOFLAGS:=}"
+DSOFLAGS="$DSOFLAGS $LDFLAGS"

AC_ARG_ENABLE(shared, [ --enable-shared turn on shared libraries, default=yes])

Windows Driver: performance and usability problems with CUPS/Adobe drivers

Version: 1.1.19rc1
CUPS.org User: str433.realcomputerguy

When using the CUPS/Adobe Windows drivers (in order to have page accounting) and printing multiple copies the job appears to be separately rendered, transmitted, and processed for each copy thereby multiplying the job time for one page by the number of copies. The job also stays in the queue until the last copy starts to print. In collate mode using a single page document (as a test - no need to collate) only one page prints out no matter how many copies are requested.

This was verified under both 1.1.19rc2 cvs and 1.2.0.b1 cvs from both Windows 2000 and Windows XP. No difference was seen between job submittion via Samba or IPP.

printers not shown in web interface

Version: 1.2-current
CUPS.org User: str433.realcomputerguy

No printers shown via web interface of server.
Printers can only be seen via the command line.

It does affect all printers, but I've only tested it on my Linux server, SuSE 7.3.

locale/en_US line in cups.list.in is incorrect

Version: 1.1.19rc2
CUPS.org User: steve.p.walsh.hp

The line for locale/en_US is as follows:
........$LOCALEDIR/en_US/cups_en_US locale/en/cups_en_US

should be:
........$LOCALEDIR/en_US/cups_en_US locale/en_US/cups_en_US

Also there is no line for locale/he/cups_he

CUPS doesnot search in all required locale directories for message catalogs

Version: 1.1.18
CUPS.org User: maccy2.yahoo

LC_ALL=de_DE.UTF-8 lpr foo.txt
makes lpr (or any other CUPS app) not search in the
required directories. de.utf8 for example should be
searched. Run strace:

open("/usr/share/locale/de_DE.utf8/cups_de_DE.utf8", O_RDONLY) = -1 ENOENT (No such file or dire
open("/usr/share/locale/de_DE/cups_de_DE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de/cups_de", O_RDONLY) = 4

before falling back to de/ it should fall back to
de.utf8

CUPS-O-MATIC generated PPD file fails test

Version: 1.1.17
CUPS.org User: vancleef.garg

When I run the test at /http://www.cups.org/testppd.php on either of my files, I get the following error:

Test Results

PhotoSmart7150.ppd: FAIL
FAIL BAD Product - not "(string)".
REF: Page 62, section 5.3.

The only product line in the file is:

*Product: "PhotoSmart P1100"

Bob

RedHat 8.0
cups-drivers-1.9-1.20020617.6
cups-1.1.17-5
cups-drivers-pnm2ppa-1.9-1.20020617.6
cups-libs-1.1.17-5
cups-devel-1.1.17-5

Pending jobs are lost when cupsd starts

Version: 1.1.19rc2
CUPS.org User: steve.p.walsh.hp

When cups is stopped/started with jobs outstanding in a queue, the jobs are deleted.
The message:

LoadAllJobs: Unable to read job control file "/var/spool/cups/c00001"!
LoadAllJobs: Auto-typing document file d00001-001.....
LoadAllJobs: Orphaned print file "/var/spool/cups/d00001-001"!
appears in error_log

c00001 is 600 lp:sys zero length

Jobs are text. Printer is offline ( switched off ) both before and after cups stop/start. Tried with both parallel and lpd.

OS is Solaris 8. compiler gcc 3.2
cups built as follows:

PATH=/usr/local/bin:/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/bin:/usr/ucb:/usr/ccs/bin
LD_LIBRARY_PATH=/usr/local/lib:/usr/local/ssl/lib
LDFLAGS="-R/usr/local/lib:/usr/local/ssl/lib -L/usr/local/lib"
DSOFLAGS=="-R/usr/local/lib:/usr/local/ssl/lib -L/usr/local/lib"
./configure --with-openssl-includes=/usr/local/ssl/include
--with-openssl-libs=/usr/local/ssl/lib --mandir=/usr/share/man

cupsd.conf as shipped with debug2 set.

Get "Request Entity Too Large" when trying to add printer

Version: 1.1.18
CUPS.org User: cups.j5

I have a fresh install of the CUPS 1.1.18 package on FreeBSD 4.8. When clicking "Printers -> Add Printer", I get the folowing message, regardless of the Printer Name, Location, or Description:

Request Entity Too Large

The request is too large for this server to process.

I never encountered this problem on my old system (CUPS 1.1.15.1 on FreeBSD 4.7)

"make test" (level 3) fails with 2 tests ("lprm Test1" and "cancel Test1")

Version: 1.1.19rc2
CUPS.org User: pipitas

"make test" (level 3):

2 tests failed : "lprm Test1" und "cancel Test1"

Question: I have only 2 job IDs (6 and 108) in the page_log
(both with 6 pages/1 copy, both for printer test-1). I see
however with the "flood test" there are sent 2x 100 jobs
(textfile.txt). Shouldn't all jobs appear in the page_log?

I will do more tests on other machines...

wrong time output of lpstat

Version: 1.1.18
CUPS.org User: maccy2.yahoo

in lpstat all printers are reportet to accept jobs
since 01-01-01

bjacke@d26:~> lpstat -a
hpcolor accepting requests since Jan 01 00:00
hpcolor-pcl accepting requests since Jan 01 00:00
kyocera accepting requests since Jan 01 00:00
kyocera_pcl accepting requests since Jan 01 00:00
officejet accepting requests since Jan 01 00:00
pdf_writer accepting requests since Jan 01 00:00

page_log incorrect for "PS printers + collated copies"

Version: 1.1.19rc1
CUPS.org User: pipitas

page_log not correct with certain jobs/PS-printers:

Printing a job with "p" pages and "c" copies in "collated"
mode yields a page_log entry like this:

PS-printername username 2170 [20/Apr/2003:16:36:25 +0200] 1 c - localhost
PS-printername username 2170 [20/Apr/2003:16:36:25 +0200] 2 c - localhost
PS-printername username 2170 [20/Apr/2003:16:36:25 +0200] 3 c - localhost
[.....]
PS-printername username 2170 [20/Apr/2003:16:36:25 +0200] p c - localhost
PS-printername username 2170 [20/Apr/2003:16:36:25 +0200] 1 1 - localhost
PS-printername username 2170 [20/Apr/2003:16:36:25 +0200] 2 1 - localhost
PS-printername username 2170 [20/Apr/2003:16:36:25 +0200] 3 1 - localhost
[....]
[....]
PS-printername username 2170 [20/Apr/2003:16:36:25 +0200] c*p 1 - localhost

printing the same job in "uncollated" mode gives (correctly) this:

PS-printername username 2171 [20/Apr/2003:16:36:25 +0200] 1 c - localhost
PS-printername username 2171 [20/Apr/2003:16:36:25 +0200] 2 c - localhost
PS-printername username 2171 [20/Apr/2003:16:36:25 +0200] 3 c - localhost
[.....]
PS-printername username 2171 [20/Apr/2003:16:36:25 +0200] p c - localhost

for a non-PS printer (f.e. using CUPS "laserjet.ppd") I get (collated or uncollated):

laserjet username 2172 [20/Apr/2003:16:36:25 +0200] 1 1 - localhost
laserjet username 2172 [20/Apr/2003:16:36:25 +0200] 2 1 - localhost
laserjet username 2172 [20/Apr/2003:16:36:25 +0200] 3 1 - localhost
[.....]
laserjet username 2172 [20/Apr/2003:16:36:25 +0200] c*p 1 - localhost

ESP GhostScript: "psmono" and "psgray" produce shrinked pages

Version: 7.05.6
CUPS.org User: till.kamppeter

The drivers "psmono" and "psgray" produce shrinked pages with ESP GhostScript 7.05.6. One can reproduce this as follows:


[root@majax /]# cat /usr/share/cups/data/testprint.ps | gs -q -dBATCH -dPARANOIDSAFER -dNOPAUSE -sDEVICE=psmono -sPAPERSIZE=a4 -r300x300 -sOutputFile=- - > test.ps
[root@majax /]# gv test.ps
[root@majax /]# cat /usr/share/cups/data/testprint.ps | gs -q -dBATCH -dPARANOIDSAFER -dNOPAUSE -sDEVICE=psgray -sPAPERSIZE=a4 -r300x300 -sOutputFile=- - > test.ps

[root@majax /]# gv test.ps

cups-polld is taking all CPU

Version: 1.1.19rc2
CUPS.org User: till.kamppeter

I have Mandrake 9.1 with CUPS 1.1.19rc2 from Cooker. I have the following lines in /etc/cups/cupsd.conf


LogLevel info
TempDir /var/spool/cups/tmp
Port 631
Browsing On
BrowseAddress @Local
BrowseDeny All
BrowseAllow @Local
BrowseOrder Allow,Deny

Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.100.184
Allow From @Local

<Location /admin>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 127.0.0.1

BrowsePoll 192.168.100.3:631

BrowsePoll 192.168.100.194:631

So I poll the print queues from two servers and do not listen to any broadcasts, so I see only the queues from the two selected servers.

The problem is that after some hours of running the two "cups-polld" processes corresponding to the two "BrowsePoll" lines take over all my memory. So it seems that there is something like a memory leak.

I did not patch anything on the cups-polld code when creating the Cooker RPM of CUPS. The patches are only for documentation and configuration files.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.