Cant print using samba and cups to a windows printer
Hi.
I have tried to follow numerous how-to's on the net, but no matter what I do, I just can't print. My printer is a HP-PSC750xi, connected to a windows XP. My laptop uses Debian linux, and samba. Samba works flawlessly with XP, and vica versa. I've got cups installed. In cups webinterface, I add a new printer. Call it allinone. Next I choose windows printer via samba. Device uri: smb://MASTER/PSC750. Next I choose HP, and the appropriate PPD got from linuxprinting. At the administrations page it says: Description: Location: Printer State: idle, accepting jobs. Device URI: smb://MASTER/HPPSC750 Then i try to print a testpage, and now it reads: Description: Location: Printer State: processing, accepting jobs. "Unable to connect to SAMBA host, will retry in 60 seconds..." Device URI: smb://MASTER/HPPSC750 I tail cups error log: (quite long) I guess it something about the windows computer, but got no idea. The windows xp uses administrator as its account, and the printer is shared. I can print using another windows computer, but not using linux and samba. Is there something I shuld do on the windows computer, in the samba smb.conf, a cups config file or something else.. D [24/Jan/2005:17:17:08 +0100] AcceptClient: 5 from localhost:631. D [24/Jan/2005:17:17:08 +0100] ReadClient: 5 GET /printers/allinone?op=print-test-page HTTP/1.1 D [24/Jan/2005:17:17:08 +0100] CGI /usr/lib/cups/cgi-bin/printers.cgi started - PID = 3988 I [24/Jan/2005:17:17:08 +0100] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=3988) D [24/Jan/2005:17:17:08 +0100] SendCommand: 5 file=8 D [24/Jan/2005:17:17:08 +0100] AcceptClient: 7 from localhost:631. D [24/Jan/2005:17:17:08 +0100] ReadClient: 7 POST /printers/allinone HTTP/1.1 D [24/Jan/2005:17:17:08 +0100] print_job: request file type is application/postscript. D [24/Jan/2005:17:17:08 +0100] check_quotas: requesting-user-name = 'root' D [24/Jan/2005:17:17:08 +0100] print_job: requesting-user-name = 'root' D [24/Jan/2005:17:17:08 +0100] Adding default job-sheets values "none,none"... I [24/Jan/2005:17:17:08 +0100] Adding start banner page "none" to job 1. I [24/Jan/2005:17:17:08 +0100] Adding end banner page "none" to job 1. I [24/Jan/2005:17:17:08 +0100] Job 1 queued on 'allinone' by 'root'. D [24/Jan/2005:17:17:08 +0100] Job 1 hold_until = 0 D [24/Jan/2005:17:17:08 +0100] StartJob(1, 0x80bb5b8) D [24/Jan/2005:17:17:08 +0100] StartJob() id = 1, file = 0/1 D [24/Jan/2005:17:17:08 +0100] job-sheets=none,none D [24/Jan/2005:17:17:08 +0100] banner_page = 0 D [24/Jan/2005:17:17:08 +0100] StartJob: argv = "allinone","1","root","Test Page","1","","/var/spool/cups/d00001-001" D [24/Jan/2005:17:17:08 +0100] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin" D [24/Jan/2005:17:17:08 +0100] StartJob: envp[1]="SOFTWARE=CUPS/1.1" D [24/Jan/2005:17:17:08 +0100] StartJob: envp[2]="USER=root" D [24/Jan/2005:17:17:08 +0100] StartJob: envp[3]="CHARSET=iso-8859-1" D [24/Jan/2005:17:17:08 +0100] StartJob: envp[4]="LANG=en" D [24/Jan/2005:17:17:08 +0100] StartJob: envp[5]="TZ=Europe/Copenhagen" D [24/Jan/2005:17:17:08 +0100] StartJob: envp[6]="PPD=/etc/cups/ppd/allinone.ppd" D [24/Jan/2005:17:17:08 +0100] StartJob: envp[7]="CUPS_SERVERROOT=/etc/cups" D [24/Jan/2005:17:17:08 +0100] StartJob: envp[8]="RIP_MAX_CACHE=8m" D [24/Jan/2005:17:17:08 +0100] StartJob: envp[9]="TMPDIR=/var/spool/cups/tmp" D [24/Jan/2005:17:17:08 +0100] StartJob: envp[10]="CONTENT_TYPE=application/postscript" D [24/Jan/2005:17:17:08 +0100] StartJob: envp[11]="DEVICE_URI=smb://MASTER/HPPSC750" D [24/Jan/2005:17:17:08 +0100] StartJob: envp[12]="PRINTER=allinone" D [24/Jan/2005:17:17:08 +0100] StartJob: envp[13]="CUPS_DATADIR=/usr/share/cups"D [24/Jan/2005:17:17:08 +0100] StartJob: envp[14]="CUPS_FONTPATH=/usr/share/cups/fonts" D [24/Jan/2005:17:17:08 +0100] StartJob: envp[15]="CUPS_SERVER=localhost" D [24/Jan/2005:17:17:08 +0100] StartJob: envp[16]="IPP_PORT=631" D [24/Jan/2005:17:17:08 +0100] StartJob: statusfds = [ 9 10 ] D [24/Jan/2005:17:17:08 +0100] StartJob: filterfds[1] = [ 11 -1 ] D [24/Jan/2005:17:17:08 +0100] StartJob: filter = "/usr/lib/cups/filter/pstops" D [24/Jan/2005:17:17:08 +0100] StartJob: filterfds[0] = [ 12 13 ] D [24/Jan/2005:17:17:08 +0100] start_process("/usr/lib/cups/filter/pstops", 0xbfff0150, 0xbffef4c0, 11, 13, 10) I [24/Jan/2005:17:17:08 +0100] Started filter /usr/lib/cups/filter/pstops (PID 3990) for job 1. D [24/Jan/2005:17:17:08 +0100] StartJob: filter = "/usr/lib/cups/filter/foomatic-rip" D [24/Jan/2005:17:17:08 +0100] StartJob: filterfds[1] = [ 11 14 ] D [24/Jan/2005:17:17:08 +0100] start_process("/usr/lib/cups/filter/foomatic-rip", 0xbfff0150, 0xbffef4c0, 12, 14, 10) I [24/Jan/2005:17:17:08 +0100] Started filter /usr/lib/cups/filter/foomatic-rip (PID 3991) for job 1. D [24/Jan/2005:17:17:08 +0100] StartJob: backend = "/usr/lib/cups/backend/smb" D [24/Jan/2005:17:17:08 +0100] StartJob: filterfds[0] = [ -1 12 ] D [24/Jan/2005:17:17:08 +0100] start_process("/usr/lib/cups/backend/smb", 0xbfff0150, 0xbffef4c0, 11, 12, 10) I [24/Jan/2005:17:17:08 +0100] Started backend /usr/lib/cups/backend/smb (PID 3992) for job 1. D [24/Jan/2005:17:17:08 +0100] ProcessIPPRequest: 7 status_code=0 D [24/Jan/2005:17:17:08 +0100] [Job 1] Page = 595x842; 10,36 to 585,833 D [24/Jan/2005:17:17:08 +0100] [Job 1] slowcollate=0, slowduplex=0, sloworder=0 D [24/Jan/2005:17:17:08 +0100] [Job 1] 0 %%BoundingBox: 0 0 612 792 D [24/Jan/2005:17:17:08 +0100] [Job 1] 0 %%Pages: 1 D [24/Jan/2005:17:17:08 +0100] [Job 1] 0 %%LanguageLevel: 1 D [24/Jan/2005:17:17:08 +0100] [Job 1] 0 %%DocumentData: Clean7Bit D [24/Jan/2005:17:17:08 +0100] [Job 1] 0 %%DocumentSuppliedResources: procset testprint/1.1 D [24/Jan/2005:17:17:08 +0100] [Job 1] 0 %%DocumentNeededResources: font Helvetica Helvetica-Bold Times-Roman D [24/Jan/2005:17:17:08 +0100] [Job 1] 0 %%Creator: Michael Sweet, Easy Software Products D [24/Jan/2005:17:17:08 +0100] [Job 1] 0 %%CreationDate: May 11, 1999 D [24/Jan/2005:17:17:08 +0100] [Job 1] 0 %%Title: Test Page D [24/Jan/2005:17:17:08 +0100] [Job 1] 0 %%EndComments D [24/Jan/2005:17:17:08 +0100] [Job 1] 0 %%BeginProlog D [24/Jan/2005:17:17:08 +0100] [Job 1] 0 %%BeginResource procset testprint 1.1 0D [24/Jan/2005:17:17:08 +0100] [Job 1] 0 %%EndResource D [24/Jan/2005:17:17:08 +0100] [Job 1] 0 %%EndProlog D [24/Jan/2005:17:17:08 +0100] [Job 1] 0 %%Page: 1 1 D [24/Jan/2005:17:17:08 +0100] [Job 1] 0 %%Page: 1 1 D [24/Jan/2005:17:17:08 +0100] [Job 1] pw = 575.6, pl = 797.0 D [24/Jan/2005:17:17:08 +0100] [Job 1] PageLeft = 9.7, PageRight = 585.3 D [24/Jan/2005:17:17:08 +0100] [Job 1] PageTop = 833.0, PageBottom = 36.0 D [24/Jan/2005:17:17:08 +0100] [Job 1] PageWidth = 595.0, PageLength = 842.0 D [24/Jan/2005:17:17:08 +0100] CloseClient: 7 D [24/Jan/2005:17:17:08 +0100] ReadClient: 5 GET /favicon.ico HTTP/1.1 D [24/Jan/2005:17:17:08 +0100] SendError: 5 code=404 (Not Found) D [24/Jan/2005:17:17:08 +0100] CloseClient: 5 D [24/Jan/2005:17:17:08 +0100] [Job 1] perl: warning: Setting locale failed. D [24/Jan/2005:17:17:08 +0100] [Job 1] perl: warning: Please check that your locale settings: D [24/Jan/2005:17:17:08 +0100] [Job 1] LANGUAGE = (unset), D [24/Jan/2005:17:17:08 +0100] [Job 1] LC_ALL = (unset), D [24/Jan/2005:17:17:08 +0100] [Job 1] LANG = "en" D [24/Jan/2005:17:17:08 +0100] [Job 1] are supported and installed on your system. D [24/Jan/2005:17:17:08 +0100] [Job 1] perl: warning: Falling back to the standard locale ("C"). D [24/Jan/2005:17:17:08 +0100] [Job 1] foomatic-rip version $Revision: 3.43.2.6 $ running... D [24/Jan/2005:17:17:08 +0100] [Job 1] Parsing PPD file ... D [24/Jan/2005:17:17:08 +0100] [Job 1] *cupsFilter: "application/vnd.cups-postscript 0 foomatic-rip" D [24/Jan/2005:17:17:08 +0100] [Job 1] Added option ColorSpace D [24/Jan/2005:17:17:08 +0100] [Job 1] Added option Resolution D [24/Jan/2005:17:17:08 +0100] [Job 1] Added option PageSize D [24/Jan/2005:17:17:08 +0100] [Job 1] Added option PageRegion D [24/Jan/2005:17:17:08 +0100] [Job 1] Added option Model D [24/Jan/2005:17:17:08 +0100] [Job 1] Added option PrintoutMode D [24/Jan/2005:17:17:08 +0100] [Job 1] Added option ImageableArea D [24/Jan/2005:17:17:08 +0100] [Job 1] Added option PaperDimension D [24/Jan/2005:17:17:08 +0100] [Job 1] Added option Duplex D [24/Jan/2005:17:17:08 +0100] [Job 1] Added option Quality D [24/Jan/2005:17:17:08 +0100] [Job 1] Added option Font D [24/Jan/2005:17:17:08 +0100] [Job 1] D [24/Jan/2005:17:17:08 +0100] [Job 1] Parameter Summary D [24/Jan/2005:17:17:08 +0100] [Job 1] ----------------- D [24/Jan/2005:17:17:08 +0100] [Job 1] D [24/Jan/2005:17:17:08 +0100] [Job 1] Spooler: cups D [24/Jan/2005:17:17:08 +0100] [Job 1] Printer: allinone D [24/Jan/2005:17:17:08 +0100] [Job 1] PPD file: /etc/cups/ppd/allinone.ppd D [24/Jan/2005:17:17:08 +0100] [Job 1] Printer model: HP PSC 750xi Foomatic/hpijs (recommended) D [24/Jan/2005:17:17:08 +0100] [Job 1] Job title: Test Page D [24/Jan/2005:17:17:08 +0100] [Job 1] File(s) to be printed: D [24/Jan/2005:17:17:08 +0100] [Job 1] <STDIN> D [24/Jan/2005:17:17:08 +0100] [Job 1] D [24/Jan/2005:17:17:08 +0100] [Job 1] D [24/Jan/2005:17:17:08 +0100] [Job 1] ================================================ D [24/Jan/2005:17:17:08 +0100] [Job 1] D [24/Jan/2005:17:17:08 +0100] [Job 1] File: <STDIN> D [24/Jan/2005:17:17:08 +0100] [Job 1] D [24/Jan/2005:17:17:08 +0100] [Job 1] ================================================ D [24/Jan/2005:17:17:08 +0100] [Job 1] D [24/Jan/2005:17:17:08 +0100] [Job 1] Reading PostScript input ... D [24/Jan/2005:17:17:08 +0100] [Job 1] --> This document is DSC-conforming! D [24/Jan/2005:17:17:08 +0100] [Job 1] D [24/Jan/2005:17:17:08 +0100] [Job 1] ----------- D [24/Jan/2005:17:17:08 +0100] [Job 1] Found: %%BeginProlog D [24/Jan/2005:17:17:08 +0100] [Job 1] 0 %%EOF D [24/Jan/2005:17:17:08 +0100] [Job 1] Saw EOF! D [24/Jan/2005:17:17:08 +0100] [Job 1] Found: %%EndProlog D [24/Jan/2005:17:17:08 +0100] [Job 1] D [24/Jan/2005:17:17:08 +0100] [Job 1] ----------- D [24/Jan/2005:17:17:08 +0100] [Job 1] Found: %%BeginSetup D [24/Jan/2005:17:17:08 +0100] [Job 1] Inserting PostScript code for CUPS' page accounting D [24/Jan/2005:17:17:08 +0100] [Job 1] Found: %%BeginFeature: *PrintoutMode Normal D [24/Jan/2005:17:17:08 +0100] [Job 1] Option: PrintoutMode=Normal --> Setting option D [24/Jan/2005:17:17:08 +0100] [Job 1] Found: %% FoomaticRIPOptionSetting: PrintoutMode=Normal D [24/Jan/2005:17:17:08 +0100] [Job 1] Option: PrintoutMode=Normal --> Setting option D [24/Jan/2005:17:17:08 +0100] [Job 1] Found: %%BeginFeature: *Quality FromPrintoutMode D [24/Jan/2005:17:17:08 +0100] [Job 1] Option: Quality=FromPrintoutMode --> Setting option D [24/Jan/2005:17:17:08 +0100] [Job 1] Found: %% FoomaticRIPOptionSetting: Quality=@PrintoutMode D [24/Jan/2005:17:17:08 +0100] [Job 1] Option: Quality=FromPrintoutMode --> Setting option D [24/Jan/2005:17:17:08 +0100] [Job 1] Found: %%BeginFeature: *PageSize A4 D [24/Jan/2005:17:17:08 +0100] [Job 1] Option: PageSize=A4 --> Setting option D [24/Jan/2005:17:17:08 +0100] [Job 1] Found: %% FoomaticRIPOptionSetting: PageSize=A4 D [24/Jan/2005:17:17:08 +0100] [Job 1] Option: PageSize=A4 --> Setting option D [24/Jan/2005:17:17:08 +0100] [Job 1] Found: %%BeginFeature: *Duplex None D [24/Jan/2005:17:17:08 +0100] [Job 1] Option: Duplex=None --> Setting option D [24/Jan/2005:17:17:08 +0100] [Job 1] Found: %% FoomaticRIPOptionSetting: Duplex=None D [24/Jan/2005:17:17:08 +0100] [Job 1] Option: Duplex=None --> Setting option D [24/Jan/2005:17:17:08 +0100] [Job 1] Found: %%EndSetup D [24/Jan/2005:17:17:08 +0100] [Job 1] D [24/Jan/2005:17:17:08 +0100] [Job 1] ----------- D [24/Jan/2005:17:17:08 +0100] [Job 1] New page: 1 1 D [24/Jan/2005:17:17:08 +0100] [Job 1] Inserting option code into "PageSetup" section. D [24/Jan/2005:17:17:08 +0100] [Job 1] No page header or page header not DSC-conforming D [24/Jan/2005:17:17:08 +0100] [Job 1] Stopping search for page header options D [24/Jan/2005:17:17:08 +0100] [Job 1] Found: D [24/Jan/2005:17:17:08 +0100] [Job 1] pageHeight sub % Move down... D [24/Jan/2005:17:17:08 +0100] [Job 1] --> Output goes directly to the renderer now. D [24/Jan/2005:17:17:08 +0100] [Job 1] D [24/Jan/2005:17:17:08 +0100] [Job 1] D [24/Jan/2005:17:17:08 +0100] [Job 1] Starting renderer D [24/Jan/2005:17:17:08 +0100] [Job 1] JCL: <job data> D [24/Jan/2005:17:17:08 +0100] [Job 1] D [24/Jan/2005:17:17:08 +0100] [Job 1] renderer PID kid4=3994 D [24/Jan/2005:17:17:08 +0100] [Job 1] renderer command: gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="DESKJET 930" -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842 -dDuplex=false -r300 -sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2 -dIjsUseOutputFD -sOutputFile=- - D [24/Jan/2005:17:17:08 +0100] [Job 1] perl: warning: Setting locale failed. D [24/Jan/2005:17:17:08 +0100] [Job 1] perl: warning: Please check that your locale settings: D [24/Jan/2005:17:17:08 +0100] [Job 1] LANGUAGE = (unset), D [24/Jan/2005:17:17:08 +0100] [Job 1] LC_ALL = (unset), D [24/Jan/2005:17:17:08 +0100] [Job 1] LANG = "en" D [24/Jan/2005:17:17:08 +0100] [Job 1] are supported and installed on your system. D [24/Jan/2005:17:17:08 +0100] [Job 1] perl: warning: Falling back to the standard locale ("C"). D [24/Jan/2005:17:17:08 +0100] [Job 1] foomatic-gswrapper: gs '-dBATCH' '-dPARANOIDSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=ijs' '-sIjsServer=hpijs' '-sDeviceManufacturer=HEWLETT-PACKARD' '-sDeviceModel=DESKJET 930' '-dDEVICEWIDTHPOINTS=595' '-dDEVICEHEIGHTPOINTS=842' '-dDuplex=false' '-r300' '-sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2' '-dIjsUseOutputFD' '-sOutputFile=/dev/fd/3' '/dev/fd/0' 3>&1 1>&2 E [24/Jan/2005:17:17:08 +0100] [Job 1] Connection failed with error NT_STATUS_ACCESS_DENIED E [24/Jan/2005:17:17:09 +0100] [Job 1] Unable to connect to SAMBA host, will retry in 60 seconds... D [24/Jan/2005:17:17:09 +0100] [Job 1] Closing renderer |
You may want to try with turboprint utilitie.
http://www.turboprint.de/english.html I found very useful utilites for printer. you may try this. hope this help. -/Hitesh |
This looks pretty neat, but my particular printer (HP PSC 750xi) isn't supportet.. So back to basics once again.
araldit |
No one that has any new ideas.... bumb
|
When putting the smb:// stuff into CUPS you need to include the Windows username and password:
Code:
smb://WinUser:Password@server/Printername |
Thank you Mr Wodsworth ... for some reason the KDE printing wizard creates smb URI's as described by the original poster. I hand modified mine and it worked like a charm!
Thanks |
All times are GMT -5. The time now is 07:52 PM. |