LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-19-2005, 12:00 PM   #1
coreychch
LQ Newbie
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Fedora 16, 17
Posts: 9

Rep: Reputation: 0
CUPS issue with printing from Windows


Hi all,

I've just recently installed CUPS on FC3 to handle a Dell Photo Printer 720.

From a bit of research, I found that this Dell printer basically is a re-badged Lexmark Z600, and so I downloaded the driver file CJLZ600LE-CUPS-1.0-1.TAR.gz, extracted and installed the resulting rpms, and everything was good - I could print a *perfect* test page from the CUPS web printer admin screen.

Anyway - I then configured up samba to use CUPS for printing, and set up the [printers], [print$] sections of smb.conf. I also ran cupsaddsmb to set up auto-downloading of the drivers to the windows client (using the Microsoft Postscript drivers for Windows, as described in the cupsaddsmb man page). This all worked fine - managed to download and install the drivers from my Windows PC, and everything looked cool.

Only problem is, when I print from Windows, it goes completely through the motions of printing - but nothing prints at all!! Remember - the test page worked perfectly, so I don't think there's a problem with the CUPS setup.

I tracked what was being put into the cups error log (/var/log/cups/error_log), and it looked like it was trying to print the file ... but just not quite managing to do it:

d [20/Oct/2005:02:40:37 +1000] CloseClient: Removing fd 8 from InputSet and OutputSet...
D [20/Oct/2005:02:40:37 +1000] [Job 36] Printer using device file "/dev/usb/lp0"...
D [20/Oct/2005:02:40:37 +1000] [Job 36] LPGETSTATUS returned a port status of 18...
I [20/Oct/2005:02:40:37 +1000] [Job 36] Sending print file, 8192 bytes...
I [20/Oct/2005:02:40:37 +1000] [Job 36] Sending print file, 16384 bytes...
I [20/Oct/2005:02:40:37 +1000] [Job 36] Sending print file, 24576 bytes...
I [20/Oct/2005:02:40:37 +1000] [Job 36] Sending print file, 32197 bytes...
d [20/Oct/2005:02:40:37 +1000] PID 5566 exited with no errors.
D [20/Oct/2005:02:40:37 +1000] UpdateJob: job 36, file 0 is complete.
d [20/Oct/2005:02:40:37 +1000] UpdateJob: Removing fd 9 from InputSet...
D [20/Oct/2005:02:40:37 +1000] CancelJob: id = 36
D [20/Oct/2005:02:40:37 +1000] StopJob: id = 36, force = 0
D [20/Oct/2005:02:40:37 +1000] StopJob: printer state is 3
d [20/Oct/2005:02:40:37 +1000] StopJob: Freeing status buffer...
d [20/Oct/2005:02:40:37 +1000] SaveJob: Closing file 8...
d [20/Oct/2005:02:40:37 +1000] SaveJob: Closing file 8...


It seems to be going through the motions of printing - but not actually printing it. The line that interests me the most is the "LPGETSTATUS returned a port status of 18..." message. Browsing around on the web seems to indicate that CUPS thinks the printer is out of paper, but that isn't the case here - is there some sort of bug here which is stopping the printing from occurring? Nothing I saw really explained this very well, whether it is really a problem, and if so what to do about it.


Anyone have any suggestions as to what might be wrong or where to start looking for the problem here?


I'm using FC3 (kernel 2.6.12-1.1378_FC3), cups-1.1.22-0.rc1.8.7, and samba-3.0.10-1.fc3. Below are my cupsd.conf and smb.conf for reference if required:


cupsd.conf:

LogFilePerm 0600
MaxLogSize 2000000000
LogLevel debug2
Printcap /etc/printcap
User lp
Group lp

<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From All
</Location>

Order Deny,Allow
Deny From All

<Location /admin>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From All
</Location>

<Location /printers/Dell720>
AuthType None
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow from All
</Location>

Browsing On
BrowseProtocols cups
BrowseOrder Deny,Allow
BrowseAllow from @LOCAL
BrowseAddress 255.255.255.255
Listen *:631


smb.conf:


[global]
workgroup = WORKGROUP
server string = File Server
hosts allow = 10.10.10. 127.
printcap name = cups
load printers = yes
printing = cups
cups options = raw
use client driver = no
log file = /var/log/samba/%m.log
max log size = 50
security = user
username map = /etc/samba/smbusers
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
template shell = /bin/false
winbind use default domain = no
[homes]
comment = Home Directories
browseable = no
writable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
[print$]
comment = Printer Drivers
path = /etc/samba/drivers
browseable = yes
guest ok = no
read only = yes
write list = root


Thanks in advance to anyone who can help or point me in the right direction here.


Regards,
Corey.
 
Old 10-19-2005, 03:59 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
i can't really address you situation directly but what i always do is make an extra cue in cups to the printer and make it "raw" as in no driver
then just install the windows driver that comes with the printers windows disk.
 
  


Reply


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 Machine with CUPS Riddick Linux - Networking 0 09-17-2005 06:16 PM
CUPS+SAMBA: slow printing from windows hamish Linux - Networking 2 07-06-2005 11:27 AM
Cups Printing Issue Bigun Linux - Software 9 04-05-2005 09:39 PM
Cups Printing Driver for Windows dlublink Linux - Networking 0 10-11-2004 01:04 PM
Windows printing to CUPS via Samba JahToasted Linux - General 0 08-22-2003 02:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:20 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration