LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 05-12-2007, 08:10 AM   #1
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 376

Rep: Reputation: 30
Cups backend started, no output to printer.


Hi,

I'm sending a print job from a Windows XP box to my Suse 10.1 server with a printer connected by USB (Lexmark z600).

I can test print from the server to the printer, so the Cups drivers appear to be installed, printer cable intact, etc.

Printing from the XP machine appears to be sent to the server, no error messages, Samba seems to be quite happy.

/var/log/cups/error_log has the following lines:
~~~~~~~~~~~~~~~~~~~ snip ~~~~~~~~~~~~~~~~~~~~~~~~
[12/May/2007:10:50:57 +0200] Adding start banner page "none" to job 6.
I [12/May/2007:10:50:57 +0200] Adding end banner page "none" to job 6.
I [12/May/2007:10:50:57 +0200] Job 6 queued on 'z600series' by 'dave'.
I [12/May/2007:10:50:57 +0200] Started backend /usr/lib/cups/backend/usb (PID 7835) for job 6.
~~~~~~~~~~~~~~~~~~~ snip ~~~~~~~~~~~~~~~~~~~~~~~~

These jobs (1 - 6) are all presumably sitting in a queue somewhere.

The printer driver on the XP machine is for "Apple Color LaserWriter 12/600" which should generate postscript output and I've included "use client driver = Yes" in /etc/smb.conf (testparm passes it).

Anyone got any ideas?
 
Old 05-12-2007, 09:43 AM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,485

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
You might do better by having the XP machine generate the print job locally using the driver for your Lexmark printer and then send this to a raw printer queue in CUPS.
 
Old 05-13-2007, 11:36 AM   #3
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 376

Original Poster
Rep: Reputation: 30
Well, yes.

I'm not too worried what happens to the output as log as it appears on the printed page.

The problem is that the XP printer drivers are producing postscript output and passing this across to the Suse box which is losing them.

I want to know where they have gone.

I can't see any error messages, so I assume that the Suse box thinks that the printer has received the output.

And, if that is the case, I can't see why sending the Suse box raw output is going to make any difference.

Still, I'll give it a go....
 
Old 05-13-2007, 12:08 PM   #4
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 376

Original Poster
Rep: Reputation: 30
In /etc/cups/mime.types, I have uncommented the following line:

application/octet-stream

And this line in /etc/cups/mime.convs,:

application/octet-stream application/vnd.cups-raw 0 -

And I have changed the drivers on XP.

But now, in /var/log/samba/log.smbd it says "Connection refused".

If I change the printer driver back to Postscript, samba apparently accepts the print job:

~~~~~~~~~~~~~~~ snip from /var/log/cups/page_log ~~~~~~~~~~~~~~~~~~~~~~
styluscolor580 dave 1 [29/Sep/2005:17:51:20 +0200] 1 1 - localhost
styluscolor580 dave 2 [13/Oct/2005:14:34:15 +0200] 1 1 - localhost
z600series dave 1 [12/May/2007:09:49:23 +0200] 1 1 - 192.168.1.100
z600series dave 2 [12/May/2007:10:14:19 +0200] 1 1 - 192.168.1.100
z600series dave 3 [12/May/2007:10:23:37 +0200] 1 1 - 192.168.1.100
z600series dave 5 [12/May/2007:10:47:45 +0200] 1 1 - 192.168.1.100
z600series dave 6 [12/May/2007:10:50:57 +0200] 1 1 - 192.168.1.100
z600series dave 7 [13/May/2007:14:41:18 +0200] 1 1 - 192.168.1.100
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ snip ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Just a point: the test prints to the printer from the Suse box (using the YAST printer configuration tool) don't show up on the page_log. Is that normal?
 
Old 05-15-2007, 02:22 PM   #5
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 376

Original Poster
Rep: Reputation: 30
I don't understand why this is such a mission.

Below is the tail of my /var/log/cups/error_log:
Jobs 8 & 9 are from my Windows XP box.
Jobs 10 and 11 are locally printed (user name 'shirley') and have produce successful printed output.
[HTML]
I [15/May/2007:16:22:46 +0200] LoadPPDs: Read "/etc/cups/ppds.dat", 4275 PPDs...
I [15/May/2007:16:22:49 +0200] LoadPPDs: No new or changed PPDs...
I [15/May/2007:16:22:49 +0200] Full reload complete.
I [15/May/2007:19:47:02 +0200] Adding start banner page "none" to job 8.
I [15/May/2007:19:47:02 +0200] Adding end banner page "none" to job 8.
I [15/May/2007:19:47:02 +0200] Job 8 queued on 'z600series' by 'dave'.
I [15/May/2007:19:47:02 +0200] Started backend /usr/lib/cups/backend/usb (PID 4672) for job 8.
I [15/May/2007:19:49:14 +0200] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=4674)
I [15/May/2007:19:55:34 +0200] Adding start banner page "none" to job 9.
I [15/May/2007:19:55:34 +0200] Adding end banner page "none" to job 9.
I [15/May/2007:19:55:34 +0200] Job 9 queued on 'z600series' by 'dave'.
I [15/May/2007:19:55:34 +0200] Started backend /usr/lib/cups/backend/usb (PID 4684) for job 9.
I [15/May/2007:20:01:34 +0200] Adding start banner page "none" to job 10.
I [15/May/2007:20:01:34 +0200] Adding end banner page "none" to job 10.
I [15/May/2007:20:01:34 +0200] Job 10 queued on 'z600series' by 'shirley'.
I [15/May/2007:20:01:35 +0200] Started filter /usr/lib/cups/filter/pstops (PID 4750) for job 10.
I [15/May/2007:20:01:35 +0200] Started filter /usr/lib/cups/filter/pstoraster (PID 4751) for job 10.
I [15/May/2007:20:01:35 +0200] Started filter /usr/lib/cups/filter/rastertoz600 (PID 4752) for job 10.
I [15/May/2007:20:01:35 +0200] Started backend /usr/lib/cups/backend/usb (PID 4753) for job 10.
I [15/May/2007:20:03:14 +0200] Adding start banner page "none" to job 11.
I [15/May/2007:20:03:14 +0200] Adding end banner page "none" to job 11.
I [15/May/2007:20:03:14 +0200] Job 11 queued on 'z600series' by 'shirley'.
I [15/May/2007:20:03:14 +0200] Started filter /usr/lib/cups/filter/pstops (PID 4756) for job 11.
I [15/May/2007:20:03:14 +0200] Started filter /usr/lib/cups/filter/pstoraster (PID 4757) for job 11.
I [15/May/2007:20:03:14 +0200] Started filter /usr/lib/cups/filter/rastertoz600 (PID 4758) for job 11.
I [15/May/2007:20:03:14 +0200] Started backend /usr/lib/cups/backend/usb (PID 4759) for job 11.

[/HTML]
On the other hand /var/log/cups/page_log has the following content and does not contain jobs 10 and 11:
[HTML]
z600series dave 1 [12/May/2007:09:49:23 +0200] 1 1 - 192.168.1.100
z600series dave 2 [12/May/2007:10:14:19 +0200] 1 1 - 192.168.1.100
z600series dave 3 [12/May/2007:10:23:37 +0200] 1 1 - 192.168.1.100
z600series dave 5 [12/May/2007:10:47:45 +0200] 1 1 - 192.168.1.100
z600series dave 6 [12/May/2007:10:50:57 +0200] 1 1 - 192.168.1.100
z600series dave 7 [13/May/2007:14:41:18 +0200] 1 1 - 192.168.1.100
z600series dave 8 [15/May/2007:19:47:02 +0200] 1 1 - 192.168.1.100
z600series dave 9 [15/May/2007:19:55:34 +0200] 1 1 - 192.168.1.100
[/HTML]

So here's what I'm thinking: that there is somehow a conflict between samba and cups and samba is placing the plot files somewhere where cups can't see them.

Does anyone feel they can add a little light here?
 
Old 05-15-2007, 04:13 PM   #6
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 376

Original Poster
Rep: Reputation: 30
Well, it doesn't really matter, I guess.

I managed to find this thread which details network printing without Samba, so I've set it up as suggested:http://www.linuxquestions.org/questi...highlight=cups

Don't know why I hadn't found it before, must've been using the wrong keywords. Anyway, use http://localhost:631 and go to 'Jobs'. You should see the URL of your printer if you pass the cursor over it.

Install your favorite postscript driver (adobe do one that works) on your XP or windows 98 box (http://www.marlboro.edu/resources/co...rinting/win98/on how to get W98 to use internet printing) and use http://your_linux_box_name:631/printers/z600series as the network path to the printer (substitute your printer name and the path to your printer as indicated above).

It worked for me.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
hplip backend for sane and CUPS unable to detect OfficeJet T65 on parallel port kris_kiil Linux - Hardware 2 04-23-2006 01:34 PM
CUPS Network Printer/ server indicator blinks no printer output wine Linux - Networking 8 03-18-2006 11:20 PM
greyed out backend options when adding printer (CUPS) NewConvertLX Linux - Hardware 1 11-19-2004 06:27 PM
Backend problems (e.i. printer) Zalel Linux - Newbie 1 04-29-2004 07:44 AM
9.1 CUPS backend missing davidsrsb Slackware 1 10-16-2003 09:53 PM


All times are GMT -5. The time now is 10:08 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