Can't print to Windows printer, suspect Samba issue
Hi,
I've been trying to fix the printing on my Arch netbook and laptop for a while, and I'm stuck. There is a HP Photosmart printer attached to a Windows XP desktop that I would like to print to. I have a Debian server that has no problem printing to it. When I try to add the printer, I use the exact same device URI that I used for the Debian box. The CUPS web interface tells me that it's a bad device URI. I haven't managed to get Samba to actually run on the Arch computers, and I can't figure out why. All I did was comment out the default shares in the smb.conf. Testparm shows that the file is OK. However, when I try to start the service, it gives this error: Code:
[anthony@anthony-eee ~]$ systemctl status samba -l Code:
anthony@maples-server:~$ smbtree Code:
[anthony@anthony-eee ~]$ smbtree Code:
[global] |
Quote:
This link to the Arch documentation shows the necessary steps to add a Windows shared printer to CUPS. https://wiki.archlinux.org/index.php..._web_interface |
I'm inclined to agree with allend with regards to using alternative remote printing protocols (ie IPP or LPD). (However, if you decide to pursue samba printing, then you should compare your working Debian smb.conf with the Arch smb.conf.)
|
I checked with the Arch wiki link that you provided. The symlink was already in place. I checked the device URI that it suggested, and it didn't work either. (I've been doing "smb://PANTHERSPRIDE/HPPhotosmart C4200", without the quotes. Changing it to "smb://Windows Username@PANTHERSPRIDE/HPPhotosmart C4200" didn't help. Windows is setup not to need a password.) It still keeps giving this error:
Code:
Bad device-uri "smb://PANTHERSPRIDE/HPPhotosmart C4200". You mentioned using other printing methods. How would I go about setting those up? Thanks! |
The link that was given describes sharing via IPP and LPD.
|
The 'Bad device-uri' error is probably because the CUPS smb backend is missing.
Code:
lpinfo -v Code:
dir /usr/lib/cups/backend/ |
It looks like the backend is present:
Code:
[anthony@newerLaptop ~]$ lpinfo -v I checked the Arch Wiki page again. The desktop is running Windows XP, but I tried it anyway with LPD. I replaced smb with lpd, and I still got a bad device URI error. I'm not sure if I want to add an additional service to run the IPP server for the XP machine. It's my parents' computer, and it's slow enough as it is... I manage to make it work, though. Since the Debian computer could print with no problem, I enabled printer sharing on the Debian box and pointed the Arch computers to print through it. It's a roundabout way, but it works. Thanks for the help and patience! |
If your workaround is acceptable to you then all is fine. However, I didn't notice the URI has a space in the printer name. That could well be the cause of the error
Code:
Bad device-uri "smb://PANTHERSPRIDE/HPPhotosmart C4200". |
Quote:
|
No, the URI should look something like
Code:
smb://server/printer |
Quote:
Thanks for the suggestion. I'll probably just stick with it the way it is, since other Windows computers on the network still expect the space in the name. |
Quote:
Code:
smb://PANTHERSPRIDE/HPPhotosmart%20C4200 https://bugzilla.redhat.com/show_bug.cgi?id=702526 http://ubuntuforums.org/showthread.php?t=1770014 https://bugs.launchpad.net/ubuntu/+s...in/+bug/909769 |
Interesting... I might try that when I get home.
Thanks! I find it unusual that the Debian version of CUPS handles it just fine, while the Arch version (that's most likely newer, since Arch is rolling-release) can't. |
:doh: :banghead:
It was the %20 that did it. Thanks! The two Arch computers now have no issues at all with printing! |
Great! Good to know. :)
|
All times are GMT -5. The time now is 01:42 AM. |