Samba printing problem from XP
I've got 3 boxes on a private net. 2 Linux 9.0 and one Windows-XP. One of the Linux boxes is setup as a Samba server/Cups server. From the Linux box I can print to the printer as follows cat /etc/fstab | lpr This works and causes the following to be written to the /var/log/cups/error_log file I [30/Dec/2003:06:24:01 -0500] Adding start banner page "none" to job 19. I [30/Dec/2003:06:24:01 -0500] Adding end banner page "none" to job 19. I [30/Dec/2003:06:24:01 -0500] Job 19 queued on 'hp_deskjet870' by 'markh'. I [30/Dec/2003:06:24:01 -0500] Started backend /usr/lib/cups/backend/parallel (PID 2116) for job 19. Or I can print via the smbclient command as such: cat /etc/fstab | smbclient "//softtail/hp_deskjet870" -c "print -" -N -W "HOME-NET" This also works and causes the following to be written to the /var/log/cups/error_log file. I [30/Dec/2003:06:25:42 -0500] Adding start banner page "none" to job 20. I [30/Dec/2003:06:25:42 -0500] Adding end banner page "none" to job 20. I [30/Dec/2003:06:25:42 -0500] Job 20 queued on 'hp_deskjet870' by 'nobody'. I [30/Dec/2003:06:25:42 -0500] Started filter /usr/lib/cups/filter/texttops (PID 2120) for job 20. I [30/Dec/2003:06:25:42 -0500] Started filter /usr/lib/cups/filter/pstops (PID 2121) for job 20. I [30/Dec/2003:06:25:42 -0500] Started filter /usr/lib/cups/filter/foomatic-rip (PID 2122) for job 20. I [30/Dec/2003:06:25:42 -0500] Started backend /usr/lib/cups/backend/parallel (PID 2123) for job 20. Yet when I try to print from an app on the XP box I get this in the /var/log/cups/error_log file. E [30/Dec/2003:06:26:50 -0500] print_job: Unsupported format 'application/octet-stream'! I [30/Dec/2003:06:26:50 -0500] Hint: Do you have the raw file printing rules enabled? I have uncommented the application/octet-stream application/vnd.cups-raw line from the /etc/cups/mime.convs file on the server to no avail. The XP box sees the print share as well as all the other "shares" configured. What is the magic trick to print from the XP box? I've seen a similar problem reported on the list recently but my problem "seems" different at least according to the messages above. Thanks in advance Regards Mark
On 12/30/2003 07:33 PM, Mark Hounschell wrote:
I have uncommented the
application/octet-stream application/vnd.cups-raw
line from the /etc/cups/mime.convs file on the server to no avail.
Did you also get the line in /etc/cups/mime.types -- Joe Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Web Address: http://www.mydestiny.net/~joe_morris Registered Linux user 231871 God said, I AM that I AM. I say, by the grace of God, I am what I am.
"Joe Morris (NTM)" wrote:
On 12/30/2003 07:33 PM, Mark Hounschell wrote:
I have uncommented the
application/octet-stream application/vnd.cups-raw
line from the /etc/cups/mime.convs file on the server to no avail.
Did you also get the line in /etc/cups/mime.types
Duh.. no. Thanks that did it. Regards Mark
Mark Hounschell wrote:
"Joe Morris (NTM)" wrote:
On 12/30/2003 07:33 PM, Mark Hounschell wrote:
I have uncommented the
application/octet-stream application/vnd.cups-raw
line from the /etc/cups/mime.convs file on the server to no avail.
Did you also get the line in /etc/cups/mime.types
Duh.. no. Thanks that did it.
Regards Mark
I posted about very similar problem trying to print from a win2k machine over the weekend with no response, though my error_log shows slightly different messages: D [30/Dec/2003:08:08:18 -0700] ReadClient() 8 POST /printers/psc950 HTTP/1.1 D [30/Dec/2003:08:08:18 -0700] print_job: auto-typing file... D [30/Dec/2003:08:08:18 -0700] print_job: request file type is application/octet-stream. D [30/Dec/2003:08:08:18 -0700] check_quotas: requesting-user-name = 'ggriffin' D [30/Dec/2003:08:08:18 -0700] print_job: requesting-user-name = 'ggriffin' I [30/Dec/2003:08:08:18 -0700] Adding start banner page "none" to job 118. I [30/Dec/2003:08:08:18 -0700] Adding end banner page "none" to job 118. I [30/Dec/2003:08:08:18 -0700] Job 118 queued on 'psc950' by 'ggriffin'. D [30/Dec/2003:08:08:18 -0700] Job 118 hold_until = 0 D [30/Dec/2003:08:08:18 -0700] StartJob(118, 0x809ef10) D [30/Dec/2003:08:08:18 -0700] StartJob() id = 118, file = 0/1 E [30/Dec/2003:08:08:18 -0700] Unable to convert file 0 to printable format for job 118! I [30/Dec/2003:08:08:18 -0700] Hint: Do you have ESP Ghostscript installed? D [30/Dec/2003:08:08:18 -0700] CancelJob: id = 118 D [30/Dec/2003:08:08:18 -0700] ProcessIPPRequest: 8 status_code=0 D [30/Dec/2003:08:08:18 -0700] CloseClient() 8 D [30/Dec/2003:08:08:18 -0700] AcceptClient() 6 from localhost:631. D [30/Dec/2003:08:08:18 -0700] AcceptClient() 8 from localhost:631. I have installed ESP Ghostscript, and tested it, and have uncommented both lines in the files referred to in the earlier messages all to no avail. I can print from the windows machine to a Lexmark E322 printer on the server, but it does Postscript. Any suggestions will be greatly appreciated. Thanks, George -- George H. Griffin Powered by SuSE Linux 9.0, kernel 2.4.21 "Some mornings it just doesn't seem worth it to gnaw through the leather straps" Emo Philips
George H. Griffin wrote:
Mark Hounschell wrote:
"Joe Morris (NTM)" wrote:
On 12/30/2003 07:33 PM, Mark Hounschell wrote:
I have uncommented the
application/octet-stream application/vnd.cups-raw
line from the /etc/cups/mime.convs file on the server to no avail.
Did you also get the line in /etc/cups/mime.types
Duh.. no. Thanks that did it.
Regards Mark
I asked for help too soon. I managed to print by uncommenting these lines in \etc\cups\mime.types application/vnd.cups-raw (string(0,<1B>E) + !string(2,<1B>%0B)) \ string(0,<1B>@) \ (contains(0,128,<1B>%-12345X) + \ (contains(0,1024,"LANGUAGE=PCL") \ contains(0,1024,"LANGUAGE = PCL"))) Though it takes a long time for the data to move ca. 2 meters from the computer to the printer. George -- George H. Griffin Powered by SuSE Linux 9.0, kernel 2.4.21 "Some mornings it just doesn't seem worth it to gnaw through the leather straps" Emo Philips
Hello, On Dec 30 08:39 George H. Griffin wrote (shortened):
Though it takes a long time for the data to move ca. 2 meters from the computer to the printer.
This is because how spooling works under Linux. 1. The whole printing data is stored in a spool file while it is sent from the Windows machine to the Linux machine (by Samba using the usual lpr command). 2. When the whole data was sent from the Windows machine then there is a new job on the Linux machine and then this job is sent by the Linux printing daemon to the printer. As far as I know spooling/buffering under Windows can be done on the fly. I.e. while more and more printing data is produced by the application it is buffered but at the same time it is also sent to the printer. Kind regards Johannes Meixner -- SUSE LINUX AG, Maxfeldstrasse 5 Mail: jsmeix@suse.de 90409 Nuernberg, Germany WWW: http://www.suse.de/
participants (4)
-
George H. Griffin
-
Joe Morris (NTM)
-
Johannes Meixner
-
Mark Hounschell