LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CUPS printing to Win 7 shared printer (http://www.linuxquestions.org/questions/linux-newbie-8/cups-printing-to-win-7-shared-printer-857681/)

EddieN1 01-20-2011 10:01 PM

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

EDDY1 01-20-2011 10:03 PM

At cups server did you setup users?

EddieN1 01-20-2011 10:28 PM

No... should I?

Eddie

EDDY1 01-20-2011 10:43 PM

It may be why you can only print test page.

EddieN1 01-21-2011 07:55 AM

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

EddieN1 01-24-2011 08:03 AM

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

piquat 01-25-2011 02:32 AM

Quote:

Originally Posted by EddieN1 (Post 4236015)
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

This isn't related to that stupid bug where you have to uninstall Windows Live Login from Win7 to get Win7 to pay attention to a machine name instead of just an IP is it? If you don't need it, try uninstalling that if you can.

markush 01-25-2011 03:27 AM

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

EddieN1 01-25-2011 08:49 AM

How to find/view Windows 7 logs
 
Markush, I would like to look at these logs. Where are they located?

Thanks, Eddie

markush 01-25-2011 08:54 AM

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

markush 01-25-2011 09:06 AM

1 Attachment(s)
Here we are, look at the screenshot.

Markus

EddieN1 01-26-2011 11:06 AM

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 10:22 AM.