win ps to samba to cups to ipp cups, no ps filtering to inkjet
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
win ps to samba to cups to ipp cups, no ps filtering to inkjet
Ok, so here's what I've got going; I'm trying to use the cups print drivers to service windows printing, so I have windows printing postscript to all the printers, including my hp inkjet. The idea being cups knows how to handle ps thanks to mime.types. The sequence is as follows.
1. windows prints to inkjet on samba server using a laserjet driver to produce postscript out
2. samba server (server#1) is also hosting a cups service and passes the job to local cups
3. local cups passes the job to another server (server#2) that has cups running and the target inkjet is on this second server
When I print from windows, I can see the postscript go to the server#1. I can see it get sent to server#2. But when it gets to server#2, it seems to bypass the normal mime.types filtering and goes directly to the printer. The inkjet printer chokes on this; postscript bad, very bad.
If I take the postscript job printed from windows out of the queue on server#1 and print it from a linux prompt e.g.
lpr -Pinkjet job.ps
the job goes from server#1 to server#2 and prints correctly. Same is true if I intercept the job on server#2 and print from there.
So the content of the job is fine, mime.types seems to handle it fine. Somehow, it seems like its not getting filtered on server#2 because its coming from samba.
Printing from linux works fine, by the way.
Any suggestions? I've looked at the cups logs but nothing seems meaningful.
Solved my own problem, there is a setting in samba smb.conf that tells cups the print from windows is "raw" meaning send the ps to the inkjet and choke it. Once I commented out the default setting
Hello ,
could You send me please your cupsd.conf from server1 and server2. I'm beginer in configuration cups and I need resolve the same configuration what you use. It would be great if you help me.
Sure thing, the following is the "server2" and identical to the "server1". It sets up cups to share and use printers. I use FC6 and the system-config-printers doesnt properly configure cupsd.conf, at least I couldnt get it to. So this is my cupsd.conf whenever I have a local printer I want to share and network printers I want to use.
--
LogFilePerm 0600
MaxLogSize 2000000000
LogLevel info
Printcap /etc/printcap
<Location />
# Allow shared printing...
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin>
AuthType Basic
AuthClass System
Order allow,deny
Allow @LOCAL
</Location>
# Share local printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAddress @LOCAL
BrowseAllow @LOCAL
BrowseProtocols cups
# Allow remote access
Port 631
<Policy default>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default CUPS-Add-Device CUPS-Delete-Device>
AuthType Basic
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
Order allow,deny
Allow @LOCAL
</Location>
~
~
~
I have a similar problem but not printing from a windows machine but printing from a MAC. As there are no suitable ppd files for the mac but for the Debian cups server i want to send the data as ps to the print server.
But the problem is that it also directly sends the ps data to the non-ps printer so nothing is print out. How can I configure cups to apply the filters on the ps-data?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.