I made notes on my Gentoo box documenting the successful setup for me.....I do not know if this will be helpful for you or not.
Notice the last line includes "lpd://surfish/DeskJet" - not smb emerge cups rc-update add cupsd default emerge foomatic emerge hpijs /etc/init.d/cupsd start grep HP-DeskJet_1220C /usr/share/foomatic/db/source/printer/* grep printer/HP-DeskJet_1220C /usr/share/foomatic/db/source/driver/* foomatic-configure -s cups -p HP-DeskJet_1220C -c lpd://surfish/DeskJet -n DeskJet -d hpijs Robert Never test the depth of the water with both feet. -----Original Message----- From: Andrew Tarr [mailto:[EMAIL PROTECTED] Sent: Saturday, 6 September 2003 1:45 a.m. To: [EMAIL PROTECTED] Subject: printing from Linux to Windows problem 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.
