Click to See Complete Forum and Search --> : samba - print to win98
jayjay
11-24-2003, 02:00 AM
I have a fresh install of Fedora Core 1, with samba 3.0. I just want the simplest configuration that will let me print to a Win98 shared printer.
It seems like this should be easy, but I just can't get it working. :confused: Can somebody tell me what the minimum config would be?
If I try smbclient '\\DC\shared_printer_name' I get this:
session request to DC failed (Called name not present)
If I use the redhat printer configuration tool and add a new Networked Windows printer it doesn't see any available shares.
Trying smb:/// in Nautilus gives an error about not finding the SMB master browser.
Also, both boxes have IPs assigned by DHCP. I'm not sure how to set up the resolver properly for this situation (can't put a static IP in lmhosts file, e.g.).
Thanks for any suggestions...
gehidore
11-24-2003, 02:17 AM
just a guess but try this
smbclient '//DC/shared_printer_name'
or
smbclient '\\dc\shared_printer_name'
or
smbclient '//dc/shared_printer_name'
or try this
mkdir /mnt/dc
mount -t smbfs //DC/ /mnt/dc
then look under /mnt/dc for your printer.
jayjay
11-24-2003, 04:11 AM
Thanks but I did try variations on the syntax and it seems to be another issue. Also, if I screw up the host part (or can't resolve the name to an IP address) I get "Connection to <host> failed" instead of "Called name not present".
bathory
11-24-2003, 04:44 AM
There is a utility called smbprint you can use to print to Windoze. Use samba documentation to find out how to configure this.
jayjay
11-24-2003, 04:59 AM
smbprint is actually a shell script that calls smbclient. So I figure if I can't get smbclient to initiate a connection I'm never gonna get smbprint to work. I've read the smbclient man page thoroughly and tried everything that seemed necessary (workgroup, user, password, ip address).
I will keep looking through the docs and googling though. And I just installed SWAT. Still, it seems like this should be a really simple task.
gehidore
11-24-2003, 12:55 PM
did you try to moun the share?
mount -t smbfs //DC/ /whatever mount point you choose/
????
gehidore
11-24-2003, 12:55 PM
also try using the ip instead of a hostname.
ping if you dont know it
Also, what messages do you get from the following command?:
smbclient -L your Win machine's NetBIOS name -d 10
(the -d 10 will set the deug level pretty high, so you could get quite a bit of on-screen output. Try a lower number if you get too much irrelevant info.)
jayjay
11-25-2003, 08:28 PM
Well here's an interesting part of the output - does this mean anything to anyone?
[2003/11/25 16:08:17, 3] libsmb/namequery.c:resolve_lmhosts(850)
resolve_lmhosts: Attempting lmhosts lookup for name DC<0x20>
[2003/11/25 16:08:17, 3] lib/util_sock.c:open_socket_out(690)
Connecting to 192.168.1.101 at port 445
[2003/11/25 16:08:17, 2] lib/util_sock.c:open_socket_out(726)
error connecting to 192.168.1.101:445 (Connection refused)
[2003/11/25 16:08:17, 3] lib/util_sock.c:open_socket_out(690)
Connecting to 192.168.1.101 at port 139
session request to DC failed (Called name not present)
(I put the NB name of the windows host in lmhosts for now, so it resolves to the correct IP address.)
I can see in ethereal that the Lin host contacts the Win host and gets a negative session response.