LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-05-2004, 05:18 PM   #1
Latem
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Mandriva 2005 LE
Posts: 44

Rep: Reputation: 15
newbie needs advice, print sharing


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.

Thanks a lot,

Latem
 
Old 09-05-2004, 05:25 PM   #2
titanium_geek
Senior Member
 
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479

Rep: Reputation: 50
have you enabled file and print sharing under windows (not sure XP, but should be in the locality of network neighbourhood)?

after doing this, try to configure a network printer under linux. (It is possible. look in LQ.... not sure on the details, sorry)

google for SAMBA for file sharing. (the closest I got was linux took windows files, not otherway around)

titanium_geek
 
Old 09-05-2004, 06:53 PM   #3
Latem
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Mandriva 2005 LE
Posts: 44

Original Poster
Rep: Reputation: 15
Thanks for the reply.

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?

Thanks,

Latem
 
Old 09-05-2004, 08:40 PM   #4
titanium_geek
Senior Member
 
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479

Rep: Reputation: 50
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.

titanium_geek
 
Old 09-09-2004, 06:58 PM   #5
Latem
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Mandriva 2005 LE
Posts: 44

Original Poster
Rep: Reputation: 15
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.

Latem
 
Old 09-18-2004, 03:04 PM   #6
titanium_geek
Senior Member
 
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479

Rep: Reputation: 50
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?

titanium_geek
 
Old 09-20-2004, 05:46 AM   #7
Andre de Werdt
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Rep: Reputation: 0
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.

Thanx, for any reply or help solving this matter.

Andre
 
Old 09-20-2004, 05:57 AM   #8
titanium_geek
Senior Member
 
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479

Rep: Reputation: 50
to Latem: my last post was confusing.

make sure that your IP addresses are manually set. YES. in Mandrake 10 go to Applications - System - Configuration - Configure your computer - network

In XP, you probably have to right click on network neighbourhood, and configure TCP/IP to change the IP address.

good luck.

titanium_geek
 
Old 09-24-2004, 05:55 PM   #9
Latem
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Mandriva 2005 LE
Posts: 44

Original Poster
Rep: Reputation: 15
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?

Latem
 
Old 09-26-2004, 02:55 AM   #10
Andre de Werdt
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Rep: Reputation: 0
Lightbulb printing problem

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.

 
Old 09-26-2004, 09:18 AM   #11
Latem
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Mandriva 2005 LE
Posts: 44

Original Poster
Rep: Reputation: 15
ok it looks like I am haveing the same issue kind of.

Did u have Mandrake 10.0 w/ Samba installation w/ the linux install? just curious.

So this is what I did:
Code:
smbclient -L BOJAN-EF77GZTJ0
returns
Code:
Password:<i type root password here>
Domain=[BOJAN-EF77GZTJ0] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Sharename      Type      Comment
        ---------      ----      -------
        IPC$           IPC       Remote IPC
        print$         Disk      Printer Drivers
        Epson600       Printer   Epson Stylus COLOR 600 ESC/P 2
        ADMIN$         Disk      Remote Admin
        C$             Disk      Default share
Domain=[BOJAN-EF77GZTJ0] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
then
Code:
echo "test" |smbclient //BOJAN-EF77GZTJ0/Epson600 -P -U Bojan -c 'print -'
returns:
Code:
Failed to open /secrets.tdb
ERROR: Unable to open secrets database
finally,
Code:
"test" |smbclient //BOJAN-EF77GZTJ0/Epson600 -U Bojan -c 'print -'
gets me:
Code:
Password:<root password again>
Domain=[BOJAN-EF77GZTJ0] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
putting file - as stdin-2606 (0.0 kb/s) (average 0.0 kb/s)
But it didnt do anything. it didnt print or put a job or anything.
So I am not sure exactly what's up.

Any suggestions?
Thanks,

Latem
 
Old 09-29-2004, 04:10 PM   #12
Latem
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Mandriva 2005 LE
Posts: 44

Original Poster
Rep: Reputation: 15
Solved.

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.

thanks for all the help guys.

Latem
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
security newbie, but not Linux newbie. advice on secure delete tools mattie_linux Linux - Security 19 08-15-2005 01:50 AM
file and print sharing gwc Linux - Newbie 3 06-03-2005 02:59 PM
file and print sharing bdika Mandriva 6 10-09-2004 02:46 AM
Print sharing with samba katarn444 Linux - Networking 2 05-21-2003 10:40 AM
Cable sharing - advice? RefriedBean Linux - Networking 10 08-04-2002 07:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration