Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have never tried Windows + Linux networking, so I am seeking some advice.
I'll explain my situation.
I have a Windows XP Pro machine, a Mandrake 10.0 Official machine, sharing a cable connection w/ a D-Link Router. Also I have a Epson Stylus COLOR 600 Printer connected to my Windows Box. I had the printer connected to my linux box before, and have it correctly configured, and am able to print to it perfectly when it is connected to my linux box.
My main priority is that I would like to be able to print from my Linux box to this printer, when the printer is connected to the XP box. It is a real pain that I have to disconnect the printer from XP box and connect it to the Linux box, just to print a document. Just simple printer sharing right?
If I could get file sharing that would be nice too.
I have no idea at all on how to do this, and what I have to do on both machines to get this done.
I have Smb4k for GUI.
Can you gurus please point me to some good tutorials for this, or maybe explain what to do?
I've searched, and the only thing I found here (in the wiki) is how to mount a windows share.
I've enabled File and Printer sharing, and also explicitly enabled sharing of this printer in the windows. The share name is Epson600. Lets say my XP computer name is XPBox. and workgroup is WORKGROUP.
What do I do now?
I went to the CUPS WWW Admin tool, then to Manage Printers, Add Printer, logged in as root. Then I am presented with Printer Name, Location, and Comment text boxes. I am not sure where (Name or Location) I would place the path to the printer. And also what would be the path, with the computer name XPBox, and Printer shared as Epson600.
If I launch Smb4k and it scans it doesnt see the computer or printer at all. I checked "show printers" in the options.
I've also tried using the KDE Printing Manager, which seems to be just another (much nicer) graphical frontend for this. Again, it cannot see the XPBox, and the printer when I try to add a network SMB printer..
I know I must be missing something here, and I have a feeling I just need to do some little thing to get it working?
umm. can you get thru to the XPbox? and the other way as well?
(I mean, like ping, etc)
the printer name is (I assume) just so that you know what it is. Name it EpsonNetwork or whatever.
You need to set up the print queue (you should be able to tell it to get the microsoft printer)
I suggest looking for the mandrake "system settings" printing controls. They seem to spell it out a bit easier.
I have to apologise that I myself do not currently have a Linux distro installed on my computer, and that my experience is on dated distros.
My hands are tied, but whatever I can do, I will try to help.
Ok, If I do ipconfig on my windows box it gives me an ip address.
If I do ping <that ip address> from my linux box, it cant see it at all.
However, if I go to like an iplocator website, it gives me another ip address.
if I do ping <other ip address> it pings it fine.
I am guessing that ip address is the address of my router, because if I go the same iplocator site w/ my linux box, it gives the same address.
otherwise, I cant get them talking at all.
I've searched google, and everywhere I find it talks about editing etc/printcap but that file (for me) is the result of etc/cups/printers.conf, which by the looks of it is the result of the cups web admin.
I am completely lost. I've asked some1 else, and he thought I need to first add my linux box to the windows workgroup.
In my case the workgroup is WORKGROUP.
I've tried adding the printer using both addresses with KDE Print but it always keeps asking for a password upon "test" and I dont know what to put in there. I always specify use guest at the beginning of the wizard. And no matter what I try it always fails that authentication, and then says "failed to create temporary printer"
I dont know anything about smb, and I am completely lost.
umm... newer windows have nasty firewalls. Is this on? maybe this is the problem.
are you manually setting your IP addresses? for troubleshooting I would reccomend this. make sure they are in the same subset and have the same mask. IE:
192.168.0.1 (255.255.255.0) and 192.168.0.2 (255.255.255.0)
turn off any firewalls.
with smb4k, can you see your XP box?
if so:
go to Applications - System - Configuration - Configure your Computer
then choose hardware and then printer.
I try to auto detect using the friendly button but no. Will write back with using the advanced controlls.
Hey... Win 2000 doesn't like smb4k... perhaps its the same.... can you share your drives?
Hi, I experienced somewhat the same problem (KDE 3, SUSE 9,)
When i tried to find a windows printer, using the actual account on my windows machine i didn't find anything (couldn't browse trough the network). Using no account (no authentification etc). De hostnames showed up, but when trying to view any resources by clicking the + sign the NT_STATUS_ACCESS_DENIED message appears.
I know that the interworking between the XP machines and the Linux works fine, because drive sharing is no problem both from XP side as from Linux side. So probably it has something to do with the authentification of the user on the XP pc.
hi, thanks for replies, sorry I haven't been around much, so I haven't been checking this messag board.
ok The problem was the firewall.
Even though its Windows XP SP1, I had my Local Network Connection Firewalled with the generic windows firewall.
I didnt think that could be the problem, cuz I dont have much confidence in windows firewall. anyway.
Anyway, after disabling the firewall, I am able to see the computer in Smb4K.
It lists WORKGROUP, when I expand that I get the computer name, and when I expand that I get the printer share name.
So I tried adding that printer using KDEPrint, but in the wizard on the step where it asks for the printer, if I do scan it shows two "WORKGROUP", and then I can expand them it lists the computer name, but if I try and epanding that it doesnt list anything. so anyway I insert the workgroup, what it says for the computer for the server, and the printer share name for the printer. However it still fails on test. It asks for authentication (even though I had Guest checked), and whatever I type in it fails to authenticate.
I also did "Mount" for the printer in Smb4K, and tried the above again, and got the same results. Now I cant unmount the printer. It gives me:
[quote] could not open /home/<myname>/smb4k/<the windows comp name>/Epson600: Input/Output error[/qupte]
Thanks for all the help. Maybe I am almost there what do I do now?
Found some command which helped me tracking the problem,
Cause was a defective/wrong samba instalation.
smbclient -L hostname -> give a list with the exact name of the printer.
echo "test" |smbclient //ATHLON3000/EPSONC82 -P -U Andre -c 'print -'
resulted in : Failed to open /secrets.tdb
Removing the -P option:
echo "test" |smbclient //ATHLON3000/EPSONC82 -U Andre -c 'print -'
resulted in the following:
Password:xxxxxx
Domain=[ATHLON3000] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
putting file - as stdin-6719 (0.5 kb/s) (average 0.5 kb/s)
Which did the actual job.
I did it using printtool (which is just a link to printerdrake, Mandrake's printer util).
For some reason when scanning Printdrake could not detect the printer, same as KDEPrint. But I did it manually, and filled out the info (Server, Printer share name, workgroup, username, and password; and afterwords, the model and driver) , and got it set up. For some reason I found this util a lot better, and easier to understand what I am supposed to be typing in, than KDEPrint. I know, i know, I am a n00b.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.