in fact here it is, pretty short:
"Printing to Windows Servers
CUPS can print to Windows servers in one of two ways. The first way uses the LPD
protocol on the CUPS system and the "TCP/IP Printing Services" on the Windows
system.
You can find out more about this configuration in the LPD section earlier in this
chapter.
The second way is through the Microsoft Server Message Block ("SMB") protocol.
Support
for this protocol is provided with the free SAMBA software package. You can download
SAMBA from:
http://www.samba.org
To configure CUPS for SAMBA, run the following command:
ln -s `which smbspool` /usr/lib/cups/backend/smb ENTER
The smbspool(1) program is provided with SAMBA starting with SAMBA 2.0.6. Once you
have
made the link you can configure your printers with one of the following device URIs:
smb://workgroup/server/sharename
smb://server/sharename
smb://user:[EMAIL PROTECTED]/server/sharename
smb://user:[EMAIL PROTECTED]/sharename
The workgroup name need only be specified if your system is using a different
workgroup.
The user:pass strings are required when printing to Windows NT servers or to shares
with
passwords enabled under Windows 95 and 98."
On Sat, 06 Sep 2003 01:45:22 +1200
Andrew Tarr <[EMAIL PROTECTED]> wrote:
>
> OK, so I'm trying to use CUPS to print to a printer shared from a
> windows computer. This is what happens:
>
> [EMAIL PROTECTED]:~# lpadmin -P HPLaserJ -E -v smb://andrew:passwd/ORSINO/HPLaserJ
> -m laserjet.ppd
> lpadmin: Unable to connect to server: Connection refused
>
> And yes, samba is working:
>
> [EMAIL PROTECTED]:~$ smbclient -U andrew -L //ORSINO
> Password:
> Domain=[WORKGROUP] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
>
> Sharename Type Comment
> --------- ---- -------
> E on Orsino Disk
> ADMIN$ Disk Remote Admin
> IPC$ IPC Remote IPC
> C$ Disk Default share
> D$ Disk Default share
> E$ Disk Default share
> F$ Disk Default share
> HPLaserJ Printer HP LaserJet 6P/6MP - Standard
> print$ Disk Printer Drivers
> PMAIL Disk
>
> Server Comment
> --------- -------
>
> Workgroup Master
> --------- -------
>
> I can print also by using smbspool, which is presumably what CUPS is
> using, by export DEVICE_URI='smb://andrew:[EMAIL PROTECTED]/HPLaserJ'
> and
> [EMAIL PROTECTED]:~# smbspool 1 ajt test 1 none /home/ajt/kantsong.txt
>
> this doesn't work very well, I only get a line of the file, but I
> don't get any complaints about being unable to connect to the
> service.
>
> A google search on the lpadmin: complaint doesn't turn up anything
> particularly elucidatory. What's going wrong?
>
> Andrew.
>
--
Nick Rout
Barrister & Solicitor
Christchurch, NZ
Ph +64 3 3798966
Fax + 64 3 3798853
http://www.rout.co.nz
[EMAIL PROTECTED]