LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Printing to Windows XP printer fromRed Hat 7.3 using CUPS (https://www.linuxquestions.org/questions/linux-networking-3/printing-to-windows-xp-printer-fromred-hat-7-3-using-cups-65581/)

lansman 06-14-2003 10:49 AM

Printing to Windows XP printer fromRed Hat 7.3 using CUPS
 
I previously set up a Red Hat 8.0 box and configured SAMBA printing using lrpng (sp?). However when I try to do the same thing using 7.3 and the CUPS printer manager I cannot get anything to printer on the Windows printer. The share name for the printer is "//server/canon6000" and the Deice URI is:

"smb://server/canon6000"

The Device is entered as "Windows Printer via SAMBA"

I get among other messages "Unable to connect to SAMBA host, will retry in 60 seconds..."success" or sometimes "host not found".

I have linked to a /usr/lib/cups/backend/smb file and have the host addresses entered in the /etc/hosts file. I have spent days on this and am getting nowhere! :(

Any good document ( I have read the SAMBA documentation) to try or can anybody recommend "the cure"? I will be forever in your service!!

baldy3105 06-16-2003 05:24 AM

What I have found is that you need to connect to XP with a user account so the URI under the cups config should read "smb:\\user:passwd@server\share".

What I also found was that you cannot use "guest" with a blank password, which is the standard way windows maps to unprotected shares.

Use mine as an example. My server is "cartman" my share is "epson" I added an XP account "Linux", and a password of "pingu" then made sure that user is allowed to print. I can now connect using -

smb:\\Linux:pingu@cartman\epson

This works for me, try it :)

lansman 06-16-2003 09:05 AM

CUPS printing
 
I tried a quick reply but did not see it. I entered using // instead of the DOS convention \\ and low and behold with the right driver - I got a test page!!!!!!

God belss you and thank you and thank you VERY MUCH! I hope I can be of assistance to you one day!

tom
http://images.linuxquestions.org/que...cons/icon7.gif

Parksy 06-16-2003 05:43 PM

What programs do you use to install the printer? I've tried both Mandrake Control Center and the CUPS WWW admin tool. The CUPS tool will only accept the URI in the form smb:// while the control center will accept both forms (smb:// and smb:\\). However, I can't connect with either. I can see the printer fine with LinNeighborhood. Any idea what's wrong? I always get this error:
Code:

"Unable to connect to SAMBA host, will retry in 60 seconds...: Input/output error"

megaspaz 06-17-2003 02:44 AM

hmmm... i just tried out linneighborhood last nite. it wasn't my cup of tea, but don't you have to mount it? just asking cause it seemed for the windows shares, you needed to mount them.

lansman 06-17-2003 11:39 AM

In the case of Red Hat 7.3, it would only accept the notation with "//", but when you go back to the control panel it shows "samba://server/canon6000 with no password. The real settings in Red HAt are in the file /etc/cups/printers.conf. This contains the string including the user and password. Try to edit that file.

Word of caution: each time I modify the printer I have to supply the full string user-password, etc. for the samba path. Otherwise it drops it from the printers.conf file

CharlesW 09-29-2003 09:08 AM

Thank you Baldy3105. I have been driven nuts for the last week trying to get a network printer running, until a google search unearthed your nugget.

Nowhere in the documentation (and I've been searching high and low) does it seem to say that you should use a URI of smb://user:password@server/printername instead of //server/printer.

I don't have a password set on my server, but the following works - smb://user:@server/printername.

Thank you for your wisdom!

awahl 11-09-2003 10:02 AM

Thanks!
 
I just wanted to pass on my thanks for this nugget too...! I have spent the last week or so trying to find anything that works, and this works! I can finally print to my xp printer.... If only SuSE had such a simple solution posted- I'm sure would save alot of frustrating googling by many newbies like me!

Thanks, Baldy3105! Nice to know people like you are out there and willing to share their knowledge and eXPerience to help others!

:newbie:

gernt 11-24-2003 02:29 PM

I wanted to express my thanks also. I would never have figured that one out. I've joined out of gratitude.


All times are GMT -5. The time now is 08:25 PM.