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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
11-23-2003, 03:38 PM
|
#1
|
|
LQ Newbie
Registered: Nov 2003
Location: Sweden
Distribution: Slackware 9.1
Posts: 19
Rep:
|
Printing to a WinXP shared printer?
Hi. I would appreciate if you could either help me with this or point me to a thread / site to get me started.
Three computers are on my home network:
One Windows 2000 SP4 box (ICS/gateway)
One Windows XP SP1 box (has a shared printer)
My computer, dualbooting WinXP SP1 and Slackware 9.1
The Win2000 box is running Internet Connection Sharing and this has worked fine with Linux from the start. I have no problem using the Internet from Slackware 9.1.
Both the Win2000 and the WinXP box have a couple of folders shared, and I can access those without problems from Slack.
The Win boxes can see my computer when it's booted into Slackware and access shared directories.
The Windows XP box has a HP 960c printer connected to it, and it's shared over the network. However, I have not been able to add it or print to it from Linux on my box.
In KDE, I found that a cute little program for adding and managing printers was already included in the control central. That's great! This will be easy! Except, it doesn't work...
I selected the CUPS printing system. I then right-clicked and selected ?Add Printer/Class?. A wizzard with cute graphics and helpful text came up. I clicked next and was asked to select a device. I got to choose from Local Printer, LPD, TCP printer etc. ?SMB-Shared Printer (Windows)? was also in the list of options. However, that particular option is greyed out. I obviously need to add *something* to be able to print from a Windows shared printer, but what, and how?
Thanks.
Last edited by DStar; 11-23-2003 at 03:44 PM.
|
|
|
|
11-23-2003, 03:46 PM
|
#2
|
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
You will probably need to install samba first.
http://www.samba.org
|
|
|
|
11-24-2003, 05:05 AM
|
#3
|
|
LQ Newbie
Registered: Nov 2003
Location: Sweden
Distribution: Slackware 9.1
Posts: 19
Original Poster
Rep:
|
Samba is already installed and I think it's configured properly - The Linux machine can see the Windows machines and access shared files and folders. The Windows machines can also see the Linux system. Anything else I need to do with samba to enable printing to a Windows shared printer?
Last edited by DStar; 11-24-2003 at 05:07 AM.
|
|
|
|
12-01-2003, 02:27 AM
|
#4
|
|
LQ Newbie
Registered: Jul 2003
Posts: 20
Rep:
|
same problem here with slack9.1 . i can see shares from the linux machine but not print.
|
|
|
|
12-22-2003, 04:47 PM
|
#5
|
|
Moderator
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,088
|
Is the printer shared in Windows (I assume the file and print sharing is fully turned on)?
|
|
|
|
12-25-2003, 03:35 PM
|
#6
|
|
Member
Registered: Nov 2003
Location: Utah
Distribution: I have SuSE 9.0, and am wanting to try Red Hat soon, and as many others as I can:)
Posts: 35
Rep:
|
I have the same problem too, Using SuSE 9.0 I keep trying but I cant get the WinXP to see the Linux machine,but the Linux machine sees WinXP and the printer, but after choosing the HP Deskjet 5550 and then the driver from the list no test page and cups keeps coming up asking for a password???? I plan on keeping my eyes on this thread and maybe a whole bunch of us it seems can find solutions, Thanks Everybody! Have a Great day
|
|
|
|
12-25-2003, 03:37 PM
|
#7
|
|
Moderator
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,088
|
Jilly,
Have you tried your normal WinXP name and password in the login box?
|
|
|
|
12-26-2003, 02:31 PM
|
#8
|
|
Member
Registered: Nov 2003
Location: Utah
Distribution: I have SuSE 9.0, and am wanting to try Red Hat soon, and as many others as I can:)
Posts: 35
Rep:
|
I am the only one on the WinXP
Thanks for the reply, I am the only one on the WinXP box and dont have a password, just the user name, so I dont know what password I would use 
|
|
|
|
12-26-2003, 02:57 PM
|
#9
|
|
Moderator
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,088
|
Try the administrator id and pw.
|
|
|
|
12-27-2003, 07:20 PM
|
#10
|
|
LQ Newbie
Registered: Oct 2003
Posts: 11
Rep:
|
Printing to a winXP computer?
Hi
as a preface, i know nothing more than what i copied below...and don't know if this is cool to do, but, since i did see a post on another list about accessing a scanner connected to a windows box from a linux box, i thought i'd paste it in here...notice it is refers to red hat linux, so commands might be slightly different for you..take it for what it is worth? Hope it helps...or provokes a reply that says it won't or posts what will... ;]
It's as easy as this:
client$ ssh scanner-machine
<connected>
scanner=machine$ xsane
That is, ssh from the machine where you want to do the scanning to the
machine where the scanner is installed and then run "xane" or "gimp" or
whatever. Unless you're unluckly, it'll just work. It's possible
that you'll have permissions problems associated with access to the
scanner device, but that's a different problem.
Note that you're running xsane or gimp or whatever on the machine where
the scanner is instaleld so you'll either have to copy the files back to
the first machine or use NFS or similar
jch
|
|
|
|
12-27-2003, 08:55 PM
|
#11
|
|
Member
Registered: Aug 2001
Location: Kingsport, TN
Distribution: RHEL & FC
Posts: 267
Rep:
|
Command-line still reigns supreme when it comes to diagnosing some problems
Try something like this:
# smbclient -L PC
Replace PC with the Windows box NETBIOS name. This views shares and you should see the printer share name here if it is truly shared.
# echo "test" | smbclient //PC/SHARE -P -U administrator -c 'print -'
Replace PC with the netbios name of the PC and SHARE with the printers share name.
This command sequence sends some sample text as input to smbclient which connects to a PC named "PC" and attaches to a shared printer with a share name of "SHARE" and prints the data. The -P says to connect to this share as a printer. "-U administrator" says connect with this username and it should prompt you for a password. Try different usernames as appropriate for whatever is setup on the Windows box. The "-c 'print -'" says to run that command on the remote machine, print from stdin which is the stream of text your piping to the command ("test").
Somewhere in this series of things to try you should get more meaningful errors or warnings or messages that will help diagnose what the problem is. Once you get this method of printing working you should be able to set it up in CUPS.
|
|
|
|
01-07-2004, 11:56 PM
|
#12
|
|
LQ Newbie
Registered: Dec 2003
Location: Chicago,IL
Distribution: RH8
Posts: 6
Rep:
|
Thanks for the command line wdingus. My situation is similar to the above. My system prompts for a password, which for troubleshooting is <enter>. However, even though I have created a guest account, printing account, and user account with full control of the share it provides the error below.
I have pasted the machine response to smbclient -L <machine name with LOCAL printer>
I am using the LPRing standard, without installation of CUPS. My samba installation carries version 2.2.5-* samba.
Sharename Type Comment
--------- ---- -------
Error returning browse list: NT_STATUS_ACCESS_DENIED
Any help would be appreciated.
|
|
|
|
01-08-2004, 12:07 AM
|
#13
|
|
Member
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600
Rep:
|
that's no real problem, it just means you are not permitted to browse the list of printers. If you know your printer share name try what wdingus told you:
$> echo "test" | smbclient //PC/SHARE -P -U administrator -c 'print -'
|
|
|
|
01-08-2004, 01:06 PM
|
#14
|
|
Member
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 798
Rep: 
|
I played with this for quite a while and I found that you MUST have a password. It appears that Samba's idea of a blank password is not the same as Windows idea of a blank password. Create a new user "printer" with a password of "printer" and use these in the printer config box i.e
smb://printer:printer@hostname
this was the only way I could get around the NT Access denied message. You can stop this new user appearing in the log in screen on XP, in the control panel somewhere.
Cheers
Pete
Last edited by baldy3105; 01-08-2004 at 01:10 PM.
|
|
|
|
01-09-2004, 02:03 PM
|
#15
|
|
LQ Newbie
Registered: Sep 2003
Distribution: Red Hat 9.0 (Shrike)
Posts: 8
Rep:
|
I tried your above command and received the following output. Other windows machines print flawlessly to this share.
# echo "test" | smbclient //diana/hpdeskj -P -U filipan -c 'print -'
added interface ip=192.168.0.2 bcast=192.168.0.255 nmask=255.255.255.0
Got a positive name query response from 192.168.0.4 ( 192.168.0.4 )
Password:
Domain=[ART] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
Any help woud be appreciated
Last edited by filipanu; 01-09-2004 at 02:05 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:33 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|