LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-12-2003, 11:00 AM   #1
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
Stupid Question #2 - Printing to a windows printer share


I have a printer on an XP machine. All my other Win machines can print to it OK. I can mount drive shares from Linux to XP OK.

I have installed a SAMBA network printer via YAST2 and it has the correct driver for my Printer, and quite happily discover the XP machine as a SAMBA server and discovered which shares it had available. Cool so far.

When I try to print anything including using the Test print buttons in YAST the print goes into the queue that I made for the printer, and just sits there until I delete it. there appears to be no attempt to send the print to to the XP machine, no error messages are generated, it just sits there indefinitly looking like this -

linux:~ # lpq
epson is ready and printing
Rank Owner Job File(s) Total Size
active pete 2 Untitled 136192 bytes

How do I go about trouble shooting this?

Cheers

 
Old 01-17-2003, 11:12 AM   #2
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Original Poster
Rep: Reputation: 184Reputation: 184
Is there really no-one here who undertstands Linux well enough to even point me in right direction? Strange.
 
Old 01-18-2003, 02:29 AM   #3
ajk
Member
 
Registered: Nov 2002
Location: CH-3416 Affoltern
Distribution: (SuSE 8.0), Mandrake 9.2
Posts: 58

Rep: Reputation: 15
OK.

Its just a shot in the dark.

Printing to a HP on a W2K, I had to include username and password of a W2K user in the smb-path of the printer.
It looks like that:

smb://WORKGROUP/usernameassword@W2Kmachine/PRINTERNAME

where the smilie is: ":" and "p" without any spaces.

This may be a first try. And then, i used cups, since i had troubles with yast's printersetup. But this should not mess it us at all...

ajk

Last edited by ajk; 01-18-2003 at 02:30 AM.
 
Old 01-18-2003, 02:48 PM   #4
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Original Poster
Rep: Reputation: 184Reputation: 184
Good suggestion, I have definitely set up a correct username and password, and the YaST printer setup asks for it during the printer setup process, but prehaps its not saving the config properly or something.
Hmm.

I found another way to install a printer, using the KDE print box dialogue, so I tried this in case it was YaST doing something wrong, and the exact same thing happens.

I can set it up to print to a file, and hey presto! theres the file everytime. But try printing to a samba share and it no-way hosay.

The smb: etc config line you showed here is obviously part of the cups config, I have no idea where this config is held or what its called, I'll go investigate and see if anything in the config look out of wack.

Any pointer here would be appreciated.

Thanks!
 
Old 01-20-2003, 10:50 AM   #5
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Original Poster
Rep: Reputation: 184Reputation: 184
Thumbs up

To anyone who is interested here's the deal -

If you are sharing a printer on an XP machine the URI for your samba printer must look like this -

smb://userassword@server/share_name

which you will think is obvious, but there are a couple of funnies in here.

1st as a long time windows user I'm used to \\cartman\epson being the same as \\100.100.10.1\epson, given that cartman=100.100.10.1. In windows if you type an ip address like that as part of a machine name its clever enough to twig that its an address not a name so don't bother trying to resolve it. But linux thinks 100.100.10.1 is a Netbios name - good job! So the server MUST go in as a name not an IP. As I have no DNS I just stuck an entry in the hosts file.

2nd, for XP the guest user does not appear to have access to the printer, which on reflection is fair enough, but it took me a while to work it out. I have used the user/pass of my default XP user, otherwise you have to add a new user and you get the annoying user selection screen on bootup.

Pretty newbie stuff I know but it might help someone else!
 
  


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
Yet another Windows share Printing problem kuno1chi Linux - Networking 1 08-23-2005 09:39 AM
Printing to a Windows Samaba Share Maskkkk Linux - Networking 1 09-07-2004 01:15 PM
windows printer share bradyc Linux - Networking 1 11-14-2003 11:21 AM
printing to <SMB Share> win printer bbaley Linux - General 0 05-28-2003 12:46 PM
Printing through a windows share aqoliveira Linux - Networking 0 05-02-2002 04:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:07 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