LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-04-2003, 10:52 PM   #1
sarboras
LQ Newbie
 
Registered: Oct 2003
Location: Oshawa, Ontario, Canada
Distribution: Mandrake 10
Posts: 22

Rep: Reputation: 15
Printer Sharing


Hello!

I am trying to set up printer sharing between my Mandrake 9.1 downstairs and my Windows XP Home Upstairs (to which my Lexmark Z53 is connected). In the Mandrake Control Centre Hardware tab, I tried to have it auto-find the printer, but alas it was unable. So I moved into expert mode and specified the network IP, network computer name, printer sharing name, etc. of the printer upstairs, and it appears as though Mandrake was able to find it. I installed the recommended driver, but when I got to the "Print a Test Page" step, everything seemed to work fine on the Linux end, but nothing came out of the printer upstairs. Same story if I try to print from any text editor in Linux. Any help or similar experiences would be very much appreciated! Thanks!

Mike
 
Old 10-04-2003, 11:57 PM   #2
brew1brew
Member
 
Registered: Jul 2003
Location: Plano TX (north of Dallas)
Distribution: Kubuntu
Posts: 165

Rep: Reputation: 30
are you using CUPS? if not you should be, it works great.
 
Old 10-05-2003, 01:03 AM   #3
oski
Member
 
Registered: Aug 2003
Location: GMT +1(+2 summer)
Distribution: Xubuntu 7.10
Posts: 60

Rep: Reputation: 15
As you described before, your printer is connected to the winXP machine upstairs, but is it really a network printer, is it really connected to a ethernet card to your XP machine acting this last as a router? Or , more probably, is this printer connected through a usb or parallel port?. If this is the case your started the wrong way to configure your printer in the control center: you choosed network printer but you should choose (I don't remember exactly) an option for a remote printer on a PC of the LAN. Before all this check carefully that everything is well connected and "on". And check also (very important!) than the printer has exactly the same name on both systems. Sometimes is better to delete all bad configuration and start from zero than trying to reconfigure. Anyway, it would helped a lot a full description about how your LAN is set up. Good Luck!
 
Old 10-05-2003, 08:59 AM   #4
sarboras
LQ Newbie
 
Registered: Oct 2003
Location: Oshawa, Ontario, Canada
Distribution: Mandrake 10
Posts: 22

Original Poster
Rep: Reputation: 15
Hi, thanks for your help. I tried both drivers (the CUPS and the recommended one) to no avail. oski is right in that the printer is connected to a serial port upstairs. In the menu, there is an option for 'Network Printer', but I chose 'SMB/Win95/98/NT' printer instead, because I figured I would be sharing it over samba. There is also an option for 'Remote lpd' - should I chose that? I have got a Samba connection working bidirectionally from this computer to my upstairs one, but unfortunately PrintDrake can't seem to get the printer to work. By the way, checking up on other similar problems I made sure that the Workgroup names for both computers are the same, so I don't think that's the problem..

As for my LAN setup, I have a P2600 Mandrake 9.1 downstairs and a P41.7GhZ running WinXP HOME upstairs and a third P2600 running Win98 (but I'm not concerned about that one). All three computers are connected, along with my cable modem, pretty standardly to a D-Link DI-604 Router. As I said, the Samba filesharing and internet sharing work fine, it's just this stupid printer...

Thanks again!!

Mike

Last edited by sarboras; 10-05-2003 at 09:01 AM.
 
Old 10-05-2003, 12:19 PM   #5
oski
Member
 
Registered: Aug 2003
Location: GMT +1(+2 summer)
Distribution: Xubuntu 7.10
Posts: 60

Rep: Reputation: 15
In my humble opinion you made the correct election "I chose 'SMB/Win95/98/NT'", indeed the printer was recognised from the Linux machine, but... is this printer configurated to be shared from winXP machine?. You wrote: "I made sure that the Workgroup names for both computers are the same" please double check that also the printer's name is "exactly, including case" the same on every machine. An exemple of bad configuration is to have named the printer in Linux machine as "printer" and in the win machines as "Lexmark" to say something...Excuse me for insist in this. I had this problem but the inverse way: Printer on Linux machine, to be shared with a Win98 PC and I felt as an stupid until I found the fault of to have named the printer with different names. Please, post your experiencies. Thanks!
 
Old 10-05-2003, 01:45 PM   #6
sarboras
LQ Newbie
 
Registered: Oct 2003
Location: Oshawa, Ontario, Canada
Distribution: Mandrake 10
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks again - yes, as far as I can tell, the printer is named the same in Linux as it is upstairs in Windows XP: "Lex". If it's of any help to solving my problem, here is the info I get for the printer when I log into the CUPS control at http://localhost:631

LEXMARK Z53, CUPS+Gimp-Print v4.2.5
Description:
Location: Mid
Printer State: processing, accepting jobs.
<i>"Unable to connect to SAMBA host, will retry in 60 seconds...: Success"</i>
Device URI: smb://Mid/Lex

"Mid" is the name of my upstairs (WinXP) computer. Thanks again!

Mike
 
Old 10-05-2003, 03:03 PM   #7
sarboras
LQ Newbie
 
Registered: Oct 2003
Location: Oshawa, Ontario, Canada
Distribution: Mandrake 10
Posts: 22

Original Poster
Rep: Reputation: 15
Problem solved!

My problem ended up being that, for some reason, Windows wanted a username for the printer. I went into the CUPS administration and changed my printer config to Device URI smb://user:@Mid/Lex and, low and behold, it worked! Thanks very much oski for all your help!!

Regards,
Mike
 
Old 10-14-2003, 05:12 AM   #8
TennesseeJeff
LQ Newbie
 
Registered: May 2002
Location: Tennessee
Distribution: Mandrake, Slackware, Red Hat
Posts: 3

Rep: Reputation: 0
Sarboras-
Having exactly the same problem, down to the same message in WWW Cups admin: <i>"Unable to connect to SAMBA host, will retry in 60 seconds...: Success"</i>
Device URI: smb://speedy1/hpdeksje

Please elaborate on where/how you shanged your printer config. Have tried to use your suggestions in both printerdrake and www cups admin with no success. BTW - Only have issues printing to WinXP Pro boxen (2 of em, one with an HP 660, one with HP 6122) Either printer on a Win98 box worked fine, but Win98 box has gone away. Printing from either winbox to Apollo P2200 on Mandrake works just fine.

Oski-
Thanks for your suggestions and help. Now have the rest of the network up and sharing.
 
Old 10-14-2003, 09:28 AM   #9
sarboras
LQ Newbie
 
Registered: Oct 2003
Location: Oshawa, Ontario, Canada
Distribution: Mandrake 10
Posts: 22

Original Poster
Rep: Reputation: 15
Hey Jeff.

The first thing I did was take Oski's advice, and remove my printer entirely (using either the WWW CUPS administration or PrinterDrake, they both work). Then, I installed the printer again using the 'Add Printer' function in the CUPS administration tool. I picked the printer, etc. configuration that suited my Lexmark Z53 (I assume CUPS has drivers for HP printers; hopefully better ones as my alignment is off), and under 'Device URI', I put: "smb://User:@speedy1/hpdeskje" (should there be a 't' on the end?).
In order to make it work, though, you also have to log onto the WinXP machine and actually share the printer (ie: go into the printers list off Control Panel and right-click the printer and share it).
Besides making sure the printer name on my Mandrake computer and my WinXP computer were exactly the same, there really isn't anything else of note that I had to do to get the printer to work. I would verify that the printer path is named correctly in the URI, that you are using some username, and that the printer is properly shared, that's probably where your problem is.
Sorry I couldn't be more specific! I'm just figuring this stuff out too.

Regards,
Mike
 
Old 10-14-2003, 12:16 PM   #10
avoll
LQ Newbie
 
Registered: Oct 2003
Location: Ottumwa, IA
Posts: 6

Rep: Reputation: 0
please help sumba printing

someone please help me
I have trying day in and day out
to get my windows xp computer to print to my linux sumba
my linux computer is setup with a epson stylus color 480sxu
printer
can someone give me a step by step how to print from windows xp to linux sumba
thank you
 
Old 11-01-2003, 06:48 AM   #11
thane777
LQ Newbie
 
Registered: Oct 2003
Location: Packerland
Distribution: Redhat/Mandrake
Posts: 19

Rep: Reputation: 0
I feel so close but I can't make it happen !
I have a Lexmarkz25 connected to a WinXp box and file sharing beween my linux box and the XP works w/o a hitch. I can even print fine if the lexmark is directly attached to my linux box. I tried using the info above adding smb://user:@sharename/printername but to no avail.

Strangely I once got it to work and the job even spooled on the XP machine but hung Windoze (go figure) I rebooted the machine and now I cannot print to it at all. At the commandline I get:

dave@Linbox dave]$ lpr -P LexmarkZ@Limac test
Status Information:
sending job 'dave@Linbox+115' to LexmarkZ@Limac
connecting to 'Limac', attempt 1
cannot open connection to Limac - Resource temporarily unavailable
Make sure the remote host supports the LPD protocol
and accepts connections from this host and from non-privileged (>1023) ports

FYI - I had to use foomatic and LPRng to get this printer to print locally. I wonder if I would have better luck with the XP printing to the printer connected to my linux box.

If I issue "lp -p LexmarkZ test" it does not give error info and I here the printer resetting but nothing comes out. I know I am soooo close. AHhhhh! ! ! How frustrating.


Have mercy on the noob! Thanks in advance!

thane

Last edited by thane777; 11-01-2003 at 11:36 PM.
 
Old 11-04-2003, 10:45 PM   #12
Water
LQ Newbie
 
Registered: Dec 2002
Location: Here
Distribution: Mandriva, Ubuntu,
Posts: 12

Rep: Reputation: 0
sarboras

I have a question you said the windows machine was looking for a user name?

Like this smb://user:@host/printer share name.

Everytime I go into CUPS and try to config. the Device URI: to add (user:@) it changes back to smb://host/Printer share name.

Does your final Device URI: show (user:@) in it on the status page in CUPS?

Thanks
 
Old 11-05-2003, 12:20 AM   #13
avoll
LQ Newbie
 
Registered: Oct 2003
Location: Ottumwa, IA
Posts: 6

Rep: Reputation: 0
already hookED up the sumba printer

already hookED up the sumba printer
and just finshed seting up my web page with apache
my problem was some kind of dirver problem with windows XP
that I was tryN to print from through my linux server

if any one else is haveN problems with setN up a printER
with sumba
post it here and I will try to help you
with sumba and apache problems
thanX

 
Old 11-05-2003, 11:17 AM   #14
oski
Member
 
Registered: Aug 2003
Location: GMT +1(+2 summer)
Distribution: Xubuntu 7.10
Posts: 60

Rep: Reputation: 15
Here is "The Tool"

Hi people, back again here. For your information I did the set up of my LAN ( P IV 1.4 Ghz dual boot win XP/MDK 9.1 + P 200 MMX win 98, connected through a ADSL Router) with SWAT. It configured my P IV box in Linux mode to share files and printers and it did everything flawlesly. SWAT stands for Samba Web Administration Tool, you can configure your shares with your web browser. Take a time to know exactly what are you doing and sharing with, be cautious about SWAT because it affects directly with security of your LAN! SWAT edits your smb.conf file and backs up by default your former file renaming it as smb.conf.old, so if things go bad you can always delete SWAT-created smb.conf and recover your former one just renaming it. I'm not an advanced user of SWAT, but when I used it many months ago I had only the problem I mentioned before with the share name of my printer. Let's go urpmi swat !
-----------------------------------------------------------------------------------------------------------------
PS: Note that SWAT is good for sharing printers connected to Linux boxes, if it was not clear enough. If the printer is connected to a win box you have to know how to share it from win perspective and then it will be detected automatically by PrinterDrake in MDK Control Center.
 
Old 11-06-2003, 08:58 PM   #15
Water
LQ Newbie
 
Registered: Dec 2002
Location: Here
Distribution: Mandriva, Ubuntu,
Posts: 12

Rep: Reputation: 0
Well I was able to get it to work using PrintrDrake.

I think this might help others.

smb://user:@host/printer share name.

User = A user name on the windoz box.
Host = Full computer name in xp not computer description.
Printer = The share name in xp.

Thanks for the posts.

Water
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Printer Sharing How to claudius753 Linux - Newbie 1 09-06-2005 02:25 PM
Printer-sharing with FreeBSD; cannot se icon for the printer hemmelig *BSD 7 05-13-2005 03:44 PM
Printer sharing Rowie Linux - Networking 9 04-08-2005 04:07 AM
how to get primary logon network, Access control,File sharing & printer sharing info dileepkk Linux - Networking 2 07-06-2004 06:54 AM
sharing printer with XP douglassparker Linux - Networking 1 07-13-2003 11:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 06:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration