LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-29-2003, 10:08 AM   #1
Gildogg
LQ Newbie
 
Registered: Aug 2003
Location: Ohio
Distribution: RedHat
Posts: 3

Rep: Reputation: 0
Samba/Cups Printing


I see a lot of posts from people asking for help with Cups printing over samba but no answers. I am having the same problem.

I have an HP 2500c hooked to a RedHat 9 samba server with the CUPS print system.

I can print fine from the server.
I can print fine from my Linux client.
I can not print from windows clients. The print job shows up in the queue and just disappears.
The cups error_log says:
PID 6794 stopped with status 2!

I set the debug level from info to debug and get:
job does not start with Postscript %! thing at /usr/lib/cups/filter/cupsomatic line 485, <STDIN> line 1.

From looking at the cupsomatic script it appears that
"# Line zero should be postscript leader" means there shoudl be a "%!" at the beginning of the print job, and it's not there. I am using the PostScript drivers from HP (HP 2500C Series PS3).

Anyone have any clue as to what to do for this?
 
Old 08-29-2003, 02:40 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Thread with the exact same problem.
http://www.linuxquestions.org/questi...threadid=86549

Quote:
The print job shows up in the queue and just disappears.
Are you talking about the print queue on the Linux server which has CUPS ?
 
Old 08-29-2003, 05:25 PM   #3
loke137
Member
 
Registered: Feb 2003
Location: Brasil
Distribution: Debian Etch
Posts: 147

Rep: Reputation: 15
yes, i had seen that thread.
 
Old 09-02-2003, 06:14 PM   #4
Gildogg
LQ Newbie
 
Registered: Aug 2003
Location: Ohio
Distribution: RedHat
Posts: 3

Original Poster
Rep: Reputation: 0
CUPS over SaMBa

That would have been a helpful topic, if it solved the problem. The thread you pointed out just offered a work around for Windows 2000 machines. We have no Windows 2000 machines, just Windows 98 and 2 or 3 XP. We need to solve the problem with CUPS printing over SaMBa, not work around it.
 
Old 09-11-2003, 09:43 AM   #5
genialsoft
LQ Newbie
 
Registered: Sep 2003
Location: Ipatinga MG Brasil
Posts: 1

Rep: Reputation: 0
I have a problem like this.
My samba not deliver the jobs to cupsd but from cups I print test pages.
 
Old 09-11-2003, 11:28 AM   #6
Gildogg
LQ Newbie
 
Registered: Aug 2003
Location: Ohio
Distribution: RedHat
Posts: 3

Original Poster
Rep: Reputation: 0
Found a Fix

My friend Shyam got a fix for me. This solved the problem on my server:

Uncomment the following:
/etc/cups/mime.convs:
application/octet-stream application/vnd.cups-raw 0
-

/etc/cups/mime.types:
application/octet-stream

then restart cups
 
Old 11-10-2003, 03:45 PM   #7
epte
LQ Newbie
 
Registered: Nov 2003
Posts: 2

Rep: Reputation: 0
All that the mime.convs fix does is to allow print jobs to pass straight through the cups filtering system. If you have already configured a Windows, non-Postscript driver on the clients, then this is the necessary workaround.

If, however, you are trying to do what I am doing--installing PostScript drivers on the clients so that I can count pages accurately with the accounting, this fix is not sufficient. In theory, all my Windows clients should be able to send PostScript to cups, and cups should know how to handle it.

I have the same problem. My print jobs briefly appear in the Windows client print queue, then disappear, even though no printing has in fact taken place. I can print fine from the server using cups. Looking in my /var/spool/cups directory, there are several c000** files. (Which I assume were some sort of print-job-description file that never got deleted for some reason). But I have not found a way to know where in the chain this process is breaking down. The only thing remotely close to an error message I found in the /var/log/cups/error-log saying that cupsomatic filtering had broken (which I assume means that an unrecognized format was encountered??-- not a useful error message IMHO).

Even printing with the mime.convs fix doesn't work for me, of course, because I've got a PostScript driver trying to print to a non-PostScript printer.
 
Old 11-10-2003, 03:50 PM   #8
epte
LQ Newbie
 
Registered: Nov 2003
Posts: 2

Rep: Reputation: 0
When I said that the raw option allows print jobs to pass straight through the cups filtering system, I should have said that it allows jobs to bypass the filtering system.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing from XP to CUPS via SAMBA Paulsuk Linux - Networking 6 04-15-2008 05:43 PM
Samba and Cups Printing zfletcher Linux - General 7 04-25-2005 01:08 PM
Printing from Cups to Samba MurrayL Linux - Networking 1 03-04-2005 06:49 PM
Samba/cups printing doralsoral Linux - Software 2 12-14-2004 02:43 PM
cups+samba printing vital4ik Linux - Software 0 06-08-2004 01:08 PM


All times are GMT -5. The time now is 10:35 AM.

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