[cups.general] adding a samba printer of another network
Luca Ferrari
fluca1978 at infinito.it
Thu Feb 17 02:54:40 PST 2005
On Thursday 10 February 2005 19:53 RSalles's cat walking on the keyboard
wrote:
> >>
> >>The smbspool backend needs the server's name (in the WIndows/SMB sense)
> >>as part of the URI, not the IP addr.
> >
> > I've tried with the netbios name (711), but it does not work. I have the
> > host in the /etc/hosts file, but maybe samba cannot get the netbios of
> > the other network. Could it be a samba setting?
> >
> > Luca
>
> You'll nedd a wins server support running in your samba server to have
> the subnet browsing facility.
> ########################################
> wins support = yes
> name resolve order = wins lmhosts bcast
> interfaces = 192.168.2.1 192.168.3.1
> ; exemple
> ########################################
> It could help you to get rid of this problem.
>
I'm going mad. My smb.conf file already contains a name resolve order like the
above, and more in specific:
name resolve order = wins lmhosts hosts bcast
wins support = yes
and my /etc/samba/lmhost file contains:
127.0.0.1 localhost
192.168.2.19 p19
192.168.2.11 711
Now, if I add the printer with the command:
lpadmin -p hp711 -v smb://711/hp711 -E -c ROTEGLIA
where 711 is the netbios name and hp711 the printer share, and then try to
print:
echo -en "\n\n\nhello\n\n\n" | /usr/bin/lpr -P hp719
nothing happens.
Please, any idea? I'm really going crazy and I need to solve the problem.
Thanks,
Luca
--
Luca Ferrari,
fluca1978 at infinito.it
More information about the cups
mailing list