LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 01-20-2011, 10:01 PM   #1
EddieN1
LQ Newbie
 
Registered: Feb 2008
Posts: 15

Rep: Reputation: 1
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
 
Old 01-20-2011, 10:03 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,880

Rep: Reputation: 530Reputation: 530Reputation: 530Reputation: 530Reputation: 530Reputation: 530
At cups server did you setup users?
 
Old 01-20-2011, 10:28 PM   #3
EddieN1
LQ Newbie
 
Registered: Feb 2008
Posts: 15

Original Poster
Rep: Reputation: 1
No... should I?

Eddie
 
Old 01-20-2011, 10:43 PM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,880

Rep: Reputation: 530Reputation: 530Reputation: 530Reputation: 530Reputation: 530Reputation: 530
It may be why you can only print test page.
 
Old 01-21-2011, 07:55 AM   #5
EddieN1
LQ Newbie
 
Registered: Feb 2008
Posts: 15

Original Poster
Rep: Reputation: 1
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
 
Old 01-24-2011, 08:03 AM   #6
EddieN1
LQ Newbie
 
Registered: Feb 2008
Posts: 15

Original Poster
Rep: Reputation: 1
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

Last edited by EddieN1; 01-24-2011 at 08:04 AM.
 
Old 01-25-2011, 02:32 AM   #7
piquat
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by EddieN1 View Post
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.
 
Old 01-25-2011, 03:27 AM   #8
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,971

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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
 
1 members found this post helpful.
Old 01-25-2011, 08:49 AM   #9
EddieN1
LQ Newbie
 
Registered: Feb 2008
Posts: 15

Original Poster
Rep: Reputation: 1
How to find/view Windows 7 logs

Markush, I would like to look at these logs. Where are they located?

Thanks, Eddie
 
Old 01-25-2011, 08:54 AM   #10
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,971

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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
 
Old 01-25-2011, 09:06 AM   #11
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,971

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Here we are, look at the screenshot.

Markus
Attached Images
File Type: jpg Screenshot_win7.jpg (218.4 KB, 10 views)
 
1 members found this post helpful.
Old 01-26-2011, 11:06 AM   #12
EddieN1
LQ Newbie
 
Registered: Feb 2008
Posts: 15

Original Poster
Rep: Reputation: 1
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
 
  


Reply

Tags
cups, printer sharing, windows7


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing to a Windows shared printer from cups Arancaytar Linux - Networking 1 05-07-2009 02:53 PM
Whats the difference between CUPS printing and Samba shared printing? depam Linux - Software 1 03-17-2006 01:56 PM
Printing from MDK10 to Win XP shared printer fulat2k Mandriva 2 07-19-2004 10:27 AM
Help printing to a Win 98 shared printer mike8994 Linux - Newbie 1 05-02-2004 11:36 AM
printing from win 98 client to samba printer on red hat linux with cups shashi_lq Linux - Networking 0 12-10-2003 01:04 AM


All times are GMT -5. The time now is 08:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration