Re: samba printing is easy!

Shawn Bayern (shawn.bayern@yale.edu)
Sat, 12 Dec 1998 16:13:33 -0500 (EST)

On Sat, 12 Dec 1998, Ken Lai wrote:

> This is what I get:
>
> ================
> bash$ smbclient -W itsprint -L uniprint4
> Added interface ip=130.132.52.146 bcast=130.132.52.255 nmask=255.255.255.0
> startlmhosts: Can't open lmhosts file /etc/lmhosts. Error was No such file
> or directory
> cli_open_sockets: Unknown host UNIPRINT4.
> ================
>
> And I get the same thing whether or not I use the "-W" option.

If you just want to print, the -W option shouldn't matter; since Uniprint3
and Uniprint4 have guest access enabled, your own "workgroup" (which is
simply, in this case, a scope qualifier for your username) isn't
important.

Your problem may be as simple as not using a fully qualified domain name.
Do you tell your resolver to search its.yale.edu in your /etc/resolv.conf?
If not, you'll need to run smbclient with a fully qualified name:

smbclient '\\uniprint4.its.yale.edu\dl_laser2' -P

If you were running it as

smbclient '\\uniprint4\dl_laser2' -P

your machine might have no way of knowing where Uniprint4 is.

I'll post my interface scripts for Pantheon if anyone would like them,
though Solaris printing is SVR4-style, so it won't help Linux admins much.
/etc/printcap is easier (or maybe just better documented) anyway.

Shawn