[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Can't samba print to nt-shared printer on NT domain



Either the HOWTOs aren't covering this, or I'm not getting it.

I've got two machines: one is running WinNT and is attached to an NT domain on my university campus. The other is a Debian Woody box, also attached to the campus network (but of course, not validating off the NT domain).

I have an HP Laserjet 2100 hanging off the NT box, and it is shared so that EVERYONE has PRINTING access.

At first I thought I could just TCP print to it by configuring my /etc/printcap to have rm-<ipaddress> and rp=<printer sharename> entries, but soon came to the conclusion that NT must share printers only via their proprietary mechanism (NetBEUI?), and not via TCP/IP.

So I figured I'd have to use Samba. I've installed smb-common and samba and smbclient and smbfs. I don't really have a good grasp of shell scripting, etc, so I might just be missing something simple.

Before posting all the relevant scripts and file permissions, etc, let me start with a more rudimentary aspect. I've managed to figure out how to get the printer to spit out a blank sheet of paper:

On the Debian box, I type:
smbclient \\\\<name of nt box>\\hplj2100 <my nt domain password> -U <my nt domain username>
(using the actual computer name and my actual password/username)
That gets me to a
  smb: \>
at which point I type "print /etc/printcap"

I would assume that this would print out my /etc/printcap file. Typically this does nothing, at which time I repeat the command, which then causes the printer to spit out a blank page.

Why am I getting a blank page instead of my /etc/printcap? (I could understand stairstepping, but blank?)

Once I get past this rudimentary level, if I have further questions I'll post more info then.

Thanks!

Kent



Reply to: