[Samba] Problem accessing Windows printer from Linux side

Wu Yongwei adah at pku.edu
Wed Mar 19 06:42:12 GMT 2003


I am using Red Hat 8.0 with KDE, and I have installed samba-common and   
samba-client packages, version 2.2.7-4.8.0. The Windows server is a  
Windows 2000 Server with a HP LaserJet 4500. I can use "smbclient -L 
//server -U user" to view the shares. After setting up in the Red Hat 
Printer Config, now I can see the status of the printer is "Idle 
(accepting jobs)" in the Print dialog, but whenever I print, nothing 
occurs. Checking /var/spool/lpd/LaserJet4500/status.pr I found the 
folowing lines:  
  
IF filter 'mf_wrapper' filter msg - '/usr/sbin/lpdomatic: postscript job   
line1=>%!PS-Adobe-3.0' at 2003-03-19-10:45:41.787 ## A=root at wuyw+671   
number=671 process=1743  
IF filter 'mf_wrapper' filter msg - '<' at 2003-03-19-10:45:41.787 ##   
A=root at wuyw+671 number=671 process=1743  
IF filter 'mf_wrapper' filter msg - '/usr/sbin/lpdomatic: prepended:' at   
2003-03-19-10:45:41.789 ## A=root at wuyw+671 number=671 process=1743  
IF filter 'mf_wrapper' filter msg - '<</PageSize[612 792]/ImagingBBox   
null>>setpagedevice' at 2003-03-19-10:45:41.789 ## A=root at wuyw+671  
number=671   
process=1743  
IF filter 'mf_wrapper' filter msg - 'gs  PID pid2=1765' at   
2003-03-19-10:45:41.793 ## A=root at wuyw+671 number=671 process=1743  
IF filter 'mf_wrapper' filter msg - 'closing *main::KID3' at   
2003-03-19-10:45:41.807 ## A=root at wuyw+671 number=671 process=1743  
IF filter 'mf_wrapper' filter msg - 'closed *main::KID3' at   
2003-03-19-10:45:41.807 ## A=root at wuyw+671 number=671 process=1743  
IF filter 'mf_wrapper' filter msg - 'error closing *main::STDOUT at   
/usr/sbin/lpdomatic line 812, <KID4_IN> line 586.' at  
2003-03-19-10:45:41.823   
## A=root at wuyw+671 number=671 process=1743  
IF filter 'mf_wrapper' filter msg - 'KID3 finished' at  
2003-03-19-10:45:41.831   
## A=root at wuyw+671 number=671 process=1743  
IF filter 'mf_wrapper' filter msg - 'Main process finished' at   
2003-03-19-10:45:41.838 ## A=root at wuyw+671 number=671 process=1743  
IF filter 'mf_wrapper' filter finished at 2003-03-19-10:45:41.861 ##   
A=root at wuyw+671 number=671 process=1743  
printing finished at 2003-03-19-10:45:41.862 ## A=root at wuyw+671  
number=671   
process=1743  
LP filter msg - 'cat: write error: Broken pipe' at  
2003-03-19-10:45:41.862 ##   
A=root at wuyw+671 number=671 process=1743  
waiting for printer filter to exit at 2003-03-19-10:45:41.863 ##   
A=root at wuyw+671 number=671 process=1743  
accounting at end at 2003-03-19-10:45:41.863 ## A=root at wuyw+671  
number=671   
process=1743  
finished 'root at wuyw+671', status 'JFAIL' at 2003-03-19-10:45:41.863 ##   
A=root at wuyw+671 number=671 process=1743  
subserver pid 1743 exit status 'JFAIL' at 2003-03-19-10:45:41.864 ##  
A=<NULL>   
number=0 process=1679  
job 'root at wuyw+671', attempt 3, allowed 3 at 2003-03-19-10:45:41.865 ##   
A=root at wuyw+671 number=671 process=1679  
send_failure_action 'JREMOVE' at 2003-03-19-10:45:41.865 ##  
A=root at wuyw+671   
number=671 process=1679  
job 'root at wuyw+671', removing job - status JREMOVE at  
2003-03-19-10:45:41.865   
## A=root at wuyw+671 number=671 process=1679  
keeping error job 'root at wuyw+671' at 2003-03-19-10:45:41.866 ##   
A=root at wuyw+671 number=671 process=1679  
[root at wuyw LaserJet4500]# cat status.pr  
IF filter 'mf_wrapper' filter msg - '/usr/sbin/lpdomatic: postscript job   
line1=>%!PS-Adobe-3.0' at 2003-03-19-10:45:41.787 ## A=root at wuyw+671   
number=671 process=1743  
IF filter 'mf_wrapper' filter msg - '<' at 2003-03-19-10:45:41.787 ##   
A=root at wuyw+671 number=671 process=1743  
IF filter 'mf_wrapper' filter msg - '/usr/sbin/lpdomatic: prepended:' at   
2003-03-19-10:45:41.789 ## A=root at wuyw+671 number=671 process=1743  
IF filter 'mf_wrapper' filter msg - '<</PageSize[612 792]/ImagingBBox   
null>>setpagedevice' at 2003-03-19-10:45:41.789 ## A=root at wuyw+671  
number=671   
process=1743  
IF filter 'mf_wrapper' filter msg - 'gs  PID pid2=1765' at   
2003-03-19-10:45:41.793 ## A=root at wuyw+671 number=671 process=1743  
IF filter 'mf_wrapper' filter msg - 'closing *main::KID3' at   
2003-03-19-10:45:41.807 ## A=root at wuyw+671 number=671 process=1743  
IF filter 'mf_wrapper' filter msg - 'closed *main::KID3' at   
2003-03-19-10:45:41.807 ## A=root at wuyw+671 number=671 process=1743  
IF filter 'mf_wrapper' filter msg - 'error closing *main::STDOUT at   
/usr/sbin/lpdomatic line 812, <KID4_IN> line 586.' at  
2003-03-19-10:45:41.823   
## A=root at wuyw+671 number=671 process=1743  
IF filter 'mf_wrapper' filter msg - 'KID3 finished' at  
2003-03-19-10:45:41.831   
## A=root at wuyw+671 number=671 process=1743  
IF filter 'mf_wrapper' filter msg - 'Main process finished' at   
2003-03-19-10:45:41.838 ## A=root at wuyw+671 number=671 process=1743  
IF filter 'mf_wrapper' filter finished at 2003-03-19-10:45:41.861 ##   
A=root at wuyw+671 number=671 process=1743  
printing finished at 2003-03-19-10:45:41.862 ## A=root at wuyw+671  
number=671   
process=1743  
LP filter msg - 'cat: write error: Broken pipe' at  
2003-03-19-10:45:41.862 ##   
A=root at wuyw+671 number=671 process=1743  
waiting for printer filter to exit at 2003-03-19-10:45:41.863 ##   
A=root at wuyw+671 number=671 process=1743  
accounting at end at 2003-03-19-10:45:41.863 ## A=root at wuyw+671  
number=671   
process=1743  
finished 'root at wuyw+671', status 'JFAIL' at 2003-03-19-10:45:41.863 ##   
A=root at wuyw+671 number=671 process=1743  
subserver pid 1743 exit status 'JFAIL' at 2003-03-19-10:45:41.864 ##  
A=<NULL>   
number=0 process=1679  
job 'root at wuyw+671', attempt 3, allowed 3 at 2003-03-19-10:45:41.865 ##   
A=root at wuyw+671 number=671 process=1679  
send_failure_action 'JREMOVE' at 2003-03-19-10:45:41.865 ##  
A=root at wuyw+671   
number=671 process=1679  
job 'root at wuyw+671', removing job - status JREMOVE at  
2003-03-19-10:45:41.865   
## A=root at wuyw+671 number=671 process=1679  
keeping error job 'root at wuyw+671' at 2003-03-19-10:45:41.866 ##   
A=root at wuyw+671 number=671 process=1679  
  
What can be the problems? I tried searching in the documentation, but  
found little information on accessing Windows printer from Linux side.  
 
I am a newbie with Samba so forgive my ignorances. 
  
Thanks in advance.  
  
Best regards,  
  
Wu Yongwei  

----- Peking University Alumni Email System,  http://mail.pku.edu ----     


More information about the samba mailing list