RE: [Samba] Samba + cups = raw postscript output - FOLLOW UP
Hi, just wanted to let you all know where I got on this. I couldn't get samba to properly pass the correct mime types to cups, (or some other problem that was happening) so I've installed all the windows drivers to the samba server (as Chris suggested), and forgone the page accounting that looked so great :-) Any idea if samba can be involved in page accounting when using the windows drivers? I've read a little about print shadow files... Know anything about this? (http://www.codeproject.com/printing/SpoolShadowFile.asp) Thanks, Dave Smith System Administrator m/v Africa Mercy, Mercy Ships Tel: +44 (0) 191 428 6434 ex 254 www.mercyships.org > -Original Message- > From: > [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > rg] On Behalf Of David Smith > Sent: 09 March 2006 16:22 > To: samba@lists.samba.org > Subject: RE: [Samba] Samba + cups = raw postscript output > > > -Original Message- > > From: Chris [mailto:[EMAIL PROTECTED] > > Sent: 09 March 2006 15:57 > > To: samba@lists.samba.org > > Cc: David Smith > > Subject: Re: [Samba] Samba + cups = raw postscript output > > > > On Thursday 09 March 2006 06:38, David Smith wrote: > > > I have a printer HP LaserJet 2100 which works fine, and by looking > > > at the cups log files, works as follows: > > > - Client submits Postscript Lvl3 > > > > Just to add. I've had a 2100 since they were first > introduced and it > > handles PS 2 just fine. With the proper PPD the client should > > send PS 2 > > and the printer should receive PS 2, there should be no > conversion to > > PCL. At least, under ideal circumstances, there shouldn't > need to be. > > In addition, I have tried setting the CUPS 6 Test driver to produce > Postscript Level 1, 2 and 3 and none of the render a document to the > Laserjet 5si. The default PPD for the LaserJet series is the one that > I used first time with the LaserJet 2100, and it worked fine, > so I haven't > Tried to change it. > > However, the Laserjet 5si is the one I'm having the most difficulty > Understanding, or maybe it's a samba setting, or cups setting > > Dave > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba > -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Samba + cups = raw postscript output
> -Original Message- > From: Chris [mailto:[EMAIL PROTECTED] > Sent: 09 March 2006 15:57 > To: samba@lists.samba.org > Cc: David Smith > Subject: Re: [Samba] Samba + cups = raw postscript output > > On Thursday 09 March 2006 06:38, David Smith wrote: > > I have a printer HP LaserJet 2100 which works fine, and by looking > > at the cups log files, works as follows: > > - Client submits Postscript Lvl3 > > Just to add. I've had a 2100 since they were first introduced and it > handles PS 2 just fine. With the proper PPD the client should > send PS 2 > and the printer should receive PS 2, there should be no conversion to > PCL. At least, under ideal circumstances, there shouldn't need to be. In addition, I have tried setting the CUPS 6 Test driver to produce Postscript Level 1, 2 and 3 and none of the render a document to the Laserjet 5si. The default PPD for the LaserJet series is the one that I used first time with the LaserJet 2100, and it worked fine, so I haven't Tried to change it. However, the Laserjet 5si is the one I'm having the most difficulty Understanding, or maybe it's a samba setting, or cups setting Dave -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba + cups = raw postscript output
On Thursday 09 March 2006 06:38, David Smith wrote: > I have a printer HP LaserJet 2100 which works fine, and by looking > at the cups log files, works as follows: > - Client submits Postscript Lvl3 > - (something happens in samba) > - Cups recieves a job for application/vnd.cups.postscript > - Cups processes job, converting to PCL > - Correct output comes out of the printer Just to add. I've had a 2100 since they were first introduced and it handles PS 2 just fine. With the proper PPD the client should send PS 2 and the printer should receive PS 2, there should be no conversion to PCL. At least, under ideal circumstances, there shouldn't need to be. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba + cups = raw postscript output
On Thursday 09 March 2006 06:38, David Smith wrote: > I have a printer HP LaserJet 2100 which works fine, and by looking > at the cups log files, works as follows: > - Client submits Postscript Lvl3 > - (something happens in samba) > - Cups recieves a job for application/vnd.cups.postscript > - Cups processes job, converting to PCL > - Correct output comes out of the printer > > I also have a HP LaserJet 5si, which to my understanding is setup > identically. The driver installs fine when accessed but this is > what I see happening in the cups logs files > - Client submits Postscript Lvl3 > - (something happens in samba) > - Cups receives a job for application/vnc.cups.raw > - Cups does not process job as it's raw > - Raw postscript comes out of the printer The thing I question is why would any client submit PS 3 when the printers are only PS 2 capable? The client would know this if the proper PPD's were being used. I wonder if are using the proper PPD files from the manufacturer. Again I suggest installing the printers in CUPS using the manufacturers NT4 PS PPD's. Then, use cupsaddsmb, or if you're unwilling to patch cupaddsmb, use the rpcclient method from the HOWTO: http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/CUPS-printing.html#id2609688 to install the printers in Samba. Then update your Windows client drivers. Chris -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Samba + cups = raw postscript output
Ok, I'm still trying to figure this out The Samba printer (automatically added through cups) has been setup with the "CUPS 6 Test Driver" so that it is automatically installed when the user accesses the printer. This part works. I have a printer HP LaserJet 2100 which works fine, and by looking at the cups log files, works as follows: - Client submits Postscript Lvl3 - (something happens in samba) - Cups recieves a job for application/vnd.cups.postscript - Cups processes job, converting to PCL - Correct output comes out of the printer I also have a HP LaserJet 5si, which to my understanding is setup identically. The driver installs fine when accessed but this is what I see happening in the cups logs files - Client submits Postscript Lvl3 - (something happens in samba) - Cups receives a job for application/vnc.cups.raw - Cups does not process job as it's raw - Raw postscript comes out of the printer Now, I guess that the 5si printer is not able to understand Postscript Lvl 3,2 or 1 (though I thought it did understand Level 2) However, the issue is, why is one being detected as cups.raw and the other as cups.postscript. How and when does this detection occur in the samba/cups combination? The PPD files in cups both specify using the cupsFilter... Thanks, Dave Smith System Administrator m/v Africa Mercy, Mercy Ships Tel: +44 (0) 191 428 6434 ex 254 www.mercyships.org > -Original Message- > From: > [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > rg] On Behalf Of David Smith > Sent: 07 March 2006 10:58 > To: 'Chris'; samba@lists.samba.org > Subject: RE: [Samba] Samba + cups = raw postscript output > > > -Original Message- > > From: Chris [mailto:[EMAIL PROTECTED] > > Is it possible that you set up a raw printer in CUPS instead of > > associating the proper PPD with it? > No, it does have the right PPD file, but the filter doesn't > get called as it > being passed through as RAW. > > > It is a PS printer, right? > Yep, well, sorta... Postscript level2. This is why I'm > wanting to filter > through the foomatic rip to a PCL output (or postscript level > 2 will do). > I've got the a PPD file from linuxprinting.org which has the > correct filters > for converting to PCL. > > > Did you use cupsaddsmb? If so, it would have needed to have > > been patched > > for the CUPS version 6 driver to properly set the printer > up in Samba. > No. That didn't appear to work too well... Perhaps I'm > wanting the patch... > I added it using the windows "install driver" method in the > samba docs, then > assigned it to each printer using the rpcclient method. > > Dave > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba > -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Samba + cups = raw postscript output
> -Original Message- > From: Chris [mailto:[EMAIL PROTECTED] > Is it possible that you set up a raw printer in CUPS instead of > associating the proper PPD with it? No, it does have the right PPD file, but the filter doesn't get called as it being passed through as RAW. > It is a PS printer, right? Yep, well, sorta... Postscript level2. This is why I'm wanting to filter through the foomatic rip to a PCL output (or postscript level 2 will do). I've got the a PPD file from linuxprinting.org which has the correct filters for converting to PCL. > Did you use cupsaddsmb? If so, it would have needed to have > been patched > for the CUPS version 6 driver to properly set the printer up in Samba. No. That didn't appear to work too well... Perhaps I'm wanting the patch... I added it using the windows "install driver" method in the samba docs, then assigned it to each printer using the rpcclient method. Dave -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba + cups = raw postscript output
On Tuesday 07 March 2006 05:58, David Smith wrote: > > -Original Message- > > From: Chris [mailto:[EMAIL PROTECTED] > > Is it possible that you set up a raw printer in CUPS instead of > > associating the proper PPD with it? > > No, it does have the right PPD file, but the filter doesn't get > called as it being passed through as RAW. > > > It is a PS printer, right? > > Yep, well, sorta... Postscript level2. This is why I'm wanting to > filter through the foomatic rip to a PCL output (or postscript level > 2 will do). I've got the a PPD file from linuxprinting.org which has > the correct filters for converting to PCL. You might try using the printers official PS PPD for NT4 when you set it up in CUPS, then update your Samba/Windows installations. > > Did you use cupsaddsmb? If so, it would have needed to have > > been patched > > for the CUPS version 6 driver to properly set the printer up in > > Samba. > > No. That didn't appear to work too well... Perhaps I'm wanting the > patch... I added it using the windows "install driver" method in the > samba docs, then assigned it to each printer using the rpcclient > method. Right, without the patch cupsaddsmb will not setup the version 6 drivers properly. It is the easiest way but the others should work. Chris -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba + cups = raw postscript output
Here is some input on print accounting: David Smith wrote: Not sure of what exactly you are referring to with cups driver...are you using Adobe Postscript printer driver and cups generated PPD and printing to \\samba_server\printer_share ? Yes, I'm using \\samba\printer to print, and the "Cups Test Driver v6" driver. I am wanting to be able to use print accounting, can this be done with the Adobe driver? We use Pykota for print accounting, allong with a standard pcl6 windows driver!! works fine, with cups as print backend!! if so, you don't want to have the 'raw' option enabled on the cups printer at all (comment out the 'raw' lines in /etc/cups/mime.types and /etc/cups/mime.convs and restart cups). Ok, I commented out the application/vnd.cups-raw setting from mime.types, now I Get a message in the Samba logs as follows [2006/03/06 09:22:47, 0] printing/print_cups.c:cups_job_submit(765) Unable to print file to HPLaserJet5si - client-error-document-format-not-supported Cheers Collen -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Samba + cups = raw postscript output
> -Original Message- > From: Craig White [mailto:[EMAIL PROTECTED] > > Not sure of what exactly you are referring to with cups > driver...are you > using Adobe Postscript printer driver and cups generated PPD and > printing to \\samba_server\printer_share ? > Yes, I'm using \\samba\printer to print, and the "Cups Test Driver v6" driver. I am wanting to be able to use print accounting, can this be done with the Adobe driver? > if so, you don't want to have the 'raw' option enabled on the cups > printer at all (comment out the 'raw' lines in /etc/cups/mime.types > and /etc/cups/mime.convs and restart cups). Ok, I commented out the application/vnd.cups-raw setting from mime.types, now I Get a message in the Samba logs as follows [2006/03/06 09:22:47, 0] printing/print_cups.c:cups_job_submit(765) Unable to print file to HPLaserJet5si - client-error-document-format-not-supported -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba + cups = raw postscript output
On Saturday 04 March 2006 03:13, Dave Smith wrote: > When I am printing with the Cups 6 driver from windows to samba, to > cups to my printer, only the postscript commands are coming out, raw. Is it possible that you set up a raw printer in CUPS instead of associating the proper PPD with it? It is a PS printer, right? Did you use cupsaddsmb? If so, it would have needed to have been patched for the CUPS version 6 driver to properly set the printer up in Samba. Chris -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba + cups = raw postscript output
On Sat, 2006-03-04 at 08:13 +, Dave Smith wrote: > Hi, I think this is a samba problem but I'm not 100% sure :) > > When I am printing with the Cups 6 driver from windows to samba, to > cups to my printer, only the postscript commands are coming out, raw. > > The cups log file says it's seeing application/vnd.cups-raw, and I had > a look at a tcp dump of packets going to port 631, and indeed they do > confirm that the IPP port is being told this. > > So, is samba passing the incorrect type to cups? Or could someone tell > me the process that data travels from hitting samba to get to cups? > I've looked a the cups source code but I didn't spot the API that samba > uses to communicate with it. > > I have cups 1.1.22 and samba 3.0.10 on Redhat ES4. > > What should I be looking for? I see that the data being passed around > appears to be valid postscript, as it starts with %!PS-Adobe-3.0 > > Please cc me in any replies. Not sure of what exactly you are referring to with cups driver...are you using Adobe Postscript printer driver and cups generated PPD and printing to \\samba_server\printer_share ? if so, you don't want to have the 'raw' option enabled on the cups printer at all (comment out the 'raw' lines in /etc/cups/mime.types and /etc/cups/mime.convs and restart cups). If you are referring to printing directly from Windows to port 631 on the RHEL ES4 system, this has nothing to do with Samba at all Craig -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba