Dear list, I am trying to print under 9.3 over the network. The printer seems to be configured correctly as I can print test pages from the YAST printer configuration interface. But I cannot print as a user or as root later. lpr and lp do not work. Strangely enough, I can send test pages from the from the gnome cups manager as a user??? How can I check where the printjobs do go to or disappear? Any ideas how to solve this problem in general?? Thanks for your help. Ulrich
On Friday 05 August 2005 05:01, Ulrich Leopold wrote:
Dear list,
I am trying to print under 9.3 over the network. The printer seems to be configured correctly as I can print test pages from the YAST printer configuration interface. But I cannot print as a user or as root later. lpr and lp do not work. Strangely enough, I can send test pages from the from the gnome cups manager as a user???
How can I check where the printjobs do go to or disappear? Any ideas how to solve this problem in general??
What did you name the printer queue? try printing like this: lpr -Pxxxxx some_doc.txt where xxxxx is the name pf the print queue.
On Fri, August 5, 2005 13:18, Robert Paulsen said:
On Friday 05 August 2005 05:01, Ulrich Leopold wrote:
Dear list,
I am trying to print under 9.3 over the network. The printer seems to be configured correctly as I can print test pages from the YAST printer configuration interface. But I cannot print as a user or as root later. lpr and lp do not work. Strangely enough, I can send test pages from the from the gnome cups manager as a user???
How can I check where the printjobs do go to or disappear? Any ideas how to solve this problem in general??
What did you name the printer queue? try printing like this:
lpr -Pxxxxx some_doc.txt
where xxxxx is the name pf the print queue.
I named it ricoh03 and it is the default printer. I used lpr -Pricoh03 output.ps lp -d ricoh03 output.ps lpr output.ps lp output.ps None of the works. With the lp command I get a message like request id is ricoh03-7 (1 file(s)) which probably means that the job was sent somewhere. lpq does not show anything: uleopold@snowdonia:~> lpq ricoh03 is ready no entries Any idea what is happening? As I said, I can print test pages from YAST's printer config dialog. Cheers, Ulrich
On 5 Aug 2005, uleopold@science.uva.nl wrote:
How can I check where the printjobs do go to or disappear? Any ideas how to solve this problem in general??
Did you check the cups log files in /var/log/cups? If you need more debugging info, you can edit /etc/cups/cupsd.conf and change LogLevel to debug (don't forget to restart the server). Charles -- There are no threads in a.b.p.erotica, so there's no gain in using a threaded news reader. (Unknown source)
On Fri, 2005-08-05 at 12:01 +0200, Ulrich Leopold wrote:
Dear list,
I am trying to print under 9.3 over the network. The printer seems to be configured correctly as I can print test pages from the YAST printer configuration interface. But I cannot print as a user or as root later. lpr and lp do not work. Strangely enough, I can send test pages from the from the gnome cups manager as a user???
How can I check where the printjobs do go to or disappear? Any ideas how to solve this problem in general??
Thanks for your help.
Ulrich
lpstat -t will show all print jobs in the queue and the status of the print queue. If you only what to show the print jobs lpstat -o will do that. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge
On Fri, August 5, 2005 14:04, Ken Schneider said:
On Fri, 2005-08-05 at 12:01 +0200, Ulrich Leopold wrote:
Dear list,
I am trying to print under 9.3 over the network. The printer seems to be configured correctly as I can print test pages from the YAST printer configuration interface. But I cannot print as a user or as root later. lpr and lp do not work. Strangely enough, I can send test pages from the from the gnome cups manager as a user???
How can I check where the printjobs do go to or disappear? Any ideas how to solve this problem in general??
Thanks for your help.
Ulrich
lpstat -t will show all print jobs in the queue and the status of the print queue. If you only what to show the print jobs lpstat -o will do that.
The problem seems to be the PageMedia in the postscript files sent to the printer. When the postscript files contain A4 everything seems to be fine. But when they contain "regular" or "plain" which should be also A4 formats then teh printer does not print. It seems to happen when I either print first to file or when certain applications are used which probbaly use a similar procedure as "print to file". Now I don't know where to fix that. Do I have to fix it with CUPS, lpr or ghostscript?? Is there a central config where I can set the media format to A4 for 'lpr'?? Cheers, Ulrich
On 5 Aug 2005, uleopold@science.uva.nl wrote:
Now I don't know where to fix that. Do I have to fix it with CUPS, lpr or ghostscript?? Is there a central config where I can set the media format to A4 for 'lpr'??
Bring up kprinter. Go to "Driver Settings" and change the page size. This will save the options to your ~/.lpoptions. Charles -- "A word to the wise: a credentials dicksize war is usually a bad idea on the net." (David Parsons in c.o.l.development.system, about coding in C.)
Hello, On Aug 5 15:50 Ulrich Leopold wrote (shortened):
The problem seems to be the PageMedia in the postscript files sent to the printer. When the postscript files contain A4 everything seems to be fine. But when they contain "regular" or "plain" which should be also A4 formats then teh printer does not print. It seems to happen when I either print first to file or when certain applications are used ...
It seems you have a PostScript printer and the printer has A4 paper and therefore it doesn't print when in the PostScript files a different media type is set. Either configure the printer (see the printer's manual) to automatically fall back to use the A4 paper if an unmatching media type is set in the PostScript or make sure that those "certain applications" produce correct PostScript. Correct PostScript means: Either the application produces readymade printer specific PostScript which must be printed in "raw" mode (lp -o raw ...) or the application produces generic printer independent PostScript and let the CUPS system add the printer specific PostScript snippets via the CUPS pstops filter and the PPD file, see http://portal.suse.com/sdb/en/2004/05/jsmeix_print-cups-in-a-nutshell.html "What is a PPD file and how does it work?" OpenOffice.org and StarOffice are well known applications which don't produce generic printer independent PostScript but which produce somewhat printer specific PostScript which is not specific for the actual printer but which contains somewhat generic printer specific PostScript snippets from OOo's SGENPRT.PS PPD file. Such somewhat printer specific PostScript can cause any weird effects when it is printed on a real PostScript printer. I found perhaps a workaround how to get OOo's PostScript printer independent and hopefully sufficiently DSC conform: 1. OOo inserts printer specific PostScript snippets from its own PPD files (like /opt/OpenOffice.org/share/psprint/driver/SGENPRT.PS or /usr/lib/ooo-2.0/share/psprint/driver/SGENPRT.PS) but it shouldn't do this because it should produce printer independent PostScript code and leave the printer specific stuff to the printing system. 2. OOo inserts its printer specific PostScript snippets in a non DSC conformant way which results that PostScript processing tools (like the pstops filter of the printing system) fail or don't work as the user expects it (e.g. N-Up printing may leave the first page blank). 1.&2. => Simply remove OOo's printer specific PostScript snippets. According to what I have seen up to now, OOo has its printer specific PostScript snippets in a %%BeginPageSetup...%%EndPageSetup section. You should verify this for various OOo (and StarOffice) PostScript output by printing into a PostScript file and using for example: sed -n -e '/%%BeginPageSetup/,/%%EndPageSetup/p' file.ps Any %%BeginFeature...%%EndFeature stuff should appear in a %%BeginPageSetup...%%EndPageSetup section. This %%BeginFeature...%%EndFeature stuff is OOo's printer specific PostScript snippets. Therefore my workaround is print into a file.ps and do sed -i -e '/%%BeginPageSetup/,/%%EndPageSetup/d' file.ps and then print file.ps via lp command (without -o raw). This removes all %%BeginPageSetup...%%EndPageSetup sections completely (including the DSC comments) but I hope it is at least sufficiently DSC conform. For me for example N-Up printing works this way but I did only a few tests. I don't know whether or not it causes unwanted side-effects. Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5 Mail: jsmeix@suse.de 90409 Nuernberg, Germany WWW: http://www.suse.de/
On 8/5/05, Johannes Meixner
Hello,
On Aug 5 15:50 Ulrich Leopold wrote (shortened):
The problem seems to be the PageMedia in the postscript files sent to the printer. When the postscript files contain A4 everything seems to be fine. But when they contain "regular" or "plain" which should be also A4 formats then teh printer does not print. It seems to happen when I either print first to file or when certain applications are used ...
It seems you have a PostScript printer and the printer has A4 paper and therefore it doesn't print when in the PostScript files a different media type is set.
I am having similar problems on my one machine lately. Weird thing is that it used to print fine and then suddenly it refused to print. Another weird thing is that I can print from my laptop to the printer connected to the workstation, but if I print the exact same document from the workstation itself, it won't print and I don't see any failures in the error logs. I enabled debug logging in CUPS and compared the log messages between printing from localhost and printing from remote host. The only differences I can see is: - The communication with the client (ReadClient, AcceptClient, etc) occurs at different times during the process. This I can understand as the one is local and the other over a network. - The following log entries are missing from the local print job: pw = 595.0, pl = 833.0 PageLeft = 0.0, PageRight = 595.0 PageTop = 842.0, PageBottom = 9.0 PageWidth = 595.0, PageLength = 842.0 [...] Saw Trailer! Saw EOF! [...] End of page header Stopping search for page header options Found: 12.64 640.0 m --> Output goes directly to the renderer now. - The following log entries appear only in the local print job: Flushing FIFO. "PageSetup" section is missing, inserting it. Inserting option code into "PageSetup" section. - General order of messages differ. So, it seems that with a local job submitted via lpr or lp, the PageSetup section and Page Header is not found. What bothers me is that the machine used to print without any problems and then suddenly it starts to give these errors. All cups packages are still the standard that comes with 9.3, no updates there Any idea what could cause this? Thanks -- Andre Truter | Software Engineer | Registered Linux user #185282 ICQ #40935899 | AIM: trusoftzaf | http://www.trusoft.za.org ~ A dinosaur is a salamander designed to Mil Spec ~
On 8/5/05, Andre Truter
I am having similar problems on my one machine lately. Weird thing is that it used to print fine and then suddenly it refused to print.
Another weird thing is that I can print from my laptop to the printer connected to the workstation, but if I print the exact same document from the workstation itself, it won't print and I don't see any failures in the error logs.
I managed to print from the workstation that has the printer connected to it by setting up a second queue to the printer, but acessing it via the IPP protocal to itself. It is still a mystery why printing directly to the CUPS queue does not work, but printing via IPP as if it is a remote printer does. ???? -- Andre Truter | Software Engineer | Registered Linux user #185282 ICQ #40935899 | AIM: trusoftzaf | http://www.trusoft.za.org ~ A dinosaur is a salamander designed to Mil Spec ~
----- Original Message -----
From: "Andre Truter"
On 8/5/05, Andre Truter
wrote: I am having similar problems on my one machine lately. Weird thing is that it used to print fine and then suddenly it refused to print.
Another weird thing is that I can print from my laptop to the printer connected to the workstation, but if I print the exact same document from the workstation itself, it won't print and I don't see any failures in the error logs.
I managed to print from the workstation that has the printer connected to it by setting up a second queue to the printer, but acessing it via the IPP protocal to itself.
It is still a mystery why printing directly to the CUPS queue does not work, but printing via IPP as if it is a remote printer does.
????
Guys, (and Gals) This may be a fix .. but it is not a solution... I have found that while using cups, the printing environment just gets confused every now and then. The fix that works is to restart nmbd, smbd and then cups. I have pulled my hair out over this. But, getting back to basics, just restart samba and cups and ... chances are ... your printing problems will be cured. -- David C. Rankin, J.D., P.E. RANKIN LAW FIRM, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 (936) 715-9333 (936) 715-9339 fax www.rankinlawfirm.com --
On 8/7/05, david rankin
This may be a fix .. but it is not a solution... I have found that while using cups, the printing environment just gets confused every now and then. The fix that works is to restart nmbd, smbd and then cups. I have pulled my hair out over this. But, getting back to basics, just restart samba and cups and ... chances are ... your printing problems will be cured.
This did not work for me. I now also discovered that I can print via the GNOME print system (from gedit), but not via gtklp, lp or lpr. With the last 3 I can only print if I use the IPP queue -- Andre Truter | Software Engineer | Registered Linux user #185282 ICQ #40935899 | AIM: trusoftzaf | http://www.trusoft.za.org ~ A dinosaur is a salamander designed to Mil Spec ~
participants (7)
-
Andre Truter
-
Charles philip Chan
-
david rankin
-
Johannes Meixner
-
Ken Schneider
-
Robert Paulsen
-
Ulrich Leopold