CUPS printing to Win 7 shared printer
I'm running Red Hat Linux and CUPS 1.2.4. I can print a test page to a Win 7 shared printer ok. However, when I issue the lpr command from a user or root, it won't print. The CUPS message is "Remote host did not accept data file (1)" and the job just hangs till I cancel it. The only thing I can tell that is different is that when the test page from CUPS is generated, it uses user "guest". When I try to print it using the lpr command, the user is "eddie" or "root". I tried adding a user account named "eddie" to the Win 7 box, but that didn't help. I can print successfully from both CUPS and users on several other Win XP boxes. Any suggestions?
Thanks, Eddie |
At cups server did you setup users?
|
No... should I?
Eddie |
It may be why you can only print test page.
|
We have been running Red Hat Linux and CUPS for about 2 years. I successfully print to both network and shared printers all the time. None of these have any CUPS users defined. They all (except the one on Windows 7) print both test pages directly from CUPS and from user accounts using lpr command. Do you still think setting up CUPS users now could solve the problem? If so, where can I get documentation on doing this?
Thanks, Eddie |
Okay, I figured out how to make the print request look like it came from "guest". I used the -Uguest parameter. However, that didn't help. When I print a test page from CUPS, everything works. When I issue the lpr command from Linux, nothing prints... the job just hangs. Can anyone think of anything about Windows 7 that might cause this? Remember it has worked correctly on all PCs that run Windows XP. Thanks, Eddie
|
Quote:
|
If the suggestion of piquat doesn't help, you'll have to check if the problem is on the Windows-machine or on the Linux-machine. I'd suggest to install wireshark on the Windows-machine and check if the printjob arrives at the Windows-machine. You may also explore the logs of the Windows-machine (maybe before installing wireshark) if there is anything like "connection refused".
Markus |
How to find/view Windows 7 logs
Markush, I would like to look at these logs. Where are they located?
Thanks, Eddie |
I don't know the exact names of the menues in english language. In Windows XP you rightclick with the on "My Computer" there's a entry "Administration" there are the logfiles located.
I think, in Windows 7 it's the same location. I'm not that much experienced with Windows 7, but I'll check this, it's an interesting question. Markus |
1 Attachment(s)
Here we are, look at the screenshot.
Markus |
Problem solved... sort of
Apparently the problem has nothing to do with Windows security or firewall settings. When CUPS sent a Test Page to the printer, it must send a pdf file. When I try to print a simple, text file from the Linux shell using "lpr", it won't print. However, if I issue the same "lpr" command to print a pdf file, it prints. So, apparently, I have some driver issue on either Linux or Windows. The printer is a Dell model 1320c. I will continue to work on this. If anyone wants additional updates, I'll document what I find. Otherwise, thanks for all your help and suggestions.
Eddie |
All times are GMT -5. The time now is 12:56 PM. |