Mark van Dijk
2002-Jun-30 07:35 UTC
[Samba] Help with Windows XP, linux and multi-subnetting
Hey hey, This is my situation: [a] --- [b] \ --- [c] Computer [a] is my router / server, running SuSE and samba. It has ip address 192.168.1.1 for computer b, 217.67.235.57 for computer c and also 213.84.96.18 (my ISP IP) and 217.67.235.2 for my 217.67.235.57/29 to work. Computer [b] is a windows XP professional workstation using ip 192.168.1.2, connected with the internet through SNAT and sharing a printer and a folder. Computer [c] is a linux slackware 8.1 workstation using ip 217.67.235.60. How can I make computers [a] and [c] print using computer [b]? Do I need a Wins-server? Thanks, Mark
Joel Hammer
2002-Jun-30 08:37 UTC
[Samba] Help with Windows XP, linux and multi-subnetting
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. What kind of printer is it? 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!) 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. 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 -" 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. 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. Joel On Sun, Jun 30, 2002 at 04:34:14PM +0200, Mark van Dijk wrote:> Hey hey, > > This is my situation: > > [a] --- [b] > \ --- [c] > > Computer [a] is my router / server, running SuSE and samba. It has ip > address 192.168.1.1 for computer b, 217.67.235.57 for computer c and > also 213.84.96.18 (my ISP IP) and 217.67.235.2 for my 217.67.235.57/29 > to work. > Computer [b] is a windows XP professional workstation using ip > 192.168.1.2, connected with the internet through SNAT and sharing a > printer and a folder. > Computer [c] is a linux slackware 8.1 workstation using ip 217.67.235.60. > > How can I make computers [a] and [c] print using computer [b]? Do I need > a Wins-server? > > Thanks, > Mark > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba