Linux - NewbieThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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?
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
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.
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".
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.