LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-08-2007, 10:21 PM   #1
rhoffman
LQ Newbie
 
Registered: Jan 2006
Posts: 5

Rep: Reputation: 0
Question 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.
 
Old 06-08-2007, 10:47 PM   #2
rhoffman
LQ Newbie
 
Registered: Jan 2006
Posts: 5

Original Poster
Rep: Reputation: 0
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

# cups options = raw

windows printing worked like a champ!
 
Old 08-31-2007, 09:15 AM   #3
Lada
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Rep: Reputation: 0
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.
 
Old 09-01-2007, 09:25 AM   #4
rhoffman
LQ Newbie
 
Registered: Jan 2006
Posts: 5

Original Poster
Rep: Reputation: 0
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>
~
~
~
 
Old 09-23-2007, 08:16 AM   #5
creature
LQ Newbie
 
Registered: Sep 2007
Posts: 1

Rep: Reputation: 0
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?

greets creature
 
  


Reply

Tags
cups, mimetypes, samba


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cups ipp problems dayaram Red Hat 8 08-22-2006 12:40 PM
performance of IPP vs. SAMBA + CUPS benyamin1 Linux - Networking 1 08-13-2006 05:47 AM
CUPS IPP printing problem with Win-XP Home larsj Linux - Software 0 04-16-2006 12:19 PM
samba + cups win xp brasuca Linux - Networking 5 05-28-2004 06:44 AM
cups and ipp stuart39 Fedora 0 02-17-2004 06:16 AM


All times are GMT -5. The time now is 07:09 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration