[Samba] Help with Windows XP, linux and multi-subnetting

Mark van Dijk vocis at dvxs.net
Sun Jun 30 09:03:02 GMT 2002


Joel Hammer wrote:

>First, are you sure you want to make your XP workstation the print server?
>Why not hang the printer off computer a  or c ? It is usually much simpler
>to have linux act as the server.
>  
>
Because the XP machine is my mom's and so is the printer ;-)

>What kind of printer is it? 
>
An Epson C42UX

>
>I doubt that XP pro will filter your print jobs for you, so if you are
>having driver problems with your linux printers, I doubt XP will solve
>them for you. (Could be wrong on this, but this is windows!)
>  
>
I don't know exactly what you mean with this .. what's filtering?

>For printing, I doubt you would need a wins server, but, that never hurts
>and it is easy to set up. Just put in the appropriate global parameters in
>the smb.conf of computer a. And, you have to point your clients to the wins
>server, too.
>  
>
Ok, I asked because my server is multi-subnetted (217.67.235.57/29 and 
192.168.1.0/24)

>To print from linux to your xp server, the command is something like:
>
>cat file (already formated) | smbclient //server/share -c "print -"
>
>Now, for server, smbclient will try lmhost, dns, broadcast and wins server
>support.
>
>If these all fail then printing won't happen. But, this works on my system:
>
>cat Multiple.txt |  smbclient  //192.168.0.2/text -c "print -" 
>  
>
I'll try this out then.. I'll keep you informed

>So, if you can ping to the XP server, the above command might do it for you.
>Of course, you will have to fool with password issues for this to be
>automatic. And, you will have to filter the job on your client.
>  
>
bash-2.05a$ ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 octets data
64 octets from 192.168.1.2: icmp_seq=0 ttl=127 time=0.7 ms
Works :)

>BTW, if you want to get a feel for how things are being found on your system
>with smbclient, read about the -R option with smbclient.
>  
>
Will try.

>Joel
>  
>
Thanks Joel :)

Mark





More information about the samba mailing list