LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-14-2003, 10:49 AM   #1
lansman
Member
 
Registered: Feb 2003
Location: Upstate N Y
Distribution: Red Hat 8.0
Posts: 46

Rep: Reputation: 15
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!!
 
Old 06-16-2003, 05:24 AM   #2
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 875

Rep: Reputation: 184Reputation: 184
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:\\userasswd@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:\\Linuxingu@cartman\epson

This works for me, try it
 
Old 06-16-2003, 09:05 AM   #3
lansman
Member
 
Registered: Feb 2003
Location: Upstate N Y
Distribution: Red Hat 8.0
Posts: 46

Original Poster
Rep: Reputation: 15
Smile 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
 
Old 06-16-2003, 05:43 PM   #4
Parksy
Member
 
Registered: Apr 2003
Distribution: Gentoo/Mandrake 10.0
Posts: 110

Rep: Reputation: 15
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"

Last edited by Parksy; 06-16-2003 at 05:46 PM.
 
Old 06-17-2003, 02:44 AM   #5
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
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.
 
Old 06-17-2003, 11:39 AM   #6
lansman
Member
 
Registered: Feb 2003
Location: Upstate N Y
Distribution: Red Hat 8.0
Posts: 46

Original Poster
Rep: Reputation: 15
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
 
Old 09-29-2003, 09:08 AM   #7
CharlesW
LQ Newbie
 
Registered: Sep 2003
Posts: 13

Rep: Reputation: 0
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!
 
Old 11-09-2003, 10:02 AM   #8
awahl
LQ Newbie
 
Registered: Oct 2003
Location: Chicago area
Distribution: SuSE Pro 8.2
Posts: 2

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

 
Old 11-24-2003, 02:29 PM   #9
gernt
LQ Newbie
 
Registered: Nov 2003
Location: Crossville, Tennessee
Distribution: RedHat 9
Posts: 26

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


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
Windows Apps freeze when printing to network samba + cups printer urzumph Debian 1 02-17-2005 06:38 PM
Help with printing to Windows printer with cups and samba. Royle Linux - Networking 3 01-23-2005 12:16 PM
CUPS error - trouble printing to windows printer vr6stress Linux - Newbie 13 12-23-2004 08:46 AM
Printing on Winxp Printer via cups gotmonkey Slackware 10 11-30-2004 01:38 PM
printing from win 98 client to samba printer on red hat linux with cups shashi_lq Linux - Networking 0 12-10-2003 01:04 AM


All times are GMT -5. The time now is 10:24 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration