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.