printing to windows xp shared printer fails

Goffioul Michael goffioul at imec.be
Thu Jan 29 09:53:23 CET 2004


> my setup is:
> linux machine: kde 3.2rc1, samba 3.01, cups 1.1.20
> hp laserjet connected to winXp machine, both on the
> same workgroup
> 
> i cannot connect/print from kde to the printer.
> however, smbclient //winxp/LaserJet -N -c "print file"
> works, and the same with -P switch fails with
> ERROR: Unable to fetch machine password
> 
> i found the following bug report:
> http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=104138
> 
> is it the reason - if so, what can i do?

Which driver are you using?
Depending on the driver type, the sending of the file through samba
is controlled by the driver, or by CUPS directly. I guess that in
this case, it is controlled by CUPS. For this, CUPS uses the "smb"
backend, which is a symlink to "smbspool" distributed with samba.

What you can try first is trying to run this backend manually and
see if you can a result. Run "smbspool" without any argument to know
about the syntax to use. To run it as in CUPS, you have to define the
environment variable DEVICE_URI which is the uri as used by CUPS.

This should give you something like (under bash):

DEVICE_URI=smb://GROUP/SERVER/printername smbspool 0 myuser jobname 1 "" file.ps

Michael.


More information about the kde-print mailing list